
@import url('https://fonts.googleapis.com/css2?family=Baskervville+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Exo", sans-serif;
}

html {
    width: 100%;
    height: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
}



/*TEXT AREA*/
.textArea p {
    font-size: 18px;
}

h1 {
    font-family: "Baskervville SC", sans-serif;
    color: brown;
}

/*FORM*/
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inputArea {
    width: 100%;
    display: flex;
    gap: 15px;
}

.input {
    width: 100%;
    height: 50px;
    border: 1px solid rgb(150, 150, 150);
    border-radius: 5px;
    font-weight: 400;
    text-indent: 10px;
}

select {
    height: 45px;
    background-color: white;
}

#addBookButton {
    max-width: 50vh;
    width: 25vh;
    min-width: 20vh;
    border: 0;
    border-radius: .5rem;
    box-sizing: border-box;
    font-size: 1rem;
    padding: .75rem 1rem;
    cursor: pointer;
    color: #111827;
    background-color: wheat;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: 0.2s;
}

#addBookButton:hover {
  background-color: rgb(247, 231, 203);
}

#addBookButton:active {
  outline: 2px solid transparent;
  outline-offset: 2px;
}



/*BOOKS*/
.bookCard {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 25px;
    gap: 25px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.bookCard p:first-child {
    font-weight: 400;
}

.bookCard p:last-child {
    font-weight: 300;
}

.bookButtonsDiv, .bookDetailsDiv {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.interectButton {
    width: 95px;
    height: 35px;
    border: none;
    border-radius: 50px;
    transition: 0.2s;
}

.interectButton:hover {
    background-color: rgb(211, 211, 211);
    transition: 0.2s;
}

.deleteButton {
    color: white;
    background-color: rgb(207, 77, 77);
}

.deleteButton:hover {
    background-color: rgb(160, 48, 48);
}



/*RESPONSIVE*/
@media only screen and (max-width: 650px) {
    * {
        transition: 0.5s;
    }

    .textArea h1 {
        font-size: 35px;
    }

    .textArea p {
        font-size: 15px;
    }

    .bookCard p {
        font-size: 12px;
    }

    .bookCard {
        padding: 15px;
    }

    .inputArea {
        flex-direction: column;
    }

    .bookBlock, button {
        font-size: 12px;
    }

    #booksContainer button {
        width: 50px;
    }
}