* {
    margin:0;
    left:0px;
    top:0;
}
/* Position dropdown */
.dropdown {
    position: relative;
}

/* Hide dropdown content initially */
.dropdown-content {
    display: none; 
    position: absolute;
    background-color: white;
    padding:0px;
    color:#1b3d61 !important;
    border: 3px solid;
    margin-top: 63px;
    min-width: 180px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Dropdown links style */
.dropdown-content li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.dropdown-content li a:hover {
    background-color: #f0f0f0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.navigation {
            background-color: white;
        }
        .login {
            background-color:#1b3d61;
            height: 40px;
            text-align: end;
            padding-right: 72px;
            padding-top: 18px;
        }
        .search-container {
            position: relative;
            display: inline-block;
        }
        #searchBox {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            padding: 5px 10px;
            border: 1px solid #ccc;
            border-radius: 20px;
            outline: none;
            width: 0;
            opacity: 0;
            transition: width 0.3s ease, opacity 0.3s ease;
        }
        #searchBox.show {
            width: 240px;
    left: -71px;
    top: 64px;
    height: 27px;
    opacity: 1;
    position: absolute;
    background: #1b3d61;
    color:white;
        }
        .login a {
            text-decoration: none;
            color: white;
            font-size: large;
            margin: 10px;
            padding:5px;
        }
        .nav {
            display:flex;
            text-align: center;
            background: white;
        }
        .logo {
            width:20%;
        }
        .logo img {
            width:36%;
        }
        .links {
            width:60%;
            padding-top: 9px;
        }
        .links a, li {
            display:inline-block;
            color:  #1b3d61;
            font-size: 23px;
            margin: 18px !important;
            text-decoration:none;
            list-style-type:none;
        }
        .dropdown-content a, li {
            display:inline-block;
            color:  #1b3d61;
            font-size: 18px;
            text-align: left;
            text-decoration:none;
            list-style-type:none;
        }
        .icons {
            width:20%;
            padding-top:43px;
        }
        .icons img {
            width:30px;
            cursor: pointer;
        }
/* header file end */

/* index.php */
.container {
    background-image:url(img/book.jpg);
    background-size:cover;
    background-repeat:no-repeat;
    background-attachment:fixed;
    height:180px;
    padding: 190px 142px;
}


/* Fade-in + slide-up animation */
@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hero section */
.container .content h1,
.container .content h2,
.container .content p {
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
}
.container .content h1 { animation-delay: 0.2s; }
.container .content h2 { animation-delay: 0.4s; }
.container .content p  { animation-delay: 0.6s; }

/* Why Choose Us Section */
.why_choose h1 {
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.2s;
}
.why_choose .choose_box .box {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease forwards;
}
.why_choose .choose_box .box:nth-child(1) { animation-delay: 0.4s; }
.why_choose .choose_box .box:nth-child(2) { animation-delay: 0.6s; }
.why_choose .choose_box .box:nth-child(3) { animation-delay: 0.8s; }
.why_choose .choose_box .box:nth-child(4) { animation-delay: 1s; }
.why_choose .choose_box .box:nth-child(5) { animation-delay: 1.2s; }

/* About Section */
/*.container1 .content1 p {
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.4s;
} */

/* Contact Section */
.contact h3,
.contact form,
.contact .map {
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
}
.contact h3 { animation-delay: 0.2s; }
.contact form { animation-delay: 0.4s; }
.contact .map { animation-delay: 0.6s; }

/* Book hover animations */
.product_book .book_content {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}
.product_book .book_content:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Modal animations */
.modal {
    display: none;
    justify-content: center; 
    align-items: center; 
    background: rgba(0,0,0,0.7);
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    animation: fadeIn 0.3s ease forwards;
}
.modal-content {
    background: #fff; 
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    display: flex;
    padding: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal.show .modal-content {
    transform: scale(1);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.product_book .book_content {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.product_book .book_content:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.modal {
    display: none; 
    justify-content: center; 
    align-items: center; 
    background: rgba(0,0,0,0.7);
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff; 
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    display: flex;
    padding: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.content {
    background-color: #1b3d61;
    color: white !important;
    text-align: center;
    font-size: 23px;
    padding: 30px;
}
.why_choose h1 {
    color: #1b3d61;
    font-size: 45px;
    margin-top:30px;
    margin-left: 30px;
}
.product h1 {
    color: #1b3d61;
    font-size: 45px;
    margin-top:30px;
    margin-left: 30px;
}
.choose_box {
    display:flex;
    margin:0px 150px;
}
.choose_box .box {
    text-align: center;
    padding:15px;

    color: #1b3d61;
    border:1px solid #1b3d61;
    width:20%;
    margin:30px 10px;
    box-shadow: 2px 2px 8px;
}
/* Navigation */
    
    .product nav {
     
      padding: 15px;
      text-align: center;
    }
    .product nav button {
      background:#1b3d61;
      border: none;
      color: aliceblue;
      padding: 10px 15px;
      width:130px;
      height:50px;
      margin: 0 5px;
      cursor: pointer;
      border-radius: 5px;
    }
    .product nav button:hover {
      background:aliceblue;
      color: #1b3d61;
      border:2px solid #1b3d61;
    }

    /* Books Grid */
    .product_book {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 50px;
          margin: 20px 150px;
      padding: 20px;
    }
    .book_content {
      background-color: #1b3d61;
      box-shadow: 2px 2px 8px #1b3d61;
      padding: 10px;
      border-radius: 8px;
      color:white;
      cursor: pointer;
      transition: transform 0.2s;
      text-align: center;
    }
    .book_content img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      border-radius: 6px;
    }
    .book_content:hover {
      transform: scale(1.05);
    }

    /* Modal */
    .modal {
      display: none;
      position: fixed;
      z-index: 999;
      
      left: 0; top: 0;
      width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.7);
      justify-content: center;
      align-items: center;
    }
    .product .modal-content {
      background: white;
    color: black;
    width: 60%;
    display:flex;

    max-width: 840px;
    border-radius: 10px;
    padding: 40px;
    position: relative;
    }
    .modal-right {
        padding-left:20px;
    }
    #modalDescription {
        background-color: transparent !important;
    }
    #priceRow {
        background-color: transparent !important;
    }
    #authorRow {
        background-color: transparent !important;
    }
    #yearRow {
        background-color: transparent !important;
    }
    #pagesRow {
        background-color: transparent !important;
    }
    .modal-body {
      display: flex;
      gap: 20px;
    }
    .modal-left img {
      width: 250px;
      border-radius: 6px;
    }
    .modal-right {
      flex: 1;
    }
    .close {
      position: absolute;
      top: 15px; right: 20px;
     
      margin-left: 10px;
    font-size: 30px;
      cursor: pointer;
    }
    .btn {
      margin: 10px 10px 0 0;
      padding: 10px 15px;
      border: none;
      /*width: 45%; */
     text-decoration: none !important;
      background: #1b3d61;
      color: white;
      cursor: pointer;
          font-size: 18px;
      border-radius: 5px;
    }
  
    .btn:hover {
      background: #16324a;
    }
.box img {
    width:40%;
}
.box p {
    background-color: transparent !important;
}
.box h2 {
    font-size:22px;
    margin:10px 0px;
}
.container1 {
    background-image:url(img/book1.jpg);
    background-size:cover;
    background-repeat:no-repeat;
    background-attachment:fixed;
    height:81px;
    padding: 220px 142px;
}
.content1 {
    background-color: #1b3d61;
    color: white;
    margin-top: -126px;
    text-align: center;
    font-size: 23px;
    padding: 30px;
}
.content1 p {
    background-color: transparent !important;
}
.book_content p {
    background-color: transparent !important;
}
.content p {
    font-size: 21px;
}
.book_content h3 {
    margin-top: 10px;
    text-decoration: underline;
    font-family: system-ui;
}
.book_content img {
    width:100%;
    height: 360px;
}
.contact {
    display:flex;
    box-shadow: 2px 2px 8px;
    margin:50px 100px;
}
.contact_input {
    width:90%;
    padding:40px;
    background: aliceblue;
}
.contact_input h3 {
    margin: 10px;
    font-size: 43px;
    color:  #1b3d61;;
    text-decoration: underline;
}
.map {
    width:50%;
    background: aliceblue;
    padding:40px;
}
.map img {
    object-fit: contain;
}
.inputtag {
    width: 42.5%;
    margin: 10px;
    height: 40px;
    padding-left: 20px;
}
.inputsub {
    width: 92%;
    padding-left: 20px;
    height: 40px;
    margin: 10px;
}
textarea {
    width: 92%;
    padding-left: 20px;
    height: 80px;
    margin: 10px;

}
button {
    margin: 10px;
    background:  #1b3d61;;
    color: white;
    font-family: emoji;
    font-size: 19px;
    width: 137px;
    height: 51px;
    cursor: pointer;
    border: 2px;
    border-radius: 42px;
    box-shadow: 1px 1px 6px skyblue;
}
iframe {
    height: -webkit-fill-available;
}
.copyright {
    background:  #1b3d61;;
    height: 33px;
    text-align: center;
    font-size: 17px;
    margin-left:0px !important;
    padding-top: 9px;
    
    color: white;
}

.container2 {
    background-color:#17324d;
    text-align: center;
}
/* Fade-in on scroll */


/* Book cards hover effect */
.book_content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.book_content:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Modal transition */
#bookModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#bookModal.show {
    opacity: 1;
}

/* Container image animation */
.container2 img {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.container2 img.visible {
    opacity: 1;
    transform: scale(1);
}



/* about page */
/* General fade-in animation for sections */

.aboutbox {
    background-color: #1b3d61;
    color:bisque;
    text-align:center;
    padding:20px 100px;

}
.aboutbox h1 {
    font-size:50px;
}
.aboutbox p {
    margin-top:20px;
    font-size:20px;
    background-color: transparent;
}
.about_content {
    display:flex;
}
.aboutimg {
    width:50%;
}
.aboutdata {
    width:50%;
    padding:20px  40px;
    color:#1b3d61;
}
.aboutdata h2 {
    font-size:40px;
    margin:15px 0px;
}
.aboutdata p {
    font-size:20px;
    background-color: transparent;
}

/* Form input focus effect */
.contact_input input, .contact_input textarea {
    transition: all 0.3s ease;
}

.contact_input input:focus, .contact_input textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

/* Submit button hover effect */
.contact_input button {
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact_input button:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* Map and image fade-in */
.map img, .map iframe {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.map.visible img, .map.visible iframe {
    opacity: 1;
    transform: scale(1);
}

/*admin login page */
/* Container fade-in on load */
.createlogin {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.2s;
}

/* Fade-in keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input focus animation */
.createlogin input.form-control {
    transition: all 0.3s ease;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.createlogin input.form-control:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
    outline: none;
}

/* Submit button hover */
.createlogin input[type="submit"] {
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    background: #007BFF;
    color: #fff;
}

.createlogin input[type="submit"]:hover {
    background: #0056b3;
    transform: translateY(-3px);
}
/* Registration container fade-in */
.createlogin {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.2s;
}

/* Keyframes for fade-in */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form field animation */
.createlogin form input,
.createlogin form select,
.createlogin form textarea {
    opacity: 0;
    transform: translateX(-50px);
    animation: fieldFadeIn 0.6s forwards;
    animation-delay: 0.5s; /* Base delay; we will stagger via JS */
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

/* Fade-in keyframes for fields */
@keyframes fieldFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Input focus animation */
.createlogin input:focus,
.createlogin select:focus,
.createlogin textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

/* Submit button hover */
.createlogin input[type="submit"] {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.createlogin input[type="submit"]:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* Password eye toggle cursor */
.createlogin span {
    transition: transform 0.2s ease;
}

.createlogin span:hover {
    transform: scale(1.2);
}

/* Links hover */
.createlogin a {
    transition: color 0.3s ease;
}

.createlogin a:hover {
    color: #007BFF;
    text-decoration: underline;
}

.adminlogin {
    background-image: url("img/book3.jpg");
    width:100%;
    padding-bottom:30px;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 30px;
}
.overlay {
    border:5px solid #1b3d61;
    border-radius:10px;
    background:#e8eaf6a3;
    box-shadow:2px 2px 8px;
    margin:auto;
    padding:40px;
    width:40%;
}
.overlay h1 {
    color:#1b3d61;
    font-size:50px;
    margin-bottom:50px;
    text-align: center;
}
.forgot-link a {
    color:#1b3d61;
    font-style: oblique;
    font-size: 20px;
    font-weight: bolder;
    text-decoration: underline;
}
.forgot-section {
    display: none;
    margin-top: 15px;
    color: #1b3d61;
   
}
.forgot-section h4 , p {
    font-size: 20px;
    background-color:antiquewhite;
    margin-left: 5px;
}
.overlay label {
    font-size:30px;
    color:#1b3d61;
}
.overlay input {
    width: 100%;
    background: #1b3d61;
    height: 40px;
    border: 2px solid;
    border-radius: 20px;
    margin-top: -12px;
    color: white;
    margin-bottom: 25px;
    padding-left: 10px;
}
.overlay input[type="submit"] {
    width: 30%;
    margin-left:200px;
    background-color: antiquewhite;
    cursor: pointer;
    color:#1b3d61;
    border:2px solid #1b3d61;
    margin-top:15px;
}
.overlay button {
    width: 30%;
    margin-left:200px;
    background-color: antiquewhite;
    cursor: pointer;
    color:#1b3d61;
    border:2px solid #1b3d61;
    margin-top:15px;
}
/* wishlist page */
/* Wishlist container fade-in */
.wishlist {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.2s;
}

/* Keyframes for container fade-in */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Each book card */
.wishbox {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.wish {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: bookFadeIn 0.6s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Book card fade-in animation */
@keyframes bookFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect */
.wish:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

/* Remove button hover */
.remove-btn img {
    width: 20px;
    transition: transform 0.2s ease;
}

.remove-btn img:hover {
    transform: rotate(20deg) scale(1.2);
    cursor: pointer;
}

/* Book image */
.wish img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.wish img:hover {
    transform: scale(1.05);
}

/* Book title and price */
.wish h3 {
    font-size: 16px;
    margin: 10px 0 5px;
    transition: color 0.3s ease;
}

.wish p {
    font-size: 14px;
    color: #007BFF;
    font-weight: bold;
}

.wishlist {
    background-image: url("img/book-bg.jpg");
    padding:50px;
}
.wishbox {
    background-color: #faebd7d9;
    border:4px solid #1b3d61;
    margin-top:30px;
    padding:40px;
    display:flex;
}
.wish {
    width:20%;
    position: relative;
    margin:20px;
    background-color:antiquewhite;
    border-radius:5px;
    border:7px solid #1b3d61;
    text-align: center;
}
.wish img {
    width:100%;
    height:400px;
    text-align: center;
}
.wish h3 {
    font-size:20px;
    color:#1b3d61;
    padding-left:10px;
    
    text-align: left;
} 
.wish p {
    font-size:15px;
    color:#1b3d61;
    text-align:left;
    padding-bottom:10px;
    padding-left:10px;
}
.wishlist h1 {
    color:#1b3d61;
    font-size: 45px;
}
.cross {
    width: 30px !important;
    height: 30px !important;
    position: absolute;
    top:10px;
    z-index:1;
    left:80%;
}

/* create account page */
.createlogin {
    background-image: url("img/book3.jpg");
    width:100%;
    padding-bottom:30px;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top:30px;
}
.coverlay {
    border:5px solid #1b3d61;
    border-radius:10px;
    background:#e8eaf6a3;
    box-shadow:2px 2px 8px;
    margin:auto;
    padding:40px;
    width:40%;
}
.coverlay h1 {
    color:#1b3d61;
    font-size:50px;
    margin-bottom:10px;
    text-align: center;
}
.coverlay label {
    font-size:25px;
    color:#1b3d61;
}
.coverlay input {
    width: 95%;
    background: #1b3d61;
    height: 40px;
    border: 2px solid;
    border-radius: 20px;
    margin: 10px 0px;
    color: white;
    
    padding-left: 10px;
}
.coverlay select, option {
    width: 50%;
    background: #1b3d61;
    height: 40px;
    border: 2px solid;
    border-radius: 20px;
    margin-top: 10px;
    color: white;
    margin-bottom: 10px;
    padding-left: 10px;
}
.coverlay input[type="submit"] {
    width: 30%;
    margin-left:200px;
    background-color: antiquewhite;
    cursor: pointer;
    color:#1b3d61;
    border:2px solid #1b3d61;
    margin-top:10px;
}
.hidden {
    display:none;
}



/* add to cart page */
/* Page fade-in */
.addtocart {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

/* Keyframes for fade-in */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table rows hover effect */
table tr {
    transition: background 0.3s ease, transform 0.3s ease;
}

table tr:hover {
    background: #f5f5f5;
    transform: scale(1.02);
}

/* Quantity buttons */
.qty-btn {
    padding: 4px 10px;
    border: 1px solid #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.qty-btn:hover {
    background-color: #007BFF;
    color: white;
    transform: scale(1.1);
}

/* Remove cross icon hover */
.cross1 {
    transition: transform 0.2s ease;
}

.cross1:hover {
    transform: rotate(20deg) scale(1.2);
    cursor: pointer;
}

/* Order form slide-down */
#orderForm {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
}

/* Active class to show form */
#orderForm.active {
    max-height: 1500px; /* big enough to fit content */
    opacity: 1;
}

/* Order button hover */
.order-btn button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.order-btn button:hover {
    background-color: #007BFF;
    transform: scale(1.05);
}

/* Payment fields fade-in */
.payment-fields {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.payment-fields.active {
    opacity: 1;
    max-height: 500px; /* enough to fit inputs */
}

.addtocart {
            background-color: antiquewhite;
            border-top: 2px solid #17324d;
            text-align: center;
            padding-bottom: 60px;
        }
table {
            margin: auto;
            margin-top: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            border: 5px solid #1b3d61;
            overflow: hidden;
        }
.addtocart h1 {
            font-size: 50px;
            color: #1b3d61;
            margin-top: 20px;
        }
.addtocart img {
            width: 100px;
        }
        .addtocart h3{
            width: 25%;
    margin: auto;
            margin-top:10px;
            font-size:30px;
            background-color: #17324d;
            border:2px solid white;
            color:white;
            
        }
.addtocart th {
            padding: 20px;
        }
        tr:hover {
            background-color: #f9f1e7;
            transition: 0.3s;
        }
        .cross1 {
            width: 30px !important;
            height: 30px;
        }
        .order-btn {
            margin-top: 30px;
        }
        .order-btn button {
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
        }
        #orderForm, #orderStatus {
            display: none;
            max-width: 650px;
            text-align: left;
            margin: 30px auto;
            padding: 20px;
            border: 2px solid #1b3d61;
            background: #fff;
        }
        #orderForm h3 {
            font-size: 30px;
            text-align: center;
            margin-bottom:20px;
            
        }
        #orderForm label {
            font-size: 20px;
            margin-bottom:20px;


            margin-top:10px;
        }
        #creditCardFields, #paypalFields {
    display: none;
    text-align: left;
}

#creditCardFields input,
#paypalFields input {
    width: 100%;
    margin-bottom: 10px;
}
        #orderForm input {
            height:30px;
            margin:10px 0px;
        }
        #orderForm address {
            width:93%;
        }
        .qty-btn {
            cursor: pointer;
            font-size: 18px;
            width:35px;
            padding: 5px 10px;
            border: 1px solid black;
            margin: 0 5px;
        }





/* profile page */
.profile{
            background-color: #1b3d61;
            height: 40px;
            text-align: end;
            color:white;
            display:flex;
            padding:5px;
            
            padding-right: 72px;
            
        }
.orderbox {
   
    margin: auto;
    border-top:5px solid #1b3d61;
    padding: 20px 150px;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

.orders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.order-card {
    background:antiquewhite;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status {
    background: #f2f2f2;
    padding: 10px;
    border-radius: 8px;
   
    text-align: center;
    margin-bottom: 10px;
}

.status span {
    font-weight: bold;
    color: #333;
}

.status p {
    margin: 0;
    font-size: 14px;
    color: #666;
    background-color: transparent !important;
}

.order-card img {
    max-width: 30%;
    
    border-radius: 8px;
    margin-bottom: 10px;
}

.item-count, .order-id, .price {
    margin: 3px 0;
    color: #333;
    background-color: transparent !important;
}

.price {
    font-weight: bold;
}
/* Page fade-in */
.addtocart {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

/* Fade-in keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table hover effect */
table tr {
    transition: transform 0.3s ease, background 0.3s ease;
}

table tr:hover {
    background: #f5f5f5;
    transform: scale(1.02);
}

/* Order button hover */
.order-btn button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

.order-btn button:hover {
    background-color: #007BFF;
    transform: scale(1.05);
}

/* Slide-down order form */
#orderForm {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease, padding 0.3s ease;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 0 15px;
    border-radius: 8px;
    background: #fafafa;
}

#orderForm.active {
    max-height: 1500px;
    opacity: 1;
    padding: 15px;
}

/* Payment fields fade */
.payment-fields {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.3s ease;
    padding: 0;
}

.payment-fields.active {
    max-height: 400px;
    opacity: 1;
    padding: 10px 0;
}

/* Order status animation */
#orderStatus {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#orderStatus.active {
    opacity: 1;
    transform: translateY(0);
}

/* Login warning fade-in */
.login-warning {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.buy-again {
    margin-top: 10px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color:#1b3d61;
    transition: 0.3s;
}

.buy-again:hover {
    background: #1b3d61;
    color: white;
}
.user-menu {
    position: relative;
    display: inline-block;
}

.user-icon img {
    cursor: pointer;
}

.dropdown1 {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    border: 2px solid #1b3d61;
    overflow: hidden;
    min-width: 100px;
    z-index: 10;
}

.dropdown1 a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    margin:0px !important;
    color: #1b3d61;
        border: 2px solid;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown1 a:hover {
    background: #f0f0f0;
}

.show {
    display: block;
}



/* account page */
.account, .addressbox {
        background: antiquewhite;
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .account input {
        width:50%;
        height:30px;
        margin-bottom: 15px;
    }
    .account button {
            font-size: 18px;
    width: 120px;
    height: 34px;
    }
    .account label {
        font-size: 18px;
        margin-bottom:10px;
    }
    .account h3, .addressbox h3 {
        margin: 0 0 10px;
        font-size: 25px;
    }

    .account-info, .address-list {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-top:30px;

    }

    .account-info div, .address {
        margin-bottom: 10px;
    }

    .address {
        width: 47%;
        background: white;
        padding: 10px;
        border-radius: 6px;
    }

    .address p {
        margin: 3px 0;
        font-size: 14px;
    }

    a.edit-link {
        font-size: 14px;
        color: #0073e6;
        text-decoration: none;
        margin-left: 5px;
    }

    a.add-link {
        font-size: 14px;
        color: #0073e6;
        text-decoration: none;
        margin-left: 10px;
    }


    .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: #fff;
    margin: 4% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
}

.close {
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}
.accountpage {
        padding: 10px 200px;
        border-top:5px solid #1b3d61;
}
.accountpage p {
    background-color: transparent !important;
    margin-left:0px !important;
}
.modal-content input {
    margin:10px 0px;
        width: 95%;
    height: 30px;
}
.modalbtn {
    width: 120px !important;
    height: 30px !important;
    font-size: medium !important;
    margin: 0px !important;
}



/* setting page */
.settings-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
    border-top:5px solid #1b3d61;
    padding: 20px 150px;
}

.logout-box {
    display: flex;
        
    justify-content: space-between;
    align-items: center;
    margin: 10px 145px;
    background-color: antiquewhite;
    border-radius: 6px;
    padding: 20px;
    border: 2px solid #1b3d61;
    margin-bottom:320px;
}

.logout-text {
    max-width: 55%;
}

.logout-title {
    font-weight: bold;
    margin: 0 0 8px;
    font-size: 16px;
}

.logout-desc {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.logout-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: white;
    color: #0073e6;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #f0f0f0;
}

.logout-note {
    font-size: 13px;
    color: #555;
}



/* Extra Small (Phones) */
@media (max-width: 480px) {
    .login {
        text-align: center;
    padding: 12px;
    }
    .container {
        height: 215px;
    padding: 140px 59px;
    }
    .content h1 {
        font-size:40px !important;
    }
    .content h2 {
        font-size:25px !important;
        margin-top:15px;
    }
    .content p {
        font-size:18px !important;
    }
    .why_choose h1  {
        font-size:35px;
    }
    .choose_box {
                display: block;
        margin: auto;
        text-align: center;
        width: 85%;
    }
    .choose_box .box {
        width:85%;
    }
    .box img {
    width: 25%;
    }
    .box h2 {
        font-size:22px;
    }
    .box p {
        font-size:19px;
    }
    .container1   {
                height: 582px;
        padding: 79px 59px;
    }
    .container1 .content1 p {
        font-size:18px !important;
    }
    .content1 {
        margin-top:0px !important;
    }
    .product h1  {
        font-size:35px;
    }
    .product nav button {
           
        margin-bottom: 10px;
        height: 40px;
    }
    .product_book {
        margin:0px !important;
        padding: 30px 100px;
    }
    .contact {
        width: 85% !important;
    }
    .contact h3 {
        font-size:35px;
    }
    .contact button {
        font-size: 17px;
    width: 110px;
    height: 38px;
    }
    .container2 img {
        width: 85% !important;
    }
    .recommended_books_section h2 {
        font-size: 30px !important;
        
    }
    .aboutbox h1 {
        font-size: 35px !important;
    }
    .aboutbox p {
        font-size: 18px !important;
    }
    .aboutbox {
        padding:20px;
    }
    .about_content {
        display: block;
    }
    .aboutimg {
        width:100%;
    }
    .aboutimg img {
        width:100%;
    }
    .aboutdata {
        width: 90%;
        padding: 20px;
    }
    .aboutdata h2 {
        font-size: 22px;
    }
    .aboutdata p {
        font-size: 18px;
    }
    .contact {
        margin:auto;
        width:90%;
        margin-top:20px;
        display:block;
    }
    .contact_input { 
        width:80%;
    }
    .inputsub { 
        margin:0px;
        margin-bottom:10px;
    }
    textarea { 
        margin:0px;
    }
    .map {
        width: 100%; 
        background: aliceblue;
        padding: 0px;
    }
    .coverlay {
        width: 70%;
    }
    .coverlay h1 {
        font-siZe:35px;
    }
    .coverlay label {
        font-size: 20px;
    }
    .coverlay input { 
        height:25px;
    }
    .coverlay input[type="submit"] { 
        margin-left:0px;
        height:40px;
    }
    .coverlay p {
        font-size:18px;
    }
    .accountpage { 
        padding:20px;
    }
    .logout-box { 
        margin:20px;
    }
    .orderbox { 
        padding:20px;
    }
}


/* Small (Tablets) */
@media (max-width: 768px) {}

/* Medium (Small Laptops) */
@media (max-width: 1024px) {}

/* Large (Desktops) */
@media (max-width: 1200px) {}