html, body {
  width: 100%;
  height: 100%;
  font-size: 16px;
}
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f7f7;
  transition: all 300ms ease-in-out;
  transition-property: background-color;
  user-select: none;
}

canvas {
  max-width: 96%;
  max-height: 96%;
  width: auto !important;
  height: auto !important;
  /* height: 100% !important; */
  object-fit: contain;
  border-radius: 0.1vw;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, 
    rgba(0, 0, 0, 0.07) -1px 2px 2px, 
    rgba(0, 0, 0, 0.07) -2px 4px 4px, 
    rgba(0, 0, 0, 0.07) -4px 8px 8px, 
    rgba(0, 0, 0, 0.07) -8px 16px 16px
    /* rgba(0, 0, 0, 0.07) -16px 32px 32px */
  ;
  transition: box-shadow ease-out 0.2s;
  touch-action: manipulation; /* disable double tap to zoom */
}

body.init canvas {
  box-shadow: none;
}

body.raw canvas, *:fullscreen canvas {
  box-shadow: none;
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 1024px) {
  body canvas {
    box-shadow: none;
    max-width: 100%;
    max-height: 100%;
  }
}

#message {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  position: absolute;
  bottom: 2em;
  left: 50%;
  transform:  translate(-50%, -50%);
  transform-origin: center center;
  font-size: 16px;
  letter-spacing: 0.1em;
  z-index: -1;
  font-weight: bold;
  color: #222;
  padding: 0.3em 2.5em;
  background-color: rgba(255, 255, 255, 0.4);
  text-align: center;
  z-index: 2;
  pointer-events: none;
  border-radius: 0.1em;
  transition: all 0.15s ease-out;
  transition-property: opacity, transform;
}
#message.hide {
  opacity: 0;
}
#message i {
  display: block;
  font-size: 80%;
}