body {
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.night {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateZ(45deg);
}

.shooting_star {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  background: linear-gradient(-445deg, #5f91ff, rgba(0, 0, 255, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #699bff);
  animation: tail 3s ease-in-out infinite, shooting 3s ease-in-out infinite;
}

.shooting_star::before,
.shooting_star::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  height: 2px;
  background: linear-gradient(
    -45deg,
    rgba(0, 0, 255, 0),
    #5f91ff,
    rgba(0, 0, 255, 0)
  );
  transform: translateX(50%) rotateZ(45deg);
  border-radius: 100%;
  animation: shining 3s ease-in-out infinite;
}

.shooting_star::after {
  transform: translateX(50%) rotateZ(-45deg);
}

.shooting_star:nth-child(1) {
  top: calc(50% - 83px);
  left: calc(50% - 167px);
  animation-delay: 8.5s;
}

.shooting_star:nth-child(1)::before,
.shooting_star:nth-child(1)::after {
  animation-delay: 8.5s;
}

.shooting_star:nth-child(2) {
  top: calc(50% - -21px);
  left: calc(50% - 297px);
  animation-delay: 4.91s;
}

.shooting_star:nth-child(2)::before,
.shooting_star:nth-child(2)::after {
  animation-delay: 4.91s;
}

.shooting_star:nth-child(3) {
  top: calc(50% - -70px);
  left: calc(50% - 211px);
  animation-delay: 4.8s;
}

.shooting_star:nth-child(3)::before,
.shooting_star:nth-child(3)::after {
  animation-delay: 4.8s;
}

.shooting_star:nth-child(4) {
  top: calc(50% - -179px);
  left: calc(50% - 274px);
  animation-delay: 7.1s;
}

.shooting_star:nth-child(4)::before,
.shooting_star:nth-child(4)::after {
  animation-delay: 7.1s;
}

.shooting_star:nth-child(5) {
  top: calc(50% - 148px);
  left: calc(50% - 128px);
  animation-delay: 253ms;
}

.shooting_star:nth-child(5)::before,
.shooting_star:nth-child(5)::after {
  animation-delay: 253ms;
}

.shooting_star:nth-child(6) {
  top: calc(50% - -77px);
  left: calc(50% - 122px);
  animation-delay: 3.66s;
}

.shooting_star:nth-child(6)::before,
.shooting_star:nth-child(6)::after {
  animation-delay: 3.66s;
}

.shooting_star:nth-child(7) {
  top: calc(50% - 131px);
  left: calc(50% - 21px);
  animation-delay: 8.1s;
}

.shooting_star:nth-child(7)::before,
.shooting_star:nth-child(7)::after {
  animation-delay: 8.1s;
}

.shooting_star:nth-child(8) {
  top: calc(50% - 145px);
  left: calc(50% - 232px);
  animation-delay: 6.1s;
}

.shooting_star:nth-child(8)::before,
.shooting_star:nth-child(8)::after {
  animation-delay: 6.1s;
}

.shooting_star:nth-child(9) {
  top: calc(50% - -11px);
  left: calc(50% - 41px);
  animation-delay: 7.3s;
}

.shooting_star:nth-child(9)::before,
.shooting_star:nth-child(9)::after {
  animation-delay: 7.3s;
}

.shooting_star:nth-child(10) {
  top: calc(50% - -54px);
  left: calc(50% - 277px);
  animation-delay: 6.22s;
}

.shooting_star:nth-child(10)::before,
.shooting_star:nth-child(10)::after {
  animation-delay: 6.22s;
}

.shooting_star:nth-child(11) {
  top: calc(50% - -161px);
  left: calc(50% - 280px);
  animation-delay: 9.1s;
}

.shooting_star:nth-child(11)::before,
.shooting_star:nth-child(11)::after {
  animation-delay: 9.1s;
}

.shooting_star:nth-child(12) {
  top: calc(50% - -161px);
  left: calc(50% - 280px);
  animation-delay: 9.1s;
}

.shooting_star:nth-child(12)::before,
.shooting_star:nth-child(12)::after {
  animation-delay: 9.1s;
}

.shooting_star:nth-child(13) {
  top: calc(50% - 17px);
  left: calc(50% - 217px);
  animation-delay: 8.1s;
}

.shooting_star:nth-child(13)::before,
.shooting_star:nth-child(13)::after {
  animation-delay: 8.1s;
}

.shooting_star:nth-child(14) {
  top: calc(50% - 157px);
  left: calc(50% - 82px);
  animation-delay: 1.13s;
}

.shooting_star:nth-child(14)::before,
.shooting_star:nth-child(14)::after {
  animation-delay: 1.13s;
}

.shooting_star:nth-child(15) {
  top: calc(50% - 44px);
  left: calc(50% - 286px);
  animation-delay: 9s;
}

.shooting_star:nth-child(15)::before,
.shooting_star:nth-child(15)::after {
  animation-delay: 9s;
}

.shooting_star:nth-child(16) {
  top: calc(50% - 175px);
  left: calc(50% - 280px);
  animation-delay: 73ms;
}

.shooting_star:nth-child(16)::before,
.shooting_star:nth-child(16)::after {
  animation-delay: 73ms;
}

.shooting_star:nth-child(17) {
  top: calc(50% - 172px);
  left: calc(50% - 219px);
  animation-delay: 4.5s;
}

.shooting_star:nth-child(17)::before,
.shooting_star:nth-child(17)::after {
  animation-delay: 4.5s;
}

.shooting_star:nth-child(18) {
  top: calc(50% - -196px);
  left: calc(50% - 166px);
  animation-delay: 5s;
}

.shooting_star:nth-child(18)::before,
.shooting_star:nth-child(18)::after {
  animation-delay: 5s;
}

.shooting_star:nth-child(19) {
  top: calc(50% - -96px);
  left: calc(50% - 120px);
  animation-delay: 7.6s;
}

.shooting_star:nth-child(19)::before,
.shooting_star:nth-child(19)::after {
  animation-delay: 7.6s;
}

.shooting_star:nth-child(20) {
  top: calc(50% - 75px);
  left: calc(50% - 93px);
  animation-delay: 7.5s;
}

.shooting_star:nth-child(20)::before,
.shooting_star:nth-child(20)::after {
  animation-delay: 7.5s;
}

@keyframes tail {
  0% {
    width: 0;
  }

  30% {
    width: 100px;
  }

  100% {
    width: 0;
  }
}

@keyframes shining {
  0% {
    width: 0;
  }

  50% {
    width: 30px;
  }

  100% {
    width: 0;
  }
}

@keyframes shooting {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(300px);
  }
}

@keyframes sky {
  0% {
    transform: rotate(45deg);
  }

  100% {
    transform: rotate(405deg);
  }
}

h1 {
  position: absolute;
  font-family: cursive;
  font-size: 32px;
  top: 120px;
  color: white;
}
