/* Index Page Specific */
ul.showtimes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

li.showtimes-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

img.poster {
    width: 110px; /* Fixed width */
    aspect-ratio: 2 / 3; /* Enforces 2:3 aspect ratio */
    object-fit: cover; /* Ensures the image is cropped while filling the space */
    overflow: hidden; /* Prevents content from spilling out */
    margin-right: 10px;
}

a.movie-title-link {
    text-decoration: none;
    color: inherit;
}

/* Rounded rectangle styling for showtime */
.time-container {
    display: inline-block;
    padding: 10px 10px;
    background-color: var(--primary-color); /* Customize the color */
    color: var(--bg-color); /* Text color */
    border-radius: 5px; /* Rounded corners */
    font-size: var(--body-text-size);
    text-align: center;
    white-space: nowrap; /* Prevent wrapping */
}

.text-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    gap: 10px; /* Adds 15px spacing between child elements */
    align-items: flex-start; /* Ensures child elements do not stretch */
}

.text-container .time-container {
    width: auto; /* Ensure buttons do not stretch */
    align-self: flex-start; /* Keep the button aligned to the content width */
    margin: 0; /* Reset any unintended margins */
}