* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #282828;
}

#unity-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #282828;
}

#unity-fullscreen-button {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 15;
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  cursor: pointer;
  background: url("fullscreen-button.png") center / contain no-repeat;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

#unity-fullscreen-button:hover {
  opacity: 1;
}

#unity-loading-bar {
  position: absolute;
  inset: 0;
  display: none;
  background: #282828;
  z-index: 10;
}

#unity-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(320px, 60vw);
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

#unity-progress-bar-empty {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  width: auto;
  height: 18px;
  background: #00617f;
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: #00aee5;
  transition: width 0.15s ease-out;
}

#unity-progress-text {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  font-family: arial, sans-serif;
  font-size: 13px;
  color: #00aee5;
  min-height: 1em;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  background: white;
  padding: 10px;
  display: none;
  z-index: 20;
}
