.book-container {
    display: flex;
    flex-wrap: wrap; /* Allow books to wrap onto the next line */
    justify-content: flex-start; /* Align books to the left by default */
}

.book {
    display: inline-block; /* Display the books inline */
    margin: 20px; /* Add some space between the books */
}

.pagee,
.cover img {
    width: 200px;
    height: 300px;
    object-fit: cover;
}

.pagee {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pagee img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.pagee h3,
.date {
    font-size: 12px; /* Adjust font size */
    color: #777; /* Adjust text color */
    text-align: center;
}

.titre {
    font-size: 14px; /* Set heading font size */
    margin-top: 10px; /* Add margin */
    color: #333; /* Set heading color */
}

@media screen and (max-width: 768px) {
    .book-container {
        justify-content: center; /* Center books horizontally on media screens */
    }

    .book {
        margin: 20px auto; /* Center each book individually */
    }
}

/* Your existing CSS styles */

/* Your existing CSS styles */
/* Your existing CSS styles */

.pagee {
    position: relative; /* Set position to relative for absolute positioning of the download text */
}

.download-text {
    display: none; /* Hide the download text by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px; /* Add padding */
    background-color: #312ef3; /* Set background color */
    color: white; /* Text color */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Add border radius */
    font-size: 16px; /* Set font size */
    transition: background-color 0.3s ease; /* Add transition effect */
}

.download-text:hover {
    background-color: #00ffea; /* Change background color on hover */
}

.pagee:hover .download-text {
    display: inline-block; /* Show the download text when the book is hovered over */
}
