body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: radial-gradient(circle, #ffd480, #ffb347, #ff9966); /* Softer warm tones */
    color: #333;
    margin: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight:bold;
}

#new-book-btn {
    padding: 14px 20px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

#new-book-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003580);
    transform: scale(1.05);
}

#library {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 80%;
}

.book-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    width: 260px;
    box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.15);
    color: #333;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

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

button {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.remove-btn {
    background: linear-gradient(135deg, #ff4d4d, #d60000);
    color: white;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #d60000, #a00000);
    transform: scale(1.09);
}

.toggle-btn {
    background: linear-gradient(135deg, #28a745, #1c7c29);
    color: white;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #1c7c29, #14641b);
    transform: scale(1.05);
}
@media (max-width: 600px) {
    .library {
        grid-template-columns: 1fr;
    }
}