/* DOS text-mode palette: black, dark grey, light grey, white. */
:root {
  --black: #000000;
  --dark-grey: #555555;
  --light-grey: #aaaaaa;
  --white: #ffffff;
  --link-hover: #529dff; /* from the ripple's rainbow palette (hue 214, sky blue) */
  --mono: "Cascadia Mono", Consolas, "Lucida Console", Menlo, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--black);
  color: var(--light-grey);
  font-family: var(--mono);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main { flex: 1; }

#water {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.fallback {
  margin: 30vh auto 0;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(5px, 1.2vw, 14px);
  line-height: 1;
}

footer {
  position: relative; /* above the canvas */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  padding: 1.25rem 1rem 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

footer a {
  color: var(--light-grey);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
