/* library.css */

body {
    margin: 0;
    font-family: Georgia, serif;
    background-color: #f8f8f8;
    color: #333;
}

/* Header */
.header {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* content */
    box-sizing: border-box;
    height: 100px; /* fixed height */
}


/* left of the header */
.header .logo {
    font-family: 'JMH Typewriter', monospace; /* custom font (it doesnt work :()*/
    font-size: 64px;
    flex: 1; /*  one-third of the header */
    padding: 5px; /* inside the logo section */
}


.header .logo-text {
    cursor: pointer; /* interactive */
    transition: color 0.3s ease; /* transition for color change */
}

.header .logo-text:hover {
    color: yellow;
}


/* Right side nav */
.header .nav-links {
    display: flex;
    gap: 30px; 
}

.header .nav-links a {
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 18px;
    transition: color 0.3s, text-decoration 0.3s;
}

.header .nav-links a:hover {
    color: yellow;
    text-decoration: underline;
}

.container {
    padding: 40px 80px;
    max-width: 1200px;
    margin: auto;
}

.search-area {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-area input[type="text"] {
    width: 400px;
    padding: 12px;
    font-size: 16px;
}

.search-area select {
    padding: 12px;
    font-size: 16px;
}

.search-area button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

.search-area button:hover {
    background-color: #0056b3;
}

.control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.control-bar select {
    padding: 10px;
    font-size: 14px;
}

.results {
    margin-top: 30px;
}

.result-item {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    align-items: start;
    transition: background-color 0.3s;
    gap: 20px;
}

.result-item:hover {
    background-color: #f0f0f0;
}

.result-item .index {
    font-size: 18px;
    font-weight: bold;
}

.result-item .title {
    font-size: 20px;
    font-weight: bold;
}

.result-item .details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item .author {
    font-size: 16px;
    color: #555;
}

.result-item .publisher {
    font-size: 16px;
    color: #555;
}

.result-item .date {
    font-size: 16px;
    text-align: right;
}

.result-item .language {
    font-size: 14px;
    color: #777;
    text-align: right;
}
/* page style */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination button {
    padding: 10px 10px;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
    border: 1px solid #ddd;
    transition: background-color 0.3s, color 0.3s;
    width: 50px; 
    text-align: center; 
    box-sizing: border-box;
}

.pagination button:hover:not(.disabled):not(.active) {
    background-color: #007BFF;
    color: white;
}

.pagination button.disabled {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #007BFF;
    color: white;
    cursor: default;
}

/* MISC styles */

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #007BFF;
}