body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0f1d url('./netf.jpg') no-repeat center center fixed; 
    background-size: cover;
    color: #C0C0C0;
    
    
}

header {
    background-color: #2b2b2b; /* Dark gray for header */
    color: #C0C0C0; /* Light text color */
    text-align: center;
    padding: 20px 0;
     background: #0a0f1d00 url('./netf.jpg') no-repeat center center fixed;
      
}

aside {
    display: flex;
    justify-content: center;
    /* Align children to the start (left side) */
    align-items: center;
    /* Center children vertically */
}

.container {
    border: 1px solid transparent;
    background-image: linear-gradient(#161616, #161616), linear-gradient(to right, #B02020, #C0C0C0, #B02020);
    background-origin: border-box;
    background-clip: content-box, border-box;
    max-width: 1200px;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    background: #4d060654;
    box-shadow: 0 0 10px 0 rgba(255, 0, 0, 0.5);
}


/* Subheadings in containers */
.subheading {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    border: 2px;
    border-style: solid;
    border-color: black;
    border-radius: 20px;
    background: #4d0606c6; 
    text-shadow: 0px 1px 1px #000; /* Text shadow for depth */
    color: #ffffff; /* Adjusting text color for better visibility */
}

/* Media scoller */
.media-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.media-scroller::-webkit-scrollbar {
    width: 5px;
}

.media-scroller::-webkit-scrollbar-thumb {
    background-color: #760909d6;
    border: 2px;
    border-style: solid;
    border-color: black;
    border-radius: 10px;
}

.media-scroller::-webkit-scrollbar-track {
    background-color: #2b2b2b78;
    border-radius: 10px;
    border: 2px;
    border-style: solid;
    border-color: black;
}



/* Media cards */
.media-card {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    flex: 0 0 175px; 
    margin: 15px 5px;
    scroll-snap-align: start;
    margin-right: 15px;
    padding: 10px;
    border: 2px;
    border-style: solid;
    border-color: black;
    border-radius: 20px;
    background: #760909d6; /* Darker background for media card */
    box-shadow: 0 0 8px 0 rgba(255, 0, 0, 0.6); /* Red glowing effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 100; /* Higher z-index for overlay */
    position: relative; /* Required for z-index to take effect */
    overflow: hidden; /* Hide any overflow */
}

.media-card img {
    max-width: 100%; 
    max-height: 200px; 
    object-fit: cover; 
    align-items: center;
}

.media-card p {
    font-size: 18px;
    color: #ccc;
    border-radius: 5px;
    text-align: center;
    flex: 0 1;
}
.media-card:hover {
    box-shadow: 0 0 15px 0 rgba(238, 170, 81, 0.75);
    transform: translateY(-5px);
}

/* Search Bar design */
.search-element {
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    /*  Uses flexbox for layout, ensuring compatibility with various browsers "External source: https://css-tricks.com/using-flexbox" */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    position: relative;
}

.search-element input {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.search-element button {
    padding: 8px 15px;
    margin: auto;
    background-color: #4d0606c6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 24px;
    width: 50%;
}

.search-element h2 {
    -ms-flex-item-align: center;
        align-self: center;
    margin-right: 10px;
    font-size: 24px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 15px;
}

.search-element .form-control {
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    outline: none;
    color: lightskyblue;
    margin-bottom: 25px;
}
/* Adding drop down option in the search bar */
/* JS INNERHTML function: displayMovieList  */
.search-list {
    position: flex;
    right: 0;
    top: 100%;
    max-height: 500px;
    overflow-y: scroll;
    z-index: 10;
}

.search-list .search-list-item {
    padding: 0.5rem;
    border-bottom: 1px solid black;
    width: calc(350px - 8px);
    color: #fff;
    cursor: pointer;
    -webkit-transition: background-color 200ms ease;
    -o-transition: background-color 200ms ease;
    transition: background-color 200ms ease;
}

.search-list .search-list-item:Hover {
    background-color: #4d0606c6;
}

.search-list-item {
    /*  Uses flexbox for layout, ensuring compatibility with various browsers "External source: https://css-tricks.com/using-flexbox" */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.search-item-thumbnail img {
    width: 40px;
    margin-right: 1rem;
}

.search-item-info h2 {
    font-weight: 600;
    font-size: 1rem;
}

.search-item-info p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
    opacity: 0.6;
}

/* thumbnail template designs */
.search-list::-webkit-scrollbar {
    width: 8px;
}

.search-list::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
            box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.search-list::-webkit-scrollbar-thumb {
    background-color: gold;
    outline: none;
    border-radius: 10px;
}

.hide-search-list {
    display: none;
}

/* movie result page - poster stylings */
.result-container {
    padding: 72px 0;
}

#results-container {
    display: none;
}

.movie-poster img {
    width: 35%;
    margin: 0 auto;
    border: 10px solid lemonchiffon;
    border-style: inset;
}

.movie-info {
    text-align: center;
    color: whitesmoke;
    padding-top: 72px;
}

/* movie result page - information stylings */
.movie-title {
    font-size: 72px;
    color: gold;
    font-family: 'Bebas Neue', cursive;
}

.movie-misc-info {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px; 
    font-family: 'Nunito', sans-serif;
}

.movie-info .year {
    background-color: green;
    padding: 6px; 
    margin: 0 6px; 
    border-radius: 3px;
    font-size: x-large;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.movie-info .rated {
    background-color: red;
    padding: 6px; 
    margin: 0 6px; 
    border-radius: 3px;
    font-size: x-large;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.movie-info .released {
    background-color: orange;
    padding: 6px; 
    margin: 0 6px; 
    border-radius: 3px;
    font-size: x-large;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.movie-info .director {
    padding-top: 20px;
    font-size: larger;
    font-family: Tahoma, sans-serif;
}

.movie-info .stars {
    padding-top: 20px;
    font-size: larger;
    font-family: Tahoma, sans-serif;
}

.movie-info .genre {
    background-color: #33363D;
    display: inline-block;
    padding: 6px; 
    margin: 0 6px; 
    border-radius: 3px;
    font-size: x-large;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.movie-info .plot {
    max-width: 600px;
    margin: 24px auto;
    font-size: larger;
    font-family: Tahoma, sans-serif;
}

.movie-info .language {
    background-color: indigo;
    display: inline-block;
    padding: 6px; 
    margin: 0 6px; 
    font-size: x-large;
    color: whitesmoke;
    font-family: 'Nunito', sans-serif;
}

.movie-info .awards {
    color: gold;
    font-weight: 300;
    font-size: 18px; 
    font-weight: 600;
    font-size: xx-large;
    font-family: 'Nunito', sans-serif;
    padding: 30px;
}

.movie-info .awards i {
    margin: 24px 10.5px 0 0; 
    font-size: xx-large;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

/* Button styling */
button {
    /* padding: 10px 15px; */
    margin: 5px;
    border: solid 1px black;
    border-radius: 5px;
    cursor: pointer;
}

/* Watch Trailer button */
.watch-trailer-button {
    background-color: gray;
    color: #fff;
    margin: 5px;
    border-radius: 7px;
    width: 125px;
}

.watch-trailer-button:hover {
    background-color: black; /* A slightly darker shade of the original color */
}

/* Add to Favorites button */
.favorite-button {
    background-color: #1f7c03;
    color: #fff;
    margin: 5px;
    border-radius: 7px;
    width: 125px;
}

.favorite-button:hover {
    background-color: #01461d; /* A slightly darker shade of the original color */
}

/* Remove from Favorites button */
.remove-button {
    background-color: #dd1009;
    color: #fff;
    margin: 5px;
    border-radius: 7px;
    width: 125px;
}

.remove-button:hover {
    background-color: #7e0b07; /* A slightly darker shade of the original color */
}

#videoContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#closePopup {
    margin: 5px; /* Adjust as needed for spacing */
    background-color: gray;
    color: #fff;
    border: none;
    border-radius: 7px;
    width: 125px;
    border: solid 1px black;
    padding: 5px;
}

#closePopup:hover {
    background-color: black; /* A slightly darker shade of the original color */
}