.decorative-line {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80%; /* Ensure it always stays within the page width */
    box-sizing: border-box; /* Include padding and border in width calculation */
}

@import url('site-theme.css');

.decorative-line::before,
.decorative-line::after {
    content: "";
    flex: 1;
    border-top: 2px solid orangered; /* Line thickness and color */
    max-width: 100%; /* Ensure lines don't exceed the container width */
}

.decorative-line span {
    margin: 0 10px;
    font-size: 24px; /* Adjust flower size */
}

@media (max-width: 768px) {
    .decorative-line span {
        font-size: 18px; /* Adjust flower size for smaller screens */
    }
    .decorative-line {
        max-width: 100%; /* Adjust for smaller screens */
    }
}


/* FLip Book main Start */


#cover_checkbox:checked~#flip_book {
    transform: translateX(45%)
}

#flip_book {
    position: relative;
    width: 25%;
    max-width: 100%; /* Ensure it scales properly */
    height: auto; /* Maintain aspect ratio */
    aspect-ratio: 298 / 420;
    transition-duration: 1s;
    perspective: 2000px;
    margin: 0 auto; /* Center the flip book */
}



@media (max-width: 820px) {
    #cover_checkbox:checked~#flip_book {
        transform: translateX(-1%)
    }
    
    #flip_book {
        width: 83%;
        height: 60%;
    }
}

@media (max-width: 720px) {
    #cover_checkbox:checked~#flip_book {
        transform: translateX(-1%)
    }
    #flip_book {
        width: 83%;
        height: 60%;
    }
}

@media (max-width: 768px) {
    #cover_checkbox:checked~#flip_book {
        transform: translateX(-1%)
    }
    #flip_book {
        width: 83%;
        height: 60%;
    }

    #cover_text {
        font-size: 4vw;
    }

    .page-number {
        font-size: 2.5vw;
    }

    #firstpageText,
    #secondpageText,
    #lastPageText {
        font-size: 2.5vw;
    }

    #hanuman_image,
    .back_content {
        width: 100%;
        max-height: 100%;
    }

    .front_content, .back_content {
        font-size: 0.9rem;
        padding: 6px;
    color: var(--primary); /* Maroon replaced by theme primary */
    }

    #firstpageText, #secondpageText, #lastPageText {
        font-size: 0.9rem;
        padding: 6px;
    color: #FF4500; /* Red-Orange */
    }
}

@media (max-width: 480px) {

    #cover_checkbox:checked~#flip_book {
        transform: translateX(-1%)
    }
    #flip_book {
        width: 83%;
        height: 60%;
    }

    #cover_text {
        font-size: 5vw;
    }

    .page-number {
        font-size: 3vw;
    }

    #firstpageText,
    #secondpageText,
    #lastPageText {
        font-size: 2.5vw;
    }

    #hanuman_image,
    .back_content {
        width: 100%;
        max-height: 100%;
    }

    /* audio */
    .audio-player {
        align-items: center;
        border-radius: 10px;
    }

    button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 18px;
        margin: 0 5px;
        transition: 0.3s;
    }

    button:hover {
        color: #007BFF;
    }

    audio {
        width: 200px;
    }

    .front_content, .back_content {
        font-size: 0.8rem;
        padding: 5px;
        color: orangered; /* Maroon */
        padding: 0px;
    }

    #firstpageText, #secondpageText, #lastPageText {
        font-size: 0.8rem;
        padding: 5px;
        color: #FF4500; /* Red-Orange */
    }
}

@media (max-width: 1200px) {
    #cover_checkbox:checked~#flip_book {
        transform: translateX(-1%)
    }
    #flip_book {
        width: 83%;
        height: 60%;
    }
}

@media (max-width: 1024px) {
    #cover_checkbox:checked~#flip_book {
        transform: translateX(-1%)
    }
    #flip_book {
        width: 83%;
        height: 60%;
    }

    #firstpageText,
    #secondpageText,
    #lastPageText {
        font-size: 1.8vw;
    }

    .page-number {
        font-size: 2vw;
    }

    .front_content, .back_content {
        font-size: 1rem;
        color: #FF4500; /* Maroon */
    }

    #firstpageText, #secondpageText, #lastPageText {
        font-size: 1rem;
        padding: 8px;
        color: #FF4500; /* Red-Orange */
    }
}

.doha {
    /* text-align: center;  */
    margin: 1px auto;
    width: 90%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 3px;
    padding-left: 12%;
}

@media (max-width: 1000px) {
    .doha {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .doha {
        font-size: 1.4rem; /* Further adjust font size for very small screens */
        width: 100%; /* Ensure it fits within the screen */
    }
}


.front_cover,
.back_cover {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 2.5px 5px 5px 2.5px;
    background-image: url(./images/flip_book_edge_shading.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(220, 20, 60);
    box-shadow: 0 0 5px 0 rgb(25, 25, 25, 0.25);
    opacity: 0px;
}

.front_cover {
    position: absolute;
    cursor: pointer;
    transform-origin: center left;
    transition: transform 0.5s;
    z-index: 99;
}


.front_cover label {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page {
    position: absolute;
    /* top: 10px; */
    left: 1px;
    width: 288px;
    height: 400px;
    border-radius: 0 5px 5px 0;
    background-color: white;
    transform-origin: left;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition-duration: 0.5s;
}

.front_page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: white;
}

.front_page label {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 100;
}

.back_page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    z-index: 100;
    background: rgb(220, 20, 60);
}

.back_page label {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 100;
}

.edge_shading {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 98;
}

.front_content {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 287px;
    height: 398px;
    border-radius: 0 5px 5px 0;
    z-index: 97;
}

.back_content {
    /* position: absolute; */
    top: 1px;
    left: 1px;
    width: 100%;
    height: 100%;
    border-radius: 5px 0 0 5px;
}

.back_cover {
    position: relative;
    z-index: -1;
}

#cover_text {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    font-weight: bold;
    font-family: cursive;
    text-align: center;
    color: transparent;
    background-image: linear-gradient(45deg, #FFD700, #FFC300, #FFD700, #DAA520);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: blinkText 1s infinite alternate, goldShine 4s infinite linear;
    text-shadow: 2px 2px 5px rgba(255, 223, 0, 0.8);
    z-index: 100;
}

.page-number {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 14px;
    font-weight: bold;
    color: red;
}

#firstpageText {
    padding-left: 9%;
    padding-right: 5%;
    font-size: 23px;
    font-weight: bold;
    color: red;
    text-align: justify;
    position: absolute;
    padding-top: 6%;
}

#secondpageText {
    padding-left: 5%;
    padding-right: 5%;
    font-size: 20px;
    font-weight: bold;
    color: red;
    text-align: justify;
    position: absolute;
    padding-top: 15%;
}

#lastPageText {
    padding-left: 9%;
    padding-right: 9%;
    font-size: 27px;
    font-weight: bold;
    color: red;
    text-align: justify;
    position: absolute;
    padding-top: 22%;
}

/*  */

.front_cover,
.back_cover {
    width: 100%;
    height: 100%;
}

.page {
    width: 100%;
    height: 100%;
}

.front_page,
.back_page {
    width: 100%;
    height: 100%;
}

.page-number {
    font-size: 1.5vw;
    bottom: 1%;
    right: 5%;
}

.front_content, .back_content {
    font-size: 1.1rem;
    line-height: 1.1;
    text-align: justify;
    color: orangered; /* Maroon */
}

#firstpageText, #secondpageText, #lastPageText {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    padding: 10px;
    color: #FF4500; /* Red-Orange */
    font-weight: bold;
}

/* FLip Book main End */

