body
{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(33, 33, 33);
}

.planets-container
{
   width: 150px;
   height: 150px;
   border-radius: 50%;
   transform: scaleX(5);
}

.sun
{
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgb(248, 244, 163);
    box-shadow: 0 0 60px rgb(253, 203, 163) , 0 0 98px rgb(184, 160, 26);
    transform: scaleX(0.2);
}

.planet
{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: scaleX(0.2);
}

.planet:after
{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.route 
{
    width: 100%;
    height: 100%;
    animation: rotate 12s infinite linear;
    position: absolute;
}

.planet-container
{
    width: 60px;
    height: 60px;
    animation: correct 12s infinite linear;
    position: absolute;
}

#second-planet-container
{
    left: 85px;
}

#third-planet-container
{
    left: 42.5px;
    top: 100px;
}

.planet-index
{
    width: 100%;
    height: 100%;
    position: absolute;
}

#first-planet-index
{
    animation: hideFirstPlanet 12s infinite;
}

#second-planet-index
{
    animation: hideSecondPlanet 12s infinite;
}

#third-planet-index
{
    animation: hideThirddPlanet 12s infinite;
}


#first-planet
{
    animation: firstPlanetRender 12s infinite linear;
}

#first-planet:after
{
    animation: firstPlanetRenderRotater 12s infinite linear;
}

#second-planet
{
    animation: scondPlanetRender 12s infinite linear;
}

#second-planet:after
{
    animation: secondPlanetRenderRotater 12s infinite linear;
}

#third-planet
{
    animation: thirdPlanetRender 12s infinite linear;
}

#third-planet:after
{
    animation: thirdPlanetRenderRotater 12s infinite linear;
}


@keyframes firstPlanetRender {
    0% {
        background: linear-gradient(-90deg, rgb(86, 86, 253)50%, rgb(60, 60, 175)50%);
    }
    12% {
        background: linear-gradient(-90deg, rgb(86, 86, 253)50%, rgb(60, 60, 175)50%);
    }
    12.1% {
        background: linear-gradient(90deg, rgb(86, 86, 253)50%, rgb(60, 60, 175)50%);
    }
    62% {
        background: linear-gradient(90deg, rgb(86, 86, 253)50%, rgb(60, 60, 175)50%);
    }
    62.1% {
        background: linear-gradient(-90deg, rgb(86, 86, 253)50%, rgb(60, 60, 175)50%);
    }
    100% {
        background: linear-gradient(-90deg, rgb(86, 86, 253)50%, rgb(60, 60, 175)50%);
    }
}

@keyframes scondPlanetRender {
    0% {
        background: linear-gradient(90deg, rgb(95, 185, 95)50%, rgb(65, 128, 65)50%);
    }
    40% {
        background: linear-gradient(90deg, rgb(95, 185, 95)50%, rgb(65, 128, 65)50%);
    }
    40.1% {
        background: linear-gradient(-90deg, rgb(95, 185, 95)50%, rgb(65, 128, 65)50%);
    }
    90% {
        background: linear-gradient(-90deg, rgb(95, 185, 95)50%, rgb(65, 128, 65)50%);
    }
    90.1% {
        background: linear-gradient(90deg, rgb(95, 185, 95)50%, rgb(65, 128, 65)50%);
    }
    100% {
        background: linear-gradient(90deg, rgb(95, 185, 95)50%, rgb(65, 128, 65)50%);
    }
}

@keyframes thirdPlanetRender {
    0% {background: linear-gradient(-90deg, rgb(255, 66, 113)50%, rgb(168, 47, 77)50%);}
    49% {background: linear-gradient(-90deg, rgb(255, 66, 113)50%, rgb(168, 47, 77)50%);}
    49.1% {background: linear-gradient(90deg, rgb(255, 66, 113)50%, rgb(168, 47, 77)50%);}
    99% {background: linear-gradient(90deg, rgb(255, 66, 113)50%, rgb(168, 47, 77)50%);}
    99.1% {background: linear-gradient(-90deg, rgb(255, 66, 113)50%, rgb(168, 47, 77)50%);}
    100% {background: linear-gradient(-90deg, rgb(255, 66, 113)50%, rgb(168, 47, 77)50%);}
}


@keyframes firstPlanetRenderRotater {
    0%{ transform: scaleX(-0.2); background-color: rgb(86, 86, 253);}
    12%{ transform: scaleX(-1); background-color: rgb(86, 86, 253);}
    12.1%{ transform: scaleX(1); background-color: rgb(86, 86, 253);}
    37%{ transform: scaleX(0); background-color: rgb(86, 86, 253);}
    37.1%{ transform: scaleX(0); background-color: rgb(60, 60, 175);}
    62%{ transform: scaleX(-1); background-color: rgb(60, 60, 175);}
    62.1%{ transform: scaleX(-1); background-color: rgb(60, 60, 175);}
    87%{ transform: scaleX(0); background-color: rgb(60, 60, 175);}
    87.1%{ transform: scaleX(0); background-color: rgb(86, 86, 253);}
    100%{ transform: scaleX(-0.2); background-color: rgb(86, 86, 253);}
}

@keyframes secondPlanetRenderRotater {
    0%{ transform: scaleX(0.5); background-color: rgb(95, 185, 95);}
    15%{ transform: scaleX(0); background-color: rgb(95, 185, 95);}
    15.1%{ transform: scaleX(0); background-color: rgb(65, 128, 65);}
    40%{ transform: scaleX(-1); background-color: rgb(65, 128, 65);}
    40.1%{ transform: scaleX(1); background-color: rgb(65, 128, 65);}
    65%{ transform: scaleX(0); background-color: rgb(65, 128, 65);}
    65.1%{ transform: scaleX(0); background-color: rgb(95, 185, 95);}
    90%{ transform: scaleX(-1); background-color: rgb(95, 185, 95);}
    90.1%{ transform: scaleX(1); background-color: rgb(95, 185, 95);}
    100%{ transform: scaleX(0.5); background-color: rgb(95, 185, 95);}
}

@keyframes thirdPlanetRenderRotater {
    0%{ transform: scaleX(1); background-color: rgb(168, 47, 77);}
    25%{ transform: scaleX(0); background-color: rgb(168, 47, 77);}
    25.1%{ transform: scaleX(0); background-color: rgb(255, 66, 113);}
    49%{ transform: scaleX(-1); background-color: rgb(255, 66, 113);}
    49.1%{ transform: scaleX(1); background-color: rgb(255, 66, 113);}
    75%{ transform: scaleX(0); background-color: rgb(255, 66, 113);}
    75.1%{ transform: scaleX(0); background-color: rgb(168, 47, 77);}
    100%{ transform: scaleX(1); background-color: rgb(168, 47, 77);}
}

@keyframes rotate {
    0%{
        transform: rotateZ(0deg);
    }
    100%{
        transform: rotateZ(360deg);
    }
}  


@keyframes correct {
    0%{
        transform: rotateZ(360deg);
    }
    100%{
        transform: rotateZ(0deg);
    }
    
}  

@keyframes hideFirstPlanet 
{
    0%
    {
        z-index: 999;
        transform: scale(0.9);
    }
    25%
    {
        z-index: -999;
        transform: scale(0.8);
    }
    50%
    {
        transform: scale(0.9);
    }
    75%
    {
        transform: scale(1.1);
    }
    100%
    {
        z-index: 999;
        transform: scale(0.9);
    }
}

@keyframes hideSecondPlanet 
{
    0%
    {
        z-index: -999;
        transform: scale(0.95);
    }
    50%
    {
        z-index: 999;
        transform: scale(1.1);
    }
    90%
    {
        transform: scale(0.9);
    }
    100%
    {
        z-index: -999;
        transform: scale(0.95);
    }
}

@keyframes hideThirddPlanet 
{
    0%
    {
        z-index: 999;
        transform: scale(1.1);
    }
    50%
    {
        z-index: -999;
        transform: scale(0.8);
    }
    100%
    {
        z-index: 999;
        transform: scale(1.1);
    }
}




@keyframes twinkle {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  

  .stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
  }
  
  .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    animation: twinkle 3s infinite;
  }
  
  .star:nth-child(1) {
    top: 10%;
    left: 20%;
  }
  
  .star:nth-child(2) {
    top: 15%;
    left: 70%;
  }
  
  .star:nth-child(3) {
    top: 30%;
    left: 45%;
  }

  .star:nth-child(4) {
    top: 5%;
    left: 50%;
  }
  
  .star:nth-child(5) {
    top: 25%;
    left: 10%;
  }
  
  .star:nth-child(6) {
    top: 45%;
    left: 80%;
  }
  .star:nth-child(7) {
    top: 12%;
    left: 35%;
}

.star:nth-child(8) {
    top: 50%;
    left: 75%;
}
