@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

html{
    font-size: 16px;

}

body{
    background-color: #F8F8F8E2;

}

.logo{
    font-weight: 800;
    font-size: 1.3rem;
}

.colouredText{
    color: #2c76fc;

}


/* Navbar */

.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6rem;

    background-color: white;


}

.nav > nav{
    display: flex;
    align-items: center;
    gap: 3rem;
}

nav > ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

ul > li > a{
    text-decoration: none;
    color: black;
    font-weight: 400;
    font-size: 1rem;
}

#home{
    font-weight: 600;
}

.add-buttton{
    color: #2c76fc;
    background-color: white;
    padding: 0.3rem 2rem;
    border: 3px solid #2c76fc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
}

.add-buttton:hover{
    background-color: #2c76fc;
    color: white;
}

/* Content */


.content{
    margin: 0 20rem;
    display: grid;
    grid-template-columns: 1fr;

}

.section{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.card-row{
    display: flex;
    justify-content: space-between;
    border: lightgrey 1px solid;
    border-radius: 5px;
}

.card-row > .read-status{
    align-self: center;
    padding: 0.5rem 2rem;
}

.datalist{
    display: flex;
    flex-direction: column;
}

.card-row img{
    height: 15rem;
    width: auto;
}

.book-info{
    display: flex;
    gap: 1rem;
}

.info{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #525252;
    padding: 1rem 0;
}

.info > .title{
    font-weight: 600;
    color: black;
    font-size: 1.4rem;
}

.info > .author{
    font-weight: 400;
    font-size: 1rem;
}

.buttons{
    display: flex;


}

button{
    appearance: none;
    border: none;
}

.buttons > button{
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: #d7d5d5 0.001rem solid;
    font-weight: 500;
    font-size: 0.8rem;
    background-color: #EAEAEA73;
    border-radius: 4px;
    color: #383838;
}

.buttons > button:hover{
    background-color: #2c76fc;
    color: white;
}

select{
    border: none;

}

.select-wrapper > select{
    padding: 0.5rem 1rem;
    border: #d7d5d5 0.001rem solid;
    font-weight: 500;
    font-size: 0.8rem;
    background-color: #FAFAFAF2;
    border-radius: 4px;
    color: #2c76fc;
    width: 100%;

}

.select-wrapper > select:hover{
    background-color: #2c76fc;
    color: white;
}


.divider{
    margin-top: 1rem;
    height: 1px;
    width: 100%;
    background-color: rgba(215, 213, 213, 0.5);
}

.form-container{
    display: flex;
    position: absolute;
    width: 100%;
    z-index: 1;
    height: 100%;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.hidden{
    visibility: hidden;
}

.form-container > form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);

}

.form-group{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;


}

.form-group label{
    flex-basis: 3.2em;
}

input{
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: none;
}

input[type='number']{
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;

}
.form-group > input{
    border: #d7d5d5 solid 1px;
    font-size: 0.9em;
    border-radius: 5px;

}

.form-group > select{
    border: #d7d5d5 solid 1px;
    border-radius: 5px;
    background-color: white;
    padding: 0 .5rem;
    color: black;
    font-size: 0.9em;
    flex: 1 1 auto;
}

.form-container > form > button{
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: #2c76fc 2px solid;
    font-weight: 500;
    font-size: 1rem;
    background-color: white;
    border-radius: 10px;
    color: #2c76fc;

}

.form-container  > form > button:hover{
    background-color: #2c76fc;
    color: white;
}

.close{
    position: relative;
    cursor: pointer;
    bottom: 130px;
    left: 290px;
    height: 15px;
    padding: 2px;
    background-color: #d7d5d5;
    border-radius: 50px;
    font-size: 1.5rem;
    color: #2c76fc;
}

.close:hover{
    background-color: #fc2121;
    color: white;
}