* {
    box-sizing: border-box;
}

body {
    max-width: 1900px;
    margin: 0 auto;
    font-family: sans-serif;
    font-size: clamp(0.75rem, 0.625rem + 0.625vw, 1.25rem);
}

img {
    max-width: 100%;
    object-fit: cover;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

nav {
    justify-content: flex-end;
    align-items: center;
    background-color: #5a3e36;
    position: sticky;
    top: 0;
    padding: 15px;
}

nav a {
    margin: 0 1vw;
    padding: 3px 5px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.current {
    border-bottom: thin solid #fff;
}

nav a:not(.logo-icon):hover {
    border-bottom: thin solid #fff;
}

.logo-icon {
    display:inline-flex;
    width: 8%;
    padding: 5px 10px;
    margin: 5px auto 5px 10px;
    max-height: 70px;
}

header {
    height: 500px;
    min-height: 350px;
    text-align: center;
    padding: 100px 50px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home header {
    background-image: url(../images/book_club.jpg);
}

.about header {
    background-image: url(../images/bookstore.jpg);
}

.bookclub header {
    background-image: url(../images/book_club_1.jpg);
}

.books header {
    background-image: url(../images/books.jpg);
}

.contact header {
    background-image: url(../images/cashier.jpg);
}

header div {
    flex-direction: column;
    color: #5a3e36;
    font-weight: bold;
    font-size: 1.5em;
    background-color: rgba(255, 255, 255, .85);
    border-radius: 15px;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #d6a77a;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #b88a63;
}

.block h2 {
    text-align: center;
}

.block div.row {
    justify-content: space-evenly;
}

/* Home Page */
.home main>div.row{
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    background-color: #d6a67a26;
}

.welcomeImg img {
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
}

.welcomeTxt {
    margin: 30px;
    max-width: 500px;
}

.block .book {
    background-color: #fff;
    margin: 30px;
}

.book {
    text-align: center;
}

.book img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.block .events {
    background-color: #d6a67a26;
}

.events {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.eventImg {
    width: 500px;
    height: auto;
}

.eventTxt {
    max-width: 500px;
}

/* About Us Page */
.about main>div.row{
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    background-color: #d6a67a26;
    padding: 40px;
    gap: 35px;
}

.aboutImg img {
    border-radius: 15px;
}

.block .member {
    background-color: #fff;
    margin: 30px;
}

.member {
    text-align: center;
    font-weight: bold;
}

.member img {
    width: 250px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Bookclub Page */
.bookclub main>div.row{
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    background-color: #d6a67a26;
}

.bookclubTxt {
    text-align: center;
    max-width: 80%;
    margin-bottom: 30px;
}

.cBookImg img {
    width: 250px;
}

.cBookTxt {
    max-width: 500px;
}

.schedule .row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.accHeader {
    background-color: #b88b6368;
    width: 55%;
}

.accHeader h3 {
    background: url(../images/open.png) no-repeat 0 11px;
    padding: 10px 0 0 25px;
    cursor: pointer;
}

.accHeader .close {
    background-image: url(../images/close.png);
}

.accContent {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 20px;
}

.accContent img {
    width: 100px;
}

.join {
    margin-bottom: 30px;
}

/* Books Page */
.books main>div.row{
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    background-color: #d6a67a26;
}

.booksTxt {
    text-align: center;
    max-width: 80%;
}

.block .pick {
    background-color: #fff;
    margin: 30px;
}

.pick {
    text-align: center;
}

.pick img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.bookTable {
    margin: auto;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bookTable th {
    background-color: #5a3e36;
    color: #fff;
    height: 70px;
}

.bookTable td {
    padding: 12px;
    font-size: 0.95rem;
}

.bookTable tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.bookTable tbody tr.highlight {
    background-color: #f3e8e2;
    transition: background-color 0.3s ease;
}

/* Contact Us Page */
#contactForm label.error {
    font-size: 0.8em;
    color: #f00;
    font-weight: bold;
    display: block;
}

.contactForm {
    max-width: 600px;
    margin: auto;
}

form {
    display: block;
    flex-direction: column;
    margin-bottom: 30px;
}

form#contactForm .label {
    display: block;
    clear: left;
    float: left;
    width: 175px;
    text-align: right;
    padding: 7px 15px 0 0;
    font-weight: bold;
}

#submit {
    margin-left: 175px;
}

input, textarea {
    width: 300px;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: vertical;
    min-height: 200px;
}

.contactMap {
    margin: auto;
    max-width: 600px;
    margin-bottom: 30px;
}

#formConfirmation {
    text-align: center;
    padding: 50px;
}

/* Footer */
footer {
    display: flex;
    flex-wrap: wrap;
    background-color: #5a3e36;
    color: #fff;
    padding: 2rem;
    justify-content: space-between;
    align-items: center;
}

footer a {
    color: #d6a77a;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}