@import url("https://fonts.googleapis.com/css2?family=Moderustic:wght@300..800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Moderustic", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
body {
  background-color: black;
}

.parent {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.moon {
  background: black;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  position: relative;
}

.aps {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
}

.heart {
  color: red;
  position: absolute;
  top: 160%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.moon::before {
  content: "";
  background-color: #fff;
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: -1;
  animation: animation 3.2s linear infinite alternate;
}

@keyframes animation {
  0% {
    transform: translateX(40px) scale(0.9);
    box-shadow: none;
  }
  50% {
    transform: translateX(0px, 0px) scale(1.02);
    box-shadow: 0 0 10px #fff, 0 0 80px 2px #fff;
  }
  100% {
    transform: translateX(-40px) scale(0.9);
    box-shadow: none;
  }
}
