/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2a2a2a;
  background-image: url('/textures/sand.png');
  background-blend-mode: soft-light;
  color: #f0f0f0;
  overflow: hidden;
  font-family: sans-serif;

}

body:active {
  animation: shake 0.05s ease-in-out;
}


#text-container {
  text-align: center;
  user-select: none;
}

#typing-text {
  font-size: 12vw;
  font-weight: bold;
  white-space: nowrap;
  display: inline-block;
  min-height: 1.2em;
  transition: font-family 0.3s ease-in-out;
}

#typing-text::after {
  content: '|';
  display: inline-block;
  animation: blink 0.7s infinite;
  opacity: 1;
  color: #ccc;
}

.cr {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  font-family: 'Press Start 2P', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #ccc;
  text-align: center;
}

a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}


@keyframes shake {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-4px, -4px);
  }

  50% {
    transform: translate(4px, -4px);
  }

  75% {
    transform: translate(-4px, 4px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

#typing-text.paused::after {
  opacity: 0;
  animation: none;
}

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

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

.gradient {
  --size: 500px;
  --speed: 50s;
  --easing: cubic-bezier(0.8, 0.2, 0.2, 0.8);
  position: absolute;
  width: var(--size);
  height: var(--size);
  filter: blur(calc(var(--size) / 5));
  background-image: linear-gradient(#e400ec, #3fbeff);
  animation: rotate var(--speed) var(--easing) alternate infinite;
  border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
  z-index: -1;
}

@media (min-width: 720px) {
  .gradient {
    --size: 700px;
  }
}


img {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 2px;
  left: 2px;
  transform-origin: top right;
}

.dropAndSwing {
  animation: dropAndSwing 2s ease-in-out 0s 1 forwards;
}

@keyframes dropAndSwing {
  0% {}

  15% {
    transform: rotate(-60deg);
  }

  25% {
    transform: rotate(-40deg);
  }

  35% {
    transform: rotate(-45deg) translateY(0);
  }

  60% {
    transform: translateY(0) rotate(-45deg);
  }

  100% {

    transform: translateY(120vh);
  }
}