*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 90%;
    margin: 0 auto;
}

.column {
    display: flex;
    flex-direction: column;
}

.flex {
    display: flex;
}

.gap {
    gap: 1.5rem;
}

.gap-small {
    gap: .4rem;
}

.font-base {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 1rem;
}

h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
}

header {
    background-color: white;
    padding: 1.2rem 0;
    margin-bottom: 1rem;
    box-shadow: #C0C0C0 3px 5px 5px; 
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    grid-auto-rows: min-content;
    column-gap: 1rem;
    row-gap: 1rem;
    margin-bottom: 4rem;
}

body {
    background-color: #D3D3D3;
}

.card {
    font-family: "Roboto", sans-serif;
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: #C0C0C0 3px 5px 5px;  
    height: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card > div:first-child > p:first-child {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: .3rem;
}

.card > div:first-child > p + p,
.card > div:first-child > p + p + p {
    font-weight: 400;
    font-size: .9rem;
}

.card > div + div {
    display: flex;
    justify-content: end;
    gap: .5rem;
}

.have-read {
    color: green;
}

.new-book-button {
    padding: .6rem 1rem;
    background-color: #238636;
    border: none;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.new-book-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content;
    row-gap: 1rem;
    column-gap: 1rem;
    width: 50%;
    align-items: center;
}

.send-button {
    padding: .5rem 2rem;
    background-color: #238636;
    border: none;
    color: white;
    border-radius: 8px;
    width: fit-content;
    font-size: .85rem;
}

button:hover,
.button-delete:hover {
    cursor: pointer;
}

.text-input {
    padding: .2rem .4rem;
}

#form-container > h2 {
    margin-top: 1.2rem;
}

.button-delete {
    width: 1.5rem;
}

.unread-button {
    background-color: white;
    padding: .1rem .5rem;
    border: 1px solid black;
    border-radius: 5px;
}

.unread-button:hover {
    background-color: grey;
    color: white;
}