/* Reset margin and padding for body */
body {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: start;
  background-color: #231f20;
  justify-content: center;
  overflow: hidden;
  margin: 0px !important;
}

/* Make the Unity container responsive */
#unity-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 15px;
  border: solid 4px #02683a;
}

/* Canvas adjustments to ensure aspect ratio for both mobile and desktop */
#unity-canvas {
  width: 100%;
  height: 100%;
  background: #231f20;
  object-fit: cover; /* This ensures the aspect ratio is preserved */
}

/* Mobile View */
@media (max-width: 768px) {
  #unity-container {
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
  }

  #unity-canvas {
    width: 100%;
    height: 100%;
    background: #231f20;
    object-fit: cover;
  }
}

/* Desktop View (adjust aspect ratio for game) */
@media (min-width: 769px) {
  #unity-container {
    max-width: 375px; /* Maximum width for the game */
    max-height: 667px; /* Maximum height for the game */
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto; /* Center the game on the screen */
  }

  #unity-canvas {
    width: 100%;
    height: 100%;
    background: #231f20;
    object-fit: contain; /* Maintain aspect ratio */
  }
}

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

/* Progress bar styling */
#unity-progress-bar-empty {
  margin-left: auto;
  margin-right: auto;
  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;
  margin-top: 10px;
  background: url("progress-bar-full-dark.png") no-repeat center;
}

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