/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #020308;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================
   PAGE
========================================= */

.uranus-page {

    position: relative;

    width: 100%;
    min-height: 1700px;

    padding: 55px 20px 100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(70,190,220,.14),
            transparent 45%
        ),
        #020308;
}


/* =========================================
   STARS
========================================= */

.stars,
.stars-small {

    position: absolute;

    inset: -20%;

    pointer-events: none;

    background-repeat: repeat;
}

.stars {

    opacity: .35;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.9) 1px,
            transparent 1px
        );

    background-size: 75px 75px;

    transition:
        transform 1.5s ease;
}

.stars-small {

    opacity: .13;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.8) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    transition:
        transform 2s ease;
}


/* =========================================
   HEADER
========================================= */

.header {

    position: relative;

    z-index: 100;

    max-width: 950px;

    margin: auto;

    text-align: center;
}


.return {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    margin-bottom: 35px;

    border:
        1px solid
        rgba(255,255,255,.22);

    color:
        rgba(255,255,255,.7);

    text-decoration: none;

    font-size: 9px;

    letter-spacing: 3px;

    transition:
        .35s ease;
}


.return:hover {

    background: white;

    color: #020308;

    border-color: white;

    transform:
        translateY(-4px);
}


.label {

    margin-bottom: 18px;

    color:
        rgba(255,255,255,.4);

    font-size: 10px;

    letter-spacing: 5px;
}


h1 {

    margin: 0;

    font-size:
        clamp(55px,9vw,105px);

    line-height: .9;

    letter-spacing: 7px;
}


.subtitle {

    max-width: 720px;

    margin:
        25px auto 0;

    color:
        rgba(255,255,255,.52);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================
   URANUS SYSTEM
========================================= */

.planet-area {

    position: relative;

    width: 760px;
    height: 760px;

    margin:
        65px auto 90px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================
   ORBITS
========================================= */

.moon-orbit {

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(130,220,240,.15);

    border-radius: 50%;

    pointer-events: none;
}


.orbit-miranda {
    width: 260px;
    height: 260px;
}

.orbit-ariel {
    width: 350px;
    height: 350px;
}

.orbit-umbriel {
    width: 450px;
    height: 450px;
}

.orbit-titania {
    width: 570px;
    height: 570px;
}

.orbit-oberon {
    width: 700px;
    height: 700px;
}


/* =========================================
   URANUS CENTER
========================================= */

.uranus-center {

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    z-index: 20;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    text-decoration: none;

    transition:
        transform .4s ease;
}


.uranus-center img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    box-shadow:
        0 0 45px
        rgba(70,210,230,.35),

        0 0 90px
        rgba(70,210,230,.12);
}


.uranus-center span {

    position: absolute;

    left: 50%;

    bottom: -35px;

    transform:
        translateX(-50%);

    color: white;

    font-size: 10px;

    letter-spacing: 4px;

    white-space: nowrap;
}


.uranus-center:hover {

    transform:
        translate(-50%, -50%)
        scale(1.08);
}


/* =========================================
   MOONS
========================================= */

.uranus-moon {

    position: absolute;

    z-index: 30;

    width: 65px;
    height: 65px;

    display: block;

    text-decoration: none;

    transition:
        transform .35s ease;
}


.uranus-moon img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    background: #11151a;

    box-shadow:
        0 0 18px
        rgba(150,210,230,.18);

    transition:
        .35s ease;
}


.uranus-moon span {

    position: absolute;

    left: 50%;
    top: 75px;

    transform:
        translateX(-50%);

    color:
        rgba(255,255,255,.65);

    font-size: 8px;

    letter-spacing: 2px;

    white-space: nowrap;

    transition:
        .3s ease;
}


.uranus-moon:hover {

    transform:
        scale(1.18);

    z-index: 50;
}


.uranus-moon:hover img {

    box-shadow:
        0 0 35px
        rgba(120,220,240,.38);
}


.uranus-moon:hover span {

    color: white;
}


/* =========================================
   MOON POSITIONS
========================================= */

.miranda {

    left:
        calc(50% + 100px);

    top:
        calc(50% - 130px);
}


.ariel {

    left:
        calc(50% + 140px);

    top:
        calc(50% + 90px);
}


.umbriel {

    left:
        calc(50% - 225px);

    top:
        calc(50% - 225px);
}


.titania {

    left:
        calc(50% - 285px);

    top:
        calc(50% + 115px);
}


.oberon {

    left:
        calc(50% + 285px);

    top:
        calc(50% - 55px);
}


/* =========================================
   INFORMATION
========================================= */

.info {

    position: relative;

    z-index: 5;

    width:
        min(1050px, 100%);

    margin: auto;
}


.info-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1px;

    background:
        rgba(255,255,255,.1);

    border:
        1px solid
        rgba(255,255,255,.1);
}


.card {

    padding: 30px;

    background:
        rgba(5,7,13,.95);

    transition:
        .35s ease;
}


.card:hover {

    transform:
        translateY(-5px);

    background:
        rgba(255,255,255,.04);
}


.number {

    margin-bottom: 8px;

    font-size: 20px;

    font-weight: bold;
}


.card-label {

    color:
        rgba(255,255,255,.4);

    font-size: 9px;

    letter-spacing: 2px;
}


/* =========================================
   DESCRIPTION
========================================= */

.description {

    margin-top: 60px;

    padding: 40px;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        rgba(255,255,255,.025);
}


.description-title {

    margin-bottom: 20px;

    font-size: 11px;

    letter-spacing: 4px;
}


.description-text {

    max-width: 900px;

    color:
        rgba(255,255,255,.58);

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================
   MOONS SECTION
========================================= */

.moons-title {

    margin-top: 55px;

    margin-bottom: 25px;

    text-align: center;

    font-size: 11px;

    letter-spacing: 5px;

    color:
        rgba(255,255,255,.5);
}


.moons {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 15px;
}


.moon-card {

    display: block;

    padding: 20px;

    color: white;

    text-decoration: none;

    text-align: center;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        rgba(255,255,255,.025);

    transition:
        .35s ease;
}


.moon-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(100,220,240,.5);

    background:
        rgba(255,255,255,.05);
}


.moon-image {

    width: 105px;
    height: 105px;

    margin:
        0 auto 15px;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    background: #10151a;

    box-shadow:
        0 0 25px
        rgba(100,210,230,.12);

    transition:
        .35s ease;
}


.moon-card:hover .moon-image {

    transform:
        scale(1.05);

    box-shadow:
        0 0 35px
        rgba(100,210,230,.25);
}


.moon-name {

    font-size: 10px;

    letter-spacing: 3px;

    margin-bottom: 8px;
}


.moon-description {

    color:
        rgba(255,255,255,.42);

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================
   FEATURES
========================================= */

.features {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 45px;
}


.feature {

    padding: 25px;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        rgba(255,255,255,.02);

    transition:
        .35s ease;
}


.feature:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(120,220,240,.4);
}


.feature-title {

    margin-bottom: 10px;

    font-size: 12px;

    letter-spacing: 2px;
}


.feature-text {

    color:
        rgba(255,255,255,.5);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================
   FACT
========================================= */

.fact {

    margin-top: 60px;

    padding: 35px;

    text-align: center;

    border:
        1px solid
        rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.025);
}


.fact-label {

    margin-bottom: 15px;

    color:
        rgba(255,255,255,.45);

    font-size: 9px;

    letter-spacing: 4px;
}


.fact-text {

    font-size:
        clamp(18px, 3vw, 27px);

    line-height: 1.5;
}


/* =========================================
   CREDIT
========================================= */

.credit {

    margin-top: 25px;

    text-align: center;

    color:
        rgba(255,255,255,.3);

    font-size: 9px;

    letter-spacing: 1px;

    line-height: 1.6;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .moons {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE SYSTEM
========================================= */

@media (max-width: 800px) {

    .planet-area {

        width: 450px;
        height: 450px;

        margin-top: 50px;

        transform:
            scale(.72);

        transform-origin:
            center top;

        margin-bottom:
            -100px;
    }


    .uranus-center {

        width: 130px;
        height: 130px;
    }


    .orbit-miranda {

        width: 180px;
        height: 180px;
    }


    .orbit-ariel {

        width: 250px;
        height: 250px;
    }


    .orbit-umbriel {

        width: 320px;
        height: 320px;
    }


    .orbit-titania {

        width: 400px;
        height: 400px;
    }


    .orbit-oberon {

        width: 490px;
        height: 490px;
    }


    .uranus-moon {

        width: 50px;
        height: 50px;
    }


    .miranda {

        left:
            calc(50% + 55px);

        top:
            calc(50% - 90px);
    }


    .ariel {

        left:
            calc(50% + 80px);

        top:
            calc(50% + 55px);
    }


    .umbriel {

        left:
            calc(50% - 150px);

        top:
            calc(50% - 160px);
    }


    .titania {

        left:
            calc(50% - 200px);

        top:
            calc(50% + 75px);
    }


    .oberon {

        left:
            calc(50% + 185px);

        top:
            calc(50% - 40px);
    }


    .info-grid {

        grid-template-columns:
            1fr;
    }


    .features {

        grid-template-columns:
            1fr;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 500px) {

    .uranus-page {

        padding:
            45px 15px 70px;
    }


    .return {

        padding:
            11px 15px;

        font-size: 8px;

        letter-spacing: 2px;
    }


    .label {

        font-size: 8px;

        letter-spacing: 4px;
    }


    h1 {

        font-size:
            clamp(48px, 17vw, 75px);

        letter-spacing: 5px;
    }


    .subtitle {

        font-size: 12px;

        line-height: 1.7;
    }


    .planet-area {

        width: 320px;
        height: 320px;

        transform:
            scale(.65);

        transform-origin:
            center top;

        margin-top: 45px;

        margin-bottom:
            -80px;
    }


    .uranus-center {

        width: 95px;
        height: 95px;
    }


    .uranus-center span {

        bottom: -28px;

        font-size: 8px;

        letter-spacing: 3px;
    }


    .orbit-miranda {

        width: 135px;
        height: 135px;
    }


    .orbit-ariel {

        width: 180px;
        height: 180px;
    }


    .orbit-umbriel {

        width: 230px;
        height: 230px;
    }


    .orbit-titania {

        width: 285px;
        height: 285px;
    }


    .orbit-oberon {

        width: 315px;
        height: 315px;
    }


    .uranus-moon {

        width: 40px;
        height: 40px;
    }


    .uranus-moon span {

        top: 48px;

        font-size: 7px;

        letter-spacing: 1.5px;
    }


    .miranda {

        left:
            calc(50% + 45px);

        top:
            calc(50% - 65px);
    }


    .ariel {

        left:
            calc(50% + 55px);

        top:
            calc(50% + 40px);
    }


    .umbriel {

        left:
            calc(50% - 110px);

        top:
            calc(50% - 115px);
    }


    .titania {

        left:
            calc(50% - 135px);

        top:
            calc(50% + 55px);
    }


    .oberon {

        left:
            calc(50% + 125px);

        top:
            calc(50% - 30px);
    }


    .description {

        padding: 25px;
    }


    .description-text {

        font-size: 13px;

        line-height: 1.8;
    }


    .moons {

        grid-template-columns:
            1fr;
    }


    .moon-image {

        width: 95px;
        height: 95px;
    }


    .fact {

        padding: 25px 18px;
    }

}


/* =========================================
   VERY SMALL SCREENS
========================================= */

@media (max-width: 360px) {

    .planet-area {

        transform:
            scale(.55);

        margin-bottom:
            -110px;
    }


    .description {

        padding: 20px;
    }

}
