body {
  margin: 0px;
  cursor: none;
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
}

@font-face {
  font-family: font;
  src: url(../../resources/fonts/darkforest.woff2);
}



.modal {
  position: absolute;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-family: font;
  background-color: black;
  color: red;

  transition: none;
  opacity: 0;

  pointer-events: none;
}

.modal.small-text {
  font-size: min(10vh, 10vw);
}

.modal.big-text {
  font-size: min(50vh, 50vw);
}

.modal > .title-text {
  font-family: font;
  background-color: black;
  color: red;

  font-size: min(20vh, 15vw);
}

.modal > .subtitle-text {
  font-family: font;
  background-color: black;
  color: red;

  font-size: min(10vh, 10vw);
}

.modal > .subsubtitle-text {
  font-family: font;
  background-color: black;
  color: red;

  font-size: min(5vh, 3vw);
}

.modal.visible {
  opacity: 1;
}

.modal.gradual.visible {
  transition: opacity 1s;
}

.modal.instant.visible {
  transition: none;
}

.modal.gradual-in-out {
  transition: opacity 1s;
}

.modal.no-background {
  background-color: rgba(0, 0, 0, 0.1);
}

.modal.interactive.visible {
  pointer-events: all;
  cursor: pointer;
}

.modal input {
  color: red;
  background-color: black;
  border: 3px solid darkred;
  border-radius: 30px;
  text-align: center;
  font-size: 5vw;
  font-family: font;
}

.modal input:focus {
  border: 3px solid red;
  outline: none;
}



.hell-grid {
  background: black;
  cursor: auto;

  width: 100%;
  height: 100%;

  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(7, 1fr);
}

.hell-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3vw;
  cursor: default;
}

.hell-grid > div:hover {
  color: darkred;
}

.hell-grid > #no-thanks {
  font-size: 2.5vw;
  grid-row: span 2;
}


#direction-indicator {
  --x-percent: 50;
  --y-percent: 50;
  --rotation: 180deg;
  
  --indicator-margin: 8vh;
  left: calc((100vw - 2 * var(--indicator-margin)) * var(--x-percent) / 100 + var(--indicator-margin));
  top: calc((100vh - 2 * var(--indicator-margin)) * var(--y-percent) / 100 + var(--indicator-margin));
  transform: translate(-50%, -50%) rotate(var(--rotation));

  position: absolute;
  height: 8vh;
  width: auto;
}