/* General Body Styles */
body {
    background-color: #1a1a1a; /* Dark background */
    color: #00ffcc; /* Sci-fi teal color */
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    text-align: center;
    background-image: url('/static/imagery/background_image.jpg'); /* Optional: Add a background image */
    background-size: cover;
    background-position: center;
}

/* Heading Styles */
h1 {
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* Navbar Container */
.main-navbar {
    background-color: rgba(51, 51, 51, 0.8); /* Dark background with 80% opacity */
    width: 100%;
    height: 60px; /* Fixed height for the navbar */
    position: fixed; /* Fix the navbar at the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure navbar stays on top */
    border-bottom: 2px solid #00ffcc; /* Accent border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    display: flex; /* Use flexbox for layout */
    justify-content: space-around; /* Distribute navbar items evenly */
    align-items: center; /* Center navbar items vertically */
}

/* Navbar List Styling */
.main-navbar ul {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    display: flex; /* Use flexbox to arrange navbar items */
    width: 100%;
    justify-content: space-around; /* Evenly space items */
}

/* Navbar Items (Links) */
.main-navbar li {
    margin: 0 15px; /* Space out the items evenly */
}

/* Navbar Links Styling */
.main-navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

/* Navbar Hover Effect */
.main-navbar a:hover {
    background: linear-gradient(to top left, rgb(0, 255, 204, .5), rgb(0, 204, 255, .5));
    border-radius: 5px; /* Round the corners a little */
}

/* Overlay Styling */
.overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Ensure overlay appears above the navbar */
}

/* Paragraph Styles */
p {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0;
}

/* Additional Text Styling for .wtnz */
.wtnz {
    margin-top: 20px;
    color: white;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    /* Body adjustments for smaller screens */
    body {
        height: auto;
        background-size: cover; /* Make sure the background scales */
        text-align: center;
    }

    /* Adjust Heading Size */
    h1 {
        font-size: 2.5em; /* Reduce heading size */
        margin-bottom: 15px;
    }

    /* Navbar adjustments */
    .main-navbar {
        height: 50px; /* Smaller height for mobile navbar */
        flex-direction: column; /* Stack navbar items vertically on small screens */
        justify-content: flex-start; /* Align items to the top */
    }

    .main-navbar ul {
        flex-direction: column; /* Stack navbar items */
        width: 100%;
    }

    .main-navbar li {
        margin: 10px 0; /* More spacing between navbar items */
    }

    .main-navbar a {
        font-size: 16px; /* Smaller font size for mobile */
        padding: 8px 15px; /* Smaller padding */
    }

    /* Overlay adjustments for mobile */
    .overlay {
        padding: 20px; /* Less padding to fit smaller screens */
        width: 90%; /* Make the overlay width more flexible */
        max-width: 90%;
    }

    /* Adjust paragraph size for readability */
    p {
        font-size: 1em; /* Smaller paragraph text */
    }

    .wtnz {
        margin-top: 10px;
        font-size: 1em; /* Smaller text */
    }
}

/* Extra small screen devices (portrait mode, below 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px; /* Add padding around the body for small screens */
    }

    h1 {
        font-size: 2em; /* Smaller font for very small screens */
    }

    .main-navbar a {
        font-size: 14px; /* Even smaller font for very small screens */
    }

    .overlay {
        padding: 15px; /* Less padding */
        max-width: 100%;
    }

    p {
        font-size: 0.9em; /* Slightly smaller text for very small screens */
    }
}
