html,body {
    display: flex;
    flex-direction: column;
    background: black;
    margin: 0;
    height: 100%;
    font-family: sans-serif;
}

/* Start of scrollbar styles */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* End of scrollbar styles */

/* Start of backdrop styling */


.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

.backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 1) 100%);
}

/* End of backdrop styling */
    
/* Start of top Search Bar + Dropdown */

.search-bar {
    /*display: flex;*/
    position: relative;
    align-self: center;
    top: 1rem;
    width: 400px;
    max-width: calc(100% - 2rem);
    z-index: 20;
}

input::placeholder {
    color: gold;
    opacity: 0.45;
    font-style: italic;
}

/* Magnifying glass icon */
.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Menu icon */
.menu-icon {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Input */
.search-bar input {
    width: 100%;
    padding: 0.45rem 0.9rem;
    text-align: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    background: rgba(20, 20, 20, 0.55);
    color: #fff;
    outline: none;
    font-size: 0.95rem;
}

.drop-year {
    color: #ccc;
    font-style: italic;
    font-size: 0.9rem;
}

.drop-type {
    color: #ccc;
    font-style: italic;
    font-size: 0.7rem;
}

/* Pulsing glow animation */
@keyframes pulseGlow {
0% {
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.2);
}
50% {
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.3);
}
100% {
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.2);
}
}

/* Show glow animation when focus */
.search-bar input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    animation: pulseGlow 2s infinite ease-in-out;
}

/* Dropdown */
.search-dropdown {
    position: absolute;
    left: 0;
    width: 100%;
    margin: 6px 0 0;
    padding: 0.45rem 0;
    box-sizing: border-box;
    list-style: none;
    background: rgba(18, 18, 18, 0.95);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-height: none;
    overflow-y: visible;
    display: none;
    scrollbar-width: none;
}

/* Dropdown items */
.search-dropdown li {
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #e6e6e6;
}

.search-dropdown li:last-child {
    border-bottom: none;
}

.search-dropdown li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Styles the year in dropdown */
.search-dropdown .year {
    color: #a9a9a9;
    font-size: 0.85rem;
}

/* End of top Search Bar + Dropdown */

/* Start of movie content container */

.movie-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2;
    margin-top: 6rem;
    padding: 2rem;
    color: #fff;
    z-index: 1;
}

.movie-poster {
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.movie-text h2 {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 3rem;
    margin: 0;
}

/* #year {
    background: rgb(134, 82, 255);
    border-radius: 8px;
    padding: 0.1rem 0.4rem;
}

#certificate {
    background: rgb(134, 82, 255);
    border-radius: 8px;
    padding: 0.1rem 0.4rem;
} */

.movie-text {
    max-width: 650px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-left: 1.5rem;
}

#tagline {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    color: #ffc107;
    margin-top: 0.1rem;
    margin-bottom: 1.5rem;
}

.movie-meta {
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* End of movie content container */

/* Start of poster and trailer/download buttons */

.poster-wrapper {
    position: relative;
    display: inline-block;
}

.poster-container {
    position: relative;
    display: inline-block;
}

.movie-poster {
    display: block;
}

#playTrailer {
    display: none;
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

#playTrailer svg {
    fill: #afafaf;
}

#playTrailer svg:hover {
    fill: red;
}

#openFullPoster {
    display: none;
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

#openFullPoster svg {
    fill: #afafaf;
}

#openFullPoster svg:hover {
    fill: #fff;
}

#ratings {
    display: flex;
    justify-content: center;
    gap: 40px;
}

#ratings p {
    margin: 0.3rem;
}


.rating-text {
    font-size: 1rem;
    /* font-weight: bold; */
    font-style: italic;
    color: #ccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.rating-img {
    height: 20px;
    display: inline-block;
    margin-bottom: 5px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.7));
}


/* End of poster and trailer/download buttons */

/* Start of rating stars */


footer {
    position: relative;
    text-align: center;
    font-size: 0.8rem;
    margin-top: auto;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
}

footer a {
    text-decoration: none;
    color: #fff;
}

footer a:hover {
    color: #cfcfcf;
}

footer hr {
    width: 50%;
    border: 1px solid grey;
    opacity: 0.3;
}

/* Start of responsive layout */
    
    @media (max-width: 750px) {
      .search-bar {
        width: 350px;
      }
  
      .movie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        margin-top: 2em;
      }

      #ratings {
        gap: 15px;
      }

      .rating-text {
        font-size: 18px;
      }

      .rating-img {
        height: 18px;
      }
      
    }