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

body {
  touch-action: none;
}

#unity-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7ecd5;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
}

#unity-canvas {
  aspect-ratio: 9 / 16;
  max-width: 100%;
  max-height: 100%;
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  display: block;
  background: #231F20;
  outline: none;
}

#unity-loading-bar {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: 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;
  background: url("progress-bar-empty-dark.png") no-repeat center;
}

#unity-progress-bar-full {
  width: 0;
  height: 18px;
  background: url("progress-bar-full-dark.png") no-repeat center;
}

#unity-warning {
  position: absolute;
  top: 5%;
  left: 50%;
  z-index: 20;
  display: none;
  width: min(90%, 720px);
  transform: translateX(-50%);
  font: 14px/1.4 Arial, sans-serif;
  text-align: center;
}

#unity-warning > div {
  margin-bottom: 4px;
  padding: 10px;
}

#unity-warning .warning {
  background: #fff3a6;
}

#unity-warning .error {
  color: #fff;
  background: #b00020;
}
