html, body {
  padding: 0;
  margin: 0;
  background-color: #001f3f;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

#unity-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#unity-canvas {
  background: #1a1a1a;
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  text-align: center;
  color: white;
  background-color: #001f3f;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

#unity-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 10px auto;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}

#unity-logo img#unity-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

#unity-game-name {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 10px;
  text-align: center;
}

#unity-company-name {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
  text-align: center;
}

#unity-progress-bar-empty {
  margin: 0 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;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
  z-index: 9999;
  color: black;
}

#custom-loading-spinner {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 6px solid rgba(0, 174, 239, 0.2);
  border-top: 6px solid #00aeef;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-text {
  color: #fff;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
