/* CSS styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400..700&display=swap');

.urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-style: normal;
    direction: rtl;
    line-height: 2.6
}
.english {
    font-family: 'Roboto', serif;
}
.urdu-ltr {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-style: normal;
    line-height: 2.6;
    direction: ltr;
}

.new-badge {
    position: absolute;
    top: -10px; /* Positioning the badge slightly inside the image */
    right: -10px;
    z-index: 1;
    padding: 4px 8px; /* Adjust padding for a better appearance */
    border-radius: 5px; /* Rounded corners for the badge */
    font-family: sans-serif;
    background-color: red;
}
.new-badge:hover {
   background-color:lightcoral;
}

.book-container img {
    width: 120px;
/*    display: block;*/
    margin: 0 auto;
    position: relative;
    border-radius: 10px; /*Optional: Add rounded corners to the image */
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/ /* Optional: Add a subtle shadow for depth */
}

.position-relative {
    display: inline-block;
    text-align: center;
}



.text-center p {
    margin-top: 10px;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 18px;
    font-size: 18px;
}

.book-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.author {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
}

.books img {
    max-width: 100%;
    height: auto;
}

.book-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.book-item {
    margin: 10px;
}

.row {
    justify-content: center;
}

.row .col a {
    color: black;
    font-size: 25px;
    text-decoration: none;
}
/*.book-container img {
    width: 120px;
}*/
.book-container-volume img {
    width: 60px;
}

.button-container {
    display: flex;
    justify-content: flex-end; /* Aligns the button to the right */
    align-items: center; /* Aligns the button vertically in the middle */
    height: 100%; /* Ensures it fills the height of the parent */
    padding: 20px; /* Adjust padding as needed */
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slide-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}




/* .text .chapters{
        text-align: center;
        padding-top: 10px;
        font-size: 20px;
      } */
.container.main {
    text-align: center;
}

.book-details {
    margin-bottom: 20px;
    animation: slide-up 1s ease;
}



/* h1{
        margin-left: 5px;
        margin-right: 5px;
      } */

 /*Chapter List Styli*/
.chapter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Chapter Item Styling */
.chapter-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 7px;
    margin-bottom: 8px;
    background-color: #f6f2f2;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

    .chapter-item:hover {
        background-color: #eaeaea;
        transform: translateY(-2px);
    }

/* Video Button Styling */
.video-button {
    background-color: #c7c7c7;
    color: #eaeaea;
    border: none;
    border-radius: 10%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .video-button:hover {
        background-color: #007bff;
        transform: scale(1.1);
    }

    .video-button i {
        font-size: 15px;
    }
    

/* Chapter Link Styling */
.chapter-link {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: right;
    flex-grow: 1;
    transition: color 0.3s ease;
}

    .chapter-link:hover {
        color: #007bff;
    }

.options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    cursor: pointer;
}

    .options a {
        text-decoration: none;
        color: #000000;
        padding: 10px 20px;
        border-radius: 15px;
        transition: background-color 0.3s ease;
        opacity: 0.8;
        margin-bottom: 10px;
    }

        .options a:hover {
            opacity: 2;
        }

.text-heading {
    direction: ltr;
    font-weight: bolder;
    font-size: 30px;
    margin-left: 300px;
}

.previous,
.next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #0009;
    background-color: #fff1;
    /* border: 1px solid; */
    outline: none;
    padding: 10px;
    z-index: 9999;
    transition: background-color 0.3s ease;
    border-radius: 31px;
    height: 50px;
    width: 50px;
    text-align: center;
    padding-top: 11px;
    opacity: 001;
}

    .previous:hover,
    .next:hover {
        color: #000;
        background-color: #f2f2f2;
        opacity: 100;
    }

.dark-mode .card {
    border: 1px solid rgba(255, 255, 255, 0.125);
    background: #333;
}

.previous {
    left: 10px;
}

.next {
    right: 10px;
}

.text-center {
    padding-top: 15px;
}

.home {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 30px;
    outline: none;
    transition: color, transform 0.5s ease-in-out;
}

    .home:hover {
        color: #929292;
        transform: scale(1.05);
    }



.image-container {
    float: right;
    position: relative;
    /* display: inline-block; */
    overflow: hidden;
    border-radius: 15px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    transition: box-shadow 0.3s ease;
}


img {
    overflow-clip-margin: content-box;
    overflow: clip;
    vertical-align: middle;
    border-style: none;
}


.book-image {
    max-width: 250px;
    width: 25vw;
    height: 100%;
    margin-right: 10px;
    transition: transform 0.3s ease;
    font-family: 'Urdu', sans-serif;
}

.image-container:hover .product-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.options-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    height: 100%;
    /* Adjust the height of the slide as needed */
}

.image-container:hover .options-slide {
    opacity: 1;
}

/* 
      header h1{
        background: white;
        color: black;
        width: fit-content;
        text-align: center;

      } */


.chapter-list li a {
    text-decoration: none;
    color: black;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}
.card-hover:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}