body{
    margin: 10px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins';
}

.myLibraryBox{
    display: grid;
    grid-template: 3fr 10fr 1fr/1fr 3fr;
    width: 1000px;
    height: 700px;
    border-radius: 20px;
    box-shadow: 0px 10px 20px rgb(140, 137, 135);
    padding: 30px;
    background-color: rgb(255, 253, 251);
    position: relative;
}
.sidebar{
    display: flex;
    flex-direction: column;
    grid-area: 1/1/3/2;
    padding: 10px;
    color: rgb(107, 77, 37);
}
.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 30px;
    font-weight: bold;
}
.logo svg{
    fill: rgb(107, 77, 37);
    width: 30px;
}
ul{
    list-style: none;
}
ul li{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    gap: 10px;
    font-size: 20px;
    padding: 10px;
    font-weight: 500;
}
.theLink{
    background-color: rgb(246, 239, 231);
    border-radius: 20px;
    box-shadow: inset 0px 0px 10px rgba(215, 183, 144, 0.5);
}
li, #btn, .btnExit, .submit{
    cursor: pointer;
}
li:hover{
    background-color: rgba(246, 239, 231, 0.5);
    border-radius: 20px;
}
li svg{
    fill: rgb(107, 77, 37);
    width: 25px;
}
.search svg{
    fill: rgb(107, 77, 37);
    width: 25px;
}
#btn svg{
    fill: rgb(107, 77, 37);
    width: 25px;
}
#btn{
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    color: rgb(107, 77, 37);
    font-size: 25px;
    background-color: rgb(246, 239, 231);
    padding: 10px;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    box-shadow: inset 0px 0px 10px rgba(215, 183, 144, 0.5);
}
.main{
    grid-area: 1/2/3/3;
    background-color: rgb(246, 239, 231);
    border-radius: 20px;
    padding: 10px;
    box-shadow: inset 0px 0px 20px rgba(215, 183, 144, 0.5);
}
.search{
    display: flex;
    padding: 5px;
    justify-content: space-between;
    border-radius: 10px;
    gap: 15px;
    color: rgb(107, 77, 37);
    font-weight: bold;
    width: 720px;
    background-color: rgb(255, 253, 251);
}
.search input{
    width: 600px;
    border-radius: 5px;
    border: none;
    background-color: rgb(242, 240, 237);
    color: rgb(107, 77, 37);
}
.search input::placeholder{
    color: rgba(107, 77, 37, 0.5);
}
.myBooks{
    display: flex;
    color: rgb(107, 77, 37);
    font-size: 20px;
    height: 550px;
    flex-direction: column;
    gap: 20px;
    padding-left: 10px;
    padding-top: 10px;
}
.shelf{
    height: 250px;
    width: 700px;
    margin-bottom: 10px;
    padding: 10px;
    padding-bottom: 0px;
    border-bottom: 10px solid rgb(87, 59, 24);
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.shelf::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: rgba(107, 77, 37, 0.5);
    border-radius: 20px;
}
.shelf::-webkit-scrollbar-thumb {
  background: rgb(246, 239, 231);
  border: 1px solid rgba(107, 77, 37);
  border-radius: 20px;
}

.currentlyReading, .nextUp, .finished{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer{
    grid-area: 3/1/4/3;
    text-align: center;
    align-self: center;
    margin-top: auto;
    color: rgb(107, 77, 37);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(107, 77, 37, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.hidden{
    display: none;
}
.form{
    display: flex;
    gap: 10px;
    background-color: rgb(255, 253, 251);
    border-radius: 10px;
    color: rgb(107, 77, 37);
    box-shadow: 0px 0px 10px rgba(107, 77, 37, 0.5);
    padding: 10px;
    padding-left: 40px;
    width: 220px;
    height: 410px;
    position: static;
    font-weight: bold;
}
form fieldset {
    display: flex;
    align-items: start;
    font-weight: 500;
    flex-direction: column;
    color: rgb(107, 77, 37);
}
legend{
    font-weight: bold;
}
form input{
    border-radius: 10px;
    border: 1px solid rgb(107, 77, 37);
    padding: 5px;
}

input:invalid{
    border: 1px solid rgba(204, 85, 0);
}
.infoRequired{
    font-size: 10px;
    font-weight: lighter;
}
.btnExit{
    align-self: flex-start;
    background-color: rgb(242, 240, 237);
    color: rgb(107, 77, 37);
    width: 30px;
    font-size: 20px;
    border: none;
    border-radius: 50px;
}
.add{
    margin-left: 30px;
    margin-top: 5px;
    background-color: rgb(242, 240, 237);
    font-weight: bold;
    font-size: 25px;
    color: rgb(107, 77, 37);
    border: none;
    border-radius: 20px;
}
.add:hover, .btnExit:hover, #btn:hover{
    position: relative;
    top: 3px;
    border-top: 5px solid rgb(107, 77, 37);
}
.book{
    display: grid;
    grid-template: 1fr 10fr/ 1fr 1fr 5fr;
    justify-content: space-between;
    width: 75px;
    height: 95px;
    border-radius: 0px 10px 10px 0px;
    padding: 5px;
    font-size: 12px;
    line-height: 12px;
    overflow: hidden;
    font-weight: bold;
    text-align: start;
    background-size: contain;
    background-position: center;
    color: rgb(246, 239, 231);
    text-shadow: 1px 1px 0px black;
    background-color: rgb(107, 77, 37);
    position: relative;
}
.btnDelete{
    align-self: flex-start;
    color: rgba(204, 85, 0);
    font-size: 12px;
    font-weight: bold;
    background-color: transparent;
    border: none;
    cursor: pointer;
    grid-area: 1/1/2/2;
    padding: 0px;
    margin-right: 5px;
    text-shadow: 1px 1px 0px black;
    z-index: 1;
}
.book .btnDelete{
    opacity: 0;
    transition: opacity 0.3s ease;
}
.book:hover .btnDelete{
    opacity: 1;
}
.btnEdit{
    align-self: flex-start;
    color: rgba(60, 141, 79);
    font-size: 12px;
    font-weight: bold;
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin: 0px;
    grid-area: 1/2/2/3;
    padding: 0px;
    text-shadow: 1px 1px 0px black;
    z-index: 1;
}
.book .btnEdit{
    opacity: 0;
    transition: opacity 0.3s ease;
}
.book:hover .btnEdit{
    opacity: 1;
}
.text{
    grid-area: 2/1/3/8;
    font-size: 10px;
    margin-top: 5px;
    font-style: italic;
    word-wrap: break-word;
    z-index: 1;
}
.book .text {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.book:hover .text {
    opacity: 1;
}
.imgOverlay{
    background-color: rgba(107, 77, 37, 0.46);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.book .imgOverlay{
    opacity: 0;
}
.book:hover .imgOverlay{
    opacity: 1;
}