*{
    padding: 0;
    margin: 0;
}
body{
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: linear-gradient(
    to right top,
    #331fbb,
    #1c2199,
    #0d1f78,
    #0c1a56,
    #0e1435,
    #151834,
    #1a1c32,
    #1f2031,
    #30314f,
    #424470,
    #555792,
    #6a6ab5
  );
  overflow: hidden;
}

.container{
  width: 40em;
  height: 40em;
  position: relative;
  font-size: 6px;
}
img{
  height: 130%;
  width: 130%;
}

.sun{
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 10em;
  height: 10em;
  top: 15em;
  left: 15em;
  border-radius: 50%;
  box-shadow: 0 0 3em rgb(255, 128, 0);
  animation: orbit 50s linear infinite;
}
.planet{
  position: absolute;
  border-style: solid;
  border-color: white transparent transparent transparent;
  border-width: 0.3em 0.2em 0 0;
  border-radius: 50%;
}
.planet::before{
  content: "";
  position: absolute;
  border-radius: 50%;
  animation: orbit 30s linear infinite;
}
.mercury::before{
  background-image: url(images/mercury.png);
  background-size: cover;
  top: 1.5em;
  right: 0.8em;
  width: 2em;
  height: 2em; 
}
.mercury{
  top: 12.5em;
  left: 12.5em;
  width: 15em;
  height: 15em;
  animation: orbit 68.7s linear infinite;

}

.venus::before{
  background-image: url(images/venus.png);
  background-size: cover;
  top: 2em;
  right: 2em;
  width: 2em;
  height: 2em; 
}
.venus{
  top: 10em;
  left: 10em;
  width: 20em;
  height: 20em;
  animation: orbit 48.7s linear infinite;

}

.earth::before{
  background-image: url(images/earth.png);
  background-size: cover;
  top: 3em;
  right: 0em;
  width: 5em;
  height: 5em; 
}
.earth{
  top: 6em;
  left: 6em;
  width: 28em;
  height: 28em;
  animation: orbit 36.5s linear infinite;

}

.moon::before{
  background-image: url(images/moon.png);
  background-size: cover;
  top: 0.8em;
  right: 0.2em;
  width: 1.2em;
  height: 1.2em; 
}
.moon{
  top: 2em;
  right: -1em;
  width: 7em;
  height: 7em;
  animation: orbit 2.7s linear infinite;

}

.mars::before{
  background-image: url(images/mars.png);
  background-size: cover;
  top: 5em;
  right: 3em;
  width: 3em;
  height: 3em; 
}
.mars{
  top: 2em;
  left: 2.5em;
  width: 36em;
  height: 36em;
  animation: orbit 26.5s linear infinite;
}


.jupiter::before{
  background-image: url(images/jupiter.png);
  background-size: cover;
  top: 6em;
  right: 3em;
  width: 5em;
  height: 5em; 
}
.jupiter{
  top: -2em;
  left: -2em;
  width: 45em;
  height: 45em;
  animation: orbit 21s linear infinite;
}



.saturn::before{
  background-image: url(images/saturn.png);
  background-size: cover;
  top: 7.5em;
  right: 5em;
  width: 4.5em;
  height: 4.5em; 
}
.saturn{
  top: -7em;
  left: -7em;
  width: 55em;
  height: 55em;
  animation: orbit 17s linear infinite;
}



.uranus::before{
  background-image: url(images/uranus.png);
  background-size: cover;
  top: 7.5em;
  right: 5em;
  width: 4.5em;
  height: 4.5em; 
}
.uranus{
  top: -12em;
  left: -12em;
  width: 65em;
  height: 65em;
  animation: orbit 19s linear infinite;
}




.neptune {
  top: -17em; /* Position from top */
  left: -17em; /* Position from left */
  width: 75em; /* Set width */
  height: 75em; /* Set height */
  animation: orbit 15s linear infinite; /* Animation for orbiting */
}

.neptune::before {
  top: 10em; /* Position from top */
  right: 8em; /* Position from right */
  width: 4em; /* Set width */
  height: 4em; /* Set height */
  background-image: url("./images/neptune.png"); /* Background image */
  background-size: cover; /* Cover background size */
}

/* Styling for Pluto */
.pluto {
  top: -22em; /* Position from top */
  left: -22em; /* Position from left */
  width: 85em; /* Set width */
  height: 85em; /* Set height */
  animation: orbit 18s linear infinite; /* Animation for orbiting */
}

.pluto::before {
  top: 11em; /* Position from top */
  right: 10em; /* Position from right */
  width: 4em; /* Set width */
  height: 4em; /* Set height */
  background-image: url("./images/pluto.png"); /* Background image */
  background-size: cover; /* Cover background size */
}

.star{
  position: absolute;
  background-color: white;
  border-radius: 50%;
  z-index: -1;
}
@keyframes orbit{
  to{
    transform: rotate(360deg);
  }
}