*{
    margin: 0;
    padding: 0;
}

body{
    height: 200vh;
    /* background-color:#68BEEB; */
    background-color:#79CEF7;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#bodyBase{
    overflow-x: hidden;
}

.ciel{
    width: 150vw;
    /* height: 500px; */
    background-color: #00A0FE;
    /* meteo code ici */
    position: relative;
    animation: lancement 4s forwards ease-in-out;

}

.container {
    position: absolute; 
    /* bottom: 0; */
    /* top: 225px; */
    /* top: 100px; */
    left: 0;
    width: 150vw;
    display: flex;
    flex-direction: row;
    animation: lancementContainer 4s forwards ease-in-out;

}

.wave-middle {
    position: relative;
    width: 100%;
    height: 100vh; 
    background: linear-gradient(180deg, #005b97d4 50%, transparent 50%);
    mask-image: radial-gradient(circle, #000 50%, transparent 50%);
    animation: wave-animation 4s infinite ease-in-out;
}

.container:nth-of-type(2) .wave-middle {
    right:100px;
    /* height: calc(100% - 30px); */

    background: linear-gradient(180deg, #1e97d3e3 50%, transparent 50%);
    animation: wave-animation2 4s infinite ease-in-out;
}

.container:nth-of-type(4) .wave-middle {
    right:100px;
    background: linear-gradient(180deg, #60c9feb3 50%, transparent 50%);
    animation: wave-animation2 4s infinite ease-in-out;
    animation-delay: 1s;
}

.container:nth-of-type(5) .wave-middle {
    right:100px;
    /* height: calc(100% - 30px); */

    background: linear-gradient(180deg, #a1e0ff87 50%, transparent 50%);
    animation: wave-animation 4s infinite ease-in-out;
    animation-delay: 1s;
}



/* animation droite a gauche */
@keyframes wave-animation {
    0% {
        transform: translateX(0); 
    }
    15% {
        transform: translateX(-25%); 
    }
    30% {
        transform: translateX(10%);  
    }
    50% {
        transform: translateX(-50%); 
    }
    65% {
        transform: translateX(20%);  
    }
    80% {
        transform: translateX(-10%); 
    }
    100% {
        transform: translateX(0); 
    }
}


@keyframes wave-animation2 {
    0% {
        transform: translateX(0); /* Position initiale */
    }
    15% {
        transform: translateX(25%); /* Déplacement rapide vers la droite */
    }
    30% {
        transform: translateX(-10%); /* Retour partiel vers la gauche */
    }
    50% {
        transform: translateX(50%); /* Déplacement lent vers la droite */
    }
    65% {
        transform: translateX(-20%); /* Accélération rapide vers la gauche */
    }
    80% {
        transform: translateX(10%); /* Légère correction vers la droite */
    }
    100% {
        transform: translateX(0); /* Retour à la position initiale */
    }
}



@keyframes lancement {
    0% {
        height: 100vh;
    }
    100% {
        height: 50vh;
    }
}



@keyframes lancementContainer {
    0% {
        top: calc(100vh - 400px);
    }
    100% {
        top: 100px;
    }
}
/* Défis */

.imageDefis:hover{
    scale: 1.3;
}

.imageDefis{
    margin-top: 4vh ;
    margin-bottom: 4vh ;
    height:15vh;
    cursor: pointer;
}

#lesDefis{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.unDefis{
    display: flex;

}

.unDefisInfo{
    padding:10px ;
    border-radius: 10px;
    width: 10vw;
    height: 20vh;
    background-color: rgb(117 206 199 / 60%);
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

.unDefisInfoCourte{
    padding: 10px;
    border-radius: 10px;
    width: 8vw;
    min-height: 10vh;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    background-color: rgb(131, 168, 228);
}

.unDefis .unDefisInfoCourte{
    display: none;
}

.unDefis.close:hover .unDefisInfoCourte{
    display: block;
}

.unDefis.close .unDefisInfo{
    display: none;
}


div{
    z-index: 0;
}

#leScore{
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 11;
}
#reset{
    position: fixed;
    top: 30px;
    left: 10px;
    z-index: 11;
}
#help{
    position: fixed;
    top: 30px;
    left: 10px;
    z-index: 11;
}

/* page défis */

#pageDefis{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#pageDefis video{
    height: 50vh;
}

#gameCanva{
    height: 50vh;
    width: 50vw;
    border: solid black 3px;
}

#lesTextes{
    display: flex;
    justify-content: center;
    text-align: center;
}

#lesTextes p{
    margin: 10px;
    max-width: 50%;
}

#boutonValider{
    margin: 10px;
}

#retourHome{
    position: fixed;
}



/* poisson js style */


.movingImage {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}


#imageLyreco{
    position: absolute; /* Position absolue pour permettre le déplacement */
    top: 0;
    left: 0;
    width: 100px; /* Taille de l'image */
    height: auto;
}

#menuMessage{
    width: 50%;
    min-width: 50%;
    max-width: 50%;
    height: 50%;
    max-height: 50%;
    min-height: 50%;
    position: absolute;
    z-index: 9999;
    background-color: white;
    border-radius: 10px;
    margin-left: calc((100% - 50%) / 2);
    padding: 10px;   
}

#menuMessage h1{
    margin-bottom: 20px;

}