body {
    background-color: #f7f4ed;
    color: #333;
    font-family: 'Cardo', serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.header, .index {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #4a4a4a;
}

.header p {
    margin: 5px 0 0;
    font-size: 1.1em;
    color: #666;
    font-family: 'Open Sans', sans-serif;
}

.index nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.index nav a {
    color: #4a4a4a;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    transition: background 0.3s, color 0.3s, border 0.3s;
    font-size: 1em;
}

.index nav a:hover,
.index nav a.active {
    background: #eaeaea;
    color: #000;
    border-color: #ccc;
}

/* Main content area styling */
.movie-list {
    position: relative;
    z-index: 2; /* Ensures content appears above the footer */
    padding: 20px 0; /* Adjust padding for main content */
}

/* Jump Links styling */
.jump-links {
    text-align: left;
    margin-bottom: 20px;
    font-family: 'Cardo', serif;
    color: #000;
}

.jump-links a {
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    font-size: 1em;
    color: #000;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.jump-links a:hover {
    background-color: #eaeaea;
    color: #000;
    border-color: #ccc;
}

/* Style for the Load Next Page button */
.load-next {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.next-page-button {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    font-size: 1em;
    font-family: 'Cardo', serif;
    color: #000;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.next-page-button:hover {
    background-color: #eaeaea;
    color: #000;
    border-color: #ccc;
}

.review {
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    display: flex;
    align-items: flex-start;
    flex-direction: row-reverse; /* Poster on the right */
}

.poster {
    flex-shrink: 0;
    margin-left: 20px;
    width: 180px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content {
    flex: 1;
}

.title-year-rating {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.title {
    font-family: 'Cardo', serif;
    font-weight: 700;
}

.year, .rating {
    font-style: italic;
    font-size: 0.9em;
    color: #777;
}

.rating {
    color: #b33a3a;
}

.director {
    font-style: italic;
    font-size: 1em;
    color: #555;
    margin-top: 5px;
}

.description {
    margin-top: 15px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.cast, .specs {
    color: #555;
    font-size: 0.95em;
    margin-top: 10px;
}

.cast {
    font-style: italic;
}

.specs {
    text-align: right;
    font-size: 0.85em;
    font-family: 'Open Sans', sans-serif;
}

.footer {
    text-align: center;
    font-size: 0.85em;
    color: #777;
    margin-top: 40px;
}

@media (max-width: 600px) {
    body {
        padding: 20px;
        margin: 20px auto;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 1em;
    }

    .index nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .index nav a {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .movie-list h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
        padding-bottom: 5px;
        border-bottom: 1px solid #ddd;
    }

    .review {
        flex-direction: column; /* Stack poster and content */
        align-items: center;
        text-align: center;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .poster {
        width: 100%;
        max-width: 150px; /* Reduced max width for smaller screens */
        margin: 0 0 15px 0; /* Centered and spaced */
    }

    .content {
        text-align: left;
        width: 100%;
    }

    .title-year-rating {
        font-size: 1.2em;
        text-align: center;
        display: block;
    }

    .director {
        text-align: center; /* Center director's name */
    }

    .description {
        font-size: 0.9em;
        text-align: left;
    }

    .specs {
        text-align: left;
    }
}
