.hidden {
    display: none;
}

.canvas-container{
    position: absolute;
    top:0;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: -1;
}

body{
    margin: 0;
    background-color: #293133;
    text-align: center;
    color: white;
    font-family: "Kanit Medium";
}

/*Overlay pour empêcher le clique du joueur hors du popup*/
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Un fond semi-transparent */
}
/*Fin Overlay*/


/*Compteur de score*/
.scoringcounter-green{
    color: #70E000;
}
.scoringcounter-blue{
    color: #2196f3;
}
.scoringcounter-orange{
    color: #ff8800;
}
.scoringcounter-purple{
    color: #B75AED;
}

#score {
    font-size: 20px;
    display: flex;
    justify-content: center;
}

#score > *:nth-child(-n+1) {
    margin-right: 25px; /* Ajustez la valeur selon l'espace souhaité entre les deux premiers éléments */
}
#score > *:nth-child(-n+3) {
    margin-right: 10px; /* Ajustez la valeur selon l'espace souhaité entre les deux premiers éléments */
}



p, label{
    color: white;
}

input {
    margin: 0.4rem;
}
/*FIn compteur de score*/

/*Popup de victoire et de défaite*/
.popup {
    width: 400px;
    background-color: #293133;
    border: solid #1a1e24 4px;

    box-shadow: 0 0 10px #1a1e24, 0 0 40px #1a1e24, 0 0 80px #1a1e24;
    color: #fff;

    text-align: center;
    padding: 0 30px 30px;
    color: #fff;

    position: absolute;
    top: 30%;
    left: 35%;
    display:none;
    flex-direction: column;
    justify-content: space-around;
}

.button-defaite{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.button-victoire{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
/*Fin Popup de victoire et de défaite*/

/* Boutons Rouge */
.button-level-red{
    font-family: "Kanit SemiBold", sans-serif;
    padding: 15px 30px;
    font-size: 24px;
    color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #A52A2A;
    background-color: #293133;
    animation-delay: 3s;
    transition: box-shadow 0.4s ease-out;
}


.button-level-red:hover{
    background-color: #A52A2A;
    box-shadow: 0 0 10px #A52A2A, 0 0 40px #A52A2A, 0 0 80px #A52A2A;
    color: #fff;
}
/*Fin boutons rouge*/

/*Bloc Bouton Vert*/
.bloc-button{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
}

.button-container{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding-right: 60px;
    padding-left: 60px;
    grid-column-gap: 30px;
    grid-row-gap: 30px;

}
/*Fin Bloc Bouton Vert*/

/* Boutons Vert */
.button-level-green{
    font-family: "Kanit SemiBold", sans-serif;
    padding: 15px 30px;
    font-size: 24px;
    color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #70E000;
    background-color: #293133;
    animation-delay: 3s;
    transition: box-shadow 0.4s ease-out;
}


.button-level-green:hover{
    background-color: #70E000;
    box-shadow: 0 0 10px #70E000, 0 0 40px #70E000, 0 0 80px #70E000;
    color: #293133;
}

.button-level-green.hidden{
    display: none;
}
/* Fin boutons Vert */

/* Boutons Bleu */
.button-level-blue{
    font-family: "Kanit SemiBold", sans-serif;
    padding: 15px 30px;
    font-size: 24px;
    color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #2196f3;
    background-color: #293133;
    animation-delay: 3s;
    transition: box-shadow 0.4s ease-out;
}


.button-level-blue:hover{
    background-color: #2196f3;
    box-shadow: 0 0 10px #2196f3, 0 0 40px #2196f3, 0 0 80px #2196f3;
    color: #293133;
}
/* Fin boutons Bleu */


/* Boutons Orange */
.button-level-orange{
    font-family: "Kanit SemiBold", sans-serif;
    padding: 15px 30px;
    font-size: 24px;
    color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #ff8800;
    background-color: #293133;
    animation-delay: 3s;
    transition: box-shadow 0.4s ease-out;
}


.button-level-orange:hover{
    background-color: #ff8800;
    box-shadow: 0 0 10px #ff8800, 0 0 40px #ff8800, 0 0 80px #ff8800;
    color: #293133;
}
/* Fin boutons Orange */


/* Boutons Violet */
.button-level-purple{
    font-family: "Kanit SemiBold", sans-serif;
    padding: 15px 30px;
    font-size: 24px;
    color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #B75AED;
    background-color: #293133;
    animation-delay: 3s;
    transition: box-shadow 0.4s ease-out;
}


.button-level-purple:hover{
    background-color: #B75AED;
    box-shadow: 0 0 10px #B75AED, 0 0 40px #B75AED, 0 0 80px #B75AED;
    color: #293133;
}
/* Fin boutons Violet */


/* Boutons Menu */
.nav{
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    padding-top: 60px;

}

.button-level-menu{
    font-family: "Kanit SemiBold", sans-serif;
    padding: 15px 30px;
    font-size: 24px;
    color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #d9d9d9;
    background-color: #293133;
    animation-delay: 3s;
    transition: box-shadow 0.4s ease-out;
}


.button-level-menu:hover{
    background-color: #d9d9d9;
    box-shadow: 0 0 10px #d9d9d9, 0 0 40px #d9d9d9, 0 0 80px #d9d9d9;
    color: #293133;
}

.button-level-save{
    font-family: "Kanit SemiBold", sans-serif;
    padding: 15px 30px;
    font-size: 24px;
    color: #fff;
    border-style: solid;
    border-width: 2px;
    border-color: #DAA520;
    background-color: #293133;
    animation-delay: 3s;
    transition: box-shadow 0.4s ease-out;
}


.button-level-save:hover{
    background-color: #DAA520;
    box-shadow: 0 0 10px #DAA520, 0 0 40px #DAA520, 0 0 80px #DAA520;
    color: #293133;
}
/* Fin boutons Menu */

/*Pour map plus grande */
/*.canvas-container {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
/*}*/

canvas{
    z-index: -1;
}

/* Boutons Directionnels */

@media (max-width: 1200px) {

    /* Styles pour l'élément plein écran */
    #fullscreen-element {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 2400px;
        height: 2400px;
        z-index: 9999;
        /*background-color: transparent;*/
        /*display: block;*/
    }

}


