/*
 * 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 `trick-or-tap-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: #120521;
}

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;
}

/* Shell theme (the Halloween palette of ui/theme.js): background, text, accent color of the Start button, splash font */
#game-container > * {
  --exagon-shell-bg: #120521;
  --exagon-shell-fg: #ffffff;
  --exagon-shell-accent: #ff8c00;
  --exagon-shell-font: "Arial Black", "Arial Rounded MT Bold", system-ui, sans-serif;
}
