body {
  background: #F5EFE7;
  color: #272624;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Header/Nav */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #725561cc;
  padding: 1rem 1.5rem 1rem 1.5rem;
  position: relative;
  z-index: 10;
}
.main-nav .logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #F5EFE7;
  letter-spacing: 2px;
  font-weight: bold;
  margin-right: auto;
}
.main-nav .logo-link {
  color: #F5EFE7;
  text-decoration: none;
  font-weight: bold;
}
.main-nav nav ul {
  display: flex;
  gap: 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}
.main-nav nav ul li a {
  color: #F5EFE7;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: color 0.2s, background 0.22s;
  padding: 0.33em 0.95em;
}
.main-nav nav ul li a.active,
.main-nav nav ul li a:hover {
  color: #FFD700;
  background: #4c384b33;
}
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #F5EFE7;
  margin-left: 1.2rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .main-nav {
    flex-direction: row;
    padding: 1rem 1.5rem 1rem 1.5rem;
  }
  .main-nav nav {
    position: relative;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  #menu-toggle {
    display: inline-block;
    z-index: 110;
    background: none;
    border: none;
    font-size: 2rem;
    color: #F5EFE7;
    margin-left: 1.2rem;
    cursor: pointer;
  }
  .main-nav nav ul {
    display: none;
    flex-direction: column;
    background: #725561ee;
    position: absolute;
    top: 62px;
    right: 0;              /* <-- Menu opens under hamburger on right */
    left: auto;
    width: 170px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 24px rgba(39,38,36,0.13);
    z-index: 100;
    padding-bottom: 1rem;
    align-items: flex-end; /* links align to right edge of dropdown */
    margin: 0;
  }
  .main-nav nav ul.open { display: flex; }
}


/* About Top Section */
.about-top {
  margin: 2.5rem auto 1.5rem auto;
  max-width: 900px;
  text-align: center;
}
.about-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #272624;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}
.about-name span {
  color: #725561;
  font-size: 2.55rem;
  display: block;
  margin-top: 0.2em;
}
.about-photos-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.3rem;
  padding: 2.2rem 1.2rem 1.7rem 1.2rem;
  border-radius: 30px;
  box-shadow: 0 10px 38px rgba(39,38,36,0.18);
  background: linear-gradient(112deg, #725561 65%, #272624 100%);
  max-width: 700px;
  margin: 0 auto 1.6rem auto;
}
.about-author-photo, .about-critters-photo {
  width: 220px;
  max-width: 94vw;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(114,85,97,0.18);
  border: 5px solid #C4A5A0;
  background: #fff;
  transition: border-color 0.28s;
}
.about-author-photo:hover,
.about-critters-photo:hover,
.about-author-photo.active-tap,
.about-critters-photo.active-tap {
  border-color: #FFD700;
}

/* About Bio */
.about-bio {
  max-width: 750px;
  margin: 0 auto 2.3rem auto;
  background: rgba(245,239,231,0.96);
  border-radius: 19px;
  box-shadow: 0 2px 20px rgba(39,38,36,0.09);
  padding: 2.2rem 2.5rem;
  text-align: center;
}
.about-bio p {
  color: #272624;
  font-size: 1.17rem;
  line-height: 1.68;
}

/* Quick Facts & Fun + Critters Section */
.about-extra-fun {
  background: rgba(38, 14, 39, 0.85);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(38, 14, 39, 0.15);
  margin: 2rem auto;
  max-width: 900px;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.about-extra h2 {
  color: #ffe439;
  font-size: 2.1rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.about-extra p {
  font-size: 1.16rem;
  margin: 0.9rem 0;
}
.critter-highlight {
  color: #ffe439;
  font-weight: bold;
  font-size: 1.1rem;
}
.about-note {
  margin-top: 1.5rem;
  font-size: 1.13rem;
  color: #FFD7F6;
  letter-spacing: 0.01em;
}
.fun-fact-heart {
  color: #FFD700;
  font-size: 1.22em;
  vertical-align: middle;
}

.about-fun {
  margin-top: 3.2rem;
  margin-bottom: 1.4rem;
}
.about-fun h2 {
  color: #FFD700;
  font-size: 2rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}
.about-fun-note {
  color: #FFD7F6;
  margin-bottom: 2.2rem;
  font-size: 1.1rem;
}
.critters-gallery {
  display: flex;
  justify-content: center;
  gap: 2.3rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}
.critter-card {
  background: rgba(255,255,255,0.11);
  border-radius: 1.2rem;
  padding: 1.2rem .7rem .4rem .7rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  transition: transform 0.2s;
  text-align: center;
  min-width: 110px;
  max-width: 160px;
}
.critter-card:hover,
.critter-card:focus-within {
  transform: scale(1.10) rotate(-1.5deg);
  background: rgba(255,255,255,0.19);
  box-shadow: 0 10px 28px rgba(255,215,0,0.13);
}
.critter-img {
  width: 100px;
  height: auto;
  cursor: pointer;
  border-radius: 1rem;
  transition: box-shadow 0.22s, transform 0.18s;
  box-shadow: 0 3px 14px rgba(39,0,51,0.17);
  background: #fff;
}
.critter-card:hover .critter-img,
.critter-card:focus-within .critter-img {
  box-shadow: 0 5px 24px 0 rgba(255,215,0,0.24), 0 1.5px 5px rgba(0,0,0,0.11);
  transform: scale(1.09) rotate(-1.5deg);
}
.critter-card p {
  margin-top: .7rem;
  font-weight: bold;
  letter-spacing: .03em;
  color: #FFD700;
  font-size: 1.06rem;
}

/* Responsive stacking */
@media (max-width: 900px) {
  .about-photos-frame {
    flex-direction: column;
    gap: 1.3rem;
    padding: 1.2rem 0.6rem;
  }
  .about-author-photo, .about-critters-photo {
    width: 76vw;
    min-width: 110px;
    max-width: 320px;
  }
  .about-bio { padding: 1.1rem 0.5rem; }
}
@media (max-width: 600px) {
  .about-top { margin: 1.2rem 0 0.7rem 0; }
  .about-name { font-size: 1.15rem; }
  .about-bio p, .about-extra p, .about-fun-note { font-size: 1em;}
  .critters-gallery {
    flex-direction: column;
    gap: 1.1rem;
  }
  .about-extra-fun {
    padding: 1.1rem 0.4rem;
  }
  .critter-card {
    min-width: 85px;
    max-width: 220px;
    margin: 0 auto;
  }
  .critter-img {
    width: 68vw;
    max-width: 110px;
  }
}

/* Footer */
footer {
  text-align: center;
  background: #725561;
  color: #F5EFE7;
  padding: 1.2rem 0;
  margin-top: 2rem;
}
.social a {
  color: #FFD700;
  text-decoration: none;
  margin: 0 0.5rem;
}
.about-cta {
  max-width: 600px;
  margin: 2.5rem auto 1.5rem auto;
  text-align: center;
  background: #C4A5A0ee;
  border-radius: 13px;
  padding: 1.5rem 2rem 2rem 2rem;
  box-shadow: 0 3px 14px rgba(196,165,160,0.10);
}
.about-cta h2 {
  color: #725561;
  margin-bottom: 0.7em;
  font-size: 1.45rem;
}
.about-cta p {
  color: #272624;
  font-size: 1.12rem;
  margin-bottom: 1.1em;
}
.about-cta .btn {
  margin: 1.2rem 0.7rem 0 0.7rem;
  display: inline-block;
  padding: 0.55em 1.4em;
  background: #725561;
  color: #fff;
  border-radius: 22px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.16s, color 0.16s;
  border: none;
  font-size: 1.1em;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.about-cta .btn.kids-btn {
  background: #FFD700;
  color: #725561;
}
.about-cta .btn:hover {
  background: #725561;
  color: #FFD700;
}

/* Shadowbox overlay for author/critters images */
.shadowbox-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34, 16, 45, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 1;
}
.shadowbox-overlay.hidden { opacity: 0; pointer-events: none; }
.shadowbox-overlay img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 10px 64px 0 #725561dd;
  border: 6px solid #FFD700;
  background: #fff;
  animation: popin .33s cubic-bezier(.41,1.53,.55,.91);
}
@keyframes popin {
  0% { transform: scale(.6) rotate(-3deg); opacity: 0; }
  80% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
.shadowbox-close {
  position: absolute;
  top: 32px; right: 44px;
  font-size: 2.7rem;
  color: #FFD700;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  filter: drop-shadow(0 3px 7px #2b1939cc);
  transition: color 0.17s;
}
.shadowbox-close:hover {
  color: #ff4e62;
}
@media (max-width: 700px) {
  .shadowbox-overlay img {
    max-width: 99vw;
    max-height: 78vh;
  }
  .shadowbox-close {
    top: 12px; right: 18px; font-size: 2.1rem;
  }
}

/* Submenu styles */
.has-submenu { position: relative; }
.has-submenu > .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #725561ee;
  border-radius: 0 0 12px 12px;
  min-width: 220px;
  padding: .4rem 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(39,38,36,.13);
}

.has-submenu > .submenu li a {
  display: block;
  padding: .55rem .95rem;
  color: #F5EFE7;
  text-decoration: none;
}
.has-submenu > .submenu li a:hover {
  background: #4c384b33;
  color: #FFD700;
}
/* Mobile: show submenu inline inside the opened menu */
@media (max-width: 900px) {
  .has-submenu > .submenu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }
}



/* Click-to-open submenu (hidden by default) */
.has-submenu > .submenu { display: none; }
.has-submenu.open > .submenu { display: block; }

/* Mobile: let submenu flow inside dropdown panel */
@media (max-width: 900px){
  .has-submenu > .submenu { position: static; width: 100%; min-width: 0; box-shadow: none; }
}


/* Logo image */
.logo-img{
  height: 96px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(39,38,36,0.18));
}
@media (max-width: 900px){
  .logo-img{ height: 72px; }
}
