/* Extracted styles from index.html */
/* Universal font stack with Twemoji support - matches mobile UI */
* {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 
               'Helvetica Neue', Arial, sans-serif, 
               'Apple Color Emoji', 'Segoe UI Emoji', 'EmojiOne Mozilla';
}

/* Material Icons - use bundled font (critical for web). Use exact family name 'Material Icons' */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/MaterialIcons-Regular.otf') format('opentype');
}

/* Also link Google's Material Icons as backup (woff2 preferred) */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/materialicons/v142/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2') format('woff2');
}

/* Alias for compatibility: some toolchains reference 'MaterialIcons' without space */
@font-face {
  font-family: 'MaterialIcons';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/MaterialIcons-Regular.otf') format('opentype');
}

/* Remove NotoColorEmoji runtime font-face: color emoji fonts are platform-dependent
   and may not load correctly via FontFace across browsers. Rely on system emoji
   or include a Twemoji fallback if consistent emoji appearance is required. */

/* Twemoji emoji alignment - consistent with mobile */
.emoji-font {
  font-family: 'Twemoji Mozilla', 'Apple Color Emoji', 'Segoe UI Emoji', 
               'EmojiOne Mozilla', sans-serif;
}

/* Ensure emoji render at correct size and alignment */
img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
}

/* Loading animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #2E7D32, #81C784);
  color: white;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid white;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* Splash icon styling to ensure consistent shape and size */
#splash-icon {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: transparent;
  padding: 8px; /* keep a small inset so icon looks balanced inside the circle */
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* On-page bootstrap error box for debugging Flutter boot failures */
#boot-error {
  display: none;
  max-width: 720px;
  margin: 16px auto 0;
  padding: 12px 16px;
  background: rgba(255, 69, 58, 0.06);
  color: #b00020;
  border: 1px solid rgba(176,0,32,0.12);
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
  text-align: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Force Material Icons to load properly */
body {
  margin: 0;
  padding: 0;
}

/* Ensure Material Icons render in Flutter web */
.material-icons,
[class*="material-icon"],
i.material-icons,
[style*="font-family: MaterialIcons"],
[style*="font-family: 'MaterialIcons'"],
[style*="font-family: Material\sIcons"],
[style*="font-family: 'Material Icons'"] {
  font-family: 'Material Icons', 'MaterialIcons' !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Universal icon fix for Flutter web */
* {
  font-feature-settings: 'liga' 1;
}
