/* Import a fun, rounded font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;900&display=swap');

/* Design System Variables - VIBRANT THEME 2.0 */
:root {
  /* Base Colors */
  --background: 210 40% 98%;
  --foreground: 220 25% 25%;
  --card: 0 0% 100%;
  --card-foreground: 220 25% 25%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 25% 25%;
  --border: 220 15% 88%;
  --input: 220 15% 88%;
  --ring: 214 89% 52%;

  /* --- SECTION THEME SYSTEM --- */
  /* This is the key to making each section feel unique */
  
  /* Lessons Theme (Blue - Knowledge, Trust) */
  --lessons-primary: 214 89% 52%;
  --lessons-gradient: linear-gradient(45deg, hsl(214, 89%, 52%), hsl(198, 93%, 60%));

  /* Quizzes Theme (Purple - Wisdom, Challenge) */
  --quizzes-primary: 258 85% 66%;
  --quizzes-gradient: linear-gradient(45deg, hsl(258, 85%, 66%), hsl(318, 81%, 59%));

  /* Games Theme (Orange - Fun, Energy) */
  --games-primary: 38 96% 54%;
  --games-gradient: linear-gradient(45deg, hsl(38, 96%, 54%), hsl(48, 96%, 53%));

  /* Applications Theme (Green - Growth, Practicality) */
  --apps-primary: 142 71% 45%;
  --apps-gradient: linear-gradient(45deg, hsl(142, 71%, 45%), hsl(152, 60%, 50%));

  /* General Action Colors */
  --primary: var(--lessons-primary); /* Default to lessons blue */
  --primary-foreground: 0 0% 100%;
  --accent: var(--games-primary); /* Default to games orange */
  --accent-foreground: 0 0% 100%;
  --secondary: 220 15% 92%;
  --secondary-foreground: 220 25% 25%;
  --muted: 220 15% 92%;
  --muted-foreground: 220 10% 45%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 71% 45%;
  --warning: 48 96% 53%;
  
  /* Shapes and Shadows */
  --radius: 0.8rem;
  --shadow-card: 0 4px 12px 0 hsla(220, 25%, 25%, 0.1);
  --shadow-card-hover: 0 8px 24px 0 hsla(220, 25%, 25%, 0.15);
}

.dark {
  /* Dark Mode - Deep space blue theme */
  --background: 220 30% 12%;
  --foreground: 210 40% 98%;
  --card: 220 30% 18%;
  --card-foreground: 210 40% 98%;
  --popover: 220 30% 12%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 220 30% 12%;
  --secondary: 220 15% 25%;
  --secondary-foreground: 210 40% 98%;
  --muted: 220 15% 25%;
  --muted-foreground: 220 15% 65%;
  --accent: 38 100% 60%;
  --accent-foreground: 220 25% 15%;
  --destructive: 0 70% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 60% 55%;
  --border: 220 15% 25%;
  --input: 220 15% 25%;
  --ring: 214 80% 65%;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- THEME UTILITY CLASSES --- */
/* Use these in your HTML to colorize section titles! */
.text-gradient-lessons { background: var(--lessons-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-quizzes { background: var(--quizzes-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-games { background: var(--games-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-apps { background: var(--apps-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.bg-gradient-lessons { background: var(--lessons-gradient); }
.bg-gradient-quizzes { background: var(--quizzes-gradient); }
.bg-gradient-games { background: var(--games-gradient); }
.bg-gradient-apps { background: var(--apps-gradient); }

/* Components - Enhanced for a more tactile feel */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.btn:active {
  transform: translateY(-1px) scale(1);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

.btn-primary { background: var(--lessons-gradient); color: hsl(var(--primary-foreground)); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-outline { background: transparent; color: hsl(var(--primary)); border: 2px solid hsl(var(--border)); font-weight: 700; }
.btn-outline:hover { background: hsl(var(--secondary)); border-color: hsl(var(--secondary)); }
.btn-hero { padding: 0.8rem 2rem; font-size: 1.1rem; } /* Alias for btn-lg */
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.btn-destructive { background-color: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.btn-destructive:hover { background-color: hsl(var(--destructive) / 0.9); }
.btn-success { background-color: hsl(var(--success)); color: hsl(var(--primary-foreground)); }
.btn-success:hover { background-color: hsl(var(--success) / 0.9); }


.card {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* Make card a flex container */
  flex-direction: column; /* Stack children vertically */
}

.card.cursor-pointer:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-header { padding: 0; padding-bottom: 1rem; }
.card-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.25rem; }
.card-description { font-size: 0.9rem; color: hsl(var(--muted-foreground)); flex-grow: 1; /* Allows description to take up space */ }
.card-content { padding-top: 1rem; }
.card-actions { margin-top: auto; /* Pushes this to the bottom */ padding-top: 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
  text-transform: uppercase;
}
.badge-primary { background-color: hsl(var(--primary) / 0.15); color: hsl(var(--primary)); }
.badge-secondary { background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.badge-outline { background-color: transparent; color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); }

/* Navigation */
.nav-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-weight: 700;
}
.nav-link:hover { color: hsl(var(--primary)); background-color: hsl(var(--primary) / 0.1); }
.nav-link.active { color: hsl(var(--primary)); font-weight: 900; }

/* --- MOBILE NAVIGATION FIX AND ENHANCEMENT --- */
#mobile-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: hsla(var(--foreground), 0.5);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}
#mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

#mobile-menu {
    position: fixed;
    /* CORRECTED: Start position is 100% below the viewport */
    bottom: 0;
    transform: translateY(100%); 
    left: 0; right: 0;
    background-color: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    padding: 0.5rem;
    z-index: 50;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}
#mobile-menu.open {
    /* CORRECTED: Transform to 0 to slide it into view */
    transform: translateY(0); 
}

.mobile-nav-link {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-decoration: none; color: hsl(var(--muted-foreground));
    font-weight: 700; font-size: 0.75rem;
    padding: 0.5rem; border-radius: var(--radius);
    transition: all 0.2s; width: 100%;
}
.mobile-nav-link .icon { font-size: 1.75rem; margin-bottom: 0.1rem; }
.mobile-nav-link:hover { background-color: hsl(var(--secondary)); }
.mobile-nav-link.active { color: hsl(var(--primary)); }

/* Animations */
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } }
.animate-pop-in { animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
.animate-slide-up { animation: slide-up 0.5s ease-out both; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animation-delay-500 { animation-delay: 500ms; }
.animation-delay-1000 { animation-delay: 1000ms; }

/* Form Elements */
.input {
  display: flex;
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2); }

/* Coming Soon Overlay */
.coming-soon-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: hsla(var(--foreground), 0.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center; justify-content: center;
  border-radius: inherit; z-index: 10;
}
.coming-soon-text { color: white; font-weight: 700; font-size: 1.2rem; text-align: center; }

/* Game Styles */
.game-board { display: grid; gap: 1rem; }
.game-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 2px solid hsl(var(--border)); border-radius: var(--radius);
  font-size: 1.75rem; font-weight: 800; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.game-cell:hover { transform: scale(1.05); box-shadow: var(--shadow-card); }
.game-cell.selected { border-color: hsl(var(--accent)); background-color: hsl(var(--accent) / 0.1); }
.game-cell.correct { background-color: hsl(var(--success)); color: white; border-color: hsl(var(--success)); transform: scale(1.1); }
.game-cell.incorrect { background-color: hsl(var(--destructive)); color: white; border-color: hsl(var(--destructive)); animation: shake 0.5s; }

/* Quiz Styles */
.quiz-option {
  padding: 1rem 1.5rem; border: 2px solid hsl(var(--border)); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; font-weight: 600;
}
.quiz-option:hover { border-color: hsl(var(--primary)); background-color: hsl(var(--primary) / 0.05); }
.quiz-option.selected { border-width: 3px; border-color: hsl(var(--primary)); background-color: hsl(var(--primary) / 0.1); }
.quiz-option.correct { border-width: 3px; border-color: hsl(var(--success)); background-color: hsl(var(--success) / 0.15); color: hsl(142, 80%, 25%); }
.quiz-option.incorrect { border-width: 3px; border-color: hsl(var(--destructive)); background-color: hsl(var(--destructive) / 0.15); color: hsl(0, 60%, 35%); }

/* --- ALL ORIGINAL UTILITY AND RESPONSIVE CLASSES --- */
/* These are preserved to ensure nothing breaks */
.min-w-48 { min-width: 12rem; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.leading-tight { line-height: 1.2; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: calc(var(--radius) + 2px); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.ease-out { transition-timing-function: ease-out; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-50 { opacity: 0.5; }
.opacity-90 { opacity: 0.9; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }
.min-h-\[150px\] { min-height: 150px; }
.min-h-\[200px\] { min-height: 200px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aspect-video { aspect-ratio: 16 / 9; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:max-w-md { max-width: 28rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* =================================================================== */
/*                     START: IMPRESSIVE FOOTER STYLES                 */
/* =================================================================== */

.site-footer {
    background: linear-gradient(135deg, hsl(var(--lessons-primary)), hsl(var(--games-primary)));
    color: hsl(var(--primary-foreground));
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, hsla(var(--accent), 0.1), transparent 70%);
    animation: rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: slide-up 1s ease-out;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-logo .text-gradient-lessons,
.footer-logo .text-gradient-games {
    -webkit-text-fill-color: white;
}

.footer-motto {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-contact a {
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border-bottom: 2px solid hsla(var(--primary-foreground), 0.5);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.footer-contact a:hover {
    border-bottom-color: hsl(var(--primary-foreground));
    text-shadow: 0 0 8px hsla(var(--primary-foreground), 0.5);
}

.footer-copyright {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =================================================================== */
/*                       END: IMPRESSIVE FOOTER STYLES                 */
/* =================================================================== */

/* =================================================================== */
/*                     START: PLACE VALUE POP GAME STYLES              */
/* =================================================================== */

.pvp-balloon {
    width: 80px;
    height: 80px;
    background-color: hsl(var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease-out, background-color 0.2s ease-out;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pvp-balloon:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: hsl(var(--primary) / 0.9);
}

.pvp-pop-correct {
    animation: pop-animation 0.3s forwards;
}

.pvp-pop-incorrect {
    animation: incorrect-pop-animation 0.4s forwards;
}

@keyframes pop-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes incorrect-pop-animation {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateX(-10px) rotate(-5deg);
        background-color: hsl(var(--destructive));
    }
    50% {
        transform: translateX(10px) rotate(5deg);
    }
    75% {
        transform: translateX(-5px) rotate(-2deg);
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* =================================================================== */
/*                       END: PLACE VALUE POP GAME STYLES                */
/* =================================================================== */

/* =================================================================== */
/*                     START: MULTIPLICATION GRID ATTACK GAME STYLES   */
/* =================================================================== */

.mga-grid-container {
    display: grid;
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.mga-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    font-size: 1.2rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--foreground));
}

.mga-factor {
    background-color: hsl(var(--secondary));
    font-weight: bold;
}

.mga-answer-cell {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.mga-answer-cell:hover {
    background-color: hsl(var(--muted));
}

.mga-answer-cell.mga-active {
    border: 2px solid hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.5);
    transform: scale(1.02);
}

.mga-answer-cell.mga-correct {
    background-color: hsl(var(--success) / 0.2);
    color: hsl(var(--success));
    font-weight: bold;
}

.mga-answer-cell.mga-incorrect {
    background-color: hsl(var(--destructive) / 0.2);
    color: hsl(var(--destructive));
    font-weight: bold;
}

/* =================================================================== */
/*                       END: MULTIPLICATION GRID ATTACK GAME STYLES   */
/* =================================================================== */