* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;  
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.search input {
    width: 100%;
    min-width: 350px;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1e1e1e;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.btn {
    padding: 12px 24px;
    margin-left: 7px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1e1e1e;
    color: #fff;
    font-size: 16px;
    cursor: pointer;

}

.book-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    justify-content: center;
    align-items: normal;
}

a{
    text-decoration: none;
}

.book {
    background: #1e1e1e;  
    border: 1px solid #333;  
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.book:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(187, 134, 252, 0.3);
}

.thumbnail {
    padding: 15px;
    background: #242424;  
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.book-author {
    font-size: 16px;
    color: #4e0ba0;
    margin-left: 15px;
    margin-top: 15px;
    padding: 2px 10px;
    border-radius: 5px;
    background-color: #b697db;
    font-size: 14px;
    width: fit-content;
}

.book-title, .publisher, .published-date {
    padding-left: 15px;
    padding-top: 10px;
    text-align: left;
}

.book-title {
    font-size: 20px;
    font-weight: bold;
    color: #bb86fc; 
}

.publisher, .published-date {
    font-size: 16px;
    color: #b0b0b0;
}

.published-date {
    padding-bottom: 20px;
}

@media (max-width: 1024px) {
    .book-list {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    .book-list {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 480px) {
    .book {
        width: 100%;
    }

    .book-list {
        grid-template-columns: repeat(1, 1fr);
    }
    .thumbnail img {
        height: 200px;
    }
}
