@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Baloo+2&family=Lexend+Exa:wght@100;200&family=Montserrat+Alternates:wght@100;200&family=Montserrat:wght@200&family=Poppins:ital,wght@0,100;0,400;0,600;1,800&family=Space+Mono&display=swap');

*{
    padding:0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Baloo 2', sans-serif;
}

html{
    font-size: 62.5%;
    /* 1rem = 10px  */
}

/* Header section start css */

.header{
    width: 100%;
    height: auto;
    background-color: #f2f2f2;
}
.abc-header{
    padding: 4rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img{
    width: 26rem;
}
.searchFeild{
    position: relative;
}
.searchFeild input{
    width: 35rem;
    padding: .5rem;
    border: none;
    border-bottom: 3.8px solid #002e6c;
    background-color: transparent;
    font-size: 1.5rem;
    outline: none;
    color: #114fa0;
}
.searchFeild input::placeholder{
    color: #114fa0;
}

.searchFeild i{
    font-size: 2rem;
    color: #002e6c;
    position: absolute;
    right: 0;
    top: 20%;
}
.login_logout{
    display: flex;
    gap: .7rem;
    align-items: center;
}
.lg-lo{
    display: flex;
}
.options h2{
    font-size: 2rem;
    color: #ef7521;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'poppins', sans-serif;
}
.options h3{
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'poppins', sans-serif;
    color: #002e6c;
    margin-top: -.3rem;
    letter-spacing: 1px;
    transition: .3s ease-in-out;
    cursor: pointer;
}
.options h3:hover{
    background-color: #ef732181;
}
.lg-lo .signup{
    margin-right: 1rem;
}

.navlinks_header{
    padding: 1.5rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navlinks_header ul{
    display: flex;
    align-items: center;
    gap: 4rem;  
}
.navlinks_header ul li{
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
}
.navlinks_header ul li a{
    color: #002e6c;
    font-family: 'poppins';
}
.navlinks_header ul li a::after{
    position: absolute;
    content: "";
    background-color: #002e6c;
    height: .3rem;
    width: 0%;
    bottom: -1.4rem;
    transition: .2s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
}
.navlinks_header ul li a.active::after{
    position: absolute;
    content: "";
    background-color: #002e6c;
    height: .3rem;
    width:100%;
    bottom: -1.4rem;
    right: 0;
}
.navlinks_header ul li a:hover::after{
    width: 100%;
}

/* books_section start css */

.books_section{
    margin: 8rem 10rem;
}
.filters{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.categories ul{
    display: flex;
    gap: 3rem;
}
.categories ul li{
    font-size: 1.7rem;
    color: #002e6c;
}
.categories ul li a{
    font-size: 1.9rem;
    color: #002e6c;
    position: relative;
}
.categories ul li i{
    margin-left: 1rem;
}

.categories ul li a.active::after{
    position: absolute;
    content: "";
    background-color: #002e6c;
    height: .3rem;
    width: 100%;
    bottom: -1rem;
    transition: .2s ease-in-out;
    right: 0;
}
.categories ul li a::after{
    position: absolute;
    content: "";
    background-color: #002e6c;
    height: .3rem;
    width: 0%;
    bottom: -1rem;
    transition: .2s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
}

.categories ul li a:hover::after{
    width: 100%;
}

#book_cards{
    margin-top: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 4rem;
}
.card{
    width: 20rem;
    height: 53rem;
    border-radius: 1rem;
    padding: 1rem;
    transition: .3s ease-in-out;
    cursor: pointer;
}
.card:hover{
    background-color: #f2f2f2;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}
.card .image{
    width: 100% ;
    height: auto;
}
.card .image img{
    width: 100%;
    border-radius: 3rem;
    object-fit: cover;
}

.stars{
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}
.stars i{
    color: #002e6c;
    font-size: 1.7rem;
}
.card_data h2{
    letter-spacing: 1px;
    font-family: 'poppins', sans-serif;
    color: #002e6c;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.card_data .p-1{
    font-size: 1.7rem;
    letter-spacing: 1px;
    line-height: 2rem;
    color: #002e6c;
    margin-bottom: 2rem;
}
.card_data p{
    font-size: 1.7rem;
    letter-spacing: 1px;
    line-height: 2rem;
    color: #002e6c;
}

.card_data .p-2{
    font-size: 1.8rem;
    letter-spacing: 1px;
    line-height: 2rem;
    color: #002e6c;
}
.card_data h2{
    color: #002e6c;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 2rem 0;
    letter-spacing: 0;
}

#pagination{
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.numbers{
    display: flex;
    gap: 3rem;
}
.numbers a{
    color: #002e6c;
    font-size: 2rem;
    position: relative;
}
.numbers a.active{
    color: #ef7521;
}
.numbers a.active::after{
    position: absolute;
    content: "";
    background-color:#ef7521;
    height: .3rem;
    width:100%;
    bottom: -1.4rem;
    right: 0;
}
.numbers a i{
    margin-left: 1rem;
}

/* More  section start css */

#links{
    margin: 2rem 5rem;
}
#links h2{
    color: #ffff;
    font-weight: bold;
    font-family: 'poppins';
    font-size: 1.8rem;
}
.more_information{
    width: 100%;
    height: auto;
    background-color:#002e6c;
    padding: 3rem;
}
.flex{
    display: flex;
    gap: 8rem; 
}
.more_links{
    margin-top: 3rem;
}
.more_links li{
    padding-bottom: 1rem;
    font-size: 1.8rem;
}
.more_links li a{
    color: #f2f2f2ef;
}
.socialIcons{
    display: flex;
    margin-top: 4rem;
    margin-left: 3rem;
}
.socialIcons i{
    color: white;
    font-size: 2rem;
    padding-left: 3rem;
}

/* footer section start css */

.footer{
    padding: 1.3rem;
    background-color: #001f48;
}
.footer p{
    color:#f2f2f2;
    font-size: 1.8rem;
    text-align: center;
}

.menubar{
    display: none;
}
.menubar i {
    font-size: 2.3rem;
    color: #002e6c;
    position: absolute;
    left: 7rem;
    top: 3rem;
}

/* Responsive code  */

@media (max-width:1152px){
    .flex {
        display: flex;
        gap: 0rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .more_links li{
        text-align: center;
    }
    .socialIcons{
        margin-top: 0rem;
        margin-left: 0;
    }
    #links h2{
        text-align: center;
    }
}

@media (max-width:1120px){
    .card{
        width: 25rem;
    }
}

@media (max-width:1029px){
    #book_cards{
        gap: 1rem;
    }
}

@media (max-width:969px){
    #book_cards{
        justify-content: center;
        gap: 10rem;
    }
}
@media (max-width:990px){
    .header{
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        position: fixed;
        top: 0;
        z-index: 99999;
    }
    .menubar {
        display: block;
    }
    .login_logo{
        display: none;
    }
    .abc-header{
        flex-direction: column;
        justify-content: center;
        padding: 0 5rem;
    }
    .logo img{
        width: 20rem;
        margin: 1.5rem 0;
    }
    .options h2{
        display: none;
    }
    .lg-lo{
        margin: 3rem 0;
    }
    .options h3 {
        font-size: 1.5rem;
        font-weight: 900;
        width: 12rem;
        font-family: 'poppins', sans-serif;
        text-align: center;
        color: white;
        margin-top: -.3rem;
        letter-spacing: 1px;
        transition: .3s ease-in-out;
        cursor: pointer;
        padding: 1rem;
        background: #002e6c;
        border-radius: 5rem;
    }
    .options .signup{
        background:#ef7521;
    }

    .navlinks_header {
        position: absolute;
        width: 100%;
        padding: 3rem 5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 0;
        overflow: hidden;
        opacity: 0;
        background:#f2f2f2;
        z-index: 99999;
        transition: .3s ease-in-out;

    }
    .navlinks_header.active{
        height: 17rem;
        opacity: 1;
    }
    .links ul{
        flex-direction: column;
        gap: 1.5rem;
    }
    .books_section {
        margin: 26rem 10rem;
        margin-bottom: 10rem;
    }

}

@media (max-width:850px){
    .filters {
        justify-content: center;
        flex-direction: column;
        gap: .8rem;
    }
    .categories ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .categories ul li a.active::after {
        position: absolute;
        content: "";
        background-color: #002e6c;
        height: 0;
        width: 0;
        bottom: 0;
        transition: .2s ease-in-out;
        right: 0;
    }
}

@media (max-width:800px){
    #book_cards {
        justify-content: center;
        gap: 2rem;
    }
}

@media (max-width:720px){
    .card{
        width: 20rem;
    }
    #book_cards{
        margin-top: 4rem;
        margin-bottom: 0;
    }
}

@media (max-width:619px){
    .card {
        width: 30rem;
    }
    #book_cards{
        margin-top: 4rem;
        margin-bottom: 10rem;
    }
    .card_data{
        text-align: center;
    }
    .stars{
        justify-content: center;
    }
}

@media (max-width:500px){
    .books_section {
        margin: 26rem 0rem;
        margin-bottom: 10rem;
    }
}

@media (max-width:440px){
    .menubar i{
        left: 2rem;
    }
    .searchFeild input{
        width: 26rem;
    }
    .data h1{
        font-size: 2.5rem;
    }
    .footer p{
        font-size: 1.4rem;
    }
}

