@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300&display=swap');
body{
    display: flex;
    font-family: 'Kanit', sans-serif;
    flex-direction: column;
    margin: 0;
    height: auto;
}

.container{
    min-height: 100vh;
    width: 100%;
    background-color: #c17542;
    display: grid;
    grid-template-columns: 1fr 9fr;
    grid-template-rows: auto;
}

.control{
    
    gap: 10px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / 2;
    grid-row: 1/6;
    background-color: #5b371e;
    box-shadow: 10px 0px 5px #82502c;
}

.control-title{
    font-size: max(3vw, 1.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-btns{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 20px;
    flex:1;
}

.control-btns div{
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    user-select: none;
    
    border-radius: 9px;
    font-size: 1rem;
    width: 80%;
    height: 10%;

}
.add, .remove, .modify{
    background-color: #8e5630;
}

.control-btns div:hover{

    cursor: pointer;
    background-color: #814e2a;
}

.content{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex:1;
    align-items: center;
    justify-content: center;
    grid-row: 1 / 6;
    grid-column: 2 / 4;
    width: 80%;

    justify-self: center;
    
    /*
    gap: 15px;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    justify-items: center;
    align-items: center;
    */
}

.footer{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2rem;
    background-color: #8e5630;
}

.footer a{
    text-decoration: none;
    color: white;
    text-shadow: 0 0 10px black;
}

.footer a:hover{
    color: rgb(169, 169, 169)
}

@media(max-width: 700px){
    .container{
        grid-template-columns: 50% 50%;
        grid-template-rows: 10% 90%;
    }
    .control{
        flex-direction: row;
        grid-column: 1 / 3;
        grid-row: 1/2;
        grid-template-columns: 10% 90%;
    }
    .content{
        grid-column: 1/3;
        grid-row: 2;
    }
    .control-btns{
        flex-direction: row;
    }

    .control-btns div{
        min-height: 60px;
    }
}

.book{
    width: 100%;
    height: 100%;
    max-width: 200px;
    min-height: 200px;
    max-height: 250px;

    background-color: #f2dcb1;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    box-shadow: 15px 0 10px #82502c;


    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.5rem;
}

.book:hover{
    background-color: #bfad8b;
}

.book div:nth-child(1){
    font-size: 2rem;
}

.book div:nth-child(2){
    font-size: 1.3rem;
}
.book div:nth-child(3){
    font-size: .8rem;
    opacity: .5;
}
.book div:nth-child(4){
    font-size: 1rem;
}

.mode{
    background-color: #d2a56d;
}



.modal{
    display: none;
}

.modal-content{
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(4,1fr);
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 40%;
    height: 40%;
    background-color: #f1f1f1;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.modal-background{
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .8);
}
.modal-close{
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: end;
    grid-column: 4/5;
    grid-row: 1/2;
    width: 24px;
    height: 24px;
    background-color: rgb(176, 176, 176);
    border-radius: 2px;
    cursor: pointer;
}

.modal-close:hover, .submit:hover, .modify-modal:hover{
    background-color: rgb(134, 134, 134);
}

object{
    pointer-events: none;
}

input{

}


input:focus{
    outline: none;
}

.book-info{
    grid-column: 1/4;
    grid-row: 2/4;
}

.submit{
    user-select: none;
    padding: .3rem;
    cursor: pointer;
    width: fit-content;
    background-color: rgb(176, 176, 176);
    border-radius: 3px;
}

.modify-modal{
    user-select: none;
    padding: .3rem;
    cursor: pointer;
    width: fit-content;
    background-color: rgb(176, 176, 176);
    border-radius: 3px;
}

.display{
    display: none;
}