:root {
  color-scheme: light dark;
}

html {
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: #4f98ff;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  html, body {
    background: #232323;
  }
}

#unity-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  background: #4f98ff;
  display: block;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* #unity-canvas {
  width: 100%;
  height: 100%;
  height: auto;
  max-height: 100vh;
  max-width: calc(100vh * (9/16));
  background: #4f98ff;
  display: block;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
} */

@media (prefers-color-scheme: dark) {
  #unity-canvas {
    background: #232323;
    
    background-image: url('background.png'); /* Replace 'your-image.png' with the path to your image */
    background-size: cover; /* Adjust as needed: cover, contain, auto */
    background-repeat: no-repeat; /* Adjust as needed: repeat, no-repeat, repeat-x, repeat-y */
  }
}

#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  height: 100%;
  color: white;
}

#loader img {
  position: absolute;
  
  width: 100vw;
  top: 3vh;
  left: 50%;
  transform: translateX(-50%);

  margin-bottom: 12px;
  -webkit-user-drag: none;
}

#loading-text {
  position: absolute;
  bottom: 15vh;
  left: 50%;
  transform: translateX(-50%);

  font-family: 'Rubik';
  font-style: italic;
  font-weight: 800;
  font-size: 35px;
  line-height: 140%;

  color: transparent;
  background: linear-gradient(180deg, #27EBFC 14.63%, #FFFFFF 100%), #FFFFFF;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 2px #084899;
}

#progress-bar {
  width: 75vw;
  height: 37px;
  overflow: hidden;
  margin: 0 auto;

  left: calc((100vw - 75vw)/2);
  position: absolute;
  bottom: 10vh;

  background: #001A44;
  border: 3px solid #084899;
  box-shadow: 0px 2px 0px #033574, 0px 7px 0px rgba(0, 0, 0, 0.11);
  border-radius: 27px;
}

#progress-bar-fill {
  width: 0%;
  height: 100%;
  transition: width 0.3s ease;

  background: linear-gradient(180deg, #2BF2FF 0%, #04A4E0 100%), linear-gradient(0deg, #85F5F0 21.72%, #D3FCFA 89.19%);
  box-shadow: inset 0px -4px 0px rgba(43, 242, 255, 0.25);
}

#error-message {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 20px;
  font-size: 16px;
  border-radius: 8px;
  z-index: 10000;
  display: none;
  text-align: center;
  max-width: 80%;
}

#reload-button {
  display: none;
  margin-top: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #4f98ff;
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
