body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

header {
    width: 100%;
    position: relative;
}

.poster-container {
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
}

.poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container while maintaining aspect ratio */
}

main {
    padding: 20px;
    padding-bottom: 80px; /* Add padding to the bottom to create space for the footer */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container while maintaining aspect ratio */
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: #333;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

footer .navbar {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

footer .navbar a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

footer .navbar a:hover {
    background-color: #575757;
    border-radius: 5px;
}
