@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: block;
}

html, body {
  margin: 0;
  height: 100%;
  background: #2a1b33;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  /* the room runs under a side camera cut-out (main.js keeps the play area and buttons clear of it); top and
     bottom cut-outs are kept clear here */
  box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

#safe-probe {
  position: fixed;
  visibility: hidden;
  pointer-events: none;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

canvas {
  display: block;
  touch-action: none;
  cursor: pointer;
}

#rotate {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: #2a1b33;
  color: #ffd23f;
  font: 700 26px "Fredoka", "Trebuchet MS", sans-serif;
}

@media (orientation: portrait) and (max-width: 760px) {
  #rotate { display: flex; }
}
