:root {
    --year-duration: 60s;
}

.background {
    background-color: black;
    display: flex;
    flex-direction: column;
    height: 95vh;
}

.header {
    max-width: 1111px;
    color: white;
    scale: 2;
    transform: translate(50%, 0);
    font-size: 18px;
    opacity: 1;
    animation-delay: 1s;
    animation-name: fade-in;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
    text-shadow: 0px 0px 9px rgba(255,255,255,1);

}

.content {
    color: white;
    transform: translateY(10vh);
    margin-left: auto;
    margin-right: auto;
    font-weight: 1;
    font-style: italic;
    font-size: 18px;
    max-width: 40vh;
    animation-delay: 4s;
    animation-name: fade-in;
    animation-duration: 9s;
    animation-fill-mode: forwards;
    opacity: 0;
    text-shadow: 0px 0px 2px rgba(255,255,255,0.7);
    line-height: 1.5;
}

.delayed-content {
    animation-delay: 8s;
    animation-name: fade-in;
    animation-duration: 9s;
    opacity: 0;
    animation-fill-mode: forwards;
    margin-left: 3px;
}

.delayed-content-1 {
    animation-delay: 14s;
    animation-name: fade-in;
    animation-duration: 9s;
    opacity: 0;
    animation-fill-mode: forwards;
    margin-left: 3px;
}

.delayed-content-2 {
    animation-delay: 22s;
    animation-name: fade-in;
    animation-duration: 9s;
    opacity: 0;
    animation-fill-mode: forwards;
    margin-left: 3px;
}

.description {
    color: rgba(255,255,255,0.7);
    transform: translateY(29vh);
    margin-left: auto;
    margin-right: auto;
    font-weight: 1;
    font-style: italic;
    max-width: 35vh;
    opacity: 0;
    animation-delay: 35s;
    animation-name: fade-in;
    animation-duration: 9s;
    animation-fill-mode: forwards;
    text-shadow: 0px 0px 2px rgba(255,255,255,0.7);
}

.container {
    margin-top: 7%;
    margin-left: 5%;
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    border: 1px solid transparent;
    background-color: rgba(100,100,100,0.0);
    animation: solar-system-travel 360s cubic-bezier(0.7,0,0.9,0.9) infinite;
}

/* The center dot */
.sun {
    width: 87px;
    height: 87px;
    background-color: rgb(255, 255, 233);
    border-radius: 50%;
    position: absolute;
    top: 20%;
    left: 20%;
    animation: sun-brighten 120s linear;
    box-shadow: 0px 0px 50px 10px rgb(255, 255, 161);
}

.ellipse-wrapper {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: ellipse var(--year-duration) cubic-bezier(0.6, 0, 0.8, 1) infinite;
    background-color: rgba(100,100,100,0.0);
}

/* Wrapper for rotating the moving circle */
.orbit-wrapper {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: orbit var(--year-duration) linear infinite;
    background-color: rgba(100,100,100,0.0);
}

.planet {
    width: 50px;
    height: 50px;
    background-color: rgb(0, 0, 0);
    border-radius: 50%;
    overflow: hidden;
    animation: planet-size var(--year-duration) linear infinite;
}

/* The circle that moves (stays horizontal due to being inside orbit-wrapper) */
.planet-graphics {
    translate: 50% 50%;
    width: 100%;
    height: 100%;
    background-color: rgb(167, 156, 5);
    border-radius: 50%;
    animation: counter-rotate var(--year-duration) linear infinite;
}

.planet-light {
    width: 400%;
    height: 400%;
    translate: -70% -70%;
    background-color: rgba(0,0,0,0);
    border-radius: 50%;
    top: 0;
    left: 0;
    box-shadow: 0px 0px 35px 35px inset white;
    animation: light-translate var(--year-duration) linear infinite;
}

.planet-shadow {
    width: 100%;
    height: 100%;
    translate: 40% 20%;
    background-color: rgba(0, 2, 109, 0.5);
    border-radius: 50%;
    top: 0;
    left: 0;
    box-shadow: 0px 0px 40px 40px inset black;
}

.equator {
    position: absolute;
    background-color: rgba(170,170,170,0.5);
    width: 70px;
    height: 70px;
    transform: translate(-39%, -39%);
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    border-radius: 50%;
    box-shadow: 2px 2px 2px 2px rgba(177, 0, 0, 0.5);

}

/* Animation keyframes */
@keyframes ellipse {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translate(70%, 30%);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


  /* Counter rotation to keep the line horizontal */
@keyframes counter-rotate {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(-360deg); /* Counteract the rotation */
    }
}

@keyframes light-translate {
    0% {
        transform: translate(0%, 0%);
    }
    50% {
        transform: translate(10%, 10%);
    }
    100% {
        transform: translate(0%, 0%);
    }
}

@keyframes planet-size {
    0% {
        transform: scale(0.1);
    }
    50% {
        transform: scale(2) translate(-100%, -100%);
    }
    100% {
        transform: scale(0.1);
    }
}

@keyframes planet-distance {
    0% {
        transform: translate(0,0);
    }
    50% {
        transform: translate(-80%, -80%);
    }
    100% {
        transform: translate(0,0);
    }
}

@keyframes solar-system-travel {
    0% {

        transform: translate(0,0) scale(1);
    }
    100% {
        transform: translate(500%, 500%) scale(7);
    }
}

@keyframes sun-brighten {
    0% {
        background-color: rgb(255, 255, 200);
    }
    100% {
        background-color: rgb(255, 255, 233);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-in2 {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.footer {
    font-size: 12px;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.7);
}

