/* General Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111;
    color: white;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

header {
    margin: 20px;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

/* Solar System Container */
.solar-system {
    position: relative;
    width: 100%;
    height: 1500px;
    margin: 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('./images/back/picture\ 3.jpg') no-repeat center center;
    background-size: cover;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
}

/* Sun styles */
.sun img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(255, 255, 0, 0.8);
    filter: brightness(1.2);
    z-index: 10;
}

/* Orbit styles */
.orbit {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

/* Planet styles (consistent size for all planets) */
.planet {
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    position: absolute;
    transform-origin: center;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.planet img {
    object-fit: cover;
    border-radius: 50%;
}

/* Hover Effect */
.planet:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
}

/* Individual Planet Orbit Animation */
@keyframes rotate-planet {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rotate-mercury {
    animation: rotate-planet 6s linear infinite;
}

.rotate-venus {
    animation: rotate-planet 15s linear infinite;
}

.rotate-earth {
    animation: rotate-planet 25s linear infinite;
}

.rotate-mars {
    animation: rotate-planet 40s linear infinite;
}

.rotate-jupiter {
    animation: rotate-planet 80s linear infinite;
}

.rotate-saturn {
    animation: rotate-planet 110s linear infinite;
}

.rotate-uranus {
    animation: rotate-planet 140s linear infinite;
}

.rotate-neptune {
    animation: rotate-planet 180s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .solar-system {
        height: 1100px;
    }

    .sun img {
        width: 300px;
        height: 300px;
    }

    .planet {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .solar-system {
        height: 900px;
    }

    .sun img {
        width: 200px;
        height: 200px;
    }

    .planet {
        width: 80px;
        height: 80px;
    }
}

/* Planet Positions */
.sun-position {
    position: absolute;
}

.mercury-position {
    position: absolute;
    left: 120px;
}

.venus-position {
    position: absolute;
    left: 240px;
    top: 150px;
}

.earth-position {
    position: absolute;
    left: 360px;
}

.mars-position {
    position: absolute;
    left: 480px;
}

.jupiter-position {
    position: absolute;
    left: 600px;
}

.saturn-position {
    position: absolute;
    left: 720px;
}

.uranus-position {
    position: absolute;
    left: 840px;
}
 
.neptune-position {
    position: absolute;
    left: 960px;
}

/* Resizing Planet Images - Reduced Sizes */
.image-resize-mercury {
    width: 60px;
    height: 60px;
}

.image-resize-venus {
    width: 80px;
    height: 80px;
}

.image-resize-earth {
    width: 100px;
    height: 100px;
}

.image-resize-mars {
    width: 120px;
    height: 120px;
}

.image-resize-jupiter {
    width: 140px;
    height: 140px;
}

.image-resize-saturn {
    width: 160px;
    height: 160px;
}

.image-resize-uranus {
    width: 180px;
    height: 180px;
}

.image-resize-neptune {
    width: 200px;
    height: 200px;
}
