body {
    font-family: 'Roboto', sans-serif;
  }

/* Header Styles */
header {
    background-color: #343a40; /* Dark background color */
    color: #fff; /* Text color */
    padding: 20px;
    text-align: center;
    
    /* Ensure cards don't overlap the main header */
    z-index: 1;
  
  }
  
  h1 {
    font-size: 36px;
    margin: 0;
  }
  
  h4 {
    font-size: 18px;
    margin-top: 10px;
  }
  
  /* Filter Styles */
  #filter-container {
    display: flex; /* Change to flex to align elements in a row */
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f2f2f2;
  }
  
  .filterBar {
    margin: 0 10px;
    display: inline-block; /* Display filter bars inline */
}
  
  label {
    font-weight: bold;
  }
  
  select, button {
    padding: 5px 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .search-input {
    padding: 5px 10px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    background-color: #f2f2f2;
    outline: none;
  }
  
/* Book Card Styles */
#booksSection {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; 
    margin: 20px -20px; /* Offset the margin added to .card + increased to add space on top */
    min-height: 300px; /* Set a minimum height */
    box-sizing: border-box; /* Include padding in the height calculation */
  }
  
  .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px; /* Margin added to separate cards */
    padding: 20px;
    text-align: left;
    transition: transform 0.2s ease-in-out;
    width: calc(33.33% - 40px); /* Adjust for desired card width and spacing */
    box-sizing: border-box; /* Include padding in the width calculation */
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  

  /* Book Card Styles */
  .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    text-align: left;
    transition: transform 0.2s ease-in-out;
    width: 300px;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card h2 {
    font-size: 24px;
    margin: 0;
  }
  
  .card h5 {
    font-size: 18px;
    color: #888;
  }
  
  .card img {
    width: 100%;
    margin-top: 20px;
    border-radius: 5px;
  }
  
  .card p {
    font-size: 16px;
  }
  
  /* Cart Styles */
  #cartSection {
    background-color: #343a40;
    color: #fff;
    padding: 20px;
  }
  
  #cartItems {
    margin-top: 10px;
  }
  
  .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
  }
  
  .cart-item h3 {
    font-size: 18px;
    margin: 0;
  }

  #ratePrice {
    display: flex; /* Change to flex to align elements in a row */
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 3px solid #f2f2f2;
    border-radius: 10px;
  }
  
  .remove-from-cart {
    background-color: #dc3545; /* Red background color for the "Remove" button */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
  }
  
  .remove-from-cart:hover {
    background-color: #c82333; /* Darker red on hover */
  }
  