body {
  margin: 0;
  background-image: url(https://img.freepik.com/premium-photo/abstract-128-background-wallpaper_792836-222009.jpg?semt=ais_hybrid&w=740&q=80);
   
  font-family: Arial, sans-serif;
}

 .logob {
  display: flex;
  align-items: center;
  gap: 10px; 
}

.logo {
  height: 60px;
  width: 60px;
}

#brand{
  font-family: 'Georgia', serif;
  color: #40439a;
}
.header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 25px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
h1{
  font-family: 'Georgia', serif;
  color: #20006b;
  margin-left: 50px;
}

img, h1{
  display: flex;
  align-items: center;
}
h1 {
  font-size: 28px;
  color: #222;
  margin: 0;
}
.rightsection {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.btn {
  background-color: #6e8be1;
  color: black;
  padding: 10px 20px;
  border: 2px solid black;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;

}

.btn:hover {
  background-color: lightblue;
}

.dropdownform {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 220px;
  z-index: 10;
}

.login-container:hover .dropdownform,
.signup-container:hover .dropdownform {
  display: block;
}
.dropdownform input {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border: 1px solid #aaa;
  border-radius: 5px;
  box-sizing: border-box;
}

.dropdownform button {
  width: 100%;
  padding: 8px;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.dropdownform button:hover {
  background-color: lightblue;
  color: black;
}
.navbar{
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: black;
  padding: 14px 16px;
}

.navbar a{
  color: black;
  text-decoration: none;
  padding: 14px 16px;
}
.navbar a:hover{
  background-color: lightblue;
  color: black;
}


h3{
  font-style: italic;
  text-align: right;
  color: rgb(19, 16, 16);
  font-size: medium;
}

.banner{
  background-image: url(https://png.pngtree.com/background/20250315/original/pngtree-blurred-empty-library-interior-with-bookshelves-and-white-floor-picture-image_16379068.jpg) ;
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  margin: 20px;
}
.head{
  margin-left: 500px;
  color: rgb(3, 3, 3);
  font-size:xx-large;
  font-weight: bold;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.search {
 max-width: 600px;
 margin: 0 auto;
 display: flex;
 background-color: gray;
border-radius: 8px;
overflow: hidden;
border: #333 solid 2px;
        }
.search input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 1em;
        }
.searching{
  background-color: #af97e1;
  color: white;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
 }
.searching:hover {
  cursor: pointer;
  background-color: #5f62b1;
}
.book-list, .movie-list{
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      cursor: pointer;
      gap: 80px;
      align-items: center;
      padding: 15px;
      background-size: cover;
    
  }
  .book-item:hover{
    transform: scale(1.03);
  }
  .book-item{
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    align-items: center;
    border: 6px solid #ddd;

  }
  .author, .authorb{
    background-color: rgb(37, 39, 169);
    color: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  }
  .title,.headingb {
    font-weight: bold;
    text-align: center;
    margin-top: 4px;
  }
  .lib{
    text-align: center;
    color: rgb(47, 47, 47);
    cursor: pointer;
  }
  .lib:hover{
    color: rgb(137, 53, 53);
  }

  .rating {
    background-color: #ffd700;
    color: #000;
    width: 90%;
    margin-left: 2px;
    text-align: center;
    padding: 5px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
  }
  .rating:hover {
    background-color: #4db206;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }


 .movie-list{
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      cursor: pointer;
      gap: 80px;
      align-items: center;
 
      padding: 15px;
     
      background-size: cover;
  }
  .movie-item:hover{
    transform: scale(1.03);
  }
  .movie-item{
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    align-items: center;
    border: 6px solid #ddd;


  }
  .director{
    background-color: rgb(37, 39, 169);
    color: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  }
  .title1 {
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
  }

  .rating1 {
    background-color: #ffd700;
    color: #000;
    width: 90%;
    margin-left: 2px;
    text-align: center;
    padding: 5px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
  }
  .rating1:hover {
    background-color: #4db206;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  } 
  .heading3 ,.heading2 {
    text-align: center;
    color: rgb(15, 15, 79);
    font-family: 'Times New Roman', Times, serif;
    font-size: xx-large;
    }
.explore-categories {
  padding: 2rem;
}

.headerr,.headerr3, .headerr4, .headerr5, .headerr6{
  display: flex;
  justify-content: space-between;
  align-items: center;

}
.headerr h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.view-all {
  text-decoration:none;
  color: #000000f5;
  font-size: 0.8rem;
  font-weight: bold;
  
}
.view-all:hover {
  text-decoration: underline;
  color: red;
  font-weight: bold;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  border: 1px solid black;
  box-shadow: #333 0 2px 8px rgba(0,0,0,0.9);
  margin-left: 5px;
  margin-right: 5px;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card .icon {
  width: 40px;
  height: 40px;
  background-color: #e0e0e0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.category-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #777;
}
.aboutauthors{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow-x: hidden;
  overflow-y: hidden;
  cursor: pointer;
  gap: 50px;
  align-items: center;
  padding: 15px;
  background-size: cover;
}
.authoritem:hover{
  transform: scale(1.03);
}
.authoritem{
  align-items: center;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  align-items: center;
  border: 6px solid white;  
  background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSd5-fjYGrS2sBkcaOdNetCYyOJICB79JJpmQ&s);
  background-repeat: no-repeat;  
  background-position: center;     
  background-size: cover; 
  padding:5px;
}
#name{
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  font-size: larger;
}
.comment{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5px;
  padding: 4px;
} 
.libraryimage{
  margin-right: 200px;
}
.library-container{
  text-align: center;
  color: #001f3f;
  background-image: url(https://png.pngtree.com/background/20250315/original/pngtree-blurred-empty-library-interior-with-bookshelves-and-white-floor-picture-image_16379068.jpg);
  background-repeat: no-repeat;  
  background-position: center;     
  background-size: cover; 
  margin-top: -10px;

}
.library-container h2 {
  padding-top: 4px;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #252525;
}
.library{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 10px;
}

.book-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: 4px solid rgb(170, 167, 167);
  display: flex;
  align-items: center;
  width: 330px;
  padding: 15px;
}

.book-card:hover {
  transform: translateY(-8px);
}

.book-card img {
  width: 70px;
  height: 100px;
  border-radius: 8px;
  margin-right: 15px;
  object-fit: cover;
}

.book-info {
  text-align: left;
}

.book-info h3 {
  font-size: 1rem;
  color: #222;
  margin-bottom: 5px;
}

.author {
  color: #ffffff;
  font-size: 0.9rem;
}

.status {
  color: #28a745;
  font-size: 0.9rem;
  margin: 6px 0;
}
.cart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  padding: 10px 40px;
}

.cart-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 15px;
}

.cart-card:hover {
  transform: scale(1.05);
}

.cart-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.cart-card h3 {
  color: #0a3d62;
  font-size: 1rem;
}

.cart-card .author {
  color: #ffffff;
  margin-bottom: 10px;
}
.btn {
  padding: 7px 14px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.read, .watch {
  background-color: #4caf50;
  color: white;
}

.remove {
  background-color: #e74c3c;
  color: white;
}

.btn:hover {
  opacity: 0.8;
}

.cart-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}


.beginnerhead{
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: pointer;
  gap: 60px;
  align-items: center;
  padding: 15px;
  background-size: cover;
  margin-bottom: -10px;
}
.beginneritem{
  align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    align-items: center;
    border: 6px solid #ddd;
}
.beginneritem:hover{
    transform: scale(1.03);
  }
.footer {
  background: #1d1c1c;
  color: #fff;
  padding: 60px 10%;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}


.footer-container h3 {
  margin-bottom: 12px;
  color: #ffcc70;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 2px solid #ffcc70;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-about p {
  color: #ccc;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 8px 0;
}

.footer-links ul li a {
  color: #bbb;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #ffcc70;
}

.footer-contact p,
.footer-contact a {
  color: #bbb;
  text-decoration: none;
}

.footer-contact a {
  color: #fff;
  margin-right: 15px;
  font-size: 1.3rem;
  transition: 0.3s;
}

.footer-contact a:hover {
  color: #ffcc70;
}

.footer-n form {
  display: flex;
  gap: 10px;
}

.footer-n input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
}

.footer-n button {
  padding: 10px 20px;
  background: #ffcc70;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.footer-n button:hover {
  background: #ffaa00;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  color: #aaa;
  font-size: 0.9rem;
}
.f ,.t, .i{
  display: flex;
  gap: 2px;

}

