* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.solar-system {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffd700, #ff8c00);
    border-radius: 50%;
    box-shadow: 0 0 60px #ffa500, 0 0 100px #ff8c00;
    z-index: 10;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.planet-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate linear infinite;
}

.planet {
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.moon-system {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: counter-rotate linear infinite;
}

.mercury-container .moon-system {
    animation-duration: 4.4s;
}

.venus-container .moon-system {
    animation-duration: 11.25s;
}

.earth-container .moon-system {
    animation-duration: 20s;
}

.mars-container .moon-system {
    animation-duration: 37.6s;
}

.jupiter-container .moon-system {
    animation-duration: 237s;
}

.saturn-container .moon-system {
    animation-duration: 589s;
}

.uranus-container .moon-system {
    animation-duration: 1680s;
}

.neptune-container .moon-system {
    animation-duration: 3300s;
}

.moon-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.moon-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate linear infinite;
}

.moon {
    position: absolute;
    background: #aaa;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Mercury - eccentricity 0.206 (most eccentric) */
.mercury-orbit {
    width: 120px;
    height: 115px;
    left: calc(50% - 3px);
}

.mercury-container {
    animation-duration: 4.4s;
}

.mercury {
    width: 8px;
    height: 8px;
    background: #8c7853;
}

/* Venus - eccentricity 0.007 (nearly circular) */
.venus-orbit {
    width: 160px;
    height: 159px;
}

.venus-container {
    animation-duration: 11.25s;
}

.venus {
    width: 12px;
    height: 12px;
    background: #ffc649;
}

/* Earth - eccentricity 0.017 */
.earth-orbit {
    width: 200px;
    height: 199px;
    left: calc(50% - 1px);
}

.earth-container {
    animation-duration: 20s;
}

.earth {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #1e90ff 30%, #228b22 70%);
}

.moon-orbit.earth-moon-orbit {
    width: 30px;
    height: 30px;
}

.earth-moon-container {
    animation-duration: 1.5s;
}

.moon.earth-moon {
    width: 4px;
    height: 4px;
}

/* Mars - eccentricity 0.093 */
.mars-orbit {
    width: 250px;
    height: 246px;
    left: calc(50% - 5px);
}

.mars-container {
    animation-duration: 37.6s;
}

.mars {
    width: 10px;
    height: 10px;
    background: #cd5c5c;
}

.moon-orbit.phobos-orbit {
    width: 22px;
    height: 22px;
}

.phobos-container {
    animation-duration: 0.4s;
}

.moon.phobos {
    width: 3px;
    height: 3px;
}

.moon-orbit.deimos-orbit {
    width: 28px;
    height: 28px;
}

.deimos-container {
    animation-duration: 0.7s;
}

.moon.deimos {
    width: 2px;
    height: 2px;
}

/* Jupiter - eccentricity 0.048 */
.jupiter-orbit {
    width: 340px;
    height: 337px;
    left: calc(50% - 4px);
}

.jupiter-container {
    animation-duration: 237s;
}

.jupiter {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c88b3a 0%, #d4a574 50%, #b8732f 100%);
}

.moon-orbit.io-orbit {
    width: 60px;
    height: 60px;
}

.io-container {
    animation-duration: 1s;
}

.moon.io {
    width: 5px;
    height: 5px;
    background: #ffd700;
}

.moon-orbit.europa-orbit {
    width: 70px;
    height: 70px;
}

.europa-container {
    animation-duration: 2s;
}

.moon.europa {
    width: 4px;
    height: 4px;
    background: #f0e68c;
}

.moon-orbit.ganymede-orbit {
    width: 80px;
    height: 80px;
}

.ganymede-container {
    animation-duration: 4s;
}

.moon.ganymede {
    width: 6px;
    height: 6px;
    background: #d3d3d3;
}

.moon-orbit.callisto-orbit {
    width: 90px;
    height: 90px;
}

.callisto-container {
    animation-duration: 9.5s;
}

.moon.callisto {
    width: 5px;
    height: 5px;
    background: #a9a9a9;
}

/* Saturn - eccentricity 0.056 */
.saturn-orbit {
    width: 450px;
    height: 446px;
    left: calc(50% - 6px);
}

.saturn-container {
    animation-duration: 589s;
}

.saturn {
    width: 35px;
    height: 35px;
    background: #fad5a5;
    position: relative;
}

.saturn::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(218, 165, 32, 0.6);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
}

.moon-orbit.titan-orbit {
    width: 65px;
    height: 65px;
}

.titan-container {
    animation-duration: 9s;
}

.moon.titan {
    width: 6px;
    height: 6px;
    background: #e8c89b;
}

.moon-orbit.rhea-orbit {
    width: 55px;
    height: 55px;
}

.rhea-container {
    animation-duration: 2.5s;
}

.moon.rhea {
    width: 4px;
    height: 4px;
    background: #dcdcdc;
}

/* Uranus - eccentricity 0.046 */
.uranus-orbit {
    width: 550px;
    height: 547px;
    left: calc(50% - 6px);
}

.uranus-container {
    animation-duration: 1680s;
}

.uranus {
    width: 20px;
    height: 20px;
    background: #4fd0e0;
}

.moon-orbit.titania-orbit {
    width: 45px;
    height: 45px;
}

.titania-container {
    animation-duration: 5s;
}

.moon.titania {
    width: 4px;
    height: 4px;
    background: #b0c4de;
}

.moon-orbit.oberon-orbit {
    width: 50px;
    height: 50px;
}

.oberon-container {
    animation-duration: 7.5s;
}

.moon.oberon {
    width: 4px;
    height: 4px;
    background: #a8c5d9;
}

/* Neptune - eccentricity 0.009 (nearly circular) */
.neptune-orbit {
    width: 650px;
    height: 649px;
}

.neptune-container {
    animation-duration: 3300s;
}

.neptune {
    width: 18px;
    height: 18px;
    background: #4169e1;
}

.moon-orbit.triton-orbit {
    width: 42px;
    height: 42px;
}

.triton-container {
    animation-duration: 3.4s;
    animation-direction: reverse;
}

.moon.triton {
    width: 4px;
    height: 4px;
    background: #d8bfd8;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counter-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.info {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 14px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
}

.clock {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 16px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    min-width: 200px;
    font-family: 'Courier New', monospace;
}

.clock-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.time-display {
    font-size: 20px;
    color: #4fd0e0;
    font-weight: bold;
}

.speed-display {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
}