body{
    margin:0px;
    padding: 0px;
    font-size: 6.5px;
    font-family: system-ui;
    /* font-weight: 300; */
    background: url(images/space.png);
}
.astronaut__image {
    width: 250px;
    top: 50px;
    position: absolute;
    right: 50px;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

h1{
    text-align: center;
    font-size: 62px;
    text-transform: uppercase;
    color: #fcfcfc;
    font-family: system-ui;
    letter-spacing: 3px;
    word-spacing: 5px;
    animation: blink 2s linear infinite;
}

@keyframes blink {
    0% {
        text-shadow: 0px 4px 26px ;
    }
    50% {
        text-shadow: none;
    }
    100% {
        text-shadow: 0px 4px 26px #fd6b03;
    }
}
#universe {
    z-index: 1;
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-size: cover;
}
#galaxy {
    position: relative;
    width: 100%;
    height: 100%;
}
#solar-system{
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}
.orbit .orbit{animation-name: suborbit}
.orbit{
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(254, 242, 5, 0.921);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation-name: orbit;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.outer{
    position: absolute;
    top: 50%;
    width: 2em;
    height: 2em;
    margin-top: -1em;
    margin-left: -1em;
    transform-style: preserve-3d;
    animation-name: invert;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#sun, .planet, #earth .moon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    margin-left: -0.5em; 
    border-radius: 50%;
    transform-style: preserve-3d;
}
#sun {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 60px rgba(249, 213, 5, 0.4);
}
.planet {
    background-color: #f8d407;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
}
#saturn .ring {
    width: 2em;
    height: 2em;
    margin-top: -1.2em;
    margin-left: -1.3em;
    border: 0.3em solid rgba(213, 124, 7, 0.7);
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
#saturn .ring:after {
    border-radius: 50%;
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    width: 2.2em;
    height: 2.2em;
    margin-top: -1.1em;
    margin-left: -1.1em;
    border: 0.07em solid rgba(246, 177, 86, 0.5);
    box-sizing: border-box;
}

@keyframes orbit{
    0%{transform: rotateZ(0deg);}
    100%{transform: rotateZ(-360deg);}
}
@keyframes suborbit {
    0%{transform: rotateX(90deg) rotateZ(0deg);}
    100%{transform: rotateX(90deg) rotateZ(-360deg);}
}
@keyframes invert{
    0%{
        transform: rotateX(-90deg) rotateY(360deg) rotateZ(0deg);
    }
    100%{
        transform: rotateX(-90deg) rotateY(0deg) rotateZ(0deg);
    }
}

.view-3D #solar-system {
    transform: rotateX(75deg);
}
.view-3D #sun {
    transform: rotateX(-90deg);
}
.view-3D .ring {
    transform: rotateX(90deg);
}
.view-3D .planet,
.view-3D .moon {
    transform: rotateX(0deg);
}

#mercury .outer,
#mercury .planet,
#mercury.orbit{
    animation-duration: 2s;
}
#venus .outer,
#venus .planet,
#venus.orbit{
    animation-duration: 7s;
}
#earth .outer,
#earth .planet,
#earth.orbit{
    animation-duration: 12s;
}
#earth .orbit .outer,
#earth .orbit {
    animation-duration: 0.9s;
}
#mars .outer,
#mars .planet,
#mars.orbit{
    animation-duration: 22s;
}
#jupiter .outer,
#jupiter .planet,
#jupiter.orbit{
    animation-duration: 142s;
}
#saturn .outer,
#saturn .planet,
#saturn.orbit,
#saturn .ring{
    animation-duration: 353s;
}
#uranus .outer,
#uranus .planet,
#uranus.orbit{
    animation-duration: 1008s;
}
#neptune .outer,
#neptune .planet,
#neptune.orbit{
    animation-duration: 1977s;
}
.label dt{font-size: 14px; color: white;}
.scale-stretched #sun{font-size: 30em;}
.scale-stretched #mercury .planet{font-size: 2.5em;}
.scale-stretched #venus .planet{font-size: 4em;}
.scale-stretched #earth .planet{font-size: 6em;}
.scale-stretched #earth .moon{font-size: 1.2em;}
.scale-stretched #mars .planet{font-size: 4em;}
.scale-stretched #jupiter .planet{font-size: 12em;}
.scale-stretched #saturn .planet{font-size: 10.8em;}
.scale-stretched #uranus .planet{font-size: 6em;}
.scale-stretched #neptune .planet{font-size: 10em;}

.scale-stretched #mercury.orbit{
    width: 34em;
    height: 34em;
    margin-top: -18em;
    margin-left: -18em;
}
.scale-stretched #venus.orbit{ 
    width: 42em;
    height: 42em;
    margin-top: -22em;
    margin-left: -22em;
}
.scale-stretched #earth.orbit{ 
    width: 58em;
    height: 58em;
    margin-top: -30em;
    margin-left: -30em;
}
.scale-stretched #earth .orbit{ 
    width: 8em;
    height: 8em;
    margin-top: -4em;
    margin-left: -4em;
}
.scale-stretched #mars.orbit{ 
    width: 74em;
    height: 74em;
    margin-top: -38em;
    margin-left: -38em;
}
.scale-stretched #jupiter.orbit{ 
    width: 100em;
    height: 100em;
    margin-top: -50em;
    margin-left: -50em;
}
.scale-stretched #saturn.orbit{ 
    width: 150em;
    height: 150em;
    margin-top: -75em;
    margin-left: -75em;
}
.scale-stretched #uranus.orbit{ 
    width: 186em;
    height: 186em;
    margin-top: -93em;
    margin-left: -93em;
}
.scale-stretched #neptune.orbit{ 
    width: 210em;
    height: 210em;
    margin-top: -105em;
    margin-left: -105em;
}
#sun {background-image: url(images/sun.png);}
#mercury .planet {background-image: url(images/mercury.jpeg);}
#venus .planet {background-image: url(images/venus.png);}
#earth .planet {background-image: url(images/earth.jpeg);}
#earth .moon {background-color: white;}
#mars .planet {background-image: url(images/mars.jpeg);}
#jupiter .planet {background-image: url(images/jupiter.jpeg);}
#saturn .planet {background-image: url(images/saturn.jpeg);}
#uranus .planet {background-image: url(images/uranus.jpeg);}
#neptune .planet {background-image: url(images/neptune.jpg);}
