td {
    word-wrap: break-word;
    max-width: 200px; /* Adjust the max-width as needed */
}
/* Custom styles for the top bar */
.top-bar {
    background-color: #f0f0f0; /* Match the background color */
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 100px;
    height: auto;
    margin-left: 200px; /* Add margin to the right */
}

.menu {
    display: flex;
    align-items: center;
    margin-right: 200px; /* Add margin to the right */
}

.menu-item {
    margin-left: 20px;
    color: #000000; /* Blue color for menu items */
    text-decoration: none;
    font-weight: bold;
}

.menu-item:hover {
    color: #1E36BF; /* Darker blue color on hover */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed; /* Ensure fixed table layout */
    overflow: auto;
}


th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f2f2f2;
}

.book-cover {
    max-width: 100px;
    height: auto;
}

.search-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-image-small {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: 20px;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:hover {
    background-color: #1E36BF;
}

@media only screen and (min-width: 1024px) {
    .modal-content {
        max-width: 900px; /* Adjust this value to your desired max-width for desktops */
    }
}

@media (max-width: 1050px) {
    /* Adjust the top bar: hide menu, show only logo */
    .top-bar {
        justify-content: center;
    }

    .menu {
        display: none;
    }

    .logo {
        margin: 0 auto;
    }
}

@media (max-width: 931px) {
    /* Show only the first, second, and seventh columns */
    table td:not(:nth-child(1)):not(:nth-child(5)):not(:nth-child(6)),
    table th:not(:nth-child(1)):not(:nth-child(5)):not(:nth-child(6)) {
        display: none;
    }
    table {
        table-layout: auto;
    }

    /* Scale down text and images by 20% */
    body {
        font-size: 90%;
    }

    img {
        max-width: 90%;
        height: auto;
    }

    .book-cover {
        max-width: 80px; /* Scale down by 20% */
        height: auto;
    }

    /* Adjust the top bar: hide menu, show only logo */
    .top-bar {
        justify-content: center;
    }

    .menu {
        display: none;
    }

    .logo {
        margin: 0 auto;
    }
}

