body {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}

.book {
    display: flex;
    gap: 20px;

    width: fit-content;

    margin: 10px;
    padding-left: 15px;
    padding-right: 15px;
    border: 2px solid black;
    border-radius: 20px;

    background-color: blanchedalmond;

    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.2em;
}

.remove-button {
    margin: 12px 0px;
    border-radius: 10px;
    border: 2px solid black;

    background-color: lightcoral;
}

.remove-button:hover {
    background: darkred;
    color: white;

    cursor: pointer;
}

.read-button {
    margin: 12px 0px;
    border-radius: 10px;
    border: 2px solid black;

    background-color: snow;
}

.read-button:hover {
    background: gray;
    color: white;

    cursor: pointer;
}

#show-dialog {
    background-color: whitesmoke;
    
    border: 2px solid black;
    border-radius: 5px;

    padding: 5px 10px;
}

#show-dialog:hover {
    background: burlywood;
    color: white;

    cursor: pointer;
}

#close-dialog {
    background-color: lightcoral;
    
    border: 2px solid black;
    border-radius: 10px;

    position: absolute;
    top: 10px;
    right: 15px;
}

#close-dialog:hover {
    background: darkred;
    color: white;

    cursor: pointer;
}

#add-button {
    background-color: lightgreen;
    
    border: 2px solid black;
    border-radius: 5px;
}

#add-button:hover {
    background: green;
    color: white;

    cursor: pointer;
}

#add-button:active {
    background-color: lightgreen;
    color: black;
}

dialog form {
    margin-top: 30px;
    margin-bottom: 10px;

    display: grid;
    gap: 15px;
}

#title, #author, #pages {
    width: 96%;
}

#read-status {
    position: absolute;
}