body {
    height: 100%;
    font-family: 'Georgia', serif;
    background-color: #fdfaf6;
    margin: 0;
    padding: 0;
}
.main{
    position: relative;
    display: flex;
    flex-direction: column;
}
nav{
    position: fixed;
    z-index: 10;
    width: 100%;
    padding: 1em 0;
    background-color: #6a4f4b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.navbar a{
    margin: 0 1em;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.navbar a:hover{
    text-decoration: underline;
    /* border-top: 3px solid #fff; */
}
#NAVsearch{
    display: flex;
    flex-grow: 1;
    justify-content: center;
    margin-right: 0.2em;
}
.navbar i{
    padding: 0.4em;
    background-color: #4b2c20;
    border-radius: 10px 0 0 10px;
    color: #fff;
}
#searchbar{
    width: 100%;
    max-width: 400px;
    padding: 0.5em;
    background-color: #d7ccc8;
    border: none;
    border-radius: 0 10px 10px 0;
    color: #4b2c20;
}
.categorysection{
    padding: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.categorylist{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    padding: 20px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    width: 180px;
    text-align: center;
}
.categorylist:hover{
    transform: scale(1.05);
}
.categorylist i{
    margin-right: 10px;
}
#Web{background-color: #4caf50;}
#Programming_Languages{background-color: #2196f3;}
#UI_UX{background-color: #ff9800;}
#App_Development{background-color: #9c27b0;}
#CyberSecurity{background-color: #e91e63;}
.ALLSection{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #6a4f4b;
    border-radius: 10px;
    padding: 20px;
    color: #6a4f4b;
    font-weight: bold;
    background-color: #d7ccc8;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    text-align: center;
    margin: 16px;
}
.ALLSection:hover{
    transform: scale(1.03);
    background-color: #c5b1a2;
}
.container {
    margin: auto;
    margin-top: 5em;
    padding: 20px;
    background: white;
    flex: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}
.addingbookform {
    display: flex;
    flex-direction: column;
    /* margin: 20px 0; */
    margin-top: 20px;
    background-color: #faf0ec;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.addingbookform input, .addingbookform select, .addingbookform button {
    padding: 10px;
    
    font-size: 16px;
    border-radius: 5px;
}
.addingbookform input, .addingbookform select{
    border: 1px solid #6a4f4b;
    margin-bottom: 15px;
}
.addingbookform button {
    align-self: flex-start; /* This Align button to the start of the form */
    background-color: #6a4f4b;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.addingbookform button:hover{
    background-color: #4b2c20;
}
.bookgrid{
    padding: 20px 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.bookitem{
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bookitem:hover{
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.bookitem img{
    width: 100%;
    height: auto;
}
.bookitem .bookdetails{
    padding: 10px;
}
.bookitem .borrowbtn, .bookitem .deletebtn{
    position: absolute;
    top: 5px;
    right: 65px;
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s, transform 0.2s;
}
.bookitem .borrowbtn:hover{
    background-color: #388e3c;
    transform: scale(1.04);
}
.bookitem .deletebtn{
    right: 5px;
    background-color: #f44336;
}
.bookitem .deletebtn:hover{
    background-color: #d32f2f;
    transform: scale(1.04);
}
.bookdetails h3, .bookdetails p{
    margin: 0.5em 0;
    padding: 0.3em;
}
.bookdetails h6{
    color: #7b7b7b;
    margin: 0.1em;
    margin-bottom: 0.5em;
    padding: 0.3em;
}
.historycontainer{
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
    transform: translateY(82%);
    transition: transform 0.3s ease;
}
.historycontainer.active{
    transform: translateY(0);
}
#togglehistory{
    width: 100%;
    background-color: #6a4f4b;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.2s;
}
#togglehistory:hover{
    background-color: #4b2c20;
}
#clearlog{
    background-color: red;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}
#clearlog:hover{
    background-color: darkred;
}
#historylist{
    list-style: none;
    margin: 0;
    padding: 0;
}
#historylist li{
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
#historylist li:last-child{
    border-bottom: none;
}
