/* Shared page styles for every game prototype. */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #2b2d42;
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
}

#game {
  width: 100%;
  height: 100%;
}

#game canvas {
  display: block;
  border-radius: 6px;
}

/* Phones held upright: the games are landscape (16:9), so ask for a turn
   instead of showing a tiny game. Tablets and desktops are not affected. */
@media (orientation: portrait) and (max-width: 820px) and (pointer: coarse) {
  body::after {
    content: "\21BB  Turn your phone sideways to play";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    font: 800 26px/1.4 "Nunito", "Trebuchet MS", sans-serif;
    color: #ffffff;
    background: #2b2d42;
    z-index: 10;
  }
}
