/* =========================
   FONT
   ========================= */

@font-face {
  font-family: "WalterTurncoat";
  src: url("WalterTurncoat-Regular.ttf") format("truetype");
}

/* =========================
   RESET
   ========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.index #stage {
  background-image: url("index.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  width: 100%;
  background: #000;
  color: #fff;
  font-family: "WalterTurncoat", monospace;
  overflow: hidden;
}

/* =========================
   VIEWPORT + STAGE
   ========================= */

#viewport {
  position: fixed;
  inset: 0;
  display : flex;
  align-items: center;
  justify-content: center;
  background: black;
}

#stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  container-type: size;
}

/* =========================
   QUERY OVERLAYS
   ========================= */

#herein,
#query {
  position: absolute;
  left: 47%;
  transform: translateX(-50%);
  width: 50%;
  font-size: 3cqh;
  text-align: left;
  line-height: 1.1;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#herein {
  top: 46.3%;

  background: transparent !important;
  background-color: transparent !important;

  border: none;
  outline: none;
  box-shadow: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-family: "WalterTurncoat", monospace;
  caret-color: white;
}

#query {
  top: 61.5%;
  left: 51%;
  white-space: pre-wrap;
  pointer-events: none;
}

input {
  font-size: inherit;
}

/* =========================
   UX
   ========================= */

::selection {
  background: #444;
  color: #fff;
}