* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 body {
    text-align: center;
    font-family: cursive, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #333;
    padding: 20px;
} 

button {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    background: cadetblue;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    background: teal;
} 

#form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff8dc; 
    padding: 25px 40px;
    border-radius: 10px;
}

#formDialog {
    border: none;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    margin: 200px auto;
}

.library {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    justify-items: center;
}

.card {
    background: linear-gradient(145deg, #ff7f50, #ff9966);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 300px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
} 

.card p {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: left;
} 

.card button {
    align-self: flex-end;
    background: #1e90ff;
    font-size: 0.9rem;
    width: auto;
}

.card button:hover {
    background: #1565c0;
}

#btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#new-book {
    margin-top: 20px;
}