@font-face {
    font-family: 'Poppins';
    src: url('Poppins-Regular.woff2') format('woff2'),
         url('Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
  }
body {
    font-family: 'Inter', sans-serif;
    padding: 10px;
  }
  .my-icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 1.5em;
  }
  .header{
    height: 2.5rem;
    font-weight: 700;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: white;
  }
  .add-button{
    display: flex;
    align-items: center;
    background-color: black;
    border-radius: 5px;
    color: white;
    border: 1px black;
    font-size: 1rem;
    height: 100%;
    cursor: pointer;
    padding: 0 20px;
  }
  .text{
    padding: 0.5em;
    font-style: bold;
  }
  .search-container {
    margin-top: 10px;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}
.search-container2 {
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 100%;
    justify-content: top;
    overflow-y: 0;
}
.search-input {
    width: 100%;
    padding: 10px 10px 10px 40px; /* Padding adjusted for icon */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 50px;
    box-sizing: border-box;
}
.search-input2 {
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 50px;
    /* margin: 10px 0px; */
    height: fit-content;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}
.search-icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 1.5em;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 18px;
    pointer-events: none; /* Make icon unclickable */
}
  .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 15px;
    max-width: 1200px;
}
.card {
    width: 40vw;
    background-color: #fff;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    border: 1px #9e9e9e solid;
    margin-top: 10px;
}
.card:hover {
    transform: scale(1.05);
}
.card img {
    width: 100%;
    aspect-ratio: calc(1/1.5);
    object-fit: cover;
}
.card-content {
    padding: 0 0.5rem 0.5rem;
}
.card-title {
    padding-top: 2px;
    font-size: 0.6rem;
    font-weight: bold;
}
.card-author {
    padding-top: 2px;
    color: #696969;
    font-size: 0.517rem;
}
.card-date {
    font-size: 0.5rem;
    color: #999;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Show modal */
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal content */
.modal-content {
    background-color: #fff;
    height: 70vh;
    width: 100%;
    position: fixed;
    bottom: 0;
    border-radius: 40px 40px 0 0 ;
    display: flex;
    overflow-y: auto;
}

/* Close button */
/* .modal-close {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    border: none;
    background: none;
} */
.search-results{
    margin: 0;
    overflow-y: auto;
}
.book-list {
    list-style: none; /* Remove default list styles */
    padding: 0; /* Remove default padding */
}
.book-item {
    display: flex; /* Use flexbox for layout */
    align-items: flex-start; /* Align items at the start */
    border: 1px solid #bababa;
    border-radius: 10px; /* Rounded corners */
    transition: transform 0.2s; /* Smooth transition for hover effect */
    cursor: pointer; /* Change cursor to pointer on hover */
    background-color: #ffffff; /* Light background for items */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); Subtle shadow */
    font-family: 'Inter',sans-serif;
    width: auto;
    margin: 15px 0px;
}
.book-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.book-image {
    width: 50px; /* Set a fixed width for images */
    height: auto;
    margin-right: 15px; /* Space between image and text */
    margin: 10px;
    border-radius: 4px; /* Optional: round the image corners */
}
.book-details {
    display: flex; /* Use flexbox for vertical layout */
    flex-direction: column; /* Arrange items in a column */
    justify-items: left; /* Align to the start */
    padding: 10px;
}
.menu{
    display: flex;
    width: 100vw;
    height: fit-content;
    background-color: #000000;
    position: fixed;
    bottom:0;
    right:0;
    font-size: 1.5rem;
    justify-content: space-around;
    padding: 10px;
    color: #fff;
}
.item-title{
    font-family: 'Inter';
    font-size: 15px;
    color: rgb(0, 0, 0);
    font-weight: 800;

}
.item-authors{
    font-size: 11px;
    color:grey;
    margin-top: 5px;
}