body {
    margin: 0;
    padding: 0;
    font-family: Arial;
    background: #333;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
    font-size : 10px;
    margin-top: 25px;
}


a {
    color: #93D482;
    text-decoration: none;
}

a:hover {
    color: #00ff00;
}



div.feuille {
    width:400px;
    height: 792px;
    margin: 20px auto;
    border: 2px solid white;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px gba(0, 0, 0, 0.3), 0 0 25px rgba(0, 0, 0, 0.2);
    margin-top; 50px;
}

div.sky {
    background: linear-gradient(to top, #838383, #0C163A);
    height: 280px;
    width: 100%;
    z-index: 2;
    border-radius: 50px 50px 0 0;
    position: relative;
}

.star {
    position: absolute;
    width: 1px;
    height: 1px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px white;
    opacity: 0;
    animation: blink 2s infinite ease-in-out;
    z-index: 15;
}

.star:nth-child(2) {
    width: 1px;
    height: 1px;
    animation-duration: 3s;
}

.star:nth-child(3) {
    width: 2px;
    height: 2px;
    animation-duration: 4s;
}

.star:nth-child(4) {
    width: 3px;
    height: 3px;
    animation-duration: 5s;
}

.star:nth-child(5) {
    width: 2px;
    height: 2px;
    animation-duration: 2.5s;
}

@keyframes blink {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.lune-container {
    position: absolute;
    top: 40px;
    left: 80%;
    transform: translateX(-50%);
    z-index: 10;
}

.lune {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.7);
    animation: haloBounce 2s ease-in-out infinite;
}

@keyframes haloBounce {
    0%, 100% {
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.7); /* Halo lumineux au maximum */
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.3); /* Halo lumineux atténué */
    }
}

.lune-reflet {
    position: absolute;
    top: 390px; /* Ajuste la position pour le reflet de la lune */
    left: 0%;
    transform: translateX(-50%);
    width: 50px; /* Taille du reflet de la lune */
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3); /* Couleur blanche avec transparence */
    border-radius: 50%; /* Forme ronde */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Halo lumineux */
    animation: refletAnimation 2s ease-in-out infinite; /* Animation de reflet et vagues */
}

@keyframes refletAnimation {
    0% {
        transform: translateX(0%) scale(1);
    }
    50% {
        transform: translateX(-1%) scale(0.95); /* Réduit le mouvement horizontal et l'agrandissement */
    }
    100% {
        transform: translateX(0%) scale(1);
    }
}

img.montagnes {
    width: 100%;
    position: absolute;
    top: 130px;
    z-index: 4;
}

img.birds {
    position: absolute;
    z-index: 15;
    top: 150px;
    left: 110px;
    width: 30px;
    animation: fly 5s ease-in-out infinite;
}

@keyframes fly {
    0% {
        transform: translateY(0); /* Position initiale */
    }
    50% {
        transform: translateY(-10px); /* Monte vers le haut */
    }
    100% {
        transform: translateY(0); /* Redescend à la position initiale */
    }
}

div.water {
    position: absolute;
    top: 20%;
    bottom: 0;
    width: 100%;
    height: 80%;
    z-index: 1;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
    background: linear-gradient(to bottom, #AEBBCA, #CCD7E3);
}

img.first-element {
    width: 80%;
    display: block;
    margin-top: 200px;
    z-index: 6;
    left:0;
    position: relative;
}

img.second-element {
    width: 80%;
    margin-left: 83px;
    z-index: 2;
    margin-top: 30px;
    position: relative;
}

img.first-plan {
    width: 100%;
    z-index: 25;
    border-radius: 0 0 50px 50px;
    position: absolute;
    bottom: 0px;
}

img.boat {
    z-index: 5;
    position: absolute;
    width: 60px;
    top: 190px;
    left: 50px;
    animation: sail 80s ease-in-out infinite;
}

@keyframes sail {
    0% {
        transform: translateX(-100%) rotate(0deg); /* Commence à gauche, hors de la vue */
    }
    50% {
        transform: translateX(calc(100% + 210px)) rotate(0deg); /* Avance jusqu'à la fin de la div, plus la largeur du bateau */
    }
    100% {
        transform: translateX(-100%) rotate(0deg); /* Retourne à la position initiale */
    }
}

@keyframes resetPosition {
    0% {
        transform: translateX(-5vw); /* Commence en dehors de la zone à gauche */
    }
    100% {
        transform: translateX(0); /* Se déplace jusqu'à la position initiale */
    }
}

img.waves {
    z-index: 3;
    position: absolute;
    top: 200px;
}

@media screen and (max-width: 480px) {
    
    div.feuille {
        margin-top: 0px;
        border: 0px solid white;
        border-radius: 0px;
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0.3), 0 0 0px rgba(0, 0, 0, 0.2);
    }
    
    div.sky {
        border-radius: 0px 0px 0 0;
    }
    
    div.water {
        border-radius: 0px 0px 0 0;
    }
    
    img.first-plan {
        border-radius: 0px 0px 0 0;
    }
    
}