body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, "Helvetica", Roboto, sans-serif;
    background: url(bookshelf.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* stays in place while scrolling */
    color: #222;
}

a, a:visited{
    text-decoration: none;
    color: inherit;
}

a:hover{
    color: pink;
}

h1 {
    margin: 0;
    font-size: 2rem;
}
h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --------------------------- */
/* Heading / GIF Section */
.header {
    text-align: center;
    padding: 50px 20px 20px 20px;
}

.header .gifs {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.header .gifs img {
    width: 30px;
    height: auto;
}

#shelf-intro{
    max-width: 800px;        /* same as .library-section */
    margin: 10px auto;        /* center the container horizontally */
    padding: 10px 20px;       /* optional padding for small screens */

    border-image:  url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAsklEQVR4AezX0QqAIAwF0Ord//9QP6CeLkiy5ugStN1AFk5Hnvbisf3kqfehrbVzHOwfVUcUir33fRyYZ8nmE4XQPUJsdd5ahzpWzCeKk459+PTurUd+NeYV9QTQg9D21q/m64qyJSFeVxQC7ChRibIF2PXUoxJlC7DrpetRNlC4nkTDZM4GiTpA4bREw2TOhryiuGW+jQ7glM4nitslO050xkQ+UeOgn01LlE0t0bKiFwAAAP//JXtcRgAAAAZJREFUAwCp7LhVEeSV7gAAAABJRU5ErkJggg==') 14 /  14px / 0 round;
    border-width:  14px;
    border-style:  solid; 
}

/* --------------------------- */
/* Library Grid */
.library-section {
    max-width: 1200px;
    margin: 10px auto;
    text-align: center;
}

/* Grid of books */
.book-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.book {
    position: relative;
    width: 160px; /* fixed width for each book */
    height: 260px; /* same height for each book */
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;

}

.book img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book:hover {
    transform: scale(1.05);
}

/* Blurb overlay on hover */
.book .blurb {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    color: #222;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.2s;
    overflow-y: auto;
}

.book:hover .blurb {
    opacity: 1;
}

.blurb h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
}
.blurb .meta {
    margin-top: 5px;
    font-size: 0.75rem;
    margin-bottom: 5px;
}
.blurb p {
    font-size: 0.85rem;
}

/* --------------------------- */
/* Section Separators */
.section-separator {
    padding-bottom: 5px;
    
}

.section p{
    margin-bottom: 0px;

}

.link-back{
  margin: 10px;
}



#shelf-intro p{
  line-height: 1.6;
  font-size: 1rem;
}