/*
 * Page layout: the game component fills the whole window. The splash screen, the letterboxed
 * canvas and the "rotate your device" hint belong to the game shell (ExagonGameElement) and live
 * in its Shadow DOM; the CSS variables at the bottom of this file change their colors, and
 * `::part()` selectors (for example `catch-the-trend-game::part(start)`) can style them further.
 */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #070f2b;
}

body {
  height: 100vh;  /* fallback for older browsers */
  height: 100dvh; /* excludes the toolbars of mobile browsers */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
}

#game-container {
  width: 100%;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container > * {
  --exagon-shell-bg: #070f2b;
  --exagon-shell-fg: #eef4ff;
  --exagon-shell-accent: #3dff8f;
  --exagon-shell-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Custom styling for exagon-alert in the neon theme of Catch the Trend */
exagon-alert {
  --alert-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --alert-overlay-bg: rgba(4, 10, 32, 0.78);
  --alert-bg: linear-gradient(180deg, rgba(20, 38, 92, 0.98), rgba(8, 16, 46, 0.98));
  --alert-border-color: #29d3ff;
  --alert-shadow-color: rgba(41, 211, 255, 0.45);
  --alert-radius: 24px;
  --alert-title-color: #29d3ff;
  --alert-message-color: #93a4c8;
  --alert-text-color: #eef4ff;
  --alert-cancel-bg: rgba(60, 60, 140, 0.65);
  --alert-cancel-border: rgba(150, 150, 255, 0.45);
  --alert-cancel-text: #c7d0ff;
  --alert-confirm-bg: linear-gradient(180deg, #ff6b85, #d90429);
  --alert-confirm-border: #ff4d6d;
  --alert-confirm-text: #ffffff;
  --alert-confirm-glow: rgba(255, 77, 109, 0.6);
}

