@font-face {
  font-family: 'Roboto Condensed';
  src: url(fc3d2f2e3a203d0037c1.ttf);
  font-weight: normal;
}


* {
  margin: 0;
  padding: 0;
}

#credits-link {
  position: fixed;
  z-index: 11;
  bottom: 3vh;
  right: 3vh;
  font-size: 1.3vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
}

#credits-popup {
  display: none;
  position: fixed;
  justify-content: start !important;
  align-items: start !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  background-color: white;
  border: 1px solid #888;
  text-align: start;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 11;
}

#credits-link a {
  text-decoration: underline;
  color: white;
}

#author {
  color: white;
}

#author a {
  color: #1DBF73;
  text-decoration: none;
  font-weight: 900;
}

#credits-content {
  padding: 20px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}

:root {
  --blur-amount: 10px;
}

*, html {
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

body {
  font-family: 'Roboto Condensed';
  overflow: hidden;

}

canvas {
  overflow: hidden;
  position: absolute;
  top: 0;
  touch-action: none !important;
  -ms-touch-action: none !important;
  left: 0;
  z-index: 10;
}

#preloader {
  width: 100vw;
  height: 100vh;
  z-index: 12;
  position: absolute;
  background-color: #040404;
  display: flex;
  flex-direction: column;
  color: white;
  justify-content: center;
  align-items: center;
  animation: opacity 1s ease-out;
  transition: opacity 1s ease-in-out;
  cursor: default;

}

#enter-screen {
  transition: opacity 2s ease-in;
  opacity: 0;
  position: absolute;
  display: flex;
  justify-content: center;
  font-size: 2vh;
  padding: 0px 20px;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

#enter {
  margin-top: 1em;
  border-radius: 5px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 10px;
  font-size: 2vh;

  pointer-events: all;
  cursor: pointer;
}

.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  padding-top: 20px;
  transition: opacity 1s ease-in;
}

.lds-ripple div {
  position: absolute;

  border: 4px solid #fff;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }

  4.9% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }

  5% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

#info-box {
  margin: 3vh;
  position: fixed;
  bottom: 10px;
  left: 10px;
  background-color: #00000049;
  text-shadow: 0px 0px 2px black;
  color: white;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  z-index: 11;
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  font-size: 1.5vh;
}


/* CSS */
#tooltip {
  position: absolute;
  background-color: #00000049;
  text-shadow: 0px 0px 2px black;
  color: white;
  border: 1px solid #ccc;
  padding: 10px;
  font-family: 'Roboto Condensed';
  font-size: 1.5vh;
  border-radius: 5px;
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));

  z-index: 1000;
  max-width: 30vw;
  pointer-events: none;

}

@media screen and (max-width: 1024px) {
  #tooltip {
    max-width: 50vw !important;
    max-height: 50vh;
    overflow: scroll;
    pointer-events: all !important;
  }
}

.hidden {
  opacity: 0;
  transition: none;
}
