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

body {
    background-color: #DAD7CD;
    margin: 28px;
}

.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));

}

#add-book-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 72px;
    aspect-ratio: 1;
    background-color: #344E41;
    border-radius: 50%;
    border: none;
}
dialog {
  position: fixed;
  margin: auto;
  border: none;
  background: none;
}

dialog::backdrop {
  backdrop-filter: blur(5px);
}

.form-add-book {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: row;
    width: 350px;
    background-color: #344E41;
    padding: 24px;
    border-radius: 16px;
    color: #DAD7CD;
}

.header-esc {
    display: flex;
    justify-content: space-between;
}

.header-esc > h3 {
    font-size: 36px;
    font-weight: 400;
}

#add-book-esc-button{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3A5A40;
    height: 36px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 0;
}

.input-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-add-book form input {
    background-color: #3A5A40;
    color: #DAD7CD;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    padding: 8px 12px;
}

.form-add-book form input:focus{
    background-color: #3A5A40;
    color: #DAD7CD;
    outline: none;
    border: none;
}

.form-add-book form input::placeholder{
    color: #A3B18A;
}

.form-add-book form button {
    background-color: #A3B18A;
    color: #344E41;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    padding: 8px 12px;
}

.form-add-book > form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
}
.form-inputs {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 16px;
    gap: 16px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    background-color: #A3B18A;
    border-radius: 16px; 
    gap: 16px;
}

.card-header {
    color: #344E41;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    height: 2.4em;
}

.card-info {
display: flex;
justify-content: space-between;
color: #344E41;
font-size: 16px;
}

.card-buttons {
 display: flex;
 gap: 8px;
}

.card-btn {
    background-color: #344E41;
    color: #DAD7CD;
    padding: 8px 0;
    font-size: 16px;
    border: none;
    flex: 1;
    border-radius: 8px;
}

.change-status {
    background-color: #588157;
}

.remove-card {
    background-color: #3A5A40;
}