body { padding: 0; margin: 0 }
#unity-container { position: absolute; width: 100%; height: 100%; }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #121212 } /* modern dark background */
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-footer { display: none } /* hide footer entirely */
#unity-webgl-logo, #unity-build-title { display: none !important } /* hide logos */
#unity-fullscreen-button { display: none !important }

/* Custom Logo */
#custom-logo {
  background: url('TemplateData/logo.png') center / contain no-repeat;
  width: 280px;
  height: 280px;
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
}

/* Loader */
#custom-loader {
    width: 70%;
    height: 40px;
    background: black;
    margin: auto;
    position: absolute;
    left: 50%;
    top: 60%; /* a bit lower than center */
    transform: translate(-50%, -50%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 0px 12px rgba(0,0,0,0.6);
}

#custom-loader .fill {
  width: 0%; height: 100%;
  background: white;
  transition: width 0.4s ease-in-out; /* Will be overridden later */
  will-change: width; /* Helps performance during animation */
}

#custom-loader .label {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

/* Loading text under bar */
#loading-text {
    position: absolute;
    left: 50%;
    top: 68%; /* below the loader */
    transform: translateX(-50%);
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #ccc;
}
#unity-canvas {
  width: 100%; height: 100%;
  background: #121212;
  display: none; /* Start hidden */
}
