/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    box-sizing: border-box;
}
main{
    padding-top: 6%;
}
/* Header Styling */

h1 {
    font-size: 32px;
    color: white;
    padding: 15px;
    background-color: rgb(24, 24, 170);
    margin: 0;
}

/* Centering Content */
.e-books div {
    text-align: center;
    margin-bottom: 20px;
        margin-top: 16px;
}

/* Book Container Styling */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    padding: 0 3vw;
    box-sizing: border-box;
    justify-content: center;
}

/* Each container will auto-resize */
.container {
    height: 300px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.container:hover {
    transform: scale(1.05);
}

.book-link{
    text-decoration: none; /* Removing underline from links */
    color: inherit; /* Inheriting color from parent */
}
/* Book Image Styling */
.book-link img {
    width: 150px;
    height: 180px; /* Keeping all images equal */
    border-radius: 5px;
    display: block;
    margin: auto;
}

/* Book Title Styling */
p {
    font-size: 16px;
    font-weight: bold;
    color: #444;
    text-align: center;
    margin-top: 10px;
    height: 40px; /* Ensuring uniform text spacing */
    display:flex;
    align-items: center;
    justify-content: center;
}

.container img
{
    width:200px;
    cursor:pointer;
}