/* Adjusted CSS */

body {
    margin: 0;
    padding: 0;
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background-color: #0C2C40;
    font-family: Arial, sans-serif;
    color: white;
    text-align: center;
    scroll-behavior: smooth; /* Optional: Adds smooth scrolling */
}

.hidden {
    display: none;
}

.visible {
    display: block;
}


#flower-container {
    position: fixed; /* Ensure it stays behind everything else */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0C2C40;
    z-index: -1;
}

#message-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center;
    width: 100%;
    min-height: 100vh; /* Ensure it takes up full viewport height */
    box-sizing: border-box;
    padding: 20px;
}

/* Add this to ensure message-container aligns content to the top when content is taller */
#message-container.has-scroll {
    justify-content: flex-start;
}

#message {
    padding: 10px 0; /* Adjust padding to ensure the top isn't cut off */
    margin: 0 10px; /* Adjust margin to prevent overflow */
    width: calc(100% - 20px); /* Full width minus padding */
    font-size: 1.5em;
    color: white;
    text-align: center;
    z-index: 1;
    box-sizing: border-box; /* Include padding and border in element's total width */
    max-width: 800px; /* Optional: limit max width for readability */
}

.nav-buttons {
    margin-top: 20px; /* Space between message and buttons */
    text-align: center;
    z-index: 1;
    padding-bottom: 20px; /* Add padding to prevent overlap with browser UI */
}

.nav-button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5em;
    color: #0C2C40;
    margin: 0 10px;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

#video-container {
    margin: 20px auto; /* Centering */
    z-index: 1;
}

@media (max-width: 600px) {
    #message {
        font-size: 1.2em;
    }
    .nav-button {
        font-size: 1.2em;
        padding: 8px;
    }
    .nav-buttons {
        margin-top: 10px; /* Adjust margin for mobile */
        padding-bottom: 30px; /* Extra padding to prevent overlap with browser UI */
    }
    iframe {
        width: 100%;
        height: auto;
    }
}
