/* Global styles */
body {
    margin: 0;
    min-height: 100vh!important;
    background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow: hidden;
    color: white;
    margin: auto;
}
.niveauHeader{
    display: flex;
    justify-content: center;
    color: black;
    text-align: center;
    font-size: 14px;
    justify-content:center;
    height: fit-content;

}
.btn{
    text-decoration: none;
    color: black;
    border: none;
    background-color: transparent;
    border: 1px solid transparent;
}
.btn:hover{
    cursor: pointer;
}
canvas{
    margin-top: 20px;
    background-color: white;
    border-radius: 50px;
    border: 2px solid black;
}
canvas.success{
    
    background-color:rgb(149, 241, 149); 
}
canvas.error{
    
    background-color: rgb(241, 3, 3);
}
.listeButtonsNotes{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: auto;
    margin: auto;

}
.btn-ctrl{
    width: fit-content;
    background-color: #0093E9;
    background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
    margin: 20px;
    padding: 20px;

}
.hidden,.gameContainer.hidden,.presentationNiveauContainer.hidden,.score.hidden{
    display: none;
}
.btn-ctrl:hover{
    background-color: #61e900;
    background-image: linear-gradient(160deg, #00e93e 0%, #80D0C7 100%);
    cursor: pointer;
}
.presentationNiveauContainer{
    position: absolute;
    top:30%;
    left: 50%;
    border: 3px solid black;
    border-radius: 20px;
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    padding: 20px;
    font-size: 2.3em;
    color: black;
    transform: translate(-50%, -30%);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
    width: 80%;
}
.elevatorContainer {
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    aspect-ratio: 1.3;
    margin: auto;
    overflow: hidden;
    background-color: #D9AFD9;
    background-image: linear-gradient(0deg, #D9AFD9 0%, #97D9E1 100%);
    color: white;
    text-align: center;
}

.elevator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: space-between;
    z-index: 20; 
    background-color: black;
}
.fondElevator{
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    
    width: 100%;
    transform: translate(-50%, -50%);
    margin: auto;
    background-image: url("../images/cadreRideaux.png");
    background-size: 100% 100%;  /* Étire l'image pour remplir exactement la div */
    background-position: center;  /* Centre l'image dans la div */
    background-repeat: no-repeat;  /* Évite la répétition de l'image */
    transition: opacity 1s ease;


}
.rightDoor{
    background-image: url("../images/rideauxRight.png");
    background-size:auto;
}
.leftDoor{
    background-image: url("../images/rideauxLeft.png");
    background-size:auto;
}
.rightDoor, .leftDoor {
    width: 50%;
    height: 100%;
    position: relative;
    transition: width 1500ms ease; /* Animation de transition pour la largeur */
    z-index: 0;
    background-size: 100% 100%;  /* Étire l'image pour remplir exactement la div */
    background-position: center;  /* Centre l'image dans la div */
    background-repeat: no-repeat;  /* Évite la répétition de l'image */

}

#btnOpenOrCloseDoor {
    position: absolute;
    top: 10px;
    right: 10px;
}

.gameContainer{
    position: absolute;
    top: 50%;
    left: 50%;
    width: fit-content;
    height: fit-content;
    transform: translate(-50%, -50%);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    color: black;
    z-index: 10000;
    border-radius: 20px;
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    padding: 20px;
    opacity: 0.9;
    text-align: center;
}
.score{
    
    display: flex;
    width: 60%;
    justify-content: space-evenly;
    height: fit-content;
    border: 3px solid black;
    background-color: blue;
    border-radius: 20px;
    padding: 20px;
}
.crocheScore{
    width: 5%;
}
.imgChef{
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%,0%);
    width: auto;
    height: 30%;
    margin: auto;
    opacity: 0;
    transition: all 1s ease;
    z-index: 20000;

}
#menuJeu{
    border-radius: 20px;
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    padding: 20px;
    font-size: 1.9em;
    color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: opacity 1s ease;
    z-index: 50000;

}

/* Styles spécifiques lorsque la hauteur est supérieure à la largeur */
@media (orientation: portrait) {
    body{
        width: 100%;
        margin: auto;
    }
    .elevatorContainer{
        width: 100%;
        height: 100%;
        background-color: black;

    }
    .imgChef{
        z-index: 2000;
    }
    .fondElevator{
        width: 100%;
        height: 100%;
    }
    .gameContainer{
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translate(-50%,-10px);
        width: 80%;
        height: fit-content;
        margin: auto;
    }
    .presentationNiveauContainer{
        width: 90%;
        position: absolute;
        top: 20%;
        transform: translate(-50%,-20%);
        font-size: 1.6em;

    }
    /* CSS pour les appareils mobiles en mode paysage */
@media (orientation: landscape) {
    .presentationNiveauContainer{
        width: 100%;
        position: absolute;
        top: 0!important;
        transform: translate(-50%,0);
        font-size: 0.9em!important;

    }
}

}
