body{
    height: 100dvh;
    color: #ffffff;
    font-family: 'Gabriela', serif;
    font-style: normal;
    font-weight: 400 ;
}

.tableau_vert{
    height: 100%;
    background-color: #2c6e49;
    border: 4rem ridge #b67249;
    background-image: url("../img/fond.png");
}

.container{
    width: 90%;
    margin: 2rem auto 0 auto;
    height: auto;
}

h1{
    text-align: center;
    font-weight:700;
    font-size: 5rem;
    margin: auto;
}

/*EN-TETE : INFOS*/
.en_tete{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; 
}

.infos{
    display: none;
}

.infos2{
    display: flex;
    flex-direction: column;
}

.infos p{
    font-size: 3rem;
}

#barre_vie{
    background-color: #70e000;
    /* background-color: #3a86ff;*/
    transition: background-color 1.5s ease-in-out;
    border-radius: 10rem;
    border: none;
}

#barre_vie::-moz-progress-bar{
    background-color: #96B7A4;
}

/*DESSIN DU PENDU → voir en bas de page*/

/* CADRE CHOIX MODE DE JEU */
.div_mode{
    border : 0.2rem solid #512e02;
    border-radius: 0.5rem;
    width: 40%;
    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;
    height: 70%;
}

.btn_mode{
    padding: 1rem 2rem;
    color: #393a49;
    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*/
}

/*FORMULAIRE DU JOUEUR 1 : MOT A TROUVER */
.formulaire_mdp{
    border : 0.2rem solid #512e02;
    border-radius: 0.5rem;
    width: 40%;
    margin: auto;
    height: 30rem;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;    
}

label{
    font-size: 2.8rem;
    text-align: center;
}

.div_input_mdp{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.input_champ, .input_lettre{
    color:black;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;    
    border: 1px solid #000000;
    border-radius: 1rem ;
    background-color: #96B7A4;
    padding: 0.5rem;
}

.input_champ:focus, .input_lettre:focus {
    outline: 0.1rem solid #512e02;
}

.picto{
    position: absolute;
    right: 1.3rem;
    cursor: pointer;
}

.picto:hover{
    opacity: 0.5;
}

.btn_mdp{
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: none;
    background-color: #dfdbdb;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.btn_mdp:hover, .btn_lettre:hover{
    background-color: #cccaca;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.2);
}

/* FORMULAIRE DU JOUEUR 2 : LETTRE A SAISIR */
.ligne_blocs{
    display: none;
}

.ligne_blocs2{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 5rem;
}

.formulaire_lettre{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 30%;
}

.formulaire_lettre div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.btn_lettre{
    width: 7rem;
    height: 7rem;
    text-align: center;
    border-radius: 50%;
    color:#000000;
    border: none;
    background-color: #dfdbdb;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

/*ESPACE POUR AFFICHER LE MOT A DEVINER*/
.box, .box3{
    width: 30%;
    margin: auto;
    height: 20rem;
}

.box2{
    height: 20rem;
    width: 30%; 
    margin: auto;
}

.flexbox{
    display: flex;
    flex-direction: row;
    justify-content: center;    
    align-items: center; /*BBBBBBBBBB*/
}

.caractere{
    padding: 1.1rem;
    font-size: 3.2rem;
    display: flex;
}

.saut{
    animation: saut 3s ease-in-out 1 ;/*2 = nombre d'itérations */
} 

@keyframes saut{
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px);
    }
    60% {
      transform: translateY(-5px);
    }
}
  
/* ESPACE POUR AFFICHER LES LETTRES FAUSSES */

.div_defausse{
    margin-right: -2rem ;
}

.div_defausse p{
    font-size: 2.5rem;
    text-align: center;
}

.lettre_fausse{
    padding: 1.2rem;
    font-size: 2.5rem;
    display: block;
}

.break{
    flex-wrap: wrap;
}

/* DESSIN DU PENDU */
.trait_pendu{
    stroke-dasharray: 314; /*définit les traits et les espaces entre eux = tirets*/
    stroke-dashoffset: 314; /*décale la position de départ des pointillés sur les lignes */
    animation: dessine 2s 1 paused both; /*both : regarder l'état de fin pas revenir à l'état de départ*/
}

@keyframes dessine{
    100%{
    stroke-dashoffset: 0;
    }
}

.active{
    animation-play-state: running; /*exécuter l'animation qui était en pause*/
}

/* Ajoutez ces styles pour les écrans de petite taille (par exemple, smartphones) */
@media screen and (max-width: 575px) {
    .container{
        max-width: 95%;
    }
    h1{
        font-size: 3rem;
    }
    .tableau_vert{
        border: 3rem ridge #b67249;
        background-position:top ;
    }

    /* page 1*/
    .div_mode{
        width: 90%;
    }
    .div_mode h2, .infos p{
        font-size: 1.8rem;
    }
    .infos p{
        display: none;
    }
    /* page 2 : solo*/
    .en_tete,.infos{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        margin-top:1.5rem ;
    }
    .infos,#barre_vie, .div_defausse p{
        display: none;
    }
   
    .ligne_blocs2{
        display: flex;
        flex-direction: column;
    }
    .box, .box2{
        width: 100%;
        height: 15rem;
    }
    .box2{
        margin-top: 1.5rem;
    }

    .formulaire_mdp{
        width: 100%;

    }
    .div_defausse{
        margin-right: 0;
    }
    .flexbox{
        flex-wrap: wrap;
    }
    .formulaire_lettre{
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .formulaire_lettre div{
        display: flex;
        flex-direction: row;
    }

    .formulaire_lettre label{
        font-size: 1.8rem;
    }
    .btn_lettre{
        height: 4rem;
        width: 4rem;
        text-align: center;
    }
    
    .caractere{
        padding: 0.8rem;
        font-size: 2.8rem;
        display: flex;
    }
}

@media screen and (max-width: 376px) {
    .btn_mode{
        padding: 1rem;
    }
}



/* .dessin_pendu{
    width : 18rem;
    height : 18rem;
    position : relative;
    visibility: hidden;
}

.horizon{
  width:18rem;
  border:0.15rem solid #fff;
}

.vertical{
  width:17.5rem;
  border:0.15rem solid #fff;
  transform: rotate(90deg);
}

.barre_bas{
  position: absolute;
  bottom : 0.2rem;
  left : 0;
  width : 9rem;
}

.poteau{
    position: absolute;
    top : 8.8rem;
    left : -5.2rem;
  }

.barre_haut{
  position: absolute;
  top : 0;
  left : 3.5rem;
  width : 7rem;
}

.diagonale{
  position: absolute;
  top : 1.5rem;
  left : 3rem;
  transform : rotate(-40deg);
  width : 5rem;
}

.corde{
  position: absolute;
  top : 1.5rem;
  left : 8.8rem;
  width : 3.2rem;
}

.tete{
    width:1.5rem;
    height: 1.5rem;
    border: 0.2rem solid #fff;
    border-radius :50%;
    position: absolute;
    top : 3.1rem;
    left : 9.7rem;
}

.corps{
  width : 2.2rem ;
  position: absolute;
  top : 5.6rem;
  left : 9.3rem;
}

.bras_droit{
  position: absolute;
  width : 1rem ;
  top : 5.4rem;
  left : 10.2rem;
  transform : rotate(45deg);
}

.bras_gauche{
  position: absolute;
  width : 1rem ;
  top : 5.4rem;
  left : 9.5rem;
  transform : rotate(-45deg);
}

.jambe_droit{
  position: absolute;
  width : 1rem ;
  top : 7rem;
  left : 10.3rem;
  transform : rotate(45deg);
}

.jambe_gauche{
  position: absolute;
  width : 1rem ;
  top : 7rem;
  left : 9.5rem;
  transform : rotate(-45deg);
} */