/* Reset */
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 100vh;
  max-width: 100vw;
  height: calc(100dvh + 60px);
}

#unity-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75vw;
  height: auto;
}

@media (min-aspect-ratio: 16/9) {
  #unity-container.unity-desktop,
  #unity-container.unity-mobile {
    height: 75dvh;
    height: calc(75dvw * 0.566);
    background-color: black;
  }

  .unity-mobile #unity-canvas {
    width: auto;
    height: inherit;
    aspect-ratio: 16/9;
  }
}

@media (max-aspect-ratio: 16/9) {
  #unity-container.unity-desktop,
  #unity-container.unity-mobile {
    width: 75dvw;
    height: calc(75dvw * 0.566);
    background-color: black;
  }

  .unity-mobile #unity-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

/* Unity canvas */
#unity-canvas {
  background: #231f20;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

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

/* Logo inside loading bar */
#unity-logo {
  width: 154px;
  height: 130px;
  background: url("unity-logo-dark.png") no-repeat center;
}

/* Progress bar */
#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;
}

/* Footer */
#unity-footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.unity-mobile #unity-footer {
  display: flex;
}

#unity-logo-title-footer {
  width: 102px;
  height: 38px;
  background: url("unity-logo-title-footer.png") no-repeat center;
}

#unity-build-title {
  margin-left: 5px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px;
}

#unity-fullscreen-button {
  cursor: pointer;
  display: flex;
  background-color: #1eaed3;
  color: white;
  border-radius: 10px;
  padding: 10px 20px;
}

/* Fullscreen button */
#unity-fullscreen-icon {
  width: 38px;
  height: 38px;
  background: url("fullscreen-button.png") no-repeat left;
}

/* Warning banner */
#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}

#rotateNotice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  pointer-events: none;
}

#rotateNotice #notice {
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  font-size: 2em;
  text-align: center;
}

#close {
  display: none;
  position: absolute;
  top: 5px;
  left: 10px;
  width: 50px;
  height: 50px;
  color: white;
  font-family: sans-serif;
  font-weight: 900;
  font-size: xx-large;
  z-index: 9999;
  cursor: pointer;
}

#compatible p {
  text-align: center;
}
