body {
  background: #F5EFE7;
  color: #272624;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('../images/background.png');
  background-size: cover;
  background-repeat: repeat;
  min-height: 100vh;
}

/* ==========================
   NAVIGATION BAR STYLES - matches About page
   ========================== */
.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; }
}

/* ==========================
   END NAV BAR
   ========================== */

header {
  background: transparent;
  padding: 0;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 3rem 1rem 2rem 1rem;
  background: transparent;
}

.hero-img {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  max-width: 400px;
  margin-bottom: 2rem;
}

.hero-img img {
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(114,85,97,0.20);
  border: 5px solid #C4A5A0;
  background: #fff;
}

.hero-text {
  flex: 2 1 340px;
  max-width: 600px;
  padding-left: 2rem;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  color: #725561;
  font-size: 2.6rem;
  margin-bottom: 0.4rem;
}

.hero-text h2 {
  color: #C4A5A0;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.hero-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #272624;
  margin-bottom: 2rem;
}

.btn {
  background: #725561;
  color: #F5EFE7;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 24px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(114,85,97,0.08);
  transition: background 0.2s;
}
.btn:hover {
  background: #C4A5A0;
  color: #272624;
}

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

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0 3rem 0;
}

.genre {
  flex: 1 1 290px;
  max-width: 340px;
  border-radius: 22px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin: 0 0.5rem;
  box-shadow: 0 4px 24px rgba(39,38,36,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background: rgba(245,239,231,0.96);
}

/* Psychological Thriller Styling */
.genre.thriller {
  background: linear-gradient(135deg, #725561cc 70%, #272624ee 100%);
  color: #F5EFE7;
  background-blend-mode: multiply;
  box-shadow: 0 2px 20px rgba(39,38,36,0.13);
  border: 2px solid #272624;
}
.genre.thriller h2 { color: #F5EFE7; }
.genre.thriller p { color: #DCD5D1; }
.thriller-btn {
  background: #272624;
  color: #F5EFE7;
  border-radius: 18px;
  margin-top: auto;
}
.thriller-btn:hover {
  background: #C4A5A0;
  color: #272624;
}

/* Love Stories Styling */
.genre.love {
  background: #C4A5A0ee;
  color: #272624;
  border: 2px solid #FFD700;
  box-shadow: 0 2px 18px rgba(196,165,160,0.09);
  position: relative;
}
.genre.love h2 { color: #725561; }
.genre.love p { color: #725561; }
.love-btn {
  background: #FFD700;
  color: #725561;
  border-radius: 18px;
  margin-top: auto;
}
.love-btn:hover {
  background: #C4A5A0;
  color: #272624;
}

/* Children's Books/Awkward Critters Styling */
.genre.kids {
  background: linear-gradient(135deg, #F5EFE7ee 80%, #B6D6C6cc 100%);
  color: #272624;
  border: 2px solid #A9D6E5;
  box-shadow: 0 2px 18px rgba(169,214,229,0.10);
}
.genre.kids h2 { color: #578178; }
.genre.kids p { color: #263859; }
.kids-btn {
  background: #B6D6C6;
  color: #725561;
  border-radius: 18px;
  margin-top: auto;
}
.kids-btn:hover {
  background: #FFD700;
  color: #272624;
}

.book-covers {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.book-img {
  width: 66px;
  height: 98px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(39,38,36,0.13);
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s, opacity 1s;
  cursor: pointer;
  opacity: 0;
  background: #fff;
}

.book-img.loaded {
  opacity: 1;
}

/* Responsive Stacking for Smaller Screens */
@media (max-width: 900px) {
  .genres { flex-direction: column; align-items: center; }
  .genre { max-width: 95vw; margin-bottom: 2rem; }
  .hero { flex-direction: column; padding: 2rem 1rem; }
  .hero-text { padding-left: 0; max-width: 98vw; }
  .hero-img { margin-bottom: 1.2rem; }
}
@media (max-width: 600px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-text h2 { font-size: 1.1rem; }
}
.about-preview {
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  background: rgba(245,239,231,0.88);
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(39,38,36,0.06);
}
.about-preview h3 {
  color: #725561;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.4rem;
}
.about-preview .about-link {
  color: #725561;
  text-decoration: underline;
  margin-left: 0.5rem;
  font-weight: bold;
}
.about-preview .about-link:hover {
  color: #C4A5A0;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  background: #3b5998;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  margin: 0.3rem;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(59,89,152,0.07);
}

.social-btn.fb:hover {
  background: #2d4373;
  color: #FFD700;
}
/* 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.open > .submenu { display: block; }


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