:root{
    --dark-text: hsl(229, 25%, 31%);
    --score-text: hsl(229, 64%, 46%);
    --header-outline: hsl(217, 16%, 45%);
}

body{
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.4px;

    background: linear-gradient(to bottom, hsl(214, 47%, 23%), hsl(237, 49%, 15%)) ;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* CONTAINER */
.container{
    width: 90%;
    height: auto;
    margin: auto;
}

.container2{
    width: 100%;
    height: auto;
}

/* LOGO + SCORE */
.header{
    width: 90%;
    height: auto;
    margin: auto;
}

.div_header{
    border-radius: 0.2rem;
    border: 3px solid var(--header-outline);

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.logo{
    width: 10rem ;
    height: auto;
    cursor: pointer;
}

.div_score{
    text-align: center;
    text-transform: uppercase;
    padding: 1rem 3rem;
    /* width: 8rem;
    height: 7.2rem; */
    background-color: white;
    border-radius: 0.4rem;
}

.div_score p{
    color: var(--score-text);
}

.div_score span{
    color: var(--dark-text);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
}

/* CADRE CHOIX MODE DE JEU */
.div_mode{
    border-radius: 0.2rem;
    border: 3px solid var(--header-outline);
    width: 90%;
    margin: auto;
    height: auto;
    padding-bottom: 2rem;
}

.div_mode h2{
    text-align: center;
    font-size: 2.8rem;
    padding: 2rem 0;
}

.div_mode div{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.btn_mode{
    padding: 1rem 3rem;
    color: var(--dark-text);
    background-color: #dfdbdb;
    border-radius: 0.4rem;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    transition: transform 0.3s ease-in-out;
}

.btn_mode:hover{
    background-color: #b7b3b3;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#b7b3b3 0 -3px 0 inset;
    transform: scale(1.2); /*modifie la taille d'un élément*/
}

/* PLATEAU DE JEU */
.menu_principal, .menu_principal2{
    width: 90%;
    height: auto;
    margin: auto;
    display: none;
}

.div_jeu{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:"zone1 zone2 zone3"
                        "zone1 zone2 zone3"
                        "zone4 zone5 zone6";
    justify-content: center;
    background-image: url("../img/bg-triangle.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
}

.div_jeu2{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr ;
    justify-content: center;

    /* margin: auto;
    width: 100%;
    height: 35rem; */
    background-image: url("../img/bg-pentagon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    position: relative;
}

.div_jeu img, .div_jeu2 img{
    cursor: pointer;	
}

.div_jeu img:hover, .div_jeu img:focus, .div_jeu2 img:hover, .div_jeu2 img:focus{
    border: 15px solid hsl(221, 36%, 24%);
    border-radius: 50%;
    outline: none;
}

/* PULSATION */
.container_pulse{
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 3rem;
}

.container_pulse p{
    font-size: 1.8rem;
    text-align: center;
}

.pulse{
    margin: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.pulse:before,
.pulse:after{
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(139, 149, 171, 0.7);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
}
.pulse:before{
    animation: pulse 4s ease-out infinite;
}
.pulse:after{
    animation: pulse 4s 1s ease-out infinite;
}

@keyframes pulse{
    100%{
        transform: scale(1.7);
        opacity: 0;
    }
}

/* SYMBOLES */
.paper1{
    grid-area: zone1;
}

.scissors1{
    grid-area:zone3;
}

.rock1{
    grid-area:zone5;
}

/* symboles variante */
.paper{
    grid-column: 3/span 4;
    grid-row: 2;
    position: absolute;
    right: -1rem;
    /* top:-2rem; */
}

.scissors{
    grid-column: 2;
    grid-row:1;
    /* position: absolute;
    right: 11rem;
    top:-3rem; */
}

.rock{
    grid-column:3;
    grid-row: 3;
    position: absolute;
    right: 4rem;
    bottom: -3rem;
}

.lezard{
    grid-column: 1;
    grid-row: 3;
    position: absolute;
    left: 4rem;
    bottom: -3rem;
    max-width: 33%;

}

.spock{
    grid-column: 1;
    grid-row: 2;
    position: absolute;
    left: -1rem;
    /* top: -2rem; */
    max-width: 33%;
}

.img_position{
    position: initial;
    max-width:100% ;
}

/* REGLES */
.div_regles{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 3rem;
}

.btn_regles, .btn_again{
    border: 0.5px ridge white;
    border-radius: 0.7rem;
    padding: 0.5rem 4rem;

    color: white;
    text-transform: uppercase;
    background-color: transparent;

}

.btn_regles:hover{
    color: var(--dark-text);
    background-color: white;
}

.btn_again:hover{
    color:hsl(349, 71%, 52%);
}

.btn_again:focus{
    color:hsl(349, 71%, 52%);
    background-color: transparent;
}

/* PLATEAU DE JEU AVEC ORDI */
.partie_cours_cache{
    display: none;
}

.partie_cours{
    display: grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows: auto;
    align-items: center;
    justify-content: center;
}

.cercle_ordi{
    width:15.1rem;
    height:  15.4rem;
    border-radius: 50%;
    background-color: hsl(219, 28%, 25%);   
    margin: auto;
}

.div_ordi, .div_player{
    position: relative;
}

/* RESULTAT */
.div_resultat{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 3rem;
    visibility: hidden;
    grid-column: 1 / span 2;
}

.div_resultat p{
    font-size: 4.5rem;
    font-weight: 700;
}

.btn_again{
    background-color: white;
    color: var(--dark-text);
    padding: 1rem 5rem;
}



/* MEDIAS QUERIES */
@media only screen and (min-width: 700px){
    .menu_principal,.menu_principal2, .container{
        width: 50%;
    }

    .header, .div_mode{
        width: 70%;
    }

}

@media only screen and (min-width: 992px) {
    .container2{
        width: 95%;
    }

    .container{
        width: 45%;
    }

    .header{
        width: 60%;
    }

    .div_mode{
        width: 50%;
    }

    .partie_cours{
        display: grid;
        grid-template-columns:1fr 1fr 1fr;
        grid-template-rows: auto;
        gap: 5rem;
        margin-bottom: 10rem;
    }

    .div_resultat{
        grid-column: 2;
        grid-row: 1;
    }

    .container_pulse{
        flex-direction: column;
    }

    .div_regles{
        justify-content: flex-end;
    }

}

@media only screen and (min-width: 1200px){
    .menu_principal, .menu_principal2{
        width: 30%;
        margin-top: 2rem;
    }
    
    .header{
        width: 50%;
        margin-top: 2rem;
    }
    .div_mode{
        width: 40%;
    }
}