* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    color: white;
    overflow: hidden;
    height: 100vh;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #00f5ff;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 245, 255, 0.3);
    border-top: 4px solid #00f5ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loading-text {
    color: #b8b8ff;
    font-size: 1.1rem;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-bottom: 2px solid rgba(0, 245, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

h1 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #b8b8ff;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #00f5ff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: #00f5ff;
}

.planet-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 1rem;
    color: #00f5ff;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    z-index: 101;
}

#scene-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.navigation-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    z-index: 100;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(0, 245, 255, 0.05));
    border: 1px solid rgba(0, 245, 255, 0.4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    min-width: 100px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.3), rgba(0, 245, 255, 0.15));
    border-color: #00f5ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.3);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-btn .text {
    font-size: 0.8rem;
}

.nav-btn .arrow {
    font-size: 1rem;
    font-weight: bold;
}

.planet-info-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 180px;
}

.planet-info-compact h2 {
    font-size: 1rem;
    color: #00f5ff;
    margin: 0;
    line-height: 1.2;
}

.planet-info-compact p {
    color: #b8b8ff;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.2;
}

.info-panel {
    position: absolute;
    top: 100px;
    right: 20px;
    max-width: 300px;
    z-index: 50;
    display: none;
}

.info-panel.visible {
    display: block;
}

.info-content {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
}

/* Toggle button styles removed - now using control-btn class */

.planet-details {
    transition: all 0.3s ease;
}

.planet-details.hidden {
    display: none;
}

.planet-details h3 {
    color: #00f5ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(0, 245, 255, 0.5);
}

.detail-item .label {
    font-weight: bold;
    color: #b8b8ff;
}

.detail-item .value {
    color: white;
    text-align: right;
}

.controls {
    background: rgba(0, 0, 0, 0.85);
    padding: 0.6rem 1rem;
    border-top: 1px solid rgba(0, 245, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.controls p {
    color: #b8b8ff;
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0;
}

.control-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.controls-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(0, 245, 255, 0.1));
    border-color: rgba(0, 245, 255, 0.5);
    transform: translateY(-1px);
}

.control-btn.active {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.4), rgba(0, 245, 255, 0.2));
    border-color: #00f5ff;
}

/* Status indicators */
.status-confirmed {
    color: #4ade80;
}

.status-candidate {
    color: #fbbf24;
}

.status-false_positive {
    color: #f87171;
}

.mission-kepler {
    color: #60a5fa;
}

.mission-k2 {
    color: #a78bfa;
}

.mission-tess {
    color: #34d399;
}

.habitable-yes {
    color: #4ade80;
}

.habitable-no {
    color: #f87171;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        font-size: 1.5rem;
    }

    .navigation-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        bottom: 80px;
    }

    .nav-btn {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .planet-info-compact {
        min-width: auto;
        width: 100%;
    }

    .info-panel {
        position: relative;
        top: auto;
        right: auto;
        max-width: none;
        margin: 1rem;
    }

    .controls {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .control-buttons {
        justify-content: center;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-left {
    animation: slideLeft 0.3s ease-out;
}

@keyframes slideLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-right {
    animation: slideRight 0.3s ease-out;
}

@keyframes slideRight {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

CSS

/* --- Galactic Theme Variables --- */
:root {
    --galactic-purple: #bb86fc;
    /* A bright, vibrant purple */
    --galactic-dark: #121212;
    /* Deep, almost black background */
    --galactic-light-dark: #1f1f1f;
    /* A slightly lighter dark for contrast */
    --galactic-text: #e0e0e0;
    /* Light gray/white for text */
}

/* --- Container Style --- */
.planet-select-container {
    /* Center the element and give it some breathing room */
    display: inline-block;
    padding: 10px;
    border: 2px solid var(--galactic-purple);
    /* Purple border */
    border-radius: 8px;
    /* Slightly rounded corners */
    background-color: black;
    /* Deep space background */
    box-shadow: 0 0 15px var(--galactic-purple);
    /* A subtle purple glow effect */
}

/* --- Select Dropdown Style --- */
.planet-select {
    /* General appearance */
    appearance: none;
    /* Remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Sizing and spacing */
    width: 200px;
    /* Or whatever size you need */
    padding: 10px 30px 10px 10px;
    /* Extra padding on the right for the custom arrow */

    /* Colors and font */
    background-color: var(--galactic-light-dark);
    /* Darker gray background for contrast */
    color: var(--galactic-text);
    /* Light text */
    border: 1px solid var(--galactic-purple);
    /* Purple inner border */
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    /* Smooth transitions for hover effects */

    /* Custom Arrow (The default select arrow is usually ugly) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bb86fc'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* --- Hover/Focus Effects (The Glow!) --- */
.planet-select:hover {
    border-color: #e0b0ff;
    /* Lighter purple on hover */
    box-shadow: 0 0 10px var(--galactic-purple);
    /* Intense glow on hover */
}

.planet-select:focus {
    outline: none;
    /* Remove default focus outline */
    border-color: #e0b0ff;
    box-shadow: 0 0 15px var(--galactic-purple);
    /* Stronger glow on focus */
}

/* --- Option Styles (How the options look in the expanded list) --- */
/* Note: Styling the expanded options dropdown is tricky and inconsistent across browsers. 
   These styles primarily affect the *selected* option and how the options look when not expanded 
   (though they might show up in some browsers' expanded list). */
.planet-select option {
    background-color: var(--galactic-dark);
    /* Deep black for the option background */
    color: var(--galactic-text);
    padding: 5px;
}

/* Style for the disabled 'Select a Planet' option */
.planet-select option[disabled] {
    color: #555;
    /* A dimmer color for the placeholder */
}

