.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(to bottom, #000000, #1a1a2e);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: twinkle 4s infinite;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Sun */
.planet-sun {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #ff8c00);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px #ffd700, 0 0 100px #ff8c00;
    z-index: 1;
}

/* Earth */
.planet-earth {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #1a75ff, #0d47a1);
    top: 50%;
    left: 50%;
    transform-origin: -150px 0;
    animation: orbit-earth 25s linear infinite;
}

/* Earth's continents */
.planet-earth::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.3), transparent 70%),
        radial-gradient(circle at 60% 70%, rgba(76, 175, 80, 0.3), transparent 70%);
    border-radius: 50%;
}

/* Moon */
.planet-moon {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #e0e0e0, #a0a0a0);
    top: 50%;
    left: 50%;
    transform-origin: -30px 0;
    animation: orbit-moon 10s linear infinite;
}

/* Mars */
.planet-mars {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c1440e);
    top: 50%;
    left: 50%;
    transform-origin: -200px 0;
    animation: orbit-mars 30s linear infinite;
}

/* Jupiter */
.planet-jupiter {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #ffd166, #e67e22);
    top: 50%;
    left: 50%;
    transform-origin: -250px 0;
    animation: orbit-jupiter 40s linear infinite;
}

/* Saturn */
.planet-saturn {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #f1c40f, #d35400);
    top: 50%;
    left: 50%;
    transform-origin: -300px 0;
    animation: orbit-saturn 50s linear infinite;
}

/* Saturn's rings */
.planet-saturn::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Zodiac Signs */
.zodiac-sign {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.7;
    animation: pulse 4s infinite;
}

.zodiac-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
}

.zodiac-line {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: left center;
}

/* Aries */
.zodiac-aries {
    top: 15%;
    left: 5%;
}

/* Taurus */
.zodiac-taurus {
    top: 25%;
    left: 85%;
}

/* Gemini */
.zodiac-gemini {
    top: 35%;
    left: 15%;
}

/* Cancer */
.zodiac-cancer {
    top: 45%;
    left: 75%;
}

/* Leo */
.zodiac-leo {
    top: 55%;
    left: 25%;
}

/* Virgo */
.zodiac-virgo {
    top: 65%;
    left: 85%;
}

/* Libra */
.zodiac-libra {
    top: 75%;
    left: 15%;
}

/* Scorpio */
.zodiac-scorpio {
    top: 85%;
    left: 75%;
}

/* Sagittarius */
.zodiac-sagittarius {
    top: 15%;
    left: 45%;
}

/* Capricorn */
.zodiac-capricorn {
    top: 25%;
    left: 55%;
}

/* Aquarius */
.zodiac-aquarius {
    top: 35%;
    left: 65%;
}

/* Pisces */
.zodiac-pisces {
    top: 45%;
    left: 35%;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes orbit-earth {
    0% { transform: rotate(0deg) translateX(-150px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(-150px) rotate(-360deg); }
}

@keyframes orbit-moon {
    0% { transform: rotate(0deg) translateX(-30px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(-30px) rotate(-360deg); }
}

@keyframes orbit-mars {
    0% { transform: rotate(0deg) translateX(-200px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(-200px) rotate(-360deg); }
}

@keyframes orbit-jupiter {
    0% { transform: rotate(0deg) translateX(-250px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(-250px) rotate(-360deg); }
}

@keyframes orbit-saturn {
    0% { transform: rotate(0deg) translateX(-300px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(-300px) rotate(-360deg); }
}

.comet {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
                0 0 0 8px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 0.2);
    animation: comet 10s linear infinite;
}

@keyframes comet {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(1000px) translateY(-1000px);
        opacity: 0;
    }
}

.galaxy {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate 50s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mercury */
.planet-mercury {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #a0a0a0, #666666);
    top: 50%;
    left: 50%;
    transform-origin: -80px 0;
    animation: orbit-mercury 15s linear infinite;
}

/* Venus */
.planet-venus {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #ffb366, #cc6600);
    top: 50%;
    left: 50%;
    transform-origin: -120px 0;
    animation: orbit-venus 20s linear infinite;
}

@keyframes orbit-mercury {
    0% { transform: rotate(0deg) translateX(-80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(-80px) rotate(-360deg); }
}

@keyframes orbit-venus {
    0% { transform: rotate(0deg) translateX(-120px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(-120px) rotate(-360deg); }
} 