/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: #f4f4f4;
    font-family: Arial, sans-serif;
    text-align: center;
}






/* Level containers */

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

div {
    transition: all 0.3s ease;
}

/* Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    div {
        width: calc(100% - 20px); /* Utilisez calc() pour un ajustement fluide */
        height: auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    div {
        width: calc(100% - 20px); /* Assurez une largeur flexible */
        height: auto;
    }
}


/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black; /* Couleur initiale de l'écran de chargement */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 1s ease; /* Réduit de 2s à 1s */
}

#loading-screen.hidden {
    background: rgb(255, 119, 244); /* Couleur de destination */
    pointer-events: none; /* Empêche les interactions après la transition */
}



.goutte {
    width: 4vw;
    height: 4vw;
    max-width: 25px;
    max-height: 25px;
    min-width: 10px;
    min-height: 10px;
    background: rgb(255, 119, 244);
    border-radius: 50%;
    position: absolute;
    animation: fadeOut 2s linear forwards; /* Retour à 2s pour la rotation */
}

@keyframes fadeOut {
    0% {
        transform: rotate(0deg) translateX(30px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) translateX(30px) rotate(-180deg);
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) translateX(30px) rotate(-360deg);
        opacity: 0;
    }
}


/* Main Content Fade-in Effect */
#main-content {
    opacity: 0;
    transition: opacity 2s ease; /* Transition fluide pour l'apparition */
}

#main-content.visible {
    opacity: 1;
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 480px) {
    .goutte {
        width: 10vw;
        height: 10vw;
    }
}


/* Encapsulation de Level 1 */

.level1 .container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

.level1 .slide {
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 2em;
    color: #00aa1b;
    transition: background 0.5s;
}

/* Autres styles spécifiques à Level 1 */
.level1 #slide1, 
.level1 #slide2 {
    background: #ff80dd;
}

.level1 p {
    font-size: 10vw;
    font-weight: bold;
    text-shadow: 0px 0px 2px limegreen, 0px 0px 8px limegreen;
}
