#container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
}

#book-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

button {
    padding: 0 15px;
}

#library-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.book-card {
    padding: 15px;
    border: 1px solid black;
}

.hidden {
    display: none;
}

#book-form-dialog {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.form-field {
    margin-bottom: 10px;
}

dialog {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-height: 80%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-width: 1px;
    overflow: auto;
    opacity: 0;
    pointer-events: none;
}

dialog[open] {
    opacity: 1;
    /* Show dialog when open */
    pointer-events: auto;
    /* Allow interaction when open */
    display: block;
    /* Ensures it shows up as a block element */
    position: fixed;
    /* Fixes the element within the viewport */
    top: 20%;
    /* Centers vertically */
    left: 50%;
    /* Centers horizontally */
    transform: translate(-50%, -50%);
    /* Adjusts the element to the exact center */
    background-color: #fff;
    /* Dialog box background color */
    padding: 20px;
    /* Padding for the content inside */
    width: 300px;
    /* Set a width for the dialog */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Optional shadow for styling */
    border-radius: 8px;
    /* Optional rounded corners */
    z-index: 1000;
    /* Ensures it’s above other elements */

}

.buttons {
    display: flex;
    gap: 1rem;
    max-height: 30px;

}