@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}

body{
    min-height: 100vh;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    overflow-x: unset;

}

header{
    position: sticky;
    top: 0;
    display: flex;
    height: 5rem;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    flex-basis: 100%;
    background-color: #46344E;
    overflow-x: unset;
}

header > img{
    margin-left: 2rem;
}
header > h2{
    color: #c0bdbd;
    padding-inline: 1rem;
    overflow-x: unset;  
}
header > nav{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 100%;
    overflow-x: unset;

}

header > nav > li{
    list-style: none;
    overflow-x: unset;
}

header > nav > li > a{
    text-decoration: none !important;
    margin-inline: 1rem;
    color: #c0bdbd !important;
    font-size: 1.4rem;
}

header > nav > li > a:hover{
    border-bottom: 2px solid #FAED26;
    
}

header > nav:first-child{
    margin-left: auto;
}

.active{
    border-bottom: 2px solid #FAED26;
}

.main_section{
    min-height: 90vh;
    width: 100%;
    background-color: #5A5560;
}
.main_section > h2{
    padding: 2rem;
    text-align: center;
    color: #c0bdbd;
    font-size: 2.5rem;
}
.main_section > h2 > span{
    color: #FAED26;
}

.main_section hr{
    width: 60%;
    margin-inline:auto ;
    border: 2px solid #FAED26;
}

.Books_container{
    width: 100%;
    /* border: 2px solid red; */
    margin-top: 1rem;
    min-height: 50rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-block: 2rem;
    gap: 2rem;
}

.Books_container > h2{
    color: #FAED26;
    font-size: 2rem;
    overflow-x: unset
}


.add_new_book{
    /* border: 2px solid red; */
    width: 60%;
    height: 30rem;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 0.5rem;
    background-color: #46334E;
    border-radius: 10px;

}

.add_new_book > label {
    color: #d4d1d1;
    font-size: 1.2rem;
    overflow-x: unset;
}

.add_new_book >label > input{
    display: block;
    width: 20rem;
    height: 2.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    outline: none;
    border-radius: 5px;
    border: none;
    overflow-x: unset;
}
#publicationDate{
    color: #5A5560;
}

#Submit{
    margin-top: 1rem;
    width: 10rem;
    height: 2.8rem;
    background-color: #FAED26;
    border: none;
    color: #5A5560;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}



.All_books{
    width: 80%;
    min-height: 6rem;
    background-color: #46334E;
    border-radius: 10px;
    padding: 1rem;
}

.table{
    color: #c0bdbd;
}


#edit,#delete{
    width: 5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    background-color: #FAED26;
    color: #46344E;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

.table > thead > tr > th {
    font-size: 1.2rem;
    color: #FAED26;
}
.table > tbody > tr > td {
    font-size: 1.2rem;
    
}

.menu{
    margin-right: 2rem;
    color: #FAED26;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    display: none;
}


/* Media Queries */

@media (max-width: 1152px){
    .All_books{
        width: 90%;
    }
}

@media (max-width:620px){
    .add_new_book{
        justify-content: center;
        align-items: center;
        width: 82%;
    }

    .main_section > h2{
        font-size: 2rem;
    }
    .main_section > hr{
        width: 80%;
    }

    header > nav {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 80px;
        background-color: #3d2e43;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
        transition: all linear 0.4s;
      
    }

    header > nav > li{
        color: #46344E;
    }

    .menu{
        display: block;
        margin-left: auto;  
    }

    .show{
        left: 0;
    }

}

@media (max-width:440px){
    .add_new_book{
        width: 90%;
    }
    .add_new_book > label > input {
        width: 18rem;
    }
    .main_section,.Books_container > h2{
        font-size: 1.7rem;
    }

}






