/* Custom CSS for book cards and responsiveness */

/* Ensure the main container takes up full width on smaller screens */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Custom Card Style for Book Covers */
.book-card {
    position: relative;
    overflow: hidden;
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.book-cover {
    width: 100%;
    height: 300px; /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
    background-color: #f8f9fa; /* Light background for default/missing cover */
    border-radius: 5px;
    transition: opacity 0.3s;
}

.book-card:hover .book-cover {
    opacity: 0.8;
}

/* Overlay for Title */
.book-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    color: white;
    padding: 10px 5px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    /* Optional: Hide on hover to make it more prominent when resting */
    /* opacity: 0; 
    transition: opacity 0.3s; */
}

/* .book-card:hover .book-title-overlay {
    opacity: 1;
} */

/* Custom styling for the logo/title */
.navbar-brand {
    font-family: 'Times New Roman', serif; /* A classic font for literature */
}

/* Offcanvas styles for dark theme */
#offcanvasCategories .list-group-item:hover {
    background-color: #343a40;
    color: #fff;
}
/* Custom CSS for book cards and responsiveness */

/* Fixed height for uniform book covers */
.book-cover {
    width: 100%;
    /* Aspect ratio for a book (approx 2:3) */
    height: 150px; 
    object-fit: cover;
    display: block;
    background-color: #f8f9fa; /* Default background for missing cover */
    border-radius: 5px;
}

/* Book Card Style */
.book-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    background-color: #fff;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Overlay for Title */
.book-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(255 250 236 / 41%);
    color: #000000;
    backdrop-filter: blur(7px);
    text-shadow: 1px 1px #c5c5c5;
    padding: 8px 5px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    min-height: 45px; /* Ensure space for longer titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category menu styling in offcanvas */
#category-menu .accordion-button {
    text-align: left;
    font-weight: bold;
}

/* Ensure the full-width header is prominent */
.sticky-top {
    z-index: 1030; /* Higher than bootstrap modals/offcanvas */
}
.display-5 {
    font-size: 1.5rem;
    text-shadow: 1px 1px #0000004d;
}
.h3, h3 {
    font-size: 1.3rem;
    text-shadow: 1px 1px #00000045;
}
.h4, h4 {
     font-size: 1.2rem;
  }
.lead {
    font-size: 1rem;
}
.bg-dark {
    background-image: linear-gradient(to top, #31040f 0%, #83423a 100%) !important;
}
.navbar .text-primary {
    color: rgb(240 227 194) !important;
}


footer .text-muted {
    color: rgb(223 223 223) !important;
}
.text-primary {
    color: rgb(104 45 44) !important;
}
.btn-outline-primary {
    border: 1px solid #521d21;
    color: #622929;
}
.btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: #7c3d36;
    border-color: #723531;
}
.navbar-brand {
    margin-top: -20px;
}
.navbar .btn:hover {
    background-color: #ffffff;
    border-color: #ededed;
}
.btn-group-sm>.btn, .btn-sm {
    padding: 2px 5px;
    font-size: 13px;
    text-shadow: 1px 1px #dfdfdf;
}
.navbar-expand-lg {
    justify-content: space-between;
    height: 55px;
}
.navbar-brand img {
    height: 100px;
}
@media (max-width:920px) {
.navbar-expand-lg {
    height:auto;
    }
}
@media (max-width:920px) {
    .navbar-brand img {
    display:none;
}
}
.navbar-brand {
    margin-top: 10px;
}
