
body {
    background-color: rgb(84, 84, 84);
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    font-size: 50px;
    color: white;
}

.game-board {
    display: table;
    margin: auto;
}

.board-row {
    display: table-row;
    gap: 10px;
}

.board-cell{
    width: 250px;
    height: 250px;
    border-radius: 15px;
    margin-top: 10px;
    margin-right: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
    backface-visibility: hidden;
}

.board-cell:hover {
    transform: translateY(-3px);
}

.board-cell.is-flipping {
    animation: cardFlip 0.35s ease;
}

@keyframes cardFlip {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(90deg) scale(0.96);
    }
    100% {
        transform: rotateY(0deg) scale(1);
    }
}