.solar-system-widget * {
    margin: 0;
    padding: 0;
    color: #ffffff;
}

.solar-system-widget {
    position: relative;
    display: block;
    overflow: hidden;
    /* Full-width scaling (no width shrink due to height) */
    --ss-scale: calc(100vw / 1400px);
    /* Prevent the widget from becoming too tall on large desktops */
    height: min(calc(1200px * var(--ss-scale)), 70vh);
    min-height: 240px;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Phones: zoom the solar system in slightly while keeping hero height controlled from css/style.css */
@media (max-width: 575.98px) {
    .solar-system-widget {
        /* Increase scale so planets look larger; hero height tracks 1200 × --ss-scale via style.css */
        --ss-scale: min(100vw / 1000px, 0.7);
    }
}

/* Allow the SolarSystem widget to define its height */
.slider-area {
    height: auto !important;
}

.content {
    width: 1400px;
    height: 1200px;
    background-color: #ffffff;
    position: absolute;
    top: 47%;
    left: 50%;
    /* translate3d keeps compositing consistent across Firefox / Chromium */
    transform: translate3d(-50%, -50%, 0) scale(var(--ss-scale));
    transform-origin: center;
    background-image: url('sky.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content:before {
    content: none;
}

.clouds_bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6%;
    height: 74%;
    overflow: hidden;
    z-index: 4;
    pointer-events: none;
    background: transparent;
    /* remove hard cloud image bottom edge */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.62) 22%, #000 52%);
    mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.62) 22%, #000 52%);
}

.clouds_bg img {
    position: absolute;
    left: 50%;
    bottom: 4%;
    /* Wider than the band so scaled / wide desktops don’t show side gaps; clip via .clouds_bg overflow */
    width: 118%;
    min-width: 100%;
    max-width: none;
    height: auto;
    /* Avoid inline-img baseline gap (thin “white line” under sprites) */
    display: block;
    opacity: 0;
    transform: translateX(-50%);
    animation: cloudPulse calc(2s * var(--i)) linear infinite;
}

@keyframes cloudPulse {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    25%, 75% {
        opacity: 0.68;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-26%) scale(2.8);
    }
}

.circles,
#planets,
.controls {
    position: relative;
    z-index: 6;
}

.circles,
#planets {
    transform: translateY(0);
}

.sun {
    width: 280px;
    height: 280px;
    position: absolute;
    background: none;
    box-shadow: none;
    z-index: 10;
    isolation: isolate;
    /* JS (spacePosition) controls top/left */
    transform: none;
}

.sun .chakra_layer {
    position: absolute;
    left: 15px;
    right: 10px;
    top: 4px;
    bottom: 100px;
    z-index: 5;
    pointer-events: none;
    /* visible so drop-shadow on chakra_img is not clipped */
    overflow: visible;
}

.sun .chakra_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 42%;
    display: block;
    transform-origin: 50% 50%;
    transform-box: fill-box;
    animation: chakraSpin 6s linear infinite;
    -webkit-filter: saturate(1.08) contrast(1.06) brightness(1.03)
        drop-shadow(0 3px 6px rgba(15, 23, 42, 0.14))
        drop-shadow(0 10px 22px rgba(15, 23, 42, 0.12))
        drop-shadow(0 18px 36px rgba(26, 95, 138, 0.08));
    filter: saturate(1.08) contrast(1.06) brightness(1.03)
        drop-shadow(0 3px 6px rgba(15, 23, 42, 0.14))
        drop-shadow(0 10px 22px rgba(15, 23, 42, 0.12))
        drop-shadow(0 18px 36px rgba(26, 95, 138, 0.08));
    will-change: transform, filter;
}

.sun .murti_layer {
    position: absolute;
    left: 5px;
    right: 0;
    /* Taller paint box so the figure can scale up without top/bottom crop */
    top: -48px;
    bottom: -30px;
    background-image: url("murti-chawar.png");
    background-position: center 56%;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 7;
    pointer-events: none;
    -webkit-filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.12))
        drop-shadow(0 12px 24px rgba(15, 23, 42, 0.14))
        drop-shadow(0 22px 44px rgba(26, 95, 138, 0.1));
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.12))
        drop-shadow(0 12px 24px rgba(15, 23, 42, 0.14))
        drop-shadow(0 22px 44px rgba(26, 95, 138, 0.1));
}

/* Desktop: chakra + murti ~10% smaller (scale 0.9) */
@media (min-width: 1200px) {
    .sun .chakra_layer {
        transform: scale(0.9);
        transform-origin: 50% 42%;
    }

    .sun .murti_layer {
        transform: scale(0.9);
        transform-origin: 50% 56%;
    }
}

@keyframes chakraSpin {
    from {
        transform: translateZ(0) rotate(0deg) scale(0.9);
    }

    to {
        transform: translateZ(0) rotate(360deg) scale(0.9);
    }
}

.sun>img {
    display: none;
}

.mercury_container {
    width: 18px;
    height: 18px;
    position: absolute;
}

.gif_mercury {
    background-position-x: -15px;
    background-position-y: -3px;
    background-size: 239%;
    position: absolute;
    width: 18px;
    height: 18px;
    background-image: url("https://res.cloudinary.com/yerevan/image/upload/v1484080036/mercury_tvm7ik.gif");
    border-radius: 100%;
    overflow: hidden;
}

.shadow_mercury {
    position: relative;
    width: 18px;
    height: 18px;
}

.shadow_mercury>.light {
    position: absolute;
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(255, 150, 100, 0.8), rgba(255, 255, 0, 0.0));
}

.shadow_mercury>.shadow {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 100%;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 1), rgba(255, 255, 0, 0.0));
}

.venus_container {
    width: 28px;
    height: 28px;
    position: absolute;
}

.gif_venus {
    background-position-x: -4px;
    background-position-y: -3px;
    background-size: 120%;
    position: absolute;
    width: 28px;
    height: 28px;
    background-image: url("https://res.cloudinary.com/yerevan/image/upload/v1484080037/venus_mllz68.gif");
    border-radius: 100%;
}

.shadow_venus {
    position: relative;
    width: 28px;
    height: 28px;
}

.shadow_venus>.light {
    position: absolute;
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(255, 150, 100, 0.8), rgba(255, 255, 0, 0.0));
}

.shadow_venus>.shadow {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 100%;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 1), rgba(255, 255, 0, 0.0));
}

.earth_moon_container {
    position: absolute;
    width: 50px;
    display: flex;
    justify-content: center;
    height: 50px;
}

.earth_container {
    align-self: center;
    position: relative;
    z-index: 10;
}

.gif_earth {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    overflow: hidden;
}

.gif_earth>img {
    width: 40px;
    height: 40px;
}

.shadow_earth {
    position: relative;
    width: 40px;
    height: 40px;
}

.shadow_earth>.light {
    position: absolute;
    content: "";
    display: block;
    width: 38px;
    height: 38px;
    left: 2px;
    top: 1px;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(255, 155, 200, 0.4), rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0));
}

.shadow_earth>.shadow {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.0));
}

.moon_container {
    position: absolute;
    width: 50px;
    height: 50px;
}

.moon {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 100%;
}

.moon>img {
    position: absolute;
    width: 8px;
    height: 8px;
}

.mars_container {
    width: 38px;
    height: 38px;
    position: absolute;
}

.gif_mars {
    background-position-x: -5px;
    background-position-y: -5px;
    background-size: 125%;
    position: absolute;
    width: 38px;
    height: 38px;
    background-image: url("https://res.cloudinary.com/yerevan/image/upload/v1484080036/mars_vvdvoa.gif");
    border-radius: 100%;
}

.shadow_mars {
    position: relative;
    width: 38px;
    height: 38px;
}

.shadow_mars>.light {
    position: absolute;
    content: "";
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(255, 150, 100, 0.8), rgba(255, 255, 0, 0.0));
}

.shadow_mars>.shadow {
    content: "";
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 100%;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 1), rgba(255, 255, 0, 0.0));
}

.jupiter_container {
    position: absolute;
    width: 65px;
    height: 65px;
}

.gif_jupiter {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 100%;
    overflow: hidden;
}

.gif_jupiter>img {
    width: 65px;
    height: 65px;
}

.shadow_jupiter {
    position: relative;
    width: 65px;
    height: 65px;
}

.shadow_jupiter>.light {
    position: absolute;
    content: "";
    display: block;
    width: 65px;
    height: 65px;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(255, 155, 100, 0.2), rgba(255, 255, 0, 0.0), rgba(255, 255, 0, 0.0));
}

.shadow_jupiter>.shadow {
    content: "";
    display: block;
    width: 65px;
    height: 65px;
    border-radius: 100%;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 0, 0.0));
}

.saturn_ring_container {
    position: absolute;
    width: 105px;
    display: flex;
    justify-content: center;
    height: 105px;
}

.saturn_container {
    align-self: center;
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.gif_saturn {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    overflow: hidden;
}

.gif_saturn:before {
    content: "";
    position: absolute;
    display: block;
    border-radius: 100%;
    background-color: rgba(255, 175, 100, 0.4);
    width: 100%;
    height: 100%;
}

.gif_saturn>img {
    width: 100%;
    height: 100%;
}

.shadow_saturn {
    position: relative;
    width: 40px;
    height: 40px;
}

.shadow_saturn>.light {
    position: absolute;
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    left: 2px;
    top: 1px;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(255, 194, 87, 0.4) rgba(0, 0, 0, 0.0));
}

.shadow_saturn>.shadow {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.0));
}

.ring_container {
    position: absolute;
    width: 105px;
    height: 105px;
    display: flex;
    justify-content: center;
}

.gif_ring {
    align-self: center;
    width: 105px;
    height: 60px;
}

.gif_ring>div {
    width: 100%;
    height: 50%;
    overflow: hidden;
    position: relative;
}

.gif_ring>div:first-child>img {
    width: 100%;
    height: 200%;
    position: absolute;
    top: 0;
}

.gif_ring>div:last-child>img {
    z-index: 11;
    width: 100%;
    height: 200%;
    position: absolute;
    bottom: 0;
}

.uranus_container {
    position: relative;
    width: 35px;
    height: 35px;
    z-index: 10;
}

.gif_uranus {
    background-position-x: -37px;
    background-position-y: -7px;
    background-size: 325%;
    position: absolute;
    width: 35px;
    height: 35px;
    background-image: url("https://res.cloudinary.com/yerevan/image/upload/v1484080037/uranus_ubdhwe.gif");
    border-radius: 100%;
    overflow: hidden;
}

.shadow_uranus {
    position: relative;
    width: 35px;
    height: 35px;
}

.shadow_uranus>.light {
    position: absolute;
    content: "";
    display: block;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(255, 155, 0, 0.1), rgba(255, 255, 0, 0.0));
}

.shadow_uranus>.shadow {
    content: "";
    display: block;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 0, 0.0));
}


.neptune_container {
    width: 18px;
    height: 18px;
    position: absolute;
}

.gif_neptune {
    background-position-x: -23px;
    background-position-y: -4px;
    background-size: 325%;
    background-image: url("https://res.cloudinary.com/yerevan/image/upload/v1484080036/neptune_byzweb.gif");
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 100%;
    overflow: hidden;
}

.shadow_neptune {
    position: relative;
    width: 18px;
    height: 18px;
}

.shadow_neptune:before {
    position: absolute;
    content: "";
    border-radius: 100%;
    background-color: rgba(64, 64, 255, 0.1);
    width: 18px;
    height: 18px;
}

.shadow_neptune>.light {
    position: absolute;
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 100%;
    background: linear-gradient(90deg, rgba(150, 188, 253, 0.8), rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0));
}

.shadow_neptune>.shadow {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 100%;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 0, 0.0));
}

.circles>div {
    position: absolute;
    border-radius: 100%;
    border: 1px solid rgba(255, 255, 255, 0.476);
    box-sizing: border-box;
}

.planet {
    border-radius: 100%;
    position: absolute;
}

/* ---------- Modern planet rendering polish ---------- */
.gif_mercury,
.gif_venus,
.gif_earth,
.gif_mars,
.gif_jupiter,
.gif_saturn,
.gif_uranus,
.gif_neptune {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 5px 12px rgba(4, 14, 28, 0.2),
        0 1px 4px rgba(255, 255, 255, 0.05) inset,
        0 0 8px rgba(153, 218, 255, 0.08);
    filter: saturate(1.1) contrast(1.06);
}

.gif_earth > img,
.gif_jupiter > img,
.gif_saturn > img {
    filter: saturate(1.14) contrast(1.06) brightness(1.02);
}

/* Earth only: lift to natural blue tones (avoid navy cast) */
.gif_earth > img {
    filter: saturate(1.28) hue-rotate(-12deg) contrast(1.05) brightness(1.14);
}

.shadow_mercury > .light,
.shadow_venus > .light,
.shadow_earth > .light,
.shadow_mars > .light,
.shadow_jupiter > .light,
.shadow_saturn > .light,
.shadow_uranus > .light,
.shadow_neptune > .light {
    opacity: 0.78;
    mix-blend-mode: screen;
}

.shadow_mercury > .shadow,
.shadow_venus > .shadow,
.shadow_earth > .shadow,
.shadow_mars > .shadow,
.shadow_jupiter > .shadow,
.shadow_saturn > .shadow,
.shadow_uranus > .shadow,
.shadow_neptune > .shadow {
    opacity: 0.46;
    mix-blend-mode: multiply;
}

.jupiter_container,
.saturn_ring_container,
.earth_moon_container,
.venus_container,
.mars_container {
    filter: drop-shadow(0 3px 6px rgba(13, 32, 57, 0.14));
}

/* 
.controls {
    position: fixed;
    float: right;
    padding: 20px;
    bottom: 0;
}

.controls>p {
    display: inline-block;
    margin: 20px;
}

button {
    top: 0;
    font-size: 25px;
    padding: 10px 50px;
    background-color: transparent;
} */