
.movie-poster {
    width: 100%;
    height: 450px; /* Set the desired height */
    margin-top: 0;
    max-height: 450px;
    object-fit: contain;
}

.card {
    height: 100%; /* Ensures the card takes up the full height of the swiper slide */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-body {
    flex-grow: 1; /* Makes the card body take up the available space */
    display: flex;
    flex-direction: column;
}

.card-text {
    height: 110px !important; /* Fixed height for text */
    max-height: 110px !important;
}

/* Carousel Styles */
.carousel-item {
transition: transform 0.5s ease;
max-height: 600px;
background-color: #222;
}

.carousel-item img {
object-fit: cover;
max-height: 600px;
filter: brightness(80%);
}

.carousel-caption {
background-color: rgba(0, 0, 0, 0.7);
border-radius: 10px;
padding: 20px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
background-color: #ff3d00;
border-radius: 50%;
}

/* Modal Styles */
.modal-content {
background-color: #1e1e1e;
color: white;
}

.modal-header {
border-bottom: 1px solid #ff3d00;
}

.modal-title {
font-size: 1.5rem;
color: #ff3d00;
}

.modal-body iframe {
border-radius: 10px;
}

/* Movie Card Styles */
.card {
background-color: #1f1f1f;
border: none;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
transform: translateY(-10px);
box-shadow: 0 4px 20px rgba(255, 61, 0, 0.4);
}

.card-img-top {
border-radius: 10px;
height: 350px;
max-height: 350px;
object-fit: fill;
width:250px ;
}

.card-title {
color: #ff3d00;
font-size: 1.25rem;
margin-top: 0.5rem;
}

.card-text {
color: #bbb;
}

/* Section Titles */

/* Button Styles */
.btn-primary {
background-color: #ff3d00;
border: none;
transition: background-color 0.3s ease;
}

.btn-primary:hover {
background-color: #e53935;
}

/* Carousel Button Alignment */
.carousel-control-prev, .carousel-control-next {
filter: drop-shadow(0 0 8px #ff3d00);
}

.btn-primary {
    margin-top: auto; /* Pushes the button to the bottom of the card */
}

.swiper-container {
    width: 100%;
}
.container{
    background-color: black;
}
.swiper-slide {
    width: auto; /* Set auto to fit the width of the movie poster */
    display: flex;
    justify-content: center;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.card-rating {
    font-size: 1rem; /* Adjust size as needed */
    color: #ffcc00; /* Gold color for the rating */
    margin-top: 0.5rem; /* Space between title and rating */
}

.titleRatingContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 10px;
    max-height: 30px;
}

.card-title {
    font-size: 1.25rem; /* Adjust font size for the title */
    font-weight: bold; /* Make title bold */
    margin: 0; /* Remove default margin */
}

.card-rating {
    font-size: 1rem; /* Font size for the rating */
    color: #ffcc00; /* Gold color for the rating */
    margin-left: 1rem; /* Space between title and rating */
}

/* Mobile Styles */
@media (max-width: 768px) {
    
    .card-text {
        height: 80px !important; /* Adjust text height for mobile */
        max-height: 80px !important;
    }

    .card-title {
        font-size: 1rem; /* Smaller title font size for mobile */
    }

    .card-rating {
        font-size: 0.875rem; /* Smaller rating font size for mobile */
    }

    .swiper-slide {
        margin-bottom: 20px; /* Space between cards on mobile */
    }
}

@media (max-width: 576px) {
    .movie-poster {
        height: 250px; /* Further adjust height for very small screens */
        max-height: 250px;
        width: auto;
    }
}
@media (max-width: 768px) {
.card-body {
    height: 300px;
    overflow-y: auto; /* Optional: allows scrolling if content exceeds height */
}
}
.swiper-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.swiper-button-prev,
.swiper-button-next {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 10px;
    pointer-events: auto;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 1);
}
.play-button {
position: absolute;
top: 30%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.6);
border: none;
color: white;
padding: 15px;
border-radius: 30%;
display: none;
cursor: pointer;
z-index: 10;
transition: opacity 0.3s ease;
}

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: black;
color: #e0e0e0;
}

/* Optional: Hide carousel control buttons */
.carousel-control-prev,
.carousel-control-next {
    display: none; /* Hide the controls */
}

.postercontainer {
    width: 80vw; 
    max-width: 1200px; 
    margin: auto; 
    display: flex;
    padding: 10px;
    gap: 15px;
    flex-wrap: wrap; 
    justify-content: center;
    min-height: 500px; /* Optional */
}

.box {
    background-color: #66d6d6;
    width: 90px; 
    height: 400px; 
    padding: 0;
    border: #ff3d00 solid 1px;
    overflow: hidden;
    transition: width 0.5s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.box img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
}

.box:hover,
.box.first-opened {
    width: 250px; 
    background-color: #ffd700; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: scale(1.05); /* Optional */
}

@media (max-width: 768px) {
    .box {
        width: 45px; 
    }
    .box:hover,
    .box.first-opened {
        width: 150px; 
    }
}
/* Remove background from Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
background: none !important; /* Remove background */
color: #ff3d00 !important; /* Change color to match your theme */
border: none; /* Remove border if any */
width: 30px; /* Set width if necessary */
height: 30px; /* Set height if necessary */
}

/* Optional: Add hover effect */
.swiper-button-next:hover,
.swiper-button-prev:hover {
opacity: 0.8; /* Slightly fade on hover */
}