html,
body {
  background-color: #ffffff;
  padding: 0;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: #262626;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-button {
  display: none;
}

::-webkit-scrollbar-track {
  background-color: #00000000;
}

::-webkit-scrollbar-thumb {
  background-color: #ffffff1e;
  border-radius: 2rem;
}

main {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  overflow-x: hidden;
}

.full-height-sec,
footer {
  scroll-snap-align: start;
}

.full-height-sec {
  min-height: 100vh;
  min-height: 100dvh;
}

.isolate {
  isolation: isolate;
}

@keyframes square {
  0% {
    transform: translate(0, 0);
  }
  35% {
    transform: translate(calc(100vw - 105%), calc(100vh - 105%));
  }
  50% {
    transform: translate(0, 50vh);
  }
  75% {
    transform: translate(calc(100vw - 105%), 25vh);
  }
}

@keyframes circle {
  0% {
    transform: translate(calc(100vw - 105%), 50vh);
  }
  25% {
    transform: translate(0, calc(100vh - 105%));
  }
  50% {
    transform: translate(calc(100vw - 105%), 65vh);
  }
  75% {
    transform: translate(0, 25vh);
  }

  100% {
    transform: translate(calc(100vw - 105%), 50vh);
  }
}

.animate-square-1 {
  top: 0;
  left: 0;
  position: absolute;
  animation: square 22s linear 0s infinite alternate;
}

.animate-circle-1 {
  top: 0;
  left: 0;
  position: absolute;
  animation: circle 20s linear 0s infinite alternate;
}

/* https://codepen.io/tommybickerdike/pen/wMdvpQ */

@keyframes bounce {
  0% {
    transform: translateY(0%);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-50%);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.first-sec::before {
  animation: bounce 3s ease infinite 5s;
  bottom: 1rem;
  color: #18181b;
  content: attr(data-content);
  font-size: 2rem;
  height: 4rem;
  left: 50%;
  letter-spacing: -1px;
  line-height: 4rem;
  margin-left: -3rem;
  opacity: 0;
  position: absolute;
  text-align: center;
  width: 6rem;
  transition-property: opacity;
  transition-duration: 0.5s;
}

@media (prefers-color-scheme: dark) {
  .first-sec::before {
    color: #f4f4f5;
  }
}

#the-cube {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#stars {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes flydown {
  0% {
    transform: translateY(0vh);
  }
  100% {
    transform: translateY(100vh);
  }
}

.star {
  --star-time: 1s;
  height: 5px;
  width: 5px;
  background-color: white;
  position: absolute;
  top: 0px;
  left: var(--star-left);
  animation: flydown var(--star-time) infinite linear;
}

#spaceship-container {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  cursor: crosshair;
}

#spaceship {
  position: absolute;
  bottom: 50px;
  left: 50%;
  user-select: none;
}

@keyframes flyup {
  0% {
    transform: translateY(0vh);
  }
  100% {
    transform: translateY(-100vh);
  }
}

.space-laser {
  position: absolute;
  left: 200px;
  height: 30px;
  width: 5px;
  background-color: rgb(183, 255, 111);
  box-shadow: 1px 1px 3px rgb(128, 255, 0), -1px -1px 3px rgb(128, 255, 0);
  animation: flyup 500ms;
  z-index: -1;
  bottom: 100px;
}

.fire-container {
  --fire-height: 15px;
  --fire-width: 15px;
  margin: 80px auto;
  width: var(--fire-width);
  height: var(--fire-height);
  position: absolute;
  bottom: -83px;
  left: 19px;
  z-index: -1;
  transform-origin: center bottom;
  animation-name: flicker;
  animation-duration: 3ms;
  animation-delay: 200ms;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.flame {
  bottom: 0;
  position: absolute;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
  border-top-left-radius: 50%;
  transform: rotate(-45deg) scale(1.5, 1.5);
}

.yellow {
  left: calc(var(--fire-width) / 4);
  width: calc(var(--fire-width) / 2);
  height: calc(var(--fire-height) / 2);
  background: gold;
  box-shadow: 0px 0px calc(var(--fire-width) / 4) calc(var(--fire-width) / 6)
    gold;
}

.orange {
  left: calc(var(--fire-width) * 1 / 6);
  width: calc(var(--fire-width) * 4 / 6);
  height: calc(var(--fire-height) * 4 / 6);
  background: orange;
  box-shadow: 0px 0px calc(var(--fire-width) / 4) calc(var(--fire-width) / 6)
    orange;
}

.red {
  left: calc(var(--fire-width) / 14);
  width: calc(var(--fire-width) * 5 / 6);
  height: calc(var(--fire-height) * 5 / 6);
  background: OrangeRed;
  box-shadow: 0px 0px calc(var(--fire-width) / 4) calc(var(--fire-width) / 6)
    OrangeRed;
}

.white {
  left: calc(var(--fire-width) / 4);
  bottom: calc(var(--fire-height) / -15);
  width: calc(var(--fire-width) / 2);
  height: calc(var(--fire-height) / 2);
  background: white;
  box-shadow: 0px 0px calc(var(--fire-width) / 20) calc(var(--fire-width) / 15)
    white;
}

.circle {
  border-radius: 50%;
  position: absolute;
}

.blue {
  width: calc(var(--fire-width) * 1 / 6);
  height: calc(var(--fire-height) * 1 / 6);
  left: calc(var(--fire-width) * 5 / 12);
  bottom: calc(var(--fire-height) * -5 / 12);
  background: SlateBlue;
  box-shadow: 0px 0px calc(var(--fire-width) / 4) calc(var(--fire-width) / 6)
    SlateBlue;
}

.black {
  width: calc(var(--fire-width) * 4 / 6);
  height: calc(var(--fire-height) * 4 / 6);
  left: calc(var(--fire-width) / 6);
  bottom: calc(var(--fire-height) * -1);
  background: black;
  box-shadow: 0px 0px calc(var(--fire-width) / 4) calc(var(--fire-width) / 6)
    black;
}

@keyframes flicker {
  0% {
    transform: rotate(179deg);
  }
  20% {
    transform: rotate(181deg);
  }
  40% {
    transform: rotate(179deg);
  }
  60% {
    transform: rotate(181deg) scaleY(1.04);
  }
  80% {
    transform: rotate(178deg) scaleY(0.92);
  }
  100% {
    transform: rotate(181deg);
  }
}

.slider {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; /* to be able to check for "smooth" scroll in javascript */
  cursor: grab;
  align-items: center;
}

.slider > * {
  flex: 1 0 50vw;
  scroll-snap-align: center;
}

@media (min-width: 640px) {
  .slider > * {
    flex: 1 0 25rem;
    scroll-snap-align: center;
  }
}

.glass-form {
  background-color: rgba(255, 255, 255, 0.075);
}

.opacity-1 {
  opacity: 1;
  transition: 1s linear 1s;
}

.grecaptcha-badge {
  visibility: hidden;
}
