/* OpenPirates Web - Viewport Reset and Caribbean HUD Overlay */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0d1b2a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

#ui-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none; /* Allows mouse/touch navigation to pass to Three.js canvas */
}

.hud-panel {
  pointer-events: auto;
  position: absolute;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 18px;
  color: #e0e1dd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.title-panel {
  top: 16px;
  left: 16px;
}

.title-panel h1 {
  font-size: 1.25rem;
  color: #ffb703;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.title-panel p {
  font-size: 0.85rem;
  color: #a0aec0;
}

.controls-panel {
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.controls-panel button {
  background: #1b263b;
  color: #e0e1dd;
  border: 1px solid #415a77;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.controls-panel button:hover {
  background: #0077b6;
  border-color: #90e0ef;
  color: #ffffff;
}

.controls-panel button:active {
  transform: translateY(1px);
}
