@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    padding: 20px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    margin-bottom: auto;
}

h1 {
    margin: 0 0 20px;
    font-size: 2.5em;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

input {
    width: 70%;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
}

button {
    padding: 15px 25px;
    border: none;
    border-radius: 0 30px 30px 0;
    background-color: #ff5e78;
    color: white;
    cursor: pointer;
    font-size: 1em;
    outline: none;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff3b5c;
}

#books-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.book {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8.5px);
    -webkit-backdrop-filter: blur(8.5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
}

.book:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.book img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 12px;
    background-color: #fff;
}

.book h3 {
    font-size: 1.2em;
    margin: 10px 0 5px;
}

.book p {
    font-size: 1em;
    color: #dcdcdc;
}

footer {
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
}

footer p {
    margin: 0;
    font-size: 1em;
}

footer a {
    color: #ff5e78;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
