/* ========= Base theme ========= */
:root{
  --bg1:#f9e8e6; --bg2:#dff3f5;
  --ink:#1f2430; --muted:#6b7280;
  --accent:#5a49a3;
  --card:#ffffff;
  --ring: 0 10px 25px rgba(0,0,0,.15);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--ink);

  /* 🏞️ Background image setup */
  background: url("images/background.png") center / cover no-repeat fixed;


  min-height: 100svh;
  background-attachment: fixed; /* keeps it from scrolling */
}

/* ========= Landing page (index.html) ========= */
/* Wrap your main content/image in <div class="main"> … */
.main{
  max-width:1200px;           /* nice readable width */
  margin: 32px auto;          /* centered on page */
  padding: 0 20px;
}
.main img{
  width:100%;                 /* fill the container width */
  height:auto;
  border-radius:10px;
  display:block;
  box-shadow: var(--ring);
}

/* If you still use the earlier “board” panel somewhere, keep this: */
#board{
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
  background: center/cover no-repeat url("background.jpg"); /* optional */
  box-shadow: var(--ring);
}

/* Headings shared across pages */
h1{ text-align:center; margin:0 0 1rem; color:#2b3a42; }
h2{ margin:0 0 .5rem; color:#3c4c5f; }

/* ========= Kid page header (hero) ========= */
.hero{
  max-width:1100px;
  margin: 40px auto 16px;
  padding: 0 20px;
  display:grid;
  gap:18px;
  justify-items:center;
}

.avatar{
  width:160px; aspect-ratio:1/1;
  border-radius:50%; overflow:hidden;
  box-shadow: var(--ring);
}
.avatar img{ width:100%; height:100%; object-fit:cover; }

.name-pill{
  background:#fff;
  padding:.6rem 1.2rem;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.08em;
  color:#3e2b7a;
  box-shadow: var(--ring);
}

/* Three icon buttons (MORNING / AFTER SCHOOL / BEDTIME) */
.quick-links{
  display:grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap:14px;
  width:100%;
  max-width:980px;
  margin-top:6px;
}
.quick-card{
  text-decoration:none;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  padding:14px 10px;
  background:#ffffffc8; border-radius:18px;
  box-shadow: var(--ring);
}
.quick-card img{ width:min(120px,26vw); height:auto; display:block; }
.quick-card span{
  font-weight:800; letter-spacing:.06em; color:#402e84;
  background:#fff; padding:.45rem .9rem; border-radius:999px;
  box-shadow: var(--ring);
}

/* ========= Kid page sections (lists of chores) ========= */
.sections{
  max-width:980px;
  margin: 24px auto 80px;
  padding: 0 20px;
  display:grid; gap:22px;
}
.card{
  background: var(--card);
  border-radius:18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  padding:18px 18px 10px;
}
.card h2{ font-size:clamp(22px, 2.8vw, 28px); }
.card h3{ margin:14px 0 8px; font-size:clamp(18px, 2.3vw, 22px); color:var(--muted); }

/* Tasks / form elements (shared) */
label, .task{ display:block; font-size:1.1rem; padding:.3rem 0; }
input[type="checkbox"]{ transform:scale(1.25); margin-right:.55rem; accent-color:var(--accent); }
input[type="text"], input[type="number"]{
  width:100%; padding:.5rem; margin-top:.3rem;
  border:1px solid #ccc; border-radius:8px; font-size:1rem;
}

/* Back button (kid pages) */
.back{
  position:fixed; left:16px; bottom:16px; z-index:5;
  text-decoration:none; font-weight:600;
  background:#ffffffcc; backdrop-filter:saturate(140%) blur(3px);
  padding:.55rem .75rem; border-radius:10px; box-shadow: var(--ring);
}

/* ========= Responsive tweaks ========= */
@media (max-width: 720px){
  .avatar{ width:128px; }
  .quick-links{ grid-template-columns: 1fr; max-width:560px; }
}

/* ========= Home Page (face cards) ========= */
.home{
  text-align:center;
  max-width:1000px;
  margin:40px auto;
  padding:0 20px;
}
.home h1{
  margin-bottom:30px;
  font-size:clamp(26px, 3vw, 36px);
  color:#2b3a42;
}

.kid-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:30px;
  justify-items:center;
}

.kid-card{
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.kid-card:hover,
.kid-card:focus-visible{
  transform: translateY(-4px);
}

.face{
  width:180px; aspect-ratio:1/1;
  border-radius:50%; overflow:hidden;
  box-shadow: var(--ring);
}
.face img{
  width:100%; height:100%; object-fit:cover; border-radius:50%;
}

.name-pill{
  background:#fff;
  padding:.6rem 1.2rem;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.08em;
  color:#3e2b7a;
  box-shadow:0 5px 15px rgba(0,0,0,.1);
}

/* Small screens */
@media (max-width: 720px){
  .face{ width:150px; }
}

/* ========= Larger Checkboxes & Readable Tasks ========= */
.task,
label {
  display: flex;
  align-items: center;
  font-size: 1.6rem;          /* noticeably larger text */
  line-height: 1.8;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

input[type="checkbox"] {
  transform: scale(1.9);      /* bigger, kid-friendly checkboxes */
  margin-right: 1rem;
  accent-color: var(--accent);
}

/* Highlight when checked */
input[type="checkbox"]:checked + span,
label:has(input[type="checkbox"]:checked) {
  background-color: #d9f8df;  /* soft mint green highlight */
  border-radius: 10px;
}

/* Smooth hover effect */
.task:hover,
label:hover {
  background-color: rgba(90, 73, 163, 0.08);
  border-radius: 10px;
}

/* Keep spacing comfortable on mobile */
@media (max-width: 720px) {
  .task,
  label {
    font-size: 1.4rem;
  }
  input[type="checkbox"] {
    transform: scale(1.6);
  }
}

/* Cross-browser “done” highlight */
.task { display: flex; align-items: center; gap: .6rem; }
.task input { flex-shrink: 0; }          /* don’t let the checkbox squish */
.task span { display: block; width: 100%; }

/* when JS adds .done, highlight the whole row */
.task.done { 
  background-color: #d9f8df; 
  border-radius: 10px; 
  transition: background-color .25s ease;
}

.hidden { display: none !important; }

/* ========= Chore row sizing + icons (final) ========= */

/* Base desktop/tablet sizing */
label.task {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.6rem;          /* readable but not huge */
  line-height: 1.8;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

label.task input[type="checkbox"] {
  transform: scale(1.8);      /* large enough for touch */
  margin-right: 0.6rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* ⬇️ Make the icons about 25% of the previous big look */
label.task .icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

label.task span {
  display: block;
  width: 100%;
}

/* Green highlight via JS .done class */
label.task.done { 
  background: #d9f8df;
  border-radius: 10px;
}

/* Hover feedback */
label.task:hover { background: rgba(90,73,163,.08); border-radius: 10px; }

/* ========= Responsive scaling ========= */
/* Medium screens */
@media (max-width: 1024px){
  label.task { font-size: 1.5rem; }
  label.task input[type="checkbox"] { transform: scale(1.7); }
  label.task .icon { width: 52px; height: 52px; }
}

/* Phones / small tablets */
@media (max-width: 720px){
  label.task { font-size: 1.35rem; }
  label.task input[type="checkbox"] { transform: scale(1.6); }
  label.task .icon { width: 40px; height: 40px; }
}

/* Very small phones */
@media (max-width: 420px){
  label.task { font-size: 1.25rem; }
  label.task input[type="checkbox"] { transform: scale(1.5); }
  label.task .icon { width: 18px; height: 18px; }
}

.date-pill {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 36px); /* nice big headline style */
  color: #4a3bc8;                    /* bright violet-blue accent */
  background: linear-gradient(135deg, #ffffff, #e8e3ff);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(90, 73, 163, 0.25);
  text-align: center;
  margin-bottom: 0.4rem;
}

/* ========== Cheer pop ========== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Poppins:wght@600&display=swap');

.cheer-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%; /* ensures long text fits nicely */
  text-align: center;
  font-family: 'Baloo 2', 'Poppins', 'Comic Sans MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.2;
  color: #00e7ff;
  text-shadow: 0 0 8px rgba(0,255,255,0.6), 0 3px 14px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 2000;
  opacity: 0;
  animation: cheerPop 2.6s ease-out forwards;
}

.cheer-pop.big {
  font-size: clamp(48px, 8vw, 80px);
  color: #ffcc00;
  text-shadow: 0 0 20px rgba(255,255,0,0.8), 0 0 40px rgba(255,255,0,0.6);
  animation-duration: 3.6s;
}

@keyframes cheerPop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  50%  { transform: translate(-50%, -50%) scale(1.00); opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
}

/* Confetti stays the same */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confettiFall 2.4s linear forwards; /* slightly longer to match */
  pointer-events: none;
  z-index: 1500;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}

