﻿:root {
  --primary: #4f46e5;
  --accent: #22c55e;
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #1f2937;
  --soft: #e5e7eb;
  --radius: 16px;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
}

/* Headings */
h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  font-size: 0.8rem;
  margin: 20px 0 2px;
  text-align: center;
  color: white;
}

h3 {
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: var(--primary);
  text-align: center;
  color: gray;
}

/* Containers */
.container {
  max-width: 1100px;
  margin: auto;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* Forms */
form {
  max-width: 300px;
  margin: 30px auto;
  background: var(--card);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--soft);
  font-size: 1rem;
  margin-top: 10px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Buttons */
button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 18px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 15px;
  width: 30%;
}

button:hover {
  opacity: 0.9;
}

/* Lesson content */
.lesson-content {
  background: var(--card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Example box */
.example {
  background: #eef2ff;
  border-left: 5px solid var(--primary);
  padding: 15px;
  border-radius: 12px;
  margin: 15px 0;
  font-size: 1.1rem;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 60px;
  color: #6b7280;
}

/* =========================
   AGE CUSTOMIZATION
========================= */

/* KIDS */
body.kids {
  background: #fff7ed;
}

body.kids h1 {
  font-size: 3.2rem;
}

body.kids .card {
  border: 3px solid #fde68a;
}

body.kids button {
  background: #f59e0b;
}

/* TEENS */
body.teens {
  background: #f0f9ff;
}

body.teens h1 {
  letter-spacing: 1px;
}

body.teens .card {
  border-left: 6px solid #38bdf8;
}

/* ADULTS */
body.adults {
  background: #f9fafb;
}

body.adults h1 {
  font-weight: 700;
}

/* Responsive */
/* --- MOBILE RESPONSIVE OVERRIDES --- */
/* This must stay at the bottom of your stylesheet */

@media (max-width: 600px) {
  h1 {
    /* Shrinking from 2.8rem to 2.0rem for better fit */
    font-size: 2.0rem; 
    color: black;
    margin-bottom: 8px;
  }

  h2 {
    /* Giving h2 a slightly different size than h3 to show hierarchy */
    font-size: 1.1rem;
    color: white;
    margin-top: 15px;
  }

  h3 {
    font-size: 0.9rem;
    color: gray;
    margin-bottom: 5px;
  }
  
  /* Optional: Adjusting body padding so text doesn't hit the screen edges */
  body {
    padding: 0 15px;
  }
}
}