html, body {
  margin: 0;
  height: 100%;
  background: #0b0b10;
  overflow: hidden;
  /* Touch screens: no scrolling, zooming, text selection or long-press menus. */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  touch-action: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Invisible text box for typing names and passwords (js/input.js TextEntry):
   the game draws the text itself. 16px stops phones from zooming in. */
.text-entry {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: 0;
  opacity: 0;
  font-size: 16px;
  pointer-events: none;
  -webkit-user-select: text;
  user-select: text;
}
