/* General Styles */
body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 20px;
}

/* Buttons */
button {
    margin-top: 7px;
    background-color: #ff9800;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

button:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

/* Library Container */
.library {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

/* Book Card */
.book-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 220px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
    position: relative;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Book Titles */
.book-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: #ffcc00;
}

/* Book Details */
.book-card p {
    font-size: 14px;
    margin: 5px 0;
}

/* Remove & Toggle Buttons */
.book-card button {
    width: 100%;
    margin-top: 10px;
}

/* New Book Button */
#newBookBtn {
    background-color: #28a745;
}

#newBookBtn:hover {
    background-color: #218838;
}

/* Book Form */
#bookForm {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    max-width: 350px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Input Fields */
#bookForm input {
    padding: 10px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    width: 90%;
    font-size: 16px;
}

/* Checkbox */
#bookForm label {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-left: -160px;
}

#bookForm input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Submit Button */
#bookForm button {
    background-color: #007bff;
}

#bookForm button:hover {
    background-color: #0056b3;
}

#read {
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .library {
        flex-direction: column;
        align-items: center;
    }
}

.creatids{
    background-color: rgb(216, 211, 211, 0.8);
    color: black;
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 18px;
    padding: 10px 14px;
    border-radius: 5px;
    font-weight: 600;
}

.read-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Adds space between the checkbox and text */
}

.read-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff; /* Change checkbox color */
}

