html{
    background-color: #AD1E0E;
    /* rgb(148, 177, 227); */
    /* rgb(148, 208, 227); */
}

*{
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* ACCUEIL */

#rules{
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1;
    top: 0;
    text-align: center;
    cursor: pointer;
}

#rulesText{
    color: #AD1E0E;
    background-color: white;
    padding: 2% 0%;
}

#rulesText img{
    width: 35%;
}

#rulesText p{
    font-size: 25px;
    font-weight: bold;
    margin: 1.5% 0%;
}

#rulesText .legende{
    font-size: 15px;
    margin-top: -0.1%;
    color: rgb(185, 185, 185);
}

#rulesIcon{
    font-weight: bold;
    font-size: 25px;
}

#rulesIcon span{
    font-size: 35px;
}

.avatarChoice{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.avatarChoice img{
    width: 40%;
    border-radius: 0px;
}

.choiceAvatarText{
    display: flex;
    margin-bottom: -10%;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 40px;
    color: rgb(255, 255, 255);
}

.pseudoText{
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-bottom: -10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pseudoText label{
    font-weight: bold;
    font-size: 40px;
    color: white;
}

.inputPseudo{
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inputPseudo input{
    width: 300px;
    height: 50px;
    font-size: 30px;
    border-radius: 50px;
    text-align: center;
    font-weight: bold;
    border: none;
    color: #AD1E0E;
}

.avant{
    rotate: 180deg;
    border: none;
    background-color: #AD1E0E;
    font-size: 50px;
    color: white;
    cursor: pointer;
}

.prec{
    background-color: #AD1E0E;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

.imagesAvatar{
   grid-column: 1 / 2; 
   grid-row: 2 / 3;
   display: flex;
   justify-content: center;
}

.confirm{
    display: flex;
    justify-content: center;
}

.confirm button{
    width: 300px;
    height: 50px;
    margin-top: 5%;
    background-color: white;
    border: none;
    color: #AD1E0E;;
    border-radius: 50px;
    font-weight: bold;
    font-size: 25px;
    cursor: pointer;
}

.confirm button:hover{
    background-color: rgb(244, 244, 244);
}

/* GAME PRINCIPAL */

.scoreCounter{
    text-align: center;
    font-weight: bold;
    font-size: 40px;
    color: white;
    margin-top: 5%;
    margin-bottom: 10%;
}

.eventsGame{
    display: grid;
    grid-template-columns: 20% 1fr 3px 1fr 20%;
    grid-template-rows: 1fr 1fr ;
}

.eventsGame img{
    width: 60%;
    border-radius: 200px;
}

.avatarFlexOne{
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.avatarFlexOne p{
    margin-top: 20px;
    font-weight: bold;
    color: white;
    font-size: 40px;
}

.signs{
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.signs img{
    border-radius: 0px;
    width: 18%;
    cursor: pointer;
}

.division{
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    background-color: white;
}

.textIA{
    font-size: 40px;
    font-weight: bold;
    color: white;
    margin-bottom: 50px;
}

.ia{
    grid-column: 4 / 5;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ia img{
    width: 18%;
    border-radius: 1px;
}

.result{
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 40px;
    margin-top: 5%;
}

.replayArrow{
    font-weight: bold;
    font-size: 80px;
    color: white;
    cursor: pointer;
    text-align: left;
    position: absolute;
    margin-top: 25%;
    background-color: #AD1E0E;
    border: none;
}

/* END GAME */

#endGame{
   display: flex;
   justify-content: center;
   align-items: center;
   flex-direction: column;
   margin-top: 10%;
}

#endGame p{
    font-weight: bold;
    color: white;
    margin-bottom: 25%;
    font-size: 50px;
}

.reGame{
    font-size: 40px;
    padding: 0% 1%;
    font-weight: bold;
    color: #AD1E0E;
    background-color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
}

.reGame:hover{
    background-color: rgb(242, 242, 242);
}

.defeatAnimation{
    z-index: -1;
    position: fixed;
    animation-name: defeat;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes defeat {
    from{
        margin-top: -2%;
    }

    50%{
        margin-top: 2%;
    }

    to{
        margin-top: -2%;
    }
}

/* CLASSE ALTERNATIVE POUR CACHER LES ELEMENTS */

.hidden{
    display: none;
}

.SignHidden{
    display: none;
}

.iaSignHidden{
    display: none;
}