/**
 * Styles for Brayden Gourlay's Drone Hunt game.
 */

html, body, canvas {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* --- Loading and menu screens --- */
#loading-screen,
#menu-screen {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--modal-bg);
  color: var(--label-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

/* ---------- Loading Screen ---------- */
#loading-screen {
  gap: 1.25rem;
}

#progress-bar {
  width: min(320px, 70vw);
  height: 8px;
  background: #7f7f7f;
  border-radius: 999px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: #7c5cff;
  border-radius: 999px;
  transition: width 0.15s ease;
}

#progress-text {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* ---------- Menu Screen ---------- */
#menu-screen {
  display: none;
  gap: 3.5rem;
  padding: 2rem;
}

.menu-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  width: 100%;
}

.menu-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--modal-text);
}

.menu-controls {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.78;
  margin: 0 0 1.75rem;
  font-weight: 400;
}

/* Buttons - match portal style */
#menu-screen button {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  background: #7c5cff;
  color: #fff;
  transition: background 0.2s ease, transform 0.15s ease;
  min-width: 180px;
}

#menu-screen button:hover {
  background: #6a4aef;
  transform: translateY(-1px);
}

#menu-screen button:active {
  transform: translateY(0);
}

/* Subtle divider between the two modes */
.menu-section + .menu-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 3.5rem;
}

/* --------- Responsiveness --------- */
@media (max-width: 600px) {
  #menu-screen {
    gap: 2.5rem;
    padding: 1.5rem;
  }

  .menu-section + .menu-section {
    padding-top: 2.5rem;
  }

  .menu-controls {
    font-size: 0.9rem;
  }
}




#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: none;
}

.crosshair-row {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;

    display: flex;
    justify-content: space-between;
    column-gap: 6px;
}

.crosshair-row.left-to-right {
    transform: translate(-50%, -50%) rotate(45deg);
}

.crosshair-row.right-to-left {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#crosshair .line {
    flex: 1;
    height: 100%;
    background: #00ff00;
}