body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(rgba(9, 9, 9, 0.866), rgba(5, 241, 241, 0.625), black);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, black, cyan, black);
    color: white;
    padding: 15px 20px;
    padding-bottom: 60px;
    border-bottom: 2px solid cyan;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
}

.logo {
    font-size: 24px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    flex: 1;
}

.logo :hover {
    color: cyan;
}

.logo i {
    font-size: 28px;
    color: white;
    margin-left: 20px;
    transition: 0.3s;
}

.logo i:hover {
    color: cyan;
    font-size: 30px;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    flex: 2;
    justify-content: center;
}

#searchBar {
    /* padding: 8px 10px; */
    border: none;
    border-radius: 20px;
    outline: none;
    width: 400px;
    font-size: 14px;

}

#navbarNav {
    margin-left: 500px;
    width: 900px;
    margin-right: 0;
}

button {
    padding: 8px 15px;
    background: linear-gradient(black, cyan);
    border: none;
    border-radius: 90%;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    color: white;
}

button:hover {
    background: linear-gradient(black, rgb(1, 62, 62));
}

.nav-items a {
    text-decoration: none;
    color: wheat;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-items a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.upload-btn-nav {
    margin-left: 15px;
    padding: 8px 16px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.upload-btn-nav:hover {
    background-color: #0056b3;
}

.uploadBookNav {
    font-size: medium;
}


.dropdown-menu {
    min-width: 200px;
}

.dropdown-menu {
    background: linear-gradient(cyan, rgba(90, 89, 89, 0.097));
    color: white;

}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 18px;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: linear-gradient(blakc, cyan, black);
    color: white;
    padding: 20px;
    transition: 0.3s;
}

.sidebar.active {
    right: 0;
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.navbar {
    background: linear-gradient(135deg, black, cyan, black);
    color: white;
    padding: 15px 20px;
}

.nav-link,
.navbar-brand {
    color: white !important;
    font-weight: bold;
}

.nav-link:hover {
    color: cyan !important;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
}

.offcanvas {
    background: linear-gradient(black, cyan, black);
    color: white;
}

.navbar-nav .nav-item {
    font-size: 18px;
}



@media (max-width: 1024px) {
    .nav-items {
        flex: 3;
        justify-content: center;
    }

    #searchBar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .nav-items {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .logo {
        flex: unset;
    }
}




/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 99vh;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: black;
}

.book-quote {
    font-size: 32px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
}

.hero-content .book-quote {

    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar .nav-items {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar input {
        width: 80%;
        margin-bottom: 10px;
    }

    .navbar .auth-links {
        text-align: center;
        width: 100%;
    }

    .hero {
        height: auto;
    }
}


/* Books Section */

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: black;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    transition: all ease 0.3s;
}

h2 i {
    color: white;
    margin: 0 5px;
    font-size: 30px;
}

h2:hover {
    color: black;
}


.book-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center the books */
    gap: 80px;
    padding: 20px;
}

/* Adding box shadow effect when hovering over the container */
.book-container:hover {
    box-shadow: 0px 10px 20px wheat;
    transition: 0.3s;
    border-radius: 10px;
}


.book {
    background: linear-gradient(cyan, black);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;

}

.book:hover {
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.book img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.book-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: white;
}

/* View Book button with moving border effect */
.view-book {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    background: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

/* Moving Border Animation */
.view-book::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    border: 2px solid white;
    transition: 0.5s;
}

.view-book:hover::before {
    left: 0;
}

.view-book:hover {
    background: #0056b3;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .book-container {
        flex-direction: column;
        /* Books in one column for smaller screens */
        align-items: center;
    }
}

.moving-border {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    background: linear-gradient(135deg, black, cyan);
    /* Gradient background */
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}

/* Moving border effect on all sides */
.moving-border::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 3px solid transparent;
    animation: moveBorder 2s linear infinite;
}

/* Keyframes for moving border */
@keyframes moveBorder {
    0% {
        border-image: linear-gradient(90deg, cyan, pink) 1;
    }

    25% {
        border-image: linear-gradient(180deg, pink, cyan) 1;
    }

    50% {
        border-image: linear-gradient(270deg, cyan, pink) 1;
    }

    75% {
        border-image: linear-gradient(360deg, pink, cyan) 1;
    }

    100% {
        border-image: linear-gradient(90deg, cyan, pink) 1;
    }
}

/* Hover Effect */
.moving-border:hover {
    background: linear-gradient(135deg, cyan, black);
    /* Reverse gradient on hover */
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 0 25px rgba(255, 105, 180, 0.6);
    transform: scale(1.05);
}





/*-----------------------footer code ----------*/

.footer {
    background-color: #222831;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    height: auto;
    min-height: 200px;
}

.footer div {
    flex: 1;
    margin: 10px;
}

h3 {
    color: #00adb5;
}

p {
    color: white;
}

a {
    color: #eeeeee;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    transition: color 0.3s;
}

a:hover {
    color: #00fff5;
}

.subscribe-input {
    width: 80%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    margin: 10px 0;
    background-color: #393e46;
    color: #fff;
}

/* .subscribe-btn {
    background-color: #00adb5;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
} */
.subscribe-btn:hover {
    background-color: #007b83;
}

.copyright {
    text-align: center;
    background-color: #181920;
    padding: 10px;
    margin-top: 20px;
    color: #eeeeee;
}