
body, html {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background-color: #000000;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ff3d00 !important;
    letter-spacing: 1.2px;
}

.nav-link {
    color: #f0f0f0 !important;
    font-size: 1rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff3d00 !important;
}

/* Search Bar */
.search-container {
    position: relative;
}

#search-input {
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    background-color: #1f1f1f;
    border: 2px solid #ff3d00;
    color: #fff;
}

#search-input::placeholder {
    color: #bbb;
}

.search-container button {
    border-radius: 50px;
    background-color: #ff3d00;
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #e53935;
}

/* 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: 250px;
    object-fit: cover;
}

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

.card-text {
    color: #bbb;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ff3d00;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ff3d00;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

/* 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);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .card-img-top {
        height: 200px;
    }
}


        /* Dark mode styling */
        body {
            background-color: #000;
            color: #ffffff;
        }

        /* Existing CSS here... */
        /* Custom styling for the active tab */
        .nav-tabs .nav-link.active {
            background-color: #1e1e1e; /* Dark background */
            color: #f39c12; /* Light orange text color for visibility */
            border: none; /* Remove border for a cleaner look */
        }
        
        /* Change hover color as well */
        .nav-tabs .nav-link:hover {
            background-color: #444444; /* Darker gray for hover effect */
            color: #f39c12; /* Keep the same hover text color */
        }

        .related-movies {
            margin-top: 30px;
        }

        .related-movie-card {
            position: relative;
        }

        .show-trailer-btn {
            position: absolute;
            bottom: 25px;
            left: 62%;
            transform: translateX(-50%);
            display: none; /* Initially hidden */
            background-color: #f39c12; /* Button color */
            color: #fff; /* Text color */
        }

        .related-movie-card:hover .show-trailer-btn {
            display: block; /* Show button on hover */
        }

        /* Fade-in animation */
        #movieDetailsContainer {
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        #movieDetailsContainer.show {
            opacity: 1;
        }
        .star {
    color: #f39c12; /* Yellow color for star */
    font-size: 20px; /* Adjust size as needed */
    margin-right: 5px; /* Space between star and number */
}

.rating-number {
    color: #f39c12; /* Yellow color for the rating number */
    font-size: 20px; /* Adjust size as needed */
}
.related-movie-card {
    position: relative;
}

.show-trailer-btn {
    position: absolute;
    bottom: 10px;
    left:80%;
    transform: translateX(-50%);
    background-color: #ff3d00; /* Button color */
}



.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 */
.section-title {
font-size: 2rem;
font-weight: 600;
color: #ff3d00;
margin-bottom: 2rem;
border-bottom: 2px solid #ff3d00;
padding-bottom: 0.5rem;
text-transform: uppercase;
}

/* 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; /* Enable flexbox layout */
    justify-content: space-between; /* Space between title and rating */
    align-items: center; /* Center vertically */
    margin-bottom: 0.5rem; /* Space below the title-rating container */
}

.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 {
    align-items: center;
    height: 120px;
    
    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: rgb(0, 0, 0);
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 */
}
.co{
    background-color: black;
}
