body{
    font-family: 'Miriam Libre', sans-serif;
    font-weight: 400;
    font-style: normal;
    background-image: url("../img/fond2.png");
}

.container,.container2{
    width: 95%;
    height: auto;
    margin: auto;
}

h1{
    text-align: center;
    padding: 3rem 0;
}

h2{
    text-align: center;
}

span{
    padding: 0.5rem;
    border: 0.2rem solid black;
    cursor: pointer;
}

.para_regles{
    border: 0.3rem double;
    font-size: 1.4rem;
    padding: 0 1rem ;
    margin-top: 1rem;
}

li{
    margin-bottom: 1rem;
}

.nb_coups{
    display: block;
    background-color: #267FB7;
    width: 80%;
    border-radius: 1rem;
    padding: 1rem;
    color: white;
    text-align: center;
    margin: 3rem auto 1rem auto;
}

.timer{
    display: block;
    background-color: #267FB7;
    width: 25%;
    border-radius: 1rem;
    padding: 1rem;
    color: white;
    text-align: center;
    margin: 0 auto 3rem auto;
}


/* CARTES */
.game{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
    padding-bottom:3rem ; 
}

.box{
    background-color: transparent;
    margin: auto auto;
    width: 80px;
    height:80px;
    perspective: 1000px;
    cursor: pointer;
}

.box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}
.box-front,
.box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.box-front {
    color: #111111;
    /* border: 1px solid black; */

    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.box-back{
    border: 1px solid black;
    transform: rotateY(180deg);

    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flipcard{
    transform: rotateY(-180deg);
}

.paire_trouvee{
    visibility: hidden;
}


/* MEDIAS QUERIES */
@media only screen and (min-width: 768px){
    ul{
        font-size: 1.6rem;
    }

    .container{
        width: 90%;
    }
    .container2{
        width: 80%;
        padding: 1rem;
    }

    h1{
        font-size: 4rem;
        padding-top: 3rem;
    }
    
    h2{
        font-size: 2.5rem;
    }

    h3{
        font-size: 1.8rem;
    }

    .box{
        width: 120px;
        height:120px;
    }

    .contenu{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        align-items: center;
        margin: auto;
    }

    .para_regles{
        margin: auto;
    }

}

