* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #050508;
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* UI Overlay Container */
.ui-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%); /* Centers the container perfectly */
  z-index: 2;
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 32px;
  border-radius: 30px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  white-space: nowrap; /* Prevents text from wrapping awkwardly on smaller screens */
}

.ui-container h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ui-container p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Loading Overlay */
#loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050508;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

#loading-screen p {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}