body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #0d0d0d;
    color: #fff;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: transparent; /* Make the header transparent */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation Logo */
header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff0000;
    text-decoration: none;
    cursor: pointer;
    display: inline-block; /* Ensures block-level clickable area */
}

/* Search Bar Styling */
header nav input {
    width: 60%; /* Default width */
    padding: 15px; /* Increase padding for a larger input field */
    border-radius: 25px; /* Rounded corners */
    border: none;
    outline: none;
    font-size: 18px; /* Larger font size */
    background-color: #333;
    color: #fff;
    transition: box-shadow 0.3s ease, width 0.3s ease;
}

/* Search Bar Focus Effect */
header nav input:focus {
    box-shadow: 0 0 10px rgba(255, 71, 71, 0.8); /* Add a glowing effect */
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #000000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin-top: 50px;
}

.footer .website-name {
    color: red;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer .website-tagline {
    font-size: 13px;
    margin-top: 5px;
    color: #ccc;
}


/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    header nav input {
        width: 80%; /* Increase width on smaller screens */
        padding: 12px; /* Adjust padding */
        font-size: 16px; /* Slightly smaller font size */
    }
}

@media (max-width: 480px) {
    header nav input {
        width: 90%; /* Maximize width on very small screens */
        padding: 10px;
        font-size: 14px; /* Smaller font for compactness */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide the description text on small screens */
    .hero-description {
        display: none; /* Hide description text on mobile */
    }
}

/* Search Results Section */
#search-results-section {
    padding: 20px;
    background-color: #121212;
    color: #fff;
}

#search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

#search-results p {
    color: #fff;
    font-size: 20px;
    text-align: center;
}


/* Hero Section */
.hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    background-repeat: no-repeat;
    margin-top: -100px; /* Pull the hero section up to overlap the navbar */
    z-index: 1; /* Ensure the hero section stays below the navbar */
}

/* Vignette effect */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 102%;
    background: radial-gradient(ellipse at center, rgb(255 255 255 / 0%) 0%, rgb(13 13 13) 70%, rgb(13 13 13) 100%);
    z-index: 1;
}

/* Hero Content - Centralizing and adding margins */
.hero-content {
    position: absolute;
    margin: auto 60px;
    max-width: 500px; /* Maximum width for the content */
    z-index: 2; /* Ensure content is above the vignette */
    text-align: left; /* Align text to the left */
    padding-bottom: 40px; /* Add bottom padding to provide space for the button */
}

/* Movie Logo - Positioned on the left and over the description */
.hero-logo {
    top: 25%; /* Adjust this value to position logo closer to the description */
    left: 20px; /* Align logo to the left side */
    width: 200px; /* Set the logo width */
    height: auto;
    z-index: 2; /* Ensure the logo stays above the vignette and text */
    display: block;
    margin-bottom: 20px; /* Add margin between logo and description */
}
/* Description text */
.hero p {
    position: relative;
    z-index: 2; /* Ensure the text stays above the vignette */
    color: #fff;
    margin-top: 20px; /* Reduce space between the logo and description */
    font-size: 16px;
    max-width: 70%; /* Limit the text width for readability */
}


/* View Details Button Styling */
.view-details-btn {
    padding: 12px 30px; /* Increase padding for better size */
    background: linear-gradient(45deg, rgb(255 1 1 / 90%), rgb(100 3 3 / 90%)); /* Gradient background */
    color: white;
    border: none;
    border-radius: 30px; /* Round corners for a more modern look */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2; /* Ensure the button is above the vignette */
    text-transform: uppercase; /* Make the text uppercase for style */
    box-shadow: 0 4px 8px rgb(154 2 2 / 80%); /* Subtle shadow for depth */
}

/* Hover effect */
.view-details-btn:hover {
    background: linear-gradient(45deg, rgb(255 1 1 / 62%), rgb(255 1 1 / 75%)); /* Darker gradient on hover */
    transform: scale(1.05); /* Slightly enlarge the button on hover */
    box-shadow: 0 8px 16px rgb(255 1 1 / 57%); /* Increase shadow intensity */
}

/* Focus effect */
.view-details-btn:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 15px rgb(255 1 1); /* Glowing focus effect */
}


/* Horizontal Scroll Section */
.horizontal-scroll-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 20px;
}

.horizontal-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Movie Card Styling */
.movie-card {
    flex: 0 0 auto;
    width: 150px; /* Reduced width */
    border-radius: 20px; /* Rounded corners */
    overflow: hidden;
    background-color: #1a1a1a; /* Card background */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6); /* Subtle shadow */
    position: relative; /* For positioning the title */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-10px); /* Subtle hover effect */
    box-shadow: 0 8px 16px rgb(255 1 1 / 82%); /* Glow on hover */
}

/* Movie Card Image */
.movie-card img {
    width: 150px; /* Adjust the size */
    height: 225px; /* Adjust the size */
    object-fit: cover; /* Make sure the image covers the area */
    display: block;
    margin: 0 auto;
    background-color: #000; /* Optional: adds background */
    transition: opacity 0.3s ease; /* Smooth transition for darkening */
}

/* Movie Card Title */
.movie-card h3 {
    font-size: 18px; /* Larger font for better readability */
    text-align: center;
    padding: 10px;
    margin: 0;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    bottom: 0; /* Position title at the bottom */
    left: 0;
    right: 0;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth transition for visibility */
    background: rgba(0, 0, 0, 0.5); /* Optional: Dark background for text */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Shadow for better readability */
}

/* Hover Effect */
.movie-card:hover img {
    opacity: 0.7; /* Darken the image */
}

.movie-card:hover h3 {
    opacity: 1; /* Show the title when hovered */
}

/* Trending Movies Title */
.trending-movies-title {
    font-weight: bold;
    text-shadow: 0 0 20px rgb(255 0 0 / 47%), 0 0 20px rgba(255, 71, 71, 0.4);
    margin: 40px 0;
    font-size: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px #ff0101;
    text-align: center;
}

/* Add padding and spacing for the horizontal scroll */
.horizontal-scroll {
    display: flex;
    gap: 20px; /* Increase spacing between cards */
    padding: 20px 0 15px;
}

/* Scroll buttons adjustments */
.scroll-left, .scroll-right {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 30px;
    width: 50px; /* Larger buttons for better UX */
    height: 150px;
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    z-index: 100; /* Ensure they appear above everything */
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-left:hover, .scroll-right:hover {
    background-color: #ff000061;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* General Styles for Select Element */
#genre-select {
    display: block;
    margin: 1em auto;
    padding: 0.5em 1em;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover and Focus Styles for Select */
#genre-select:hover,
#genre-select:focus {
    background-color: #444;
}

/* Buttons for Movies and TV Shows */
#top-rated-buttons button {
    display: inline-block;
    padding: 0.75em 1.5em;
    margin: 0.5em;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Active State for the Selected Button */
#top-rated-buttons button.active {
    background-color: #e50914;
    color: #fff;
}

/* Hover Effect for Both Buttons */
#top-rated-buttons button:hover {
    background-color: #444;
    color: #e50914;
}

.discord-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.discord-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.discord-icon:hover svg {
    transform: scale(1.1);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(720deg);
    }
}

/* Remove the default animation declaration */
.discord-icon svg {
    transition: transform 0.3s ease;
}

/* Apply animation only when spinning class is present */
.discord-icon.spinning svg {
    animation: spin 0.7s cubic-bezier(0.3, 0, 0.3, 1);
    filter: blur(1px);
}

