
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400&display=swap");
:root {
  --x: 50%;
  --y: 50%;
  --size: 35vmin;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  background-color: black;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  overflow: hidden;
}

body {
  position: relative;
  width: 100%;
  height: 100vh;
  font-family: "Lexend", serif;
  text-align: center;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(2, 2, 2);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 3s;
}

#overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#overlay a {
  font-family: 'Minecraftia', sans-serif;
  color: #ffffff;
  font-size: 1.10em;
  font-weight: bold;
  cursor: pointer;

  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ffffff, 0 0 40px #ffffff, 0 0 50px #ffffff;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ffffff, 0 0 40px #ffffff, 0 0 50px #ffffff, 0 0 60px #ffffff;
  }
}


main {
  font-family: 'Minecraftia', sans-serif;
  color: white;
  position: relative;
}
h1 {
  font-size: clamp(25px, 8vw, 50px);
}

h1:hover {
  cursor: pointer;
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}
@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ffffff, 0 0 40px #ffffff, 0 0 50px #ffffff, 0 0 60px #ffffff,;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ffffff, 0 0 40px #ffffff, 0 0 50px #ffffff, 0 0 60px #ffffff, 0 0 70px #ffffff;
  }
}
p {
  font-size: larger;
  color: white;
}
p:hover {
  font-size: larger;
  color: white;
  cursor: pointer;
}

#flashlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  isolation: isolate;
  pointer-events: none;
}
#bg,
#bg_mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url(https://i.pinimg.com/originals/5b/c9/0d/5bc90df4771a9b3131578826d61ac927.gif)
    no-repeat center / cover;
  pointer-events: none;
}
#bg {
  filter: brightness(0.5);
}
#bg_mask {
  --light: 1;
  -webkit-mask-image: radial-gradient(
    circle var(--size) at var(--x) var(--y),
    black,
    rgba(0, 0, 0, 0)
  );
          mask-image: radial-gradient(
    circle var(--size) at var(--x) var(--y),
    black,
    rgba(0, 0, 0, 0)
  );
  filter: brightness(var(--light));
  -webkit-animation: flash 1.5s ease-in-out infinite;
          animation: flash 1.5s ease-in-out infinite;
  mix-blend-mode: overlay;
}
@-webkit-keyframes flash {
  from {
    --light: 15;
  }
  to {
    --light: 15;
  }
}
@keyframes flash {
  from {
    --light: 15;
  }
  to {
    --light: 15;
  }
}
.loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}