* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
}

#galaxy {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle, rgba(10,10,10,1) 0%, rgba(0,0,0,1) 70%, rgba(10,10,10,1) 100%);
}

.galaxy-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    animation: stars-animation 30s linear infinite;
}

.planets .planet {
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.8;
    animation: planet-animation 15s linear infinite;
}

#planet1 {
    width: 120px;
    height: 120px;
    background-color: #ff5733;
    left: 15%;
    top: 20%;
}

#planet2 {
    width: 150px;
    height: 150px;
    background-color: #ffb700;
    left: 40%;
    top: 10%;
}

#planet3 {
    width: 180px;
    height: 180px;
    background-color: #00ff99;
    left: 60%;
    top: 50%;
}

.asteroids .asteroid {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: #aaaaaa;
    border-radius: 50%;
    opacity: 0.6;
    animation: asteroid-animation 15s linear infinite;
}

#asteroid1 {
    left: 30%;
    top: 10%;
}

#asteroid2 {
    left: 55%;
    top: 30%;
}

#asteroid3 {
    left: 80%;
    top: 60%;
}

.sun {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: #ffcc00;
    border-radius: 50%;
    top: 40%;
    left: 50%;
    margin-left: -125px;
    box-shadow: 0 0 30px 15px rgba(255, 204, 0, 0.7);
    animation: sun-animation 30s infinite;
}

/* Animations */
@keyframes stars-animation {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 5000px 5000px;
    }
}

@keyframes planet-animation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes asteroid-animation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(100vh);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes sun-animation {
    0% {
        box-shadow: 0 0 20px 10px rgba(255, 204, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 40px 20px rgba(255, 204, 0, 1);
    }

    100% {
        box-shadow: 0 0 20px 10px rgba(255, 204, 0, 0.7);
    }
}
