html {
  height: 100%;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

body {
  padding-top: constant(safe-area-inset-top);
  padding-right: constant(safe-area-inset-right);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-left: constant(safe-area-inset-left);

  background-color: black;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#unity-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url("/TemplateData/assets/loading_screen_background.png");
  background-size: cover;
  background-position: center;
}

#unity-canvas {
  width: 100%;
  height: 100%;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  display: none;
  z-index: 20;
  top: 90%;
  transform: translate(-50%, -50%);
}
#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  background: url("/TemplateData/progress-bar-empty-dark.png") no-repeat center;
}
#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url("/TemplateData/progress-bar-full-dark.png") no-repeat center;
}

div[style*="position: fixed"][style*="bottom: 0px"] {
  z-index: 1;
}

/* @media (min-width: 426px) {
  #unity-container {
    width: 425px;
  }
} */

@media (min-width: 1201px) {
  #unity-container {
    width: calc(9 * 100vh / 16);
    max-width: 1200px;
  }
}

@media (min-width: 426px) and (max-width: 1200px) {
  #unity-container {
    width: calc(9 * 100dvh / 16);
    height: 100dvh;
    max-width: 100vw;
  }
}

@media (max-width: 425px) {
  #unity-container {
    width: 425px;
  }
}
