@font-face {
    font-family: 'KidGames';
    src: url('../fonts/KidGames.eot');
    src: url('../fonts/KidGames.eot') format('embedded-opentype'),
        url('../fonts/KidGames.woff2') format('woff2'),
        url('../fonts/KidGames.woff') format('woff'),
        url('../fonts/KidGames.ttf') format('truetype'),
        url('../fonts/KidGames.svg#KidGames') format('svg');
}


@keyframes cardFound {
    0% {
        scale: 1;
        background-color: unset;
        border: unset;
    }

    50% {
        scale: 1.1;
        background-color: unset;
        border: unset;

    }

    100% {
        scale: 1;
    }
}

@keyframes startGamePopup {
    0% {
        scale: 1;
    }

    50% {
        scale: 1.2;
    }

    100% {
        scale: 1;
    }
}

body {
    margin: 0;
}


h1, h2 {
    font-family: 'KidGames';
    text-align: center;
}

#gameContainer {
    margin-top: 15px;
    width: 90%;
    min-height: 610px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    background-color: rgba(255, 19, 19, 0.42);
}

#buttonsPartie {
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 19, 19, 0.757);
}

#buttonsPartie button {
    padding: 15px 5px;
    width: 200px;
    border-radius: 15px;
}

#buttonsPartie select, #buttonsPartie button {
    text-transform: uppercase;
    padding: 10px 0;
    color: black;
    cursor: pointer;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    font-family: 'KidGames';
    text-align: center;
    background-color: #ff9c9c;
    font-size: 20px;
    border: 2px solid black;
}


#timeScoreContainer {
    background-color: rgba(255, 19, 19, 0.757);
    flex-basis: 250px;
    text-align: center;
    order: 2;
    font-family: 'KidGames';
    font-size: 30px;
    box-sizing: border-box;
}

#buttonsPartie {
    flex-basis: 250px;
    order: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.startPart {
    text-align: center;
    font-family: 'KidGames';
    animation-name: startGamePopup;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    font-size: 30px;
    align-self: center;

}

#cardsContainer {
    box-sizing: border-box;
    flex-basis: calc(100% - 500px);
    order: 1;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
}

#cardsContainer>span {
    font-family: 'KidGames';
    font-size: 30px;
    margin: 20px;
}

.checkWin {
    text-align: center;
}

.card {
    position: relative;
    box-sizing: border-box;
    background-color: rgba(255, 19, 19, 0.757);
    border-radius: 15px;
    border: 5px solid black;
    width: 150px;
    height: 150px;
    margin: 0 10px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card .front-face,
.card .back-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card .front-face {
    z-index: 2;
    transform: rotateY(0deg);
}

.card .back-face {
    transform: rotateY(180deg);
}

.card.is-flipped {
    transform: rotateY(180deg);
    cursor: pointer;
}

.card.is-found {
    animation-name: cardFound;
    animation-duration: 2s;
    animation-iteration-count: 1;
    opacity: 0.8;
    background-color: green
}



#meassageButtonQuitter {
    display: none;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}