        /* Additional styling */
        /* body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            color: #333;
            margin: 0;
            display: flex;
            flex-direction: column;
        } */

        .top-bar {
            background-color: #333;
            color: white;
            padding: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-bar h1 {
            margin: 0;
            font-size: 1.5em;
        }

        .top-bar nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }

        .top-bar nav ul li {
            display: inline;
            margin-left: 15px;
        }

        .top-bar nav ul li a {
            color: white;
            text-decoration: none;
        }

        .container {
            display: flex;
            flex: 1;
            width: 100%; /* Full width */
            max-width: 100vw; /* Ensures it doesn’t exceed the viewport */
            box-sizing: border-box; /* Padding is included within width */
            transition: all 0.3s ease-in-out;
        }
        
        
/* Sidebar */


.sidebar {
    width: 200px;
    background-color: #a46a6a;
    padding: 15px;
    border-right: 1px solid #ccc;
    transition: transform 0.4s ease, opacity 0.4s ease; /* Smooth transition */
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
}
.sidebar.hidden {
    width: 0; /* Collapses the sidebar */
    overflow: hidden; /* Ensures content is hidden */
    padding: 0; /* Removes padding when hidden */
    transition: all 0.3s ease-in-out;
}
.sidebar h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 15px 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 5px;
    margin: 5px 0;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
}

.sidebar ul li:hover,
.sidebar ul li a:hover {
    background-color: #636262;
    color: #e9efed;
}

/* Main Content */
#main-content {
    flex: 1;
    padding: 20px;
    background: #b0bdb2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* Search Bar */
.search-bar {
    display: block;
    margin: 20px auto;
    padding: 10px;
    width: 80%;
    max-width: 500px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Book List */
.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.book {
    background-color: #fefefe;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: auto;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
}

.book:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.book-header {
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

.book-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.metadata {
    font-size: 0.9rem;
    color: #777;
    margin-top: 4px;
}

.book-description {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    max-height: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-description::after {
    content: '...';
    display: inline-block;
    width: 100%;
    text-align: right;
    color: #999;
}

@media (max-width: 768px) {
    .book {
        padding: 10px;
    }
    .book-title {
        font-size: 1.2rem;
    }
    .book-description {
        font-size: 0.85rem;
    }
}


/* Footer */
footer {
    text-align: center;
    width: 100%;
    padding: 15px;
    background-color: #333;
    color: #f7c13e;
}


        @media (max-width: 768px) {
            /* Adjust font sizes, padding, margins, etc., for mobile */
            body {
                font-size: large; 
            }
        
            .book {
                max-width: 96%; /* Make book elements full-width */
                margin: 10px 0;
                font-size: large;
            }
        
            /* Adjust top-bar for mobile */
            .top-bar {
                flex-direction: column;
                align-items: center;
            }

            /* For very small screens */
            .chapter-list {
                display: flex;
                flex-wrap: wrap;
                gap: 15px;
                justify-content: center;
            }            
        
            .search-bar {
                width: 80%; /* Full width with padding */
            }
        }
        
