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

/* The viewport, with the canvas centred in it and letterboxed. */
#unity-container { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center }
#unity-container.unity-desktop { left: 0; top: 0; transform: none }
#unity-container.unity-mobile { width: 100%; height: 100% }

/* The player keeps its aspect ratio and takes whichever of the two axes runs out first. */
#unity-canvas {
  background: #807E79;
  display: block;
  width: min(100vw, calc(100dvh * 768 / 1024));
  height: min(100dvh, calc(100vw * 1024 / 768))
}
.unity-mobile #unity-canvas { width: 100%; height: 100% }

#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }

/* Out of the layout, so the footer never adds height the page would have to scroll. */
#unity-footer { position: fixed; right: 0; bottom: 0; height: 38px; display: flex; align-items: center; opacity: 0.6 }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { display: none }
#unity-build-title { display: none }
#unity-fullscreen-button { cursor: pointer; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
