html, body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#version {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    font-family: monospace;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1002;
}

/* Hide hamburger button on desktop */
.hamburger-btn {
    display: none !important;
}

/* Show only desktop slider on desktop */
.desktop-slider {
    display: block;
}

.mobile-slider {
    display: none !important;
}

#solarSystemCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    touch-action: none;
}

#speedControls {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    padding: 20px 15px;
    border-radius: 10px;
    z-index: 1000;
    width: 80px;
    text-align: center;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffd700;
    font-size: 0.9rem;
}

.control-group input[type="range"] {
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
    width: 20px;
    height: 150px;
    margin: 10px auto;
    display: block;
}

#speedDisplay {
    font-weight: bold;
    color: #87ceeb;
    font-size: 0.9rem;
}

#mainControls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

#mainControls button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

#mainControls button:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

#recenterControls {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none; /* Hidden by default */
}

#recenterButton {
    background: rgba(255, 69, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 69, 0, 0.9);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
}

#recenterButton:hover {
    background: rgba(255, 69, 0, 1);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.5);
}

#planetInfo {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    min-width: 250px;
    max-width: 300px;
    transition: all 0.3s ease;
}

#infoHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

#infoHeader h3 {
    color: #ffd700;
    margin: 0;
    font-size: 1.1rem;
}

#toggleInfoPanel {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#toggleInfoPanel:hover {
    background: rgba(255, 215, 0, 0.3);
}

#toggleInfoPanel.collapsed {
    background: rgba(255, 215, 0, 0.1);
}

#infoContent {
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

#infoContent.collapsed {
    max-height: 0;
    padding: 0 20px;
}

#infoContent p {
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#infoActions {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* Hidden until a celestial body is selected */
}

#followPlanet {
    width: 100%;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#followPlanet:hover {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

#followPlanet:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#planetLegend {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-width: 200px;
}

.legend-header {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1rem;
}

.planet-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.planet-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.8rem;
}

.planet-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.planet-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* Planet colors */
.planet-color.mercury { background: #8c7853; }
.planet-color.venus { background: #ffc649; }
.planet-color.earth { background: #6b93d6; }
.planet-color.mars { background: #c1440e; }
.planet-color.jupiter { background: #d8ca9d; }
.planet-color.saturn { background: #fad5a5; }
.planet-color.uranus { background: #4fd0e3; }
.planet-color.neptune { background: #4b70dd; }
.planet-color.pluto { background: #906058; }

/* Paused animation */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.paused {
    animation: pulse 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
} 