body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: black;
    color: white;
    font-family: "Source Code Pro", monospace;
    overflow-x: hidden;
    overflow-y: hidden;
}
#starry-sky {
    width: 100%;
    height: 100%;
    background-color: black;
    position: static; /* Needed for absolute positioning of stars */
    z-index: -10;
    overflow-y: auto;
}
.main {
    padding: 20px;
    margin-top: 80px; /* Adjusted for fixed header */
}

.main h2 {
    color: whitesmoke;
    text-align: left;
}

.section {
    margin-bottom: 40px;
    border-bottom: mediumpurple 3px dotted;
    z-index: 100;
}

.section ul li a{
    text-decoration: none;
    color: white;
}
.section ul li a:hover{
    text-decoration: none;
    color: mediumpurple;
}


.section h3 {
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: whitesmoke;
}

.section img {
    border-radius: 15px;
    z-index: 100;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.centered {
    text-align: left;
}

.container {
    width: 80%;
    margin: auto;
    z-index: 100;
}
/* Default Styles for Widescreen Navigation and Tooltip */
.menu-toggle {
    display: none; /* Hide the hamburger menu button on widescreen */
}

#nav-text {
    display: none; /* Hide text-based navigation on widescreen */
}

#nav-images ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-img {
    height: 50px; /* Size for header images on widescreen */
    width: auto;
}

/* Tooltip Styles */
.header-tooltip {
    position: absolute;
    top: 70px; /* Adjust to position the tooltip below the header */
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Show Tooltip when Hovering over Header Image */
.header-img:hover + #header-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Highlight Current Page Link */
.nav-link.current-page {
    color: lightslategray;
    font-weight: bold;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show the hamburger menu button */
        background: none;
        border: none;
        font-size: 30px;
        color: white;
        cursor: pointer;
        padding-right: 55px;
    }

    #nav-images {
        display: none; /* Hide image-based navigation on mobile */
    }

    #nav-text {
        display: none; /* Initially hide text navigation; show only when toggled */
        flex-direction: column; /* Stack links vertically */
        align-items: flex-start;
        background-color: #202020; /* Background to differentiate */
        width: 100%;
        padding: 15px;
        position: absolute;
        top: 50px; /* Adjust for header height */
        left: 0;
        z-index: 1000;
    }

    #nav-text.open {
        display: block; /* Show text navigation when the menu is open */
    }

    .header-tooltip {
        display: none; /* Hide tooltip on mobile */
    }

    .header-img {
        height: 20px; /* Smaller header images for mobile */
    }

    body, html {
        font-size: 90%; /* Smaller text size for mobile */
    }

    /* Add Bullet Points for Mobile Links */
    #nav-text ul li a {
        text-decoration: none;
        color: white;
    }
    #nav-text.current-page {
        color: lightslategray; /* Highlight current page link in mobile menu */
        font-weight: bold;
    }

    #nav-text ul li a:hover {
        text-decoration: none;
        color: mediumpurple;
    }
}

