/* filepath: vsls:/style.css */

:root {
    --primary-color: #4169e1;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --accent-color: #f16161;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.64;
    background-color: #fff;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}


/* Header and Navigation */

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary-color);
}


/* Movie Grid */

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    height: 400px;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: filter 0.3s ease;
}

.movie-card:hover img {
    filter: brightness(30%);
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    color: white;
    opacity: 0;
}

.movie-card:hover .movie-info {
    transform: translateY(0);
    opacity: 1;
}

.movie-info h3 {
    margin-top: 0;
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
}

.movie-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

#go-back-link {
    margin-left: 30rem;
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff5454;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

#go-back-link:hover {
    background-color: #ff3333;
}


/* Footer */

footer {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}


/* Other styles from your original CSS */

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

quote1 {
    font-family: var(--font-main);
    font-weight: bold;
    margin-top: 20px;
    align-items: center;
    font-style: italic;
    font-size: larger;
    color: var(--accent-color);
}

span {
    font-family: var(--font-main);
    font-weight: bold;
    font-variant: small-caps;
    font-size: xx-large;
    color: var(--text-color);
}

p1 {
    font-family: var(--font-main);
    font-weight: 100;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.movie-card img {
    border-radius: 0;
    box-shadow: none;
}

.plot {
    margin-top: 20px;
    margin-left: 20px;
}

.rev {
    margin-top: 20px;
    margin-left: 20px;
}

.title {
    margin-top: 20px;
    margin-left: 20px;
}

.contain {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.poster-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-section {
    flex: 2;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
}

.p {
    line-height: 28px;
    font-family: var(--font-main);
    font-size: large;
    color: var(--text-color);
}

span1 {
    font-family: var(--font-main);
    font-size: large;
    color: var(--text-color);
}