/* =====================================
GLOBAL
===================================== */

body {
margin: 0;
padding: 0;
padding-top: 70px; /* ADDED to offset fixed header */
font-family: Georgia, "Times New Roman", serif;
background: linear-gradient(to right, #3b2a1f, #4a3426, #3b2a1f);
color: #2b1d14;
}

a {
text-decoration: none;
}

/* =====================================
TOP NAV
===================================== */

header {
background: #2b1d14;
padding: 14px 0;
position: fixed;   /* ADDED */
top: 0;            /* ADDED */
width: 100%;       /* ADDED */
z-index: 1000;     /* ADDED */
}

nav {
max-width: 1200px;
margin: 0 auto;
padding-left: 20px;
}

nav a {
color: #f5f0e6;
margin-right: 24px;
font-size: 0.95rem;
}

nav a:hover {
text-decoration: underline;
}

/* =====================================
BOOK PAGE LAYOUT
===================================== */

.container {
max-width: 1200px;
margin: 40px auto;
padding: 0 20px;
display: flex;
gap: 40px;
align-items: flex-start;
}

.book-content {
flex: 3;
background: #e8ddc8;
padding: 50px;
border-radius: 6px;
box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.book-sidebar {
flex: 1;
background: #e8ddc8;
padding: 25px;
border-radius: 6px;
box-shadow: 0 0 15px rgba(0,0,0,0.35);
}

.book-sidebar a {
color: #0000cc;
}

/* =====================================
BOOK HEADER (IMAGE + META SIDE BY SIDE)
===================================== */

.book-header {
display: flex;
gap: 40px;
align-items: center;
margin-bottom: 30px;
}

.book-cover img {
max-width: 300px;
}

.book-meta h1 {
font-size: 2.8rem;
margin: 0 0 10px 0;
}

.book-meta p {
margin: 5px 0;
}

/* =====================================
POEM PAGE
===================================== */

.paper {
max-width: 850px;
margin: 40px auto;
background: #e8ddc8;
padding: 50px;
border-radius: 6px;
box-shadow: 0 0 18px rgba(0,0,0,0.35);
position: relative;
}

.fixed-header {
text-align: center;
}

.fixed-header h1,
.fixed-header h2 {
margin: 5px 0;
}

/* Scrollable poem area */

.scroll-area {
max-height: 500px;
overflow-y: auto;
margin-top: 20px;
}

/* Poem formatting */

pre {
font-family: "Courier New", monospace;
white-space: pre-wrap;
}

/* Bottom navigation */

.poem-nav {
margin-top: 30px;
display: flex;
justify-content: space-between;
}

/* =====================================
SIDEBAR FOR POEMS
===================================== */

.toggle-button {
display: block;
margin: 20px auto;
padding: 8px 14px;
background: #2b1d14;
color: #f5f0e6;
border: none;
cursor: pointer;
}

.sidebar {
position: fixed;
right: 40px;
top: 150px;
width: 250px;
background: #e8ddc8;
padding: 20px;
border-radius: 6px;
box-shadow: 0 0 15px rgba(0,0,0,0.35);
display: none;

```
/* === ADDED FOR LONG POEM LISTS === */
max-height: 70vh;
overflow-y: auto;
```

}

.sidebar.visible {
display: block;
}

.sidebar a {
color: #0000cc;
}

/* =====================================
BREADCRUMB
===================================== */

.breadcrumb-bottom {
max-width: 1200px;
margin: 20px auto 40px auto;
text-align: center;
color: #f5f0e6;
}

.breadcrumb-bottom a {
color: #f5f0e6;
}

.breadcrumb-bottom a:hover {
text-decoration: underline;
}

/* =====================================
RESPONSIVE
===================================== */

@media (max-width: 900px) {
.container {
flex-direction: column;
}

```
.sidebar {
    position: static;
    margin: 20px auto;
    max-height: none;
}
```

}

/* =====================================
FOOTER (NEW)
===================================== */

/* Sticky footer layout fix */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* Make main content expand */
.container,
.paper {
  flex: 1;
}

/* Footer bar */
.site-footer {
  background: #000;
  color: #fff;
  padding: 15px 10px;
  font-size: 1.1rem;
  text-align: center;
}

/* Footer layout */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Footer links */
.footer-content a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-content a:hover {
  text-decoration: underline;
}
