/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header and Footer Styles */
header, footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* Navigation Bar Styles */
nav {
    display: flex;
    justify-content: center;
    background-color: #444;
    padding: 10px 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
}

nav a:hover {
    background-color: #555;
}

/* Container for Main Content */
.container {
    width: 85%;
    margin: 20px auto;
}

/* Volume and Chapter Layout */
.volume-chapter-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.volume-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.volume-cover {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-right: 20px;
    border: 2px solid #333;
    border-radius: 5px;
    transition: transform 0.3s;
    object-fit: cover;
}

.chapter-table {
    display: table;
    width: 85%;
    border-collapse: collapse;
}

.chapter-row {
    display: table-row;
    border-bottom: 1px solid #444;
}

.chapter-cell {
    display: table-cell;
    padding: 5px;
    font-size: 1.1rem;
}

.chapter-cell a {
    color: #ffcc00;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.chapter-cell a:hover {
    text-decoration: underline;
}

/* Author Image Styles */
.author-image {
    max-width: 200px;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
}

/* Media Collage Styles */
.media-collage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.media-image {
    width: 200px;  /* Set the size of your media images */
    height: auto;
    margin: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

/* Chapter Navigation Tabs (Desktop and Mobile) */
.chapter-nav {
    display: flex; /* Use flexbox for layout */
    position: fixed; /* Fixed position at the bottom */
    bottom: 0; /* Align to the bottom of the viewport */
    left: 0;
    right: 0;
    background-color: #444; /* Background color for the navigation */
    padding: 10px 0; /* Padding for the navigation */
    z-index: 1000; /* Ensure it stays above other elements */
    justify-content: space-between; /* Space between previous and next */
}

/* Adjust margin to avoid covering footer */
.chapter-content {
    margin: 20px; /* Keep margins for content */
    padding-bottom: 80px; /* Ensure last lines are not blocked by tabs */
}

/* Ensure Footer is below the navigation */
footer {
    margin-top: 60px; /* Add margin to the top of the footer */
}

/* Chapter Navigation Links */
.chapter-nav a {
    color: white; /* Link color */
    text-decoration: none; /* Remove underline from links */
    font-weight: bold; /* Bold font for emphasis */
    padding: 10px 20px; /* Padding for links */
    flex: 1; /* Make each tab take equal space */
    text-align: center; /* Center the text within the tabs */
    transition: background-color 0.3s; /* Smooth transition for hover */
}

/* Hover effect for links */
.chapter-nav a:hover {
    background-color: #555; /* Highlight tab on hover */
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .chapter-nav {
        padding: 10px; /* Keep padding for mobile */
        height: 60px; /* Height for mobile */
    }
}
