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

header {
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 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;
}

/* Layout with character image, text, and book */
.row-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
}

.characters-box img {
  width: 280px;
  max-width: 100%;
  animation: float 4s ease-in-out infinite;
}

.critter-card a {
  text-decoration: none;
  color: inherit;
}


.description-centered {
  flex: 1;
  min-width: 260px;
  max-width: 600px;
  background-color: #fff4e0;
  padding: 1rem 1.5rem;
  border-radius: 10px;
}

.book-center {
  min-width: 220px;
  text-align: center;
  margin-top: 2rem;
}

.book {
  width: 220px;
  animation: wiggle 6s infinite;
}

.order-button {
  background-color: coral;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  display: inline-block;
  margin-top: 0.5rem;
  border-radius: 5px;
}

.tagline-section {
  text-align: center;
  margin: 4rem 1rem 2rem;
}

.tagline {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.separator {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  border: none;
  border-top: 2px solid #d6a16e;
}

/* Meet the Critters */
.meet-critters {
  text-align: center;
  padding: 3rem 1rem;
}

.meet-critters h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.critter-card {
  text-align: center;
}

.critter-name {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: bold;
  color: #333;
}

.critter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.critter {
  width: 110px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.critter.hover-effect:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.shelly-wider {
  width: 140px;
}

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;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes wiggle {
  0% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-4px) rotate(1deg); }
  50% { transform: translateY(2px) rotate(-1deg); }
  75% { transform: translateY(-2px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .row-layout {
    flex-direction: column;
    align-items: center;
  }

  .description-centered,
  .book-center {
    text-align: center;
  }

  .book {
    width: 70%;
  }

  .critter-row {
    gap: 1rem;
  }

  .description-centered {
    margin: 0 1rem;
  }
}

/* Character Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff4e0;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.modal-content img {
  width: 150px;
  margin-bottom: 1rem;
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.modal-content p {
  font-size: 1rem;
  color: #333;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
}
