* {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: rgb(69, 71, 72);
}

.header {
    background-color: rgb(128, 207, 109);
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;

}
.new-btn {
    background-color: rgb(234, 77, 77);
    border-radius: 10px;
    border: 0;
    color: white;
    font-size: 2rem;
    padding: 0 5vw;
    transition-duration: 0.2s;
}
.new-btn:hover {
    transform: scale(1.05);
    cursor:pointer;
}
.new-btn:active {
    transform: scale(0.95);
}

.content {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
}
.book-card {
    background-color: rgb(207, 190, 169);
    width: 15rem;
    height: 20rem;
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
}
.book-card > img {
    border-radius: 5px;
}
.book-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.book-actions > button {
    padding: 5px;
    margin-top: 2px;
    border: none;
    color: white;
    background-color: rgb(128, 207, 109);
    font-weight:bold;
}
.read-toggle {
    border-radius: 15px 0px 0px 15px;
}
.read-toggle:hover {
    cursor:pointer;
}
.delete-btn {
    border-radius: 0px 15px 15px 0px;
}
.delete-btn:hover {
    cursor:pointer;
}

.new-modal {
    opacity: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all 0.1s ease-out;
    z-index: -1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.new-modal.active {
    opacity: 1;
    z-index: 999;
    pointer-events: auto;
    transition: opacity 0.1s ease-out;
}
.new-modal-inner {
    background-color: rgb(128, 207, 109);
    width: 30vw;
    min-width: 250px;
    max-width: 400px;
    padding: 2rem 1.5rem;
    padding-top: 0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}
.new-close-btn {
    background-color: transparent;
    align-self:flex-end;
    font-size: 3rem;
    font-weight: 800;
    padding: 0;
    border: none;
    color: rgb(234, 77, 77);
    user-select: none;
}
.new-close-btn:hover {
    transition: color 0.1s black;
    cursor:pointer;
}
.new-modal-inner > form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.form-group input[type="text"] {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    background: #f8f8f8;
    color: #222;
}
.form-group input[type="text"]:focus {
    border-color: #888;
}
#read {
    transform: scale(3);
    align-self: flex-start;
    margin-top: 10px;
    margin-left: 10px;
}
.new-submit-btn {
    background-color: rgb(234, 77, 77);
    color: white;
    align-self:flex-end;
    font-size: 2rem;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 10px;
}
.new-submit-btn:hover {
    transition: color 0.1s black;
    cursor:pointer;
}