html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The project's original WebGL Player size is 600 x 760. Preserve that ratio. */
#unity-canvas {
  display: block;
  width: min(100vw, 78.947368421dvh) !important;
  height: min(100dvh, 126.666666667vw) !important;
  max-width: 100vw;
  max-height: 100dvh;
  background: #111;
}

#unity-loading-bar {
  position: absolute;
  bottom: 8%;
  width: min(50%, 420px);
  height: 10px;
}

#unity-progress-bar-empty { width: 100%; height: 100%; background: #333; }
#unity-progress-bar-full { width: 0; height: 100%; background: #fff; }
