body {
  margin: 0;
  font-family: 'PT Serif Caption', serif;
  background: #ffeccc;
  color: #222;
}

header {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1rem;
  padding: 0.5rem;
  background-color: #fff4e0;
}

nav a {
  text-decoration: none;
  color: #333;
}

main {
  padding: 2rem;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.character-card {
  background-color: #fff4e0;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.character-card:hover {
  transform: translateY(-3px);
}

.critter-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.character-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  margin-top: 0;
}

.character-card.active .description {
  max-height: 200px;
	overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
  margin-top: 1rem;
}

footer.footer-colored {
  background: #fff4e0;
  text-align: center;
  padding: 2rem 1rem;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 2rem;
}

footer a {
  color: #d67600;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.toggle {
  font-size: 1.5rem;
  cursor: pointer;
  color: #aa5500;
  margin-bottom: 0.5rem;
  user-select: none;
  transition: transform 0.3s ease;
}

.character-card {
  position: relative;
  background-color: #fff4e0;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.character-card:hover {
  transform: translateY(-3px);
}

.description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  margin-top: 0;
}

.character-card.active .description {
  max-height: 300px;
	overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
  margin-top: 1rem;
}

.character-card.active .toggle {
  transform: rotate(45deg);
}

/* --- Unified Navigation (Dropdown + Flat Cream Bar) --- */
header {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

header h1 {
  font-family: 'PT Serif Caption', serif;
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: #4c2a00;
}

.main-nav {
  display: flex;
  justify-content: center;
  background-color: #fff4e0;
  padding: 0.6rem 1rem;
  border-radius: 0;
  box-shadow: none;
}

.main-nav .nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item a,
.nav-button {
  font-family: 'PT Serif Caption', serif;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.nav-item a:hover,
.nav-button:hover {
  background-color: #ffeccc;
  color: #000;
}

/* Dropdown */
.nav-item--has-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #fffdf7;
  border: 1px solid #f3d8b2;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.4rem;
  z-index: 10;
}

.nav-item--has-dropdown.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  color: #333;
}

.nav-dropdown a:hover {
  background-color: #fff1da;
}

/* Chevron */
.chevron {
  font-size: 0.8rem;
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.nav-item--has-dropdown.open .chevron {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 640px) {
  .main-nav .nav-list {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .nav-item a,
  .nav-button {
    font-size: 0.9rem;
  }
}
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.chevron {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.nav-item--has-dropdown.open .chevron {
  transform: rotate(180deg);
}

