/*
 * Page-level CSS for the web build. Everything inside the app is styled by
 * react-native-web; this only sets up the page it runs in.
 */

html,
body {
  height: 100%;
  margin: 0;
  /* The app's dark background, so nothing flashes white before React paints. */
  background: #0a0e17;
}

html {
  /* No pull-to-refresh and no rubber-band bounce: on a phone a downward drag
     near the top of the page would otherwise reload the site mid-rotation. */
  overscroll-behavior: none;
  /* Pinch-zoom stays available on text; only the double-tap-to-zoom delay goes. */
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /* The app scrolls inside its own ScrollViews, never the page itself. */
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

#root {
  display: flex;
  flex: 1;
  /* dvh, not vh: on iOS Safari 100vh is the height with the toolbars hidden, so
     the bottom of the app sat under the toolbar. 100% is the fallback for
     browsers without dynamic viewport units. */
  height: 100%;
  height: 100dvh;
}

/* Static splash shown until the JavaScript arrives — see index.html. */
.boot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #0a0e17 0%, #0f1524 50%, #0a0e17 100%);
}

.boot-atom {
  fill: #22d3ee;
  margin-bottom: 24px;
  animation: boot-spin 2.4s linear infinite;
}

.boot-wordmark {
  margin: 0;
  color: #e8edf6;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
}

.boot-tagline {
  margin: 8px 0 0;
  color: #8b96ae;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-atom {
    animation: none;
  }
}

.noscript {
  margin: 0;
  padding: 24px;
  color: #e8edf6;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
