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;
    }

    body,
    html {
        overflow-y: auto;
    }

    .container {
        width: min(calc(100% - 24px), 620px);
    }

    .main {
        margin-top: 130px;
        padding: 12px 0;
    }

    .section {
        margin-bottom: 26px;
    }

    .section img {
        max-width: 100%;
        height: auto !important;
    }

    .section ul {
        padding-left: 18px;
    }
}

@media (max-width: 768px) {
    .site-header .header-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        box-sizing: border-box;
    }

    .site-title {
        flex: 1 1 190px;
        min-width: 0;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .site-title a {
        display: block;
        overflow-wrap: anywhere;
    }

    .menu-toggle,
    #nav-text {
        display: none !important;
    }

    #nav-images {
        order: 3;
        display: flex !important;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    #nav-images ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-width: max-content;
    }

    #nav-images li {
        margin: 0;
    }

    .header-img {
        height: 34px;
        width: auto;
    }

    .language-switcher {
        flex: 0 0 auto;
        margin-left: auto;
        gap: 6px;
    }

    .language-switcher .lang-btn img {
        width: 42px;
    }
}

@media (max-width: 768px) {
    body#starry-sky .site-header .header-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        box-sizing: border-box;
    }

    body#starry-sky .site-header .site-title {
        flex: 1 1 190px;
        min-width: 0;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    body#starry-sky .site-header .site-title a {
        display: block;
        overflow-wrap: anywhere;
    }

    body#starry-sky .site-header .menu-toggle,
    body#starry-sky .site-header #nav-text {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    body#starry-sky .site-header #nav-images {
        order: 3 !important;
        display: flex !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
    }

    body#starry-sky .site-header #nav-images ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px;
        min-width: max-content;
        padding: 0;
        margin: 0;
    }

    body#starry-sky .site-header #nav-images li {
        margin: 0 !important;
    }

    body#starry-sky .site-header .header-img {
        height: 34px !important;
        width: auto;
    }

    body#starry-sky .site-header .language-switcher {
        flex: 0 0 auto;
        margin-left: auto;
        gap: 6px;
    }

    body#starry-sky .site-header .language-switcher .lang-btn img {
        width: 42px !important;
    }
}

