body {
  margin: 0;
  padding: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  background-size: cover;
  font-family: "Myriad Pro", Myriad, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#unity-container {
  padding: 0;
  position: absolute;
  height: 100vh;
  width: 100vw;
  background-color: #121214;
}

#unity-container.unity-desktop {
  height: 100%;
  width: 100%;
}

#unity-canvas {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #121214;
}

#unity-fullscreen-button {
  height: 32px;
  width: 32px;
  position: absolute;
  z-index: 1;
  bottom: 0px;
  right: 0px;
  background-color: transparent;
  background-image: url("fullscreen-button-out.png");
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  opacity: 0.333;
  padding: 24px;
}

#unity-fullscreen-button:hover {
  opacity: 1.0;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#unity-progress-bar-empty {
  width: 256px;
  height: 20px;
  background: url('progress-bar-empty.png') no-repeat left;
}

#unity-progress-bar-full {
  width: 0%;
  height: 20px;
  background: url('progress-bar-full.png') no-repeat left;
}

#unity-container.unity-mobile {
  width: 100%;
  height: 100%;
}

.unity-mobile #unity-footer {
  display: none;
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
}

/* ✅ Custom Splash Screen Styles */
#custom-splash {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: #121214;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

#custom-splash img {
  max-width: 30%;
  max-height: 30%;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out;
}

#custom-splash p {
  color: #ffffff;
  font-family: sans-serif;
  font-size: 1.2rem;
  margin: 0;
  margin-top: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ✅ Slider + Percentage */
.slider-container {
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}

.slider-bar {
  flex: 1;
  height: 24px;
  background-color: #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px #00000088;
}

.slider-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4CAF50, #00BCD4);
  border-radius: 12px 0 0 12px;
  transition: width 0.2s ease-out;
}

#custom-slider-percent {
  color: #ffffff;
  font-size: 1rem;
  width: 40px;
  text-align: right;
}

/* ✅ Fade-out animation */
#custom-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}
