/* Import the font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;200;300;400;500;600;700&display=swap');

body {
    opacity: 1; /* Instead of display: none, use opacity */
    transition: opacity 1s ease-in-out;
    font-size: 1.8rem;
    font-family: "Roboto Mono", sans-serif;
    font-weight: 400;
    color: #fff;
    background: #000000;
    text-shadow: 0 0 10px #ffffff;
}

#overlay {
    opacity: 1; /* Set the final animation opacity directly */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    max-height: 400px;

    /* Styling */
    background: rgba(0, 0, 0, 0.8);


    transition: opacity 0.1s ease-in-out;
    z-index: 1;
}

#underlay {
    opacity: 0; /* Set the final animation opacity directly */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    max-height: 400px;

    /* Styling */
    background: rgba(0, 0, 0, 0.8);

    transition: opacity 0.2s ease-in-out;
    z-index: 2;
}
#underlay:hover {
    opacity: 1; /* Allows hover to increase opacity */
}

#arrow-down {
    display: none;
    opacity: 0.1;
    position: fixed; /* Fixes the image in place */
    bottom: 50px; /* Aligns the image to the bottom of the page */
    left: 50%; /* Centers the image horizontally */
    transform: translateX(-50%); /* Corrects the centering by shifting the image by half of its width */
    max-width: 50px; /* Maximum width of 100px */
    max-height: 50px; /* Maximum height of 100px */
    transition: opacity 0.3s ease-in;
    cursor: pointer;
}

#arrow-down:hover {
    opacity: 0.5;

}

#arrow-up {
    display: none;
    opacity: 0.1;
    position: fixed; /* Fixes the image in place */
    top: 50px; /* Aligns the image to the bottom of the page */
    left: 50%; /* Centers the image horizontally */
    transform: translateX(-50%); /* Corrects the centering by shifting the image by half of its width */
    max-width: 50px; /* Maximum width of 100px */
    max-height: 50px; /* Maximum height of 100px */
    transition: opacity 0.3s ease-in;
    cursor: default;
}

#arrow-up:hover {
    opacity: 0.5;
}


#prologue {
    display: none;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

#prologue p{
    position: absolute; /* Absolute positioning inside the prologue */
    justify-content: center;
    top: 20vh;
    left: 50%; /* Position elements horizontally centered */
    transform: translate(-50%); /* Centers the element horizontally */
    margin: 0; /* Optional, to ensure no default margin */
    max-width: 1000px;
    max-height: 200px;
}

#prologue span {
    transition: opacity 0.1s ease-in-out;
}

#bg, #bg1 {
    left: 50%;
    opacity: 0;
    transform: translate(-50%);
    position: fixed; /* Fixes the element to the viewport */
    bottom: 10px;
    /* Position it at the left edge of the viewport */
    max-width: 90vw; /* Make the width equal to the viewport width */
     /* Make the height equal to the viewport height */
    z-index: -1; /* Ensure it stays in the background */
    transition: opacity 2s ease-in-out;

}


@media screen and (max-width: 768px) {
    #bg {
        left: 20%;
        opacity: 0;
        transform: translate(-50%);
        position: fixed;
        bottom: 150px; /* Adjusted for smaller screens */
        max-width: 2400px; /* Use full width on mobile */
        height: auto; /* Allow it to scale naturally */
        z-index: -1;
        transition: opacity 2s ease-in-out;
    }

    #bg1 {
        left: 80%;
        opacity: 0;

        position: fixed;
        bottom: 150px; /* Adjusted for smaller screens */
        max-width: 1500px; /* Use full width on mobile */
        height: auto; /* Allow it to scale naturally */
        z-index: -1;
        transition: opacity 2s ease-in-out;
    }
}

.remark {
    color: red;
    text-shadow: 0 0 10px red;
}
