/*
CSS for main page of book journal website
*/

main h2 {
    color: rgb(56, 56, 56);
    font-size: 2.3em;
    margin-top: 48px;
    text-align: center;
}

#books-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1600px;
    margin: 24px auto;
    margin-bottom: 102px;
    padding: 20px;
}

.book-card {
    background-color: white;
    border: 1px solid rgba(156, 156, 156, 0.352);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex-basis: 30%;
    padding: 15px;
    transition: all 0.3s ease;
    width: 200px;
}
.book-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
    transition: all 0.3s ease;
}

.book-cover {
    margin: 0 auto;
    margin-top: 10px;
    width: 90%;
}
.book-cover img {
    border: 1px solid rgba(125, 125, 125, 0.26);
    border-radius: 4px;
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    
}

.book-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 auto;
    margin-top: 18px;
    text-align: center;
    width: 87%;
}
.book-title a {
    text-decoration: none;
    color: #333;
}
.book-title a:hover {
    color: #007Bff;
    text-decoration: underline;
}
.date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
    margin-top: 8px;
    text-align: center;
}