:root{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --main-font: "JetBrains Mono", serif;
    --secondary-font: "Press Start 2P", cursive;
    --third-font: "Sigmar", cursive;
    --prmary-color: rgba(90, 22, 155, 0.862);
}
body{
    font-family: var(--main-font);
}
nav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    background-color: var(--prmary-color);
    margin: 0;
}
nav .log-box{
    display: flex;
    align-items: center;
    justify-content: center;
}
nav .log-box h1{
    color: red;
   font-family: var(--secondary-font);
    font-size: 2rem;
    text-shadow: 5px 3px 10px rgb(0, 0, 0);
}
nav .search-box form{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
nav .search-box input{
    height: 25px;
    width: 250px;
}
nav .search-box  button{
    background-color: red;
    border: none;
}
nav .search-box img{
    width: 25px;
    height: 25px;
}

header .banner{
    background-image: url('../assets/bg.jpg');
    border-image: fill 1 linear-gradient(#d3d0d088, #dfd9d988, #02020288);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--third-font);
    text-align: center;
}
header .banner h1{
    font-size: 4rem;  
    margin: 0;
    letter-spacing: 5px;
}
header .banner h2{
    font-size: 2.5rem;  
    margin: 0;
    letter-spacing: 3px;
}

main{
    background-color: #cdcdcd85;
    padding: 0.5rem;
}
main #showDialogBoxBtn{
    padding: 0.5rem;
    background-color: var(--prmary-color);
    color: whitesmoke;
    font-family: var(--main-font);
    font-weight: bold;
    border: 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    margin: 1.5rem 0 2rem 1.5rem;
    letter-spacing: 5px;
}
main #showDialogBoxBtn:hover{
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 5px 3px 10px rgba(0, 0, 0, 0.5);
}

/* Dialog box styles */
dialog{
    border-radius: 15px;
    padding: 0;
}
::backdrop{
    background-image: linear-gradient(rgba(27, 3, 49, 0.953),rgba(31, 2, 59, 0.949));
    opacity: 0.8;
}
dialog form{
    width: 100%;
    padding: 0.3rem;
    margin: 0;
    box-sizing: border-box;
}
dialog .form-header{
    width: 100%;
    background-color: var(--prmary-color);
}
dialog .form-header h2{
    font-size: 1.5rem;
    margin: 0;
    padding: 0.5rem 0;
}
dialog form label{
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
dialog form input{
    width: 100%;
    height: 35px;
    box-sizing: border-box;
}
dialog form .nb-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
dialog form  input[type="number"]{
    width: 70%;
    margin: 0.5rem 0;
}
dialog form  input[type="checkbox"]{
    width: 20px;
    height: 20px;
}
dialog form .read{
    display: flex;
}
dialog form .form-btn-box{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
dialog form .form-btn-box button{
    width: 40%;
    height: 35px;
    border: 0;
    border-radius: 5px;
    font-weight: bold;
}
dialog form .form-btn-box button:last-of-type{
    margin-left: 0.5rem;
    background-color: #f21b3f; 
    transition: all 0.3s ease-in-out;
}
dialog form .form-btn-box button:last-of-type:hover{
   color: #f21b3f; 
   background-color: white;
   border: 1px solid #f21b3f; 
   cursor: pointer;
}
dialog form .form-btn-box button:first-of-type{
    background-color: #29bf12;
    transition: all 0.3s ease-in-out;
}
dialog form .form-btn-box button:first-of-type:hover{
    color: #29bf12; 
    background-color: white;
    border: 1px solid #29bf12; 
    cursor: pointer;
 }
/* END Dialog box styles */

/* books styles */
.container{
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.container .book-card{
    position: relative;
    background-color: #1d0f01;
    color: white;
    border-radius: 5px;
    border-top-right-radius: 25px;
    width: 250px;
    height: 350px;
    padding: 0.5rem;
    box-sizing: border-box;
    box-shadow: 10px 0px rgb(211, 209, 209), 15px 0px rgb(0, 0, 0)
}
.container .book-card .book-header{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 0.5rem;
}
.container .book-card .book-header .book-header-icon{
    width: 90px;
    height: 35px;
    border-radius: 5px;
    background-color: #000000;
}

.container .book-card .book-title{
    font-size: 1.2rem;
}
.container .book-card .book-author{
    font-style: italic;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    letter-spacing: 2px;
}
.container .book-card .book-pages{
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: black;
    width: 100px;
    height:50px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container .book-card .delete-button{
    background-color: #f21b3f;
    border: none;
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    padding: 0.3rem;
    border-radius: 5px;
}
.container .book-card .book-read{
    background-color: #29bf12;
    border: none;
    padding: 0.3rem;
    border-radius: 5px;
}
.container .book-card .delete-button:hover{
    color: #f21b3f;
    background-color: #1d0f01;
    cursor: pointer;
    border: 1px solid #f21b3f;
    transform: scale(1.1);
}