/* ------------------------------
   Global Reset & Base Styles
--------------------------------*/
body {
    font-family: Arial, sans-serif;
    background: #f3f8f3; /* soft green-tinted background */
    color: #222;
}
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.center-button {
    text-align: center;
    margin-top: 1.5rem;
}
.author-header img {
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto 1rem auto;
}
/* ------------------------------
   Header
--------------------------------*/
header {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

/* ------------------------------
   Navigation
--------------------------------*/
nav {
    background: #2e7d32; /* primary green */
    padding: 0.75rem;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
}

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

/* ------------------------------
   Homepage Intro Box
--------------------------------*/
.intro {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Buttons */
.button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: #43a047; /* accent green */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.button:hover {
    background: #2e7d32;
    box-shadow: 0 0 12px rgba(46, 125, 50, 0.6);
}
.button:hover {
    background: #2e7d32; /* darker on hover */
}

/* ------------------------------
   Author List
--------------------------------*/
ul.author-list li {
    background: #fff;
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

ul.author-list li a {
    text-decoration: none;
    color: #2e7d32; /* green links */
    font-weight: bold;
}
ul.author-list li a:hover,
.book-item a:hover {
    text-shadow: 0 0 6px rgba(46, 125, 50, 0.5);
}
ul.author-list li a:hover {
    text-decoration: underline;
}

/* ------------------------------
   Author Page Layout
--------------------------------*/
.author-header {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* ------------------------------
   Book List
--------------------------------*/
.book-item {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.book-item a {
    color: #2e7d32; /* green links */
    font-weight: bold;
    text-decoration: none;
}

.book-item a:hover {
    text-decoration: underline;
}
/* ------------------------------
   Thumbnail Grid
--------------------------------*/
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.thumbnail-grid img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(46, 125, 50, 0.25);
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(46, 125, 50, 0.5);
}

/* ------------------------------
   Footer
--------------------------------*/
footer {
    background: #1b5e20;
    color: #e0e0e0;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}