
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(to right, #cacaa2, #dfe6a1);
    color: #333;
    padding: 20px;
}


h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 8px;
}

p {
    text-align: center;
    color: rgb(29, 118, 235);
}


ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

ul li button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    cursor: pointer;
    position: relative;
}

ul li button::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #3498db;
    left: 0;
    bottom: -4px;
    transition: 0.3s;
}

ul li button:hover::after {
    width: 100%;
}


h2 {
    text-align: center;
    margin: 40px 0 20px;
    color: #2c3e50;
}


.book-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.book-card {
    background: rgb(240, 182, 182);
    width: 230px;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.book-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.book-card h3 {
    margin: 12px 0 5px;
    font-size: 18px;
}

.book-card .author {
    font-size: 14px;
    color: #777;
}

.book-card .price {
    font-size: 16px;
    font-weight: bold;
    color: #e67e22;
    margin: 10px 0;
}


button {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}


form {
    max-width: 500px;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

form p {
    text-align: left;
    margin-bottom: 15px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}


hr {
    margin: 40px auto;
    width: 80%;
    border: none;
    height: 1px;
    background: rgb(226, 26, 26);
}


footer {
    margin-top: 40px;
}

footer p {
    text-align: center;
    font-size: 14px;
    color: #777;
}


@media (max-width: 768px) {
    .book-card {
        width: 90%;
    }

    ul {
        gap: 15px;
    }
}
