/* The top page: one canvas that fills the window. In a file of its own because the CSP allows no inline styles. */
:root {
  --ground: #141517;   /* the same colour as BACKGROUND in config.js */
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ground);
  overscroll-behavior: none;
}

canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pinch-zoom;                /* one finger moves the time, two still zoom */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;             /* a long press is only a press */
  -webkit-user-select: none;
  user-select: none;
}

/* A word is showing: the material under the pointer can be entered. */
.on canvas {
  cursor: pointer;
}

/* Without WebGL: the still. */
.still canvas {
  display: none;
}

.still body {
  background: var(--ground) url(/stills/fallback.png) center / min(100vh, 131.818vw) no-repeat;
}
