/* Minimal Autonomous WebGL Graphics Stylesheet */

:root {
  --accent-color: #00f0ff;
  --text-main: #f0f2f5;
  --text-muted: #8c92a6;
  --font-title: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: transparent !important;
  touch-action: none; /* Prevent browser touch panning and double-tap zoom */
}

/* Fullscreen WebGL Canvas */
#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
  outline: none;
  touch-action: none; /* Prevent default touch behavior on canvas */
}

/* Minimal Loader Overlay */
#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050508;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loader-content {
  text-align: center;
  width: 280px;
}

.loader-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.progress-bar-container {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  transition: width 0.1s linear;
}

#progress-bar.loading-pulse {
  animation: barPulse 1.5s infinite ease-in-out;
}

@keyframes barPulse {
  0% { opacity: 0.6; filter: brightness(0.9); }
  50% { opacity: 1.0; filter: brightness(1.3); }
  100% { opacity: 0.6; filter: brightness(0.9); }
}

#loader-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* UI Interactive Overlay Styles */
#ui-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Let clicks pass through to canvas when overlay is not clicked */
  z-index: 10;
}

#rotate-overlay {
  position: absolute;
  display: flex;
  gap: 12px;
  transform: translate(-50%, -120%); /* Center horizontally and sit above the target point */
  pointer-events: auto; /* Enable clicks on the buttons */
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: transform, opacity;
}

#rotate-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%) scale(0.85);
}

#rotate-overlay button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(25, 25, 25, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

#rotate-overlay button:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #00f0ff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4), 
              0 4px 12px rgba(0, 0, 0, 0.4);
}

#rotate-overlay button:active {
  transform: scale(0.95);
}

