html, body {
    margin: 0;
    height: 100%;
    background: #0b1020;
    color: #eee;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    overflow: hidden;
    position: relative;
    width: 100%;
}

body {
    outline: none;
}

body:focus {
    outline: none;
}

#globe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

header {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #88ccff;
    text-shadow: 0 0 8px rgba(136, 204, 255, 0.7);
    z-index: 5;
}

nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    z-index: 5;
}

nav a {
    text-decoration: none;
    color: #eee;
    font-weight: 500;
    transition: color 0.2s, text-shadow 0.2s;
    cursor: pointer;
}

nav a:hover {
    color: #88ccff;
    text-shadow: 0 0 6px rgba(136, 204, 255, 0.8);
}

.info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(20, 30, 50, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(136, 204, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    max-width: 280px;
    z-index: 5;
}

.info-panel h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #88ccff;
    text-shadow: 0 0 6px rgba(136, 204, 255, 0.8);
}

.info-panel p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.highlight {
    font-weight: bold;
    color: #ff33aa;
}

.info-panel label {
    font-size: 0.9rem;
    cursor: pointer;
}

/* Slide-in Overlays */
.overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 40, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eee;
    z-index: 10;
    transition: right 0.4s ease;
    visibility: hidden;
}

.overlay.active {
    right: 0;
    visibility: visible;
}

.overlay-content {
    max-width: 700px;
    padding: 20px;
    text-align: center;
}

/* Expanded from nested rules to valid CSS */
.overlay-content div {
    /*border: 1px solid white;*/
    display: inline-block;
}

.overlay-content .carousel-container {
    display: flex;
}

.overlay-content div ul {
    text-align: initial !important;
}

.overlay h1 {
    margin-bottom: 12px;
    color: #88ccff;
}

.overlay p {
    font-size: 1.1rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 30;
}

.carousel-container {
    position: relative;
    display: flex ;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.carousel-viewport {
    overflow: hidden;
    flex: 1 1 auto;
    max-width: 70vw;
}

.carousel-track {
    display: flex !important;
    transition: transform 0.4s ease;
    gap: 1rem;
}

.carousel-item {
    min-width: 150px;
    flex-shrink: 0;
    background-color: #222;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #88ccff;
}

.carousel-nav {
    background: #222;
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1;
}

button.carousel-nav {
    background: none;
}

.carousel-item a {
    color: white;
}

/* --- Mobile nav drawer --- */
#navToggle {
    position: fixed;
    top: 16px;
    right: 16px;
    font-size: 1.8rem;
    background: rgba(20, 30, 50, 0.7);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    z-index: 20;
    cursor: pointer;
    display: none; /* hidden on desktop */
}

/* Backdrop */
#navBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 14;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

#navBackdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #navToggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        padding: 80px 24px 24px;
        background: rgba(20, 30, 50, 0.95);
        border-left: 1px solid rgba(136, 204, 255, 0.4);
        transition: right 0.4s ease;
        z-index: 15;
    }

    nav.open {
        right: 0;
    }

    nav a {
        font-size: 1.2rem;
        width: 100%;
        border-bottom: 1px solid rgba(136, 204, 255, 0.2);
        padding: 8px 0;
    }

    /* Adjust info panel position */
    .info-panel {
        top: auto;
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: unset;
        font-size: 0.9rem;
    }
}

.overlay.active ~ #navToggle {
    display: none !important;
}

