html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .banner-img {
        height: 4rem !important;
    }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

@media (max-width:640px) {
    .text-center {
        text-align: left !important /* important only for demo*/
    }
}

@media (min-width: 768px) {
    .event-list > li {
        position: relative;
        display: block;
        width: 100%;
        height: 120px;
        padding: 0px;
    }

        .event-list > li > time,
        .event-list > li > img {
            display: inline-block;
        }

        .event-list > li > time,
        .event-list > li > img {
            width: 120px;
            float: left;
        }

        .event-list > li > .info {
            background-color: rgb(245, 245, 245);
            overflow: hidden;
        }

        .event-list > li > time,
        .event-list > li > img {
            width: 120px;
            height: 120px;
            padding: 0px;
            margin: 0px;
        }

        .event-list > li > .info {
            position: relative;
            height: 120px;
            text-align: left;
            padding-right: 40px;
        }

            .event-list > li > .info > .title,
            .event-list > li > .info > .desc {
                padding: 0px 10px;
            }

            .event-list > li > .info > ul {
                position: absolute;
                left: 0px;
                bottom: 0px;
            }

        .event-list > li > .social {
            position: absolute;
            top: 0px;
            right: 0px;
            display: block;
            width: 40px;
        }

            .event-list > li > .social > ul {
                border-left: 1px solid rgb(230, 230, 230);
            }

                .event-list > li > .social > ul > li {
                    display: block;
                    padding: 0px;
                }

                    .event-list > li > .social > ul > li > a {
                        display: block;
                        width: 40px;
                        padding: 10px 0px 9px;
                    }
}

/****************** BEGIN LOGIN ********************/
.gradient-custom-2 {
    /* fallback for old browsers */
    background: #fccb90;
    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right,#0b898e, #212529, #0b6d8e);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right,#0b898e, #212529, #0b6d8e);
}

@media (min-width: 768px) {
    .gradient-form {
        height: 100vh !important;
    }
}

@media (min-width: 769px) {
    .gradient-custom-2 {
        border-top-right-radius: .3rem;
        border-bottom-right-radius: .3rem;
    }
}

/****************** END LOGIN ********************/

/*** TOGGLER ICON */
.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

.custom-toggler.navbar-toggler {
    border-color: rgb(255,255,255) !important;
}

.register-title {
    color: white !important;
    background-color: #0c7ca1 !important
}

.close {
    opacity: 1 !important;
    color: white !important;
}
/********************* BEGIN REGISTER **********************/
/*.register {
    background: -webkit-linear-gradient(left, #0d92bf,#07495f, #212529);
    padding: 3%;
}

.register-left {
    text-align: center;
    color: #fff;
    margin-top: 4%;
}

    .register-left input {
        border: none;
        border-radius: 1.5rem;
        padding: 2%;
        width: 60%;
        background: #f8f9fa;
        font-weight: bold;
        color: #383d41;
        margin-top: 30%;
        margin-bottom: 3%;
        cursor: pointer;
    }

.register-right {
    background: #f8f9fa;
    border-top-left-radius: 10% 50%;
    border-bottom-left-radius: 10% 50%;
}

.register-left img {
    margin-top: 15%;
    margin-bottom: 5%;
    width: 25%;
    -webkit-animation: mover 2s infinite alternate;
    animation: mover 1s infinite alternate;
}

@-webkit-keyframes mover {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

@keyframes mover {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

.register-left p {
    font-weight: lighter;
    padding: 12%;
    margin-top: -9%;
}

.register .register-form {
    padding: 10%;
    margin-top: 10%;
}

.register .register-form-modal {
    padding: 10%;
    margin-top: 5%;
}

.btnRegister {
    float: right;
    margin-top: 10%;
    border: none;
    border-radius: 1.5rem;
    padding: 2%;
    background: #0062cc;
    color: #fff;
    font-weight: 600;
    width: 50%;
    cursor: pointer;
}

.modal-h3 {
    color: #fff !important;
}


.register-heading {
    text-align: center;
    margin-top: 8%;
    margin-bottom: -15%;
    color: #495057;
}*/

/********************* END REGISTER **********************/

/*** Begin Shopping cart */
#lblCartCount {
    font-size: 12px;
    background: #ff0000;
    color: #fff;
    padding: 0 5px;
    vertical-align: top;
    margin-left: -10px;
}

.badge {
    padding-left: 9px;
    padding-right: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
}

/*** End Shopping cart */

@media (max-width: 768px) {
    .youtube-container {
        flex-direction: column; /* Switch to column layout */
        align-items: center; /* Center items */
    }

    lite-youtube {
        flex: 1 1 100%; /* Take full width */
        max-width: 100%; /* Ensure videos fit the container */
    }
}

@media (max-width: 768px) {
    .flipbook-container {
        display: none; /* Hides the flipbook on mobile devices */
    }

    .pdf-preview-container {
        display: block; /* Ensure the PDF preview container remains visible */
    }

    .mobile-note {
        display: block; /* Show the note on mobile devices */
        font-size: 16px;
        color: #ff0000;
        text-align: center;
        padding: 20px;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin: 20px;
    }
}
/* For devices with max-width 768px (tablets and smaller devices like iPads and small Android devices) */
@media (max-width: 768px) {
    /*.flipbook-container {
        width: 100%;
        height: 350px;*/ /* Reduce height for smaller screens */
        /*margin: 0 auto;
        max-width: 100%;*/ /* Prevent overflow */
    /*}

    .flipbook-title {
        font-size: 22px;*/ /* Slightly smaller font size */
        /*letter-spacing: 1px;*/ /* Less letter spacing for smaller screens */
        /*margin-bottom: 15px;*/ /* Reduced space */
    /*}

    .flipbook-row-container {
        width: 100%;
        padding: 15px;
        margin-bottom: 20px;
    }*/

    .pdf-preview-container {
        width: 100%;
        margin-top: 20px;
    }

    .flipbook-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /*.flipbook-row-content {
        display: flex;
        flex-direction: column;*/ /* Stack flipbook and preview vertically */
        /*gap: 20px;
    }*/
}

/* For iPhones (up to 480px width) */
@media (max-width: 480px) {
    /*.flipbook-container {
        height: 250px;*/ /* Reduce height further for very small screens */
    /*}

    .flipbook-title {
        font-size: 18px;*/ /* Reduce font size for smaller screens */
        /*letter-spacing: 0.5px;*/ /* Further reduce letter spacing */
        /*margin-bottom: 10px;*/ /* Less space below the title */
    /*}

    .flipbook-title {
        font-size: 16px;*/ /* Further reduce title font size */
        /*margin-bottom: 10px;
    }

    .flipbook-row-container {
        padding: 10px;*/ /* Reduce padding for small screens */
    /*}

    .flipbook-row-content {
        gap: 15px;*/ /* Reduce gap between elements */
    /*}*/

    .pdf-preview-container {
        width: 100%;
        margin-top: 10px;
    }
}

/* For larger tablets (landscape orientation, such as iPad in landscape) */
@media (max-width: 1024px) {
    /*.flipbook-container {
        width: 90%;*/ /* Allow some margin on the sides */
        /*height: 450px;*/ /* A larger height for bigger tablets */
    /*}

    .flipbook-row-container {
        width: 100%;
        padding: 20px;
    }

    .flipbook-title {
        font-size: 20px;*/ /* Increase font size for larger tablets */
        /*margin-bottom: 15px;
    }

    .flipbook-row-content {
        display: flex;
        flex-direction: row;*/ /* Align flipbook and preview side by side */
        /*justify-content: space-between;
        gap: 30px;
    }*/

    .pdf-preview-container {
        width: 45%; /* Reduce preview width slightly */
        margin-top: 0; /* Remove extra margin */
    }
}

/* For very large screens like desktop (optional) */
@media (min-width: 1200px) {
    .flipbook-title {
        font-size: 24px;
    }
}

/* Tamil Thinnai Library catalog */
/* Responsive design */
@media (min-width: 768px) {
    /* On desktop, use the row layout */
    .table-row {
        flex-direction: row;
    }

    .book-image-cell,
    .details-cell {
        width: 48%; /* Adjust the column width for larger screens */
    }

    .details-cell {
        padding-left: 20px;
    }
}

@media (max-width: 767px) {
    /* On mobile, display columns vertically */
    .book-image-cell,
    .details-cell {
        width: 100%; /* Full width for both columns */
    }

    .table-row {
        flex-direction: column; /* Stack elements vertically */
    }

    .details-cell {
        padding-left: 0;
        padding-top: 20px; /* Space between the image and details */
    }

}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #books-table .inner-book {
        max-width: 70px; /* Reduce image width for mobile */
    }
    #books-table td {
        width: 50%; 
    }
    #books-table td img {
        max-width: 70px; /* Reduce image width for mobile */
    }
    .inner-book {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .inner-book:hover,
        .inner-book:active {
            transform: rotateY(10deg) scale(1.05); /* Slight rotation and zoom effect */
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* Shadow effect */
        }

    /* Hover effect for images */
    .image-container:active img {
        transform: scale(1.1); /* Slight zoom on hover */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow effect */
    }

}

/* Even smaller image size for very small devices (screen width <= 480px) */
@media screen and (max-width: 480px) {
    #books-table .inner-book {
        max-width: 60px; /* Reduce image width for mobile */
    }
    #books-table td {
        width: 50%;
    }
    #books-table td img {
        max-width: 60px; /* Further reduce image width */
    }
    .inner-book {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .inner-book:hover,
        .inner-book:active {
            transform: rotateY(10deg) scale(1.05); /* Slight rotation and zoom effect */
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* Shadow effect */
        }

    /* Hover effect for images */
    .image-container:active img {
        transform: scale(1.1); /* Slight zoom on hover */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow effect */
    }

}