/* Remove Horizontal Scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
}

/* Search Bar */
.search-container {
    text-align: center;
    margin: 10px auto;
}

.nosubmit {
    padding: 10px;
    width: 100%;
    max-width: 280px;
    border: none;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    outline: none;
}

/* Navigation Container */
.containernav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: white;
    padding: 10px 0;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

li {
    display: inline-block;
    margin: 5px 10px;
    position: relative;
}

li a {
    display: block;
    color: black;
    text-align: center;
    padding: 10px 12px;
    text-decoration: none;
    font-size: 14px;
}

/* Dropdown Styles */
.dropbtn {
    background-color: white;
    color: black;
    padding: 12px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.dropdown-content a {
    color: black;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

/* Dropdown Open on Click */
.dropdown.active .dropdown-content {
    display: block;
}

/* Store Card */
.card {
    background-color: #F2F2F2;
    padding: 15px;
    margin: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Responsive Fixes for Mobile */
@media only screen and (max-width: 768px) {
    .containernav {
        flex-direction: column;
        align-items: center;
    }
    ul {
        flex-direction: column;
        align-items: center;
    }
    li {
        margin-bottom: 8px;
    }
}

                /* .cardt {
                    background-color: #F2F2F2;
                    padding: 20px;
                    margin: 10px;
                    border-radius: 8px;
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                    max-width: 30%;
                   
                } */


                .center-block {
                    margin-left: auto;
                    margin-right: auto;
                    display: block;
                }


                .image-container {
                    position: relative;
                    display: inline-block;
                }
        
                .eye-icon {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    opacity: 0;
                    transition: opacity 0.3s ease;
                }
        
                .image-container:hover .eye-icon {
                    opacity: 1;
                }
                

                .image-container:hover img {
                    opacity: 0.2; /* Adjust the opacity value (0 to 1) for desired fade effect */
                }

                .image-container img {
                    display: block;
                    width: 100%;
                    height: auto;
                }


                /* style for modal */

                .modal {
                    display: none;
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: rgba(0, 0, 0, 0.5);
                    justify-content: center;
                    align-items: center;
                }
        
                .modal-content {
                    background: #fff;
                    /* padding: 20px; */
                    border-radius: 5px;
                    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
                }

              
                /* warisha */
                    /* Add this to your CSS stylesheet or in a <style> tag in your HTML */
                    .modal-body {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        padding: auto;
                       
                    }

                    .columns-container {
                        display: flex;
                        flex: 1; /* This makes both columns take equal width */
                    }

                    .imagee,
                    .data-side-by-side {
                        padding: 10px; /* Add padding for spacing */
                    }

                    .imagee {
                        /* Adjust as needed */
                        width: 100px;
                        height: 100px;
                    }

                    .data-side-by-side {
                        flex: 1; /* This makes the data column take remaining width */
                        margin-left: 60px; /* Adjust the spacing between image and data */
                    }



                    /* tabs */

                    .tab-container {
                        display: flex;
                    }
            
                    .tab {
                        flex: 1;
                        text-align: center;
                        padding: 10px;
                      /*  background-color: #f1f1f1;*/
                        cursor: pointer;
                        /*border: 1px solid #ccc;*/
                    }
            
                    .tab:hover {
                        background-color: #ddd;
                    }
            
                    .tab-content {
                        display: none;
                        padding: 20px;
                    }
            
                    .tab-content.active {
                        display: block;
                    }
                    /* tabs */


                /* warisha */
                /*for all books*/


                .center-container {
                    text-align: left;
                    /* display: flex;
                    flex-wrap: wrap;
                    justify-content: space-evenly; */
                }

                 .category-wrapper {
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: center;
                    max-width: 800px; /* 90px * 8 + margin/gap */
                    margin: 0 auto;
                }

                
                .subcategory-wrapper {
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: center;
                    max-width: 800px; /* 90px * 8 + margin/gap */
                    margin: 0 auto;
                }

                 .small-box {
                    width: 90px;
                    height: 50px;
                    border: 2px solid #333;
                    /*padding: 10px; */
                    display: inline-flex;
                    align-items: center;  /*Vertically centers the content */
                    justify-content: center;  /*Horizontally centers the content */
                    text-align: center;
                    border-radius: 10px 5px 10px 5px; 
                    font-size: 9px;
                    margin:3px;
                    background-color: #ddd; /* Slightly darker background on hover */
                    
                } 
                
                .small-boxsub {
                    width: 90px;
                    height: 50px;
                    border: 2px solid #333;
                   /* padding: 10px; */
                    display: inline-flex;
                    align-items: center;  /*Vertically centers the content */
                    justify-content: center;  /*Horizontally centers the content */
                    text-align: center;
                    border-radius: 10px 5px 10px 5px; 
                    font-size: 9px;
                    margin:3px;
                    background-color: #cce5ff; /* Slightly darker background on hover */
                    
                } 
                
                /* .small-box {
                    width: 130px;
                    height: 50px;
                    border: 2px solid #333;
                    border-radius: 10px 5px 10px 5px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center; 
                    font-size: 10px;
                    
                }
                .small-box input{
margin: auto;

                    
                } */
                

                 .icon-toolbar {
                        text-align: right;
                        margin-right: 200px;
                    }

                    @media screen and (max-width: 768px) {
                        .icon-toolbar {
                            margin-right: 20px; /* or 10px on small screens */
                        }
                    }

                    @media screen and (max-width: 480px) {
                        .icon-toolbar {
                            margin-right: 10px;
                        }
                    }


                    @media screen and (max-width: 768px) {
                        .center-container {
                            flex-direction: column;
                            align-items: center;
                        }
                    }



                @media screen and (max-width: 768px) {
                    .center-container {
                        flex-direction: column;
                        align-items: center;
                    }
                }

                .container1 {
                    display: flex;
                    justify-content: space-between;
                    flex-wrap: wrap;
                    padding: 15px;
                }

                .column1 {
                        display: flex;
                        justify-content: center;
                        align-items: top;
                        padding: 15px;
                        box-sizing: border-box;
                        flex-wrap: wrap;
                    }

                    .card1 {
                        background-color: #F2F2F2;
                        width: 100%;
                        max-width: 400px; /* Adjust the maximum width as needed */
                        height: auto;
                        padding: 50px;
                        margin: 5px;
                        border-radius: 8px;
                        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                        text-align: left;
                    }

                    .checkbox-item {
                        margin-bottom: 15px;
                    }

                    @media (max-width: 768px) {
                        .column1 {
                            flex-direction: column;
                            align-items: stretch;
                        }

                        .card1 {
                            width: 100%;
                        }
                    }

                
                    .column2 {
                        width: 100%; 
                        border: 0px ;
                        padding: 15px;
                        box-sizing: border-box;
                        flex-wrap: wrap;
                        margin-left: 5%;
                       
                    }

                    
                   

                    .cardg {
                        background-color: #F2F2F2;
                        width:60%;
                        padding: 10px;
                        margin-left: 15%;
                        border-radius: 20px;
                        box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.3);
                        display: flex;
                        flex-wrap: wrap;
                    }

                    .columng {
                        flex: 1;
                        max-width: 150px; /* Adjust the maximum width as needed */
                        border: 0px;
                        padding: 5px;
                    }

                    .columng2 {
                        flex: 1;
                        max-width: 100%; /* Adjust the maximum width as needed */
                        margin-left: 1%; 
                        padding: 10px;
                        flex-wrap: wrap;
                    }

                    @media (max-width: 768px) {
                        .columng, .columng2 {
                            flex: 100%;
                            max-width: 100%;
                        }
                    }
                    .card-img-top {
                        width: 100%;
                        height: auto;
                    }

                    .cardt-img-top {
                        width: 100%;
                        height: auto;
                    }
    
                footer {
                    color:white;
                    background-color: #4596FF;
                    padding: 20px;
                    text-align: center;
                }

                /* Style for the columns within the footer */

                .column {
                    display: inline-block;
                    margin: 20px 100px; 
                    vertical-align: top;
                }


             

                    label {
                        display: block;
                        margin-bottom: 5px;
                        margin-left:-85px;
                    }

                    input[type="text"] {
                        width: 200px;
                        padding: 8px;
                        box-sizing: border-box;
                        margin-right: -3px; 
                    }

                    button {
                        padding: 8px 16px;
                        background-color: #3A86FF;
                        color: white;
                        border: none;
                        cursor: pointer;
                    }

                    
                    .navigation {
                        list-style: none;
                        padding: 0;
                        margin: 0;
                        display: flex;
                    }
                    
                    .navigation li {
                        margin: 0; /* Remove any default margins */
                        padding: 0; /* Remove any default padding */
                    }
                    
                    .navigation li a {
                        text-decoration: none;
                        display: inline-block; /* Ensure the anchor is inline */
                        margin: 0; /* Remove any margin around the anchor */
                        padding: 0; /* Remove any padding around the anchor */
                    }
                    
                    .navigation li:not(:last-child) {
                        margin-right: 8px; /* Optional: Add a small space between icons */
                    }
                    

                    .social-icons {
                        font-size: 20px;
                        margin-left: -15px; 
                        
                    }

                    .social-icons a {
                        margin: 0 10px;
                        color: white; 
                        text-decoration: none;
                    }

                    .containernav ul {
                        display: flex;
                        align-items: center;
                        list-style: none;
                        padding: 0;
                    }
                    
                    .containernav ul li {
                        margin-right: 20px; /* Adjust spacing between list items */
                    }
                    
                    .social-container {
                        display: flex;
                        gap: 10px; /* Space between icons */
                    }
                    
                    .social-container a {
                        text-decoration: none;
                        color: inherit;
                    }
                    .custom-background {
                        background-color: #4596FF;
                    }

                    #status-bar {
                        background-color:white;
                        border: 1px solid black;
                        border-radius: 10px;
                        padding: 5px;
                        margin: 0;
                    }

                    .searchbarhead{
                        background:#4596FF;
                        display: flex; 
                        justify-content: space-between;
                        align-items: center;
                        padding: 5px; 
                    }

                   /* warisha */

                   .book-card {
                    max-width: 900px; 
                    margin: 20px auto;
                    display: flex;
                    align-items: center;
                    border: none;
                }
                .book-card img {
                    width: 150px; 
                    height: auto;
                    margin-right: 20px;
                }
                .card-body {
                    padding: 0;
                    flex: 1; 
                }
               
                .progress-bar-custom {
                    background-color: #007bff;
                }
                .card-title {
                    font-weight: bold;
                    font-size: 1.5rem;
                    margin-bottom: 0;
                }
                .info-line {
                    display: flex;
                    align-items: center;
                    margin-top: 5px;
                }
                .card-author, .card-reviews {
                    font-weight: bold;
                }
                .card-reviews {
                    margin-left: 10px;
                }
                .card-text, .progress, .social-icons {
                    margin-top: 10px;
                }

                .form-control {
                    height: 40px;
                    border: 1px solid #dee2e6;
                    box-shadow: none;
                }
                .skyblue-input {
                    background-color: #d3e2ff !important;
                }


                


                    /* warisha */

/* Custom styles for the modal */
.custom-modal {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header.custom-header {
    background-color: #007bff; /* Adjust the color as needed */
    color: white;
    display: flex;
    justify-content: space-between;
    border-bottom-right-radius: 15px;
    align-items: center;




    /* align-items: center; */
    /* border-bottom: none; */
    /* border-top-left-radius: 15px;
    border-top-right-radius: 15px; */
    /* padding: 1rem 1.5rem; */
}

.modal-header .modal-title {
    margin-left: -250px;
    font-size: 30px;
    text-align: left;
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
}

.modal-header .close.custom-close {
    color: white;
    font-size: 4rem;
    border: none;
    background: none;
    margin-right: -250px;
}

.list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}
.list-group-item {
    width: 400px; 
    box-sizing: border-box;
    background-color: #e4e3e8;
    border-bottom: 2px solid black;
    
}

.menu-icon::before {
    content: "\2630"; /* Unicode for menu icon */
    font-size: 1.5rem;
    color: black;
   
    
}

.close {
    border: none;
    background: none;
    font-size: 1.5rem;
    padding: 0;
    text-align: right;
    margin: 0;
    line-height: 1;
}

    .chapter-name {
        max-width: 200px;
        
        
    }
  
  .text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    

  }

  /*.floating-buttons {
        position: fixed;
        bottom: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }

    .btn-floating {
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin: 5px 0;
    }*/

.highlight {
    background-color: yellow;
}


.tiledBackground {
  background-image: url(https://www.mozilla.org/media/img/logos/firefox/logo-quantum.9c5e96634f92.png);
  background-size: 150px;
  width: 300px;
  height: 300px;
  border: 2px solid;
  color: pink;
}


 
  .text-right .d-flex {
    margin-bottom: -100px !important;
    }

                    
   /* NAVBAR ITEM DIVIDERS */ 


    .navbar-nav > .nav-item {
    padding: 0 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
   
}


 .navbar-nav > .nav-item + .nav-item::before {
    content: "";
    position: absolute;
    left: -5px; 
    top: 0;
    bottom: 0;
    margin: auto;
    width: 1px;
    height: 20px; 
    background-color: #d4c0a1;
}

.navbar-nav > .nav-item > .nav-link {
    font-size: 18px;           /* Bigger font */
    font-weight: 600;          /* Bold text */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;  /* Clean modern font */
    color: #333 !important;    /* Prominent dark color */
    /* text-transform: uppercase;  */
    letter-spacing: 0.5px;     /* Slight spacing for clarity */
    
}

.navbar-nav > .nav-item > .nav-link:hover {
    color: grey !important;  
    text-decoration: underline;
}          
   
/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Optional: removes slight dropdown gap */
}

/* Optional: Keep the toggle arrow active */
.nav-item.dropdown:hover > .nav-link {
    color: #000 !important;
}