html,
body {
  padding: 0;
  margin: 0;
}

body {
  background-color: #eceffc;
  color: #111;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode {
  background-color: #eceffc;
  color: #111;
}

body.dark-mode {
  background-color: #050505;
  color: #f5f5f5;
}

body.dark-mode #ascii {
  filter: invert(1) hue-rotate(180deg);
}

body.light-mode #ascii {
  filter: none;
}

#ascii {
  transition: filter 0.4s ease;
}

#debug-image canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--width) * 5.41px);
  height: calc(var(--height) * 10px);
  z-index: -1;
}

#debug-chars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-row-gap: 1px;
  width: 63px;
}

@media screen and (max-width: 800px) {
  .dg {
    display: none;
  }
}
