/* ---------- Body Layout ---------- */
body {
    background: rgba(0, 0, 0, 0.75) url('../assets/readingroom.jpeg') center/cover fixed;
    color: #f0f0f0;
    padding-top: 65px;              /* Matches navbar height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ---------- Main content area (fills space between navbar & footer) ---------- */
.main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 0;
}

/* ---------- Reader Wrapper ---------- */
.reader-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;              /* Can grow/shrink with zoom */
    margin: 0 auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* ---------- Reader Panel ---------- */
.reader-panel {
    background: rgba(255, 255, 255, 0.97);
    color: #222;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    padding: 30px 50px 50px;
    flex: 1 1 auto;                 /* Fills available height */
    overflow-y: auto;               /* Scrolls only if content is too tall */
    line-height: 1.9;
    font-size: 1.12rem;
    position: relative;
}

/* Page number */
.page-number {
    position: absolute;
    bottom: 18px;
    right: 40px;
    font-size: 1rem;
    color: #555;
    font-family: Georgia, serif;
}

/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.8rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    user-select: none;
    z-index: 10;
    text-decoration: none;
}
.nav-arrow:hover {
    color: white;
    transform: translateY(-50%) scale(1.12);
}
.nav-left  { left: -70px; }
.nav-right { right: -70px; }