/* --- Variables (colors) --- */
:root {
  --ink: #222;
  --muted: #555;
  --accent: #0a58ca;
  --bg: #fff;
}

/* --- Base styles --- */
html {
  scroll-behavior: smooth; /* new CSS property */
}
body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  margin: 16px;
  line-height: 1.6;
}
h1 {
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  margin: 0 0 8px;
}
p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* --- Nav Grid --- */
.main-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0;
  text-align: center;
}
.main-nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.main-nav a:hover {
  background: rgba(10,88,202,0.12);
}

/* --- Section spacing --- */
.section {
  margin: 24px 0;
}
.section h2 {
  margin-bottom: 8px;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
}

/* --- Grid A: Characters --- */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.characters-grid article {
  background: #fdfdfd;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- Grid B: Adventures --- */
.adventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.adventures-grid div {
  background: #f4f8ff;
  border: 1px solid #cddff8;
  padding: 14px;
  border-radius: 6px;
  text-align: center;
}

/* --- Grid C: Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}
.gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5; /* new property */
  object-fit: cover;
  display: block;
}
.gallery figcaption {
  padding: 8px 10px;
  text-align: center;
  font-style: italic;
  color: #333;
}
.gallery figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .main-nav {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .main-nav a {
    text-align: left;
    padding: 10px;
  }
}

/* --- JavaScript --- */
.magic-bg {
  background: linear-gradient(to bottom right, #e3f6ff, #ffe3f2);
  transition: background 0.6s ease;
}

/* Highlight gallery figures */
.gallery figure.highlight {
  border: 6px solid hotpink;
  box-shadow: 0 0 15px hotpink;
  transform: scale(1.1);
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* Light pink background for title */
header h1 {
  background: #ffe6f2;   /* light pink */
  display: inline-block; /* only wraps the text */
  padding: 10px 14px;
  border-radius: 12px;
}

/* Wish button */
.btn {
  background: #ffe6f2;
  border: 1px solid #ff99cc;
  color: #060606;
  padding: 14px 20px;   
  font-size: 1.2rem;    
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: #ffb3d9;
  transform: scale(1.08);
}

/* Wish result line */
.wish-line {
  margin-top: 10px;
  font-style: italic;
  color: #444;
}

/* Magical Adventures */
.fancy-title {
  font-family: "Great Vibes", cursive;
  font-size: 3rem; /* make it bigger than normal */
  color: #d63384;  /* optional: magical pink */
  transition: transform 0.1s ease;
}

