body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: black;
}

.space {
  width: 200px;
  height: 200px;
  margin-inline: auto;
  position: relative;
}
.earth {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: blue;
}

.orbit {
  width: 200px;
  height: 200px;
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: orbit 5s linear infinite;
}

.moon {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  border-radius: 50%;
  background-color: #f5f3ce;
  box-shadow:
    0 0 10px #ffffff,
    0 0 25px rgba(255, 255, 220, 0.8),
    0 0 50px rgba(255, 255, 200, 0.4);
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translate(-50%, -50%);
  }

  100% {
    transform: rotate(360deg) translate(-50%, -50%);
  }
}
