html{
  scroll-behavior: smooth;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e1e1e;
  padding: 10px 20px;
  flex-wrap: wrap;
  color: white;
}

.header-left {
  flex: 1;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}
.logo-title {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 70px; /* adjust size as needed */
  margin-right: 10px;
}

.site-title {
  font-size: 28px; /* or match what you were using */
  font-weight: bold;
  color: white; /* adjust as needed */
}

.header-center {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  background-color: #b22222; /* red background */
  padding: 15px 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  z-index: 1;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content a {
  color: black;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.category-link:hover {
  background-color: #ddd;
}
.book {
  transition: border 0.3s ease;
}

.book:target, .book.highlighted {
  border: 3px solid #ff6600;
  box-shadow: 0 0 10px #ff6600;
}

.search-input {
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}
.search-message {
  color: rgb(238, 230, 15);
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
  display: none;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.login-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}
* {
    box-sizing:border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
  }
  
  header {
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .title {
    font-size: 1.5 rem;
  }
  
  .login-link {
    color: white;
    margin-left: 10px;
    text-decoration: none;
  }
  
  nav {
    background-color: #a93535;
    padding: 0.5rem;
    text-align: center;
  }
  
  nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    display: inline-block;
  }
  .slider {
    width: 90%;              /* Increase width */
    height: 300px;           /* Optional: control height */
    margin: 20px auto;       /* Center horizontally */
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.837);
    overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;

  }
  
  .slides {
    display: flex;
    width: 50%;
    height: 200%;
    gap: 35px;
    animation: slide 20s infinite;
  }
  
  .slides img {
    width: 200%;
    height: 50%;
    object-fit: cover;       /* Crop and fill image nicely */
    border-radius: 6px;
      border: 1px solid #000000;
  user-select: none;
  touch-action: pan-y;

  }
  
  @keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
  }



/* 🟡 Advertisement banner line */
.ad-banner-line {
  width: 90%;
  margin: 10px auto 0;
  text-align: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.7);
  color: #f5e71f;
  font-weight: bold;
  font-size: 18px;
  padding: 8px;
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}

/* Scrolling animation */
.ad-banner-line::after {
  content: attr(data-text);
  display: inline-block;
  padding-left: 100%;
  animation: scrollBanner 13s linear infinite;
  white-space: nowrap;
}

/* Pause on hover or touch */
.ad-banner-line:hover::after,
.ad-banner-line:active::after {
  animation-play-state: paused;
}

@keyframes scrollBanner {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
/* 🔁 Responsive Styles */
@media (max-width: 768px) {
  .ad-banner-line {
    font-size: 14px;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .ad-banner-line {
    font-size: 12px;
    padding: 5px;
  }

}
  
  .section {
    padding: 20px;
    background-color: white;
    margin: 10px;
    border-radius: 10px;
    max-width: 1200;
  }
  
  .books {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  .book {
    width: 150px;
    height: 30%;
    text-align: center;
  }
  
  .book img {
    width: 120px;           /* Fixed width */
    height: 170px;          /* Fixed height */
    object-fit: box;      /* Crop and fill without distortion */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Responsive Styles */
@media (max-width: 768px) {
    header {
      flex-direction: column;
      text-align: center;
    }
  
    .book {
      width: 45%;
    }
  }
  
  @media (max-width: 480px) {
    nav a {
      display: block;
      margin: 10px 0;
    }
  
    .book {
      width: 90%;
    }
  
    .slider {
      height: 200px;
    }
  }
  .footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #0b0a0a;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    color: #f4efef;
  }
  
  .footer-section {
    flex: 1 1 200px;
    margin: 10px;
  }
  
  .footer-section h2,
  .footer-section h3 {
    margin-bottom: 10px;
    color: #f3efef;
  }
  
  .footer-section p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 8px;
  }
  
  .footer-section ul li a {
    text-decoration: none;
    color: #cdd622d4;
  }
  
  .footer-section ul li a:hover {
    text-decoration: underline;
  }
  
  .social-icons img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }
  


