/* --- Base Styles (for Desktop and larger) --- */
body {
    background-color: #f0f0f0;
    margin: 0;
    font-family: sans-serif;
    overflow: hidden;
}
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 100vh;*/
    box-sizing: border-box;
}
.flip-book-container {
    width: 100vw;
    height: 100vh;
    max-width: 1000px;
}
.page {
    background-color: white;
    border: 1px solid #c9c9c9;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.page-content img {
    max-width: 80%;
    object-fit: contain;
}
.page-cover {
    background-color: #0b4d35;
    color: white;
}
.page-cover h2 {
    font-size: 2.5em;
    padding: 0 10px;
    margin-top: 50%;
    margin-bottom: 50%;
}

/* --- Drawer and Navigation Styles --- */
.drawer-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    background: #0b4d35;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.drawer-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
}
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    max-width: 80vw;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.drawer.open {
    transform: translateX(0);
}
.drawer-header {
    font-size: 1.5em;
    font-weight: bold;
    color: #0b4d35;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1998;
    display: none;
}
.nav-section {
    margin-bottom: 25px;
}
.nav-section h3 {
    margin-top: 0;
    margin-bottom: 10px; /* Add some space below the heading */
    color: #333;
}

/* New style for the dropdown menus */
.nav-select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
}
.page-jump {
    display: flex;
    gap: 10px;
}
#page-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#jump-button {
    padding: 8px 15px;
    border: none;
    background-color: #0b4d35;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

/* =================================================================== */
/*                      RESPONSIVE STYLES                              */
/* =================================================================== */


/* --- For Mobile Phones (Portrait) --- */
@media (max-width: 700px) {
    .page-content img {
        max-width: 100%;
    }
}

/* --- For Mobile Phones (Landscape) --- */
/* This targets screens that are wide but not tall */
@media (max-height: 600px) and (orientation: landscape) {
    .page-content img {
        max-width: 55%;
    }
}

