/* ===============================
   General text styling
================================= */

p, a {
  transition: color .75s;
}

.clear-text {
  color: #00000000 !important;
}

p {
  font-family: "Courier New", Courier, monospace;
  user-select: none !important;
  margin: 16px 0px;
  font-size: 1rem;
}

#title, #credit-line {
  font-family: 'Atkinson Hyperlegible Mono';
}

span {
  color: white;
}

a {
  color: #f8c8dc;
  text-decoration: none;
}

a:hover {
  color: rgb(255, 20, 20);
  text-decoration: underline;
}

/* ===============================
   Buttons & options
================================= */

.button {
  border: 1px solid white;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.button:hover {
  backdrop-filter: invert(0.1);
  -webkit-backdrop-filter: invert(0.1);
}

.toggled {
  background: rgba(255, 0, 0, 0.35);
  color: white !important;
}

.option:hover {
  color: white;
  cursor: pointer;
  text-decoration: underline;
}

.option, p > span {
  margin: 0px;
}

.explored {
  color: rgb(179, 179, 179);
}

/* ===============================
   Page architecture
================================= */

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: black;
}

#canvas-container {
  position: relative;
  width: 100%;
  height: 100dvh;
  cursor: crosshair;
  touch-action: none;
}

/* ===============================
   Overlays
================================= */

#board-display {
  position: absolute;
  top: 0;
  left: 40px;
  z-index: 10;
  min-width: 35ch;
  color: white;
  user-select: none;
}

#title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -110%);
  z-index: 10;
  font-size: 4rem;
  font-style: italic;
  text-align: center;
  color: white;
}

#button-container {
  position: absolute;
  top: 0;
  right: 40px;
  z-index: 10;
  width: 200px;
  color: white;
  user-select: none;
}

.button-pair {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 12px;
}

.button-pair > * {
  flex-grow: 1;
  text-align: center;
  margin-bottom: 0;
}

#node-label {
  line-height: 1.6rem;
}

#options-container {
  position: absolute;
  bottom: 0;
  left: 40px;
  padding: 12px;
  z-index: 10;
  color: white;
  user-select: none;
}

#credit-line {
  position: absolute;
  bottom: 0;
  right: 40px;
  padding: 12px;
  color: white;
}

/* ===============================
   Mobile layout
================================= */

@media screen and (max-width: 768px) {
  #node-label, #options-container, #button-container {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  #board-display, #credit-line {
    left: 50%;
    transform: translate(-50%, 0%);
  }
}

@media screen and (max-width: 768px) {
  #credit-line {
    min-width: 85vw;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  #title {
    transform: translate(-50%, 20%);
  }
}

@media screen and (max-width: 768px) {
  #board-display {
    font-size: .9rem;
    min-width: 36ch;
  }
}

/* ===============================
   Range slider reset & styling
================================= */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]:focus {
  outline: none;
}

/* Track */

input[type="range"]::-webkit-slider-runnable-track {
  height: 0.2rem;
  background-color: #ffffff;
  border-radius: 0;
}

/* Thumb */

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6.4px;
  width: 1rem;
  height: 1rem;
  background-color: rgb(240, 0, 0);
  border-radius: 0.5rem;
}

