/* FixedFullHD WebGL template styles.
   The Unity canvas is always created at a fixed internal resolution of 1920x1080.
   This stylesheet only handles centering it inside the browser viewport with
   letterbox (black bars) when the viewport aspect ratio is not 16:9.
   No rule here ever stretches, crops, or reflows the canvas based on window size. */

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

#unity-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#unity-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#unity-canvas {
  /* Internal render resolution is fixed at 1920x1080 via the width/height
     attributes on the <canvas> element in index.html - never touched here.
     The layout box itself is also clamped to a 16:9 aspect ratio (not just
     relying on object-fit), so clientWidth/clientHeight stay 16:9 even if
     something ever reads them - object-fit: contain is kept as a second
     line of defense on top of that. */
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  background: #000000;
  display: block;
  object-fit: contain;
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#unity-canvas:focus,
#unity-canvas:focus-visible {
  outline: none;
  border: none;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: transparent;
  margin: 0 auto 10px auto;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin: 10px auto 0 auto;
  background: #111;
  border: 1px solid #555;
}

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

#unity-footer {
  display: none;
}
