﻿body {

    }



/* Book Layout Section */

.book-page {
    background-image: url('../Images/6x9_OpenBook.jpg');
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 2rem;
    width: 950px;
    height: 675px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 1.0s ease-in-out;
}

    .book-page.fade-in {
        opacity: 1;
    }


.left-side {
    /*    background-color:burlywood;*/
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center; /* horizontal centering */
    height: 100%; /* or a fixed height like 700px */
}

.right-side {
    margin-top: 70px;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    max-height: 80%;
    overflow-y: auto;
    padding-top: 1.5rem;
    box-sizing: border-box;
}

.prose-content {
    text-align: center;
    font-family: 'Dancing Script';
    font-size: 2rem;
    color: #442c1e;
    /* margin-top: 20px;*/
}

.prose-content {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

/*.chapter-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #442c1e;
    text-align: center;
}*/

.chapter-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    text-align: left;
    color: #3c2f1f;
}


.chapter-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #7b5e42; /* Soft brown or sepia tone */
    text-align: left;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}



.centered-image {
    display: block;
    margin: 1rem auto;
    width: 300px;
    border-radius: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    cursor: pointer;
}


.audio-player {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}



#pdf-book-container {
    margin-top: -2rem;
}

.scrollable-book {
    padding-top: 0;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    scroll-behavior: smooth;
}

canvas {
    display: block;
    margin: 2rem auto;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.navigation-buttons {
    text-align: center;
    margin-top: 1rem;
}

.nav-button {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.6rem 1.4rem;
    background-color: #d2b48c; /* Tan */
    color: #3c2f1f; /* Deep brown text */
    border: 2px solid #8b5c2c; /* Medium brown border */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .nav-button:hover {
        background-color: #a37c4e; /* Rich saddle brown on hover */
        color: #fff; /* White text on hover for contrast */
        transform: scale(1.05);
        cursor: pointer;
    }



    /* ===========================
   Responsive: Tablet
   =========================== */
    @media only screen and (max-width: 1023px) {
        .left-side, .right-side {
        width: 100%;
        float: none;
        padding: 1.5rem;
    }

    .book-page {
        background-image: url('../Images/6x9_OpenBook.jpg');
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 2rem;
        width: 950px;
        height: 675px;
        margin-top: 20px;
    }

    .scrollable-book {
        max-width: 90%;
    }
}
/* ===========================
   Responsive: Phone
   =========================== */

@media (max-width: 768px) {

    .left-side {
        margin-bottom: 0;
        padding-bottom: 0.5rem;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .right-side {
        margin-top: 0;
        padding-top: 0.5rem;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .left-side::after {
        content: "";
        display: block;
        width: 60%;
        height: 1px;
        background-color: rgba(0,0,0,0.1);
        margin: 1rem auto;

    }


    .book-page {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        background-image: none;
        width: 100vw;
        height: 100vh;
        margin: 0 auto;
    }

    canvas {
        width: 100% !important;
        height: auto !important;
    }
}
