:root {
  font-family: "Cardinal, Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  color-scheme: light dark;
  background-color: #072040;
  background-image: linear-gradient(transparent 50%, #ee8eaa35 95%);
  color: #ddd;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  display: flex;
  justify-content: center;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
}

#content {
  z-index: 1;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 1rem;
}

.star {
  position: absolute;
  background: white;
  border-radius: 100%;
  opacity: 0.8;
  animation: twinkle 2s infinite alternate;
}

.shooting-star {
  position: absolute;
  border-radius: 100%;
  background-color: white;
  opacity: 0;
  animation: fade 2s forwards ease, shoot 2s forwards linear;
  --x: 100px;
  --y: 50px;
}

.shooting-star::after {
  content: "";
  position: absolute;
  left: -50px;
  top: 50%;
  width: 50px;
  height: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0), white);
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  #content {
    max-width: 70vw;
  }
}

@keyframes twinkle {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  0%,
  100% {
    opacity: 0;
  }
  35%,
  65% {
    opacity: 1;
  }
}

@keyframes shoot {
  to {
    transform: translate(var(--x), var(--y));
  }
}
