/* General Styles */
* {
    /* Resetting padding, margin, and box sizing for all elements */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

body {
    /* Setting background color and text color for the page */
    background-color: black;
    color: beige;
}

/* Logo Styling */
/* Header / Navigation Bar Styling */

 /* General styling */
/* General styling */
.navbar {
  background-color: rgba(5, 105, 27, 0.13);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* Aligns items vertically in the center */
  flex-wrap: nowrap;
}
.k
{
  line-height: 50px;
}
.logo {
  display: flex; /* Ensures it aligns within flex container */
  align-items: center;
}

.logo img {
  width: 50px; /* Adjust as needed */
  height: auto;
  margin-left: 24vh;
}

.nav-links {
  display: flex;
  gap: 15px; /* Space between items */
  flex-wrap: nowrap;
  align-items: center; /* Centers items vertically */
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.navbar a:hover {
  background-color: rgb(34, 182, 182);
  opacity: 0.3;
  border-radius: 5px;
}

.navbar a.active {
  background-color: #a09bcc;
  border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar a {
      padding: 8px 10px;
      font-size: 14px; /* Smaller font size */
  }
  .nav-links {
      gap: 10px; /* Reduce spacing between links */
  }
}

@media (max-width: 480px) {
  .navbar a {
      font-size: 12px; /* Smaller font size for very small screens */
      padding: 6px 8px;
  }
  .nav-links {
      gap: 5px; /* Further reduce spacing */
  }
}





/* Hero Section Styling */
.hero {
    position: relative;
    color: rgb(166, 180, 162);
    text-transform: capitalize;
    padding: 60px 20px;
    text-align: center;
    font-weight: bold;
    font-size: large;
    overflow: hidden; /* Ensures pseudo-element fits within the container */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.wallpapersafari.com/13/84/lPFOq4.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Adjust this to control background image opacity */
    z-index: -1; /* Places the image behind the text */
}

/* Section Styling */
section {
    padding: 40px 20px; /* Added padding to ensure text doesn't touch screen edges */
    text-align: center;
}

/* Card Styling for Trending Books and Books sections */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    color: black;
}

/* Card Image Styling */
.card img {
    width: 150px; /* Adjusted width for smaller screens */
    height: auto; /* Maintains aspect ratio */
}

/* Card Styling */
.card {
    /* Card background, width, padding, shadow, and hover transform effect */
    background-color: rgb(255, 255, 255);
    width: 180px; /* Adjusted width for smaller screens */
    padding: 15px; /* Adjusted padding */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-align: center;
    transition: background-color 0.2s;
}

/* Hover effect for cards */
.card:hover {
    transform: scale(1.05);
    background-color: rgb(20, 23, 216);
}

/* Footer Styling */
footer {
    /* Footer background and text alignment */
    background-color: #333;
    color: white;
    padding: 15px; /* Adjusted padding */
    text-align: center;
}

/* JavaScript Button Styling */
#messageButton {
    margin-top: 20px;
    padding: 10px 15px; /* Adjusted padding */
    font-size: 16px;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#messageButton:hover {
    background-color: #333;
}
/*search bar*/
input[type="text"] {
    padding: 10px;
    font-size: 16px;
    margin-top: 20px;
    width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  ul {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
  }
  
  /* Initially hide the book list */
  .hidden {
    display: none;
  }
  
  li {
    padding: 20px;
    border: 1px solid #ddd;
    margin: 5px 0;
    width: 300px;
    margin-left: 83vh;
    background-color: #fff;
    color: black;
    top: 100%;
  }
   
/* Responsive Design */
@media (max-width: 600px) {
    /* Styles for mobile devices */
    .navbar {
        flex-direction: column; /* Stacks items vertically */
        align-items: flex-start; /* Aligns items to the left */
    }
    .navbar a {
        margin: 0; /* Removes margin for links */
        padding: 10px; /* Adjusts padding */
    }
    .hero {
        padding: 40px 20px; /* Adjusted padding */
    }
    .card {
        width: 90%; /* Full width for mobile */
    }
    li
    {
padding: auto;
width: 90%;
margin-left: 10px;
    }
}
