body {
    background-color: black;
}

.title {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.title>h1 {
    padding: 10px 15px;
    font-size: 2.5rem;
    color: white;
    text-align: center;
}

.title>hr {
    width: inherit;
}

.cards {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(350px, 85%, 1250px);
    padding: 10px;
    border: 3px solid white;
    border-radius: 15px;
    perspective: 1000px;
    overflow: scroll;
    user-select: none;

    &:active {
        cursor: grabbing;
    }
}

.cards::-webkit-scrollbar {
    display: none;
}

.cards>.card {
    position: relative;
    text-align: center;
    height: 500px;
    width: 300px;
    min-width: 300px;
    background-color: rgb(230, 230, 191);
    color: black;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transform-style: preserve-3d;
    transition: 0.5s ease-out;
    perspective: 1000px;
    cursor: pointer;

    &:active {
        cursor: grabbing;
    }

    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 15px white;
    }
}

.cards>.card.show {
    transform: rotateY(180deg);
}

.cards>.card img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.cards>.card h3 {
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    width: 100%;
}

.cards .front,
.cards .back {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.cards .back {
    transform: rotateY(180deg);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid white;
    border-radius: 10px;
}

.cards .back>h3 {
    background: #222;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.cards .back>p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 1.5;
    padding: 5px 15px;
    text-align: left;
    overflow: auto;
}