/* General Styles */
body {
    margin-top: 50px;
    background-image: url(../data/webappbackgroundimage.png);
    overflow-x: hidden;
    font-size: 13px;
    padding: 0;
    
}

.solar-system {
    position: relative;
    width: 100vw;
    min-height:100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin-top: -50px;
  
}

.sun {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgb(255, 223, 0), rgb(255, 140, 0), rgb(241, 206, 7)); /* Yellow to Orange gradient */
    border-radius: 50%;
    box-shadow: 0 0 90px 50px rgba(245, 225, 46, 0.6),
                inset 0 0 10px rgba(255, 255, 255, 0.5), /* Inner glow */
                0 0 10px rgba(255, 69, 0, 0.5); /* Outer shadow */
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.planet {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000; /* Keep planets on top */
    pointer-events: auto; /* Allow clicks on planets */
    
}

.planet.zoomed {
    transform: scale(3) translate(-50%, -50%);
    z-index: 2000; /* Bring zoomed planet to the front */
    transition: transform 0.5s ease-in-out;
}

.orbit {
    position: absolute;
    border: 0.5px solid rgb(255, 255, 255);
    border-radius: 50%;
    z-index: 1; /* Ensure orbits stay behind planets */
    pointer-events: none; /* Prevent orbits from blocking clicks */
    animation: orbit-rotation linear infinite;
   
}

/* Orbit Sizes */
.mercury-orbit { width: 120px; height: 120px; animation-duration: 18s; }
.venus-orbit { width: 180px; height: 180px; animation-duration: 25s; }
.earth-orbit { width: 250px; height: 250px; animation-duration: 32s; }
.mars-orbit { width: 320px; height: 320px; animation-duration: 40s; }
.jupiter-orbit { width: 420px; height: 420px; animation-duration: 55s; }
.saturn-orbit { width: 520px; height: 520px; animation-duration: 74s; }
.uranus-orbit { width: 620px; height: 620px; animation-duration: 84s; }
.neptune-orbit { width: 720px; height: 720px; animation-duration: 110s; }

/* Planet Colors with Satellite Images */
.mercury { 
    background: url('../images/mercury.png') no-repeat center center / cover; /* Mercury image */
    height: 26px;
    width: 26px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.venus { 
    background: url('../images/venus.png') no-repeat center center / cover; /* Venus image */
    height: 28px;
    width: 28px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.earth { 
    background: url('../images/earth.png') no-repeat center center / cover; /* Earth image */
    height: 35px;
    width: 35px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.mars { 
    background: url('../images/mars.png') no-repeat center center / cover; /* Mars image */
    height: 30px;
    width: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.jupiter { 
    background: url('../images/jupita.png') no-repeat center center / cover; /* Jupiter image */
    height: 58px;
    width: 59px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.saturn { 
    background: url('../images/saturn.png') no-repeat center center / cover; /* Saturn image */
    height: 66px;
    width: 66px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.uranus { 
    background: url('../images/uranus.png') no-repeat center center / cover; /* Uranus image */
    height: 39px;
    width: 39px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.neptune { 
    background: url('../images/neptune.png') no-repeat center center / cover; /* Neptune image */
    height: 40px;
    width: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Orbit Animation */
@keyframes orbit-rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Popup Styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 500;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #363534;
    padding: 6px;
    color: white;
    border: 1px solid rgb(255, 255, 255);
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 4px rgb(250, 249, 249);
    z-index: 2000;
    font-size: 12px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

#planet-name {
    font-size: 18px;
    font-weight: bold;
    color: yellow; 
    
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .solar-system {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    .solar-system {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .solar-system {
        transform: scale(0.7);
    }
}

@media (max-width: 576px) {
    .solar-system {
        transform: scale(0.6);
    }
}

@media (max-width: 400px) {
    .solar-system {
        transform: scale(0.5);
    }
}

.anchortags{
    color: rgb(134, 230, 243);
    font-size: 15px;
}

a{
    text-decoration: none;
}