body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #e7e1dc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
    width: 90%;
}
.narrow {
    max-width: 660px;
}
h1, h2 {
    color: #555;
    text-align: center;
}
form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    align-items: flex-end;
    border: solid 3px #121212;
    background-color: #e7e1dc;
    @media(max-width: 900px) {
        flex-direction: column;
        align-items: center;
    }
}
form div {
    flex: 1;
    min-width: 200px;
}
form > * {
    @media(max-width: 900px) {
        width: 100%;
    }

}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="text"], input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
button {
    padding: 8px 20px;
    background-color: #121212;
    border: 1px solid #121212;
    color: white;
    cursor: pointer;
}
button:hover {
    background-color: black;
    border-color: black;
}
.results-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #eee;
    font-weight: bold;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
.no-results, .error {
    padding: 15px;
    background-color: #ffe0e0;
    border: 1px solid #ffb3b3;
    color: #d8000c;
    border-radius: 5px;
    margin-top: 15px;

}
.info {
    padding: 15px;
    background-color: #c8e6c9;
    border: 1px solid #66bb6a;
    color: #2e7d32;
    border-radius: 5px;
    margin-top: 15px;
}
.thumbnail {
    max-width: 60px;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}
.thumbnail-default {
    width: 60px;
    height: 85px;
    background-color: #e7e1dc;
    text-align: center;
    font-size: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: serif;
}
.search-display {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
}
.search-card {
    background-color: #efefef;
    border: solid 1px #dedede;
    border-radius: 8px;
}
.search-card-layout {
    display: flex;
    padding: 1rem;
    gap: 1rem;

}
.genre-info {
    width: 100%;
    background-color: #631414;
    color: white;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 4px;
    font-family: serif;
}
.search-card-book-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    @media (max-width: 900px) {
        flex-direction: column;
        justify-content: flex-start;

    }
}
.search-item-count {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem;
}
.logo-wrapper {
    display: flex;
    justify-content: center;
}
.logo {
    max-width: 220px;
}
footer {
    display: flex;
    justify-content: center;
    color: #777;
    font-size: 0.75rem;
    padding: 20px;
}
.text-muted {
    color: #888;
}
.text-right-lg {
    text-align: right;
    @media(max-width: 900px) {
        text-align: left;
    }
}
