/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #141e30, #243b55);
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background: #ff4b5c;
    padding: 20px;
    font-size: 24px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Movie Details */
.movie-details {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

.movie-details ul {
    list-style: none;
    padding: 0;
}

.movie-details li {
    font-size: 18px;
    margin: 10px 0;
}

/* Slideshow Gallery */
.gallery {
    margin: 30px auto;
    width: 80%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px; /* Uniform size */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures all images fit perfectly */
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
}

.slide.active {
    opacity: 1;
}

/* Download Section */
.download-section {
    margin: 40px;
}

.download-poster {
    width: 300px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

/* Download Button */
.download-btn {
    padding: 15px 30px;
    background: #ff4b5c;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border-radius: 5px;
}

.download-btn:hover {
    background: #ff6b7c;
    transform: scale(1.05);
}

/* Responsive Fixes */
@media (max-width: 1080px) {
    .gallery {
        width: 95%;
    }
    .slideshow-container {
        height: 350px; /* Adjust height for smaller screens */
    }
}
