
        body {
            margin: 0;
            font-family: 'Segoe UI', Arial, sans-serif;
            color: #f7ca02f0;
            background-image: url("hp\ library.jpg");
            background-image: cover;
        }

        /* Main Title */
        .main-title {
            text-align: center;
            font-size: 3rem;
            margin: 20px 0;
            font-weight: bold;
            text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
        }

        /* Generic Series Container */
        .series-section {
            margin: 40px auto;
            max-width: 1200px;
            padding: 20px;
            border-radius: 15px;
        }

        .series-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 20px;
            font-weight: bold;
            text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
        }

        /* Bookshelf Layout */
        .bookshelf {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 20px;
            padding: 40px;
            min-height: 100vh;
            border-radius: 15px;
        }

        /* Book Cards */
        .book {
            flex: 0 0 250px;
            height: 350px;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.18);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            position: relative;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: pointer;
        }
        .book:hover {
            transform: scale(1.05);
            box-shadow: 0 12px 32px rgba(0,0,0,0.22);
        }
        .book-title {
            background: rgba(0,0,0,0.6);
            color: #fff;
            width: 100%;
            text-align: center;
            padding: 12px 0;
            font-size: 1.1em;
            position: absolute;
            bottom: 0;
            left: 0;
            font-weight: bold;
            letter-spacing: 1px;
        }

        /* Harry Potter Background & Books */
        .harry-potter-section {
            background: linear-gradient(135deg, #7a0103 0%, #0a1a3c 40%, #e3c565 70%, #ffd700 85%, #176d3b 100%);
            background-image: url("hp library.jpg");
            background-size: cover;
            background-attachment: fixed;
            color: #e3c565;
        }
        .harry-bookshelf {
            background: #d6c7a1;
            background-image: url("hp bgff.jpg");
            background-size: cover;
            background-attachment: scroll;
            background-blend-mode: overlay;
        }
        .book1 { background: url('hp book1.jpg') center/cover; }
        .book2 { background: url('hp book2.jpg') center/cover; }
        .book3 { background: url('hp book3.jpg') center/cover; }
        .book4 { background: url('hp book4.jpg') center/cover; }
        .book5 { background: url('hp book5.jpg') center/cover; }
        .book6 { background: url('hp book6.jpg') center/cover; }
        .book7 { background: url('hp book7.jpg') center/cover; }

        /* Summer Series Background & Books */
        .summer-section {
            background: linear-gradient(135deg, hsl(330, 100%, 71%) 0%, #4facfe 50%, #ffd700 100%);
            background-image: url("blue.jpg");
            background-size: cover;
            background-attachment: fixed;
             background-attachment: scroll;
            color: #022033;
        }
        .summer-bookshelf {
            background: #d6c7a1;
            background-image: url('summerbeach.jpg');
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center;
        }
        .book-s1 { background: url('summer1.jpg') center/cover; }
        .book-s2 { background: url('summer2.jpg') center/cover; }
        .book-s3 { background: url('summer3.jpg') center/cover; }
        /* Twilight Series Background & Books */
        .twilight-section {
            background: linear-gradient(135deg, #000000 0%, #4b0082 50%, #8b0000 100%);
            background-image: url("twi bg2.jpg"); /* Background for whole section */
            background-size: cover;
            background-attachment: scroll;
            color: #fff5f5;
        }
        .twilight-bookshelf {
            background: #2b1b1b;
            background-image: url("twi bg 1.jpg"); /* Shelf background */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }
        .book-t1 { background: url('twi1.jpg') center/cover; }
        .book-t2 { background: url('twi2.jpg') center/cover; }
        .book-t3 { background: url('twi3.jpg') center/cover; }
        .book-t4 { background: url('twi4.jpg') center/cover; }
        .book-t5 { background: url('twi5.jpg') center/cover; }

        .hall-section {
            background: linear-gradient(135deg, #ff69b4 0%, #4facfe 50%, #ffd700 100%);
            background-image: url("mh bgf.jpg");
            background-size: cover;
             background-attachment: scroll;
            color: #c00147;
        }
        .hall-bookshelf {
            background: #d6c7a1;
            background-image: url('mh bg1.jpg');
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center;
        }
        .book-h1 { background: url('mh1.jpg') center/cover; }
        .book-h2 { background: url('mh2.jpg') center/cover; }
        .book-h3 { background: url('mh3.jpg') center/cover; }

        .other-section {
            background: linear-gradient(135deg, #ff69b4 0%, #4facfe 50%, #ffd700 100%);
            background-image: url("other bg2.jpg");
            background-size: cover;
             background-attachment: scroll;
            color: #56ddff;
        }
        .other-bookshelf {
            background: #d6c7a1;
            background-image: url('other bg5.jpg');
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center;
        }
        .book-o1 { background: url('Ramayana,_The_Epic.jpg') center/cover; }
        .book-o2 { background: url('start.jpg') center/cover; }
        .book-o3 { background: url('express.jpg') center/cover; }
        .book-o4 { background: url('paper towns.jpg') center/cover; }
        .book-o5 { background: url('rapunzel.jpg') center/cover; }
        .book-o6 { background: url('cinderella.jpg') center/cover; }

/* ===============================
   RESPONSIVE ADD-ON (MOBILE FIRST)
   =============================== */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Make books flexible by default */
.book {
  width: 100%;
  max-width: 250px;
}

/* Reduce heavy fixed backgrounds on mobile */
@media (max-width: 1024px) {
  .harry-potter-section,
  .summer-section,
  .twilight-section,
  .hall-section,
  .other-section {
    background-attachment: scroll;
  }
}

/* ===============================
   TABLETS (≤ 1024px)
   =============================== */
@media (max-width: 1024px) {

  .main-title {
    font-size: 2.5rem;
  }

  .series-title {
    font-size: 1.7rem;
  }

  .bookshelf {
    padding: 24px;
    gap: 18px;
  }

  .book {
    flex: 0 0 220px;
    height: 320px;
  }
}

/* ===============================
   LARGE PHONES (≤ 768px)
   =============================== */
@media (max-width: 768px) {

  .main-title {
    font-size: 2.2rem;
  }

  .series-section {
    padding: 16px;
    margin: 24px auto;
  }

  .bookshelf {
    padding: 16px;
    gap: 16px;
  }

  .book {
    flex: 0 0 45%;
    height: 300px;
  }

  .book-title {
    font-size: 1rem;
    padding: 10px 0;
  }
}

/* ===============================
   SMALL PHONES (≤ 480px)
   =============================== */
@media (max-width: 480px) {

  .main-title {
    font-size: 1.9rem;
    margin: 16px 0;
  }

  .series-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .bookshelf {
    padding: 12px;
    gap: 14px;
  }

  .book {
    flex: 0 0 100%;
    height: 280px;
  }

  .book-title {
    font-size: 0.95rem;
  }
}

/* ===============================
   FOOTER STYLES
   =============================== */
.site-footer {
  background-color: #222; /* dark background */
    background-image: url("hp\ bgff.jpg");
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  font-size: 0.9rem;
  border-top: 2px solid #444;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-footer .footer-links a {
  color: #ffd700; /* accent color */
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
  color: #fff;
}

/* ===============================
   SEARCH BAR
   =============================== */
.search-container {
  text-align: center;
  margin: 20px auto 40px;
}

#searchInput {
  width: 60%;
  max-width: 400px;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 25px;
  border: none;
  outline: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#searchInput::placeholder {
  color: #666;
}
/* ===============================
   SEARCH RESULTS EFFECT
   =============================== */
.no-results {
  text-align: center;
  font-size: 1.2rem;
  color: #ffdddd;
  margin-top: 20px;
  display: none;
}

/* Pop-up effect */
.book.search-match {
  animation: popUp 0.35s ease;
  transform: scale(1.08);
  z-index: 2;
}

@keyframes popUp {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}
/* ===============================
   SEARCH BAR ENHANCEMENTS
   =============================== */
.search-container {
  position: relative;
  width: 60%;
  max-width: 400px;
  margin: 20px auto 10px;
  color: #d6c7a1;
}

#searchInput {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 1rem;
  border-radius: 25px;
  border: none;
  outline: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Clear button */
#clearSearch {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  display: none;
}

/* Suggestions dropdown */
#suggestions {
  background: #9cbdf3;
  color: #000;
  border-radius: 12px;
  margin-top: 6px;
  overflow: hidden;
  display: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

#suggestions div {
  padding: 10px 15px;
  cursor: pointer;
}

#suggestions div:hover {
  background: #a8c6f4;
}

/* No result text */
.no-results {
  text-align: center;
  font-size: 1.2rem;
  display: none;
  margin-top: 15px;
}

/* Pop-up animation */
.book.search-match {
  animation: popUp 0.35s ease;
  transform: scale(1.08);
  z-index: 3;
}

@keyframes popUp {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* Highlight search text */
.highlight {
  background: rgb(255, 255, 129);
  color: black;
  padding: 2px 4px;
  border-radius: 4px;
}

.search-container {
  position: relative;
  width: 60%;
  max-width: 400px;
  margin: 20px auto;
}

#searchInput {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 25px;
  border: none;
  outline: none;
}

/* Clear cross */
#clearSearch {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  display: none;
  color: #444;
}

#clearSearch:hover {
  color: red;
}

.book.search-match {
  animation: popUp 0.35s ease;
  transform: scale(1.08);
}
