/* NAVBAR WRAPPER */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background-color: black;
    color: #f0f6fc;

    display: flex;
    flex-direction: column;      /* logo on top, links under */
    align-items: center;

    /* 🔥 dynamic height instead of a fixed 200px */
    height: auto;
    padding: 2rem 0 2.5rem;      /* adjust these instead of height */

    z-index: 1000;
}

/* Style the image inside the first list item */
.nav-links-sticky .icon img {
    margin-right: 8px;         /* Add space between icon and text */
    filter: invert(50%) brightness(100%) sepia(0) saturate(0);  /* Apply image filter for color inversion */
    width: 20px;               /* Ensure the image has the correct size */
    height: 20px;              /* Ensure the image has the correct size */
    transform: translateY(5px);
}

.nav-links-sticky ion-icon {
    margin-right: 8px;         /* Add space between icon and text */
    font-size: 20px;           /* Adjust the size of the icon */
    color: inherit;            /* Inherit color from the link */
    transition: transform 0.3s ease;  /* Smooth transform on hover */
    transform: translateY(5px);
    color: #808080;
}

/* Style the 'Contact' link with a thin white border */
.separator {
    border: none;                  /* Remove default border */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Very thin white line */
    margin: 15px 0;  
        /* Space above and below the line */
}


.sticky-navbar {
    position: fixed; /* Sticky navbar */
    top: 0;
    left: 0;
    right: 0;
    height: 65px; /* Adjust height for sticky navbar */
    background-color: black;
    color: #f0f6fc;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between items */
    padding: 0 0px; /* Add padding to the sides */
    z-index: 999;
}

.search-nav-icon {
    color: #f0f6fc; /* Color of the search icon */
    font-size: 24px; /* Adjust size as needed */
    display: flex;
    align-items: center; /* Center vertically */
    padding: 0 10px; /* Adjust padding to your liking */
    transition: color 0.3s; /* Smooth color transition on hover */
}

.login-nav-icon {
    color: #f0f6fc; /* Color of the search icon */
    font-size: 24px; /* Adjust size as needed */
    display: flex;
    align-items: center; /* Center vertically */
    padding: 0 10px; /* Adjust padding to your liking */
    transition: color 0.3s; /* Smooth color transition on hover */
}

.login-nav-icon:hover,
.search-nav-icon:hover {
    color: #920000; /* Change color on hover */
}

.menu-icon {
    display: grid;
    row-gap: 5px;
    padding: 14px 12px;
    background: #000000;
    cursor: pointer;
    z-index: 200;
    transition: 0.3s;
    margin-left: 10px;
  }

  .menu-icon div {
    display: block;
    background: #f0f6fc;
    height: 2px;
    width: 24px;
    transition: 0.3s;
  }

.line1 {
    top: 0; /* Position the first line at the top */
}

.line2 {
    top: 50%; /* Center line */
    transform: translateY(-50%); /* Center it vertically */
}

.line3 {
    position: relative; /* Change to relative positioning */
    bottom: 2px; /* Adjust this value to move the line up */
}

/* Styles for the active class (when menu is open) */
.menu-icon.active .line1 {
    transform: rotate(45deg) translate(5px, 5px); /* Rotate and move the first line */
}

.menu-icon.active .line2 {
    opacity: 0; /* Hide the second line */
}

.menu-icon.active .line3 {
    bottom: 0px; /* Adjust this value to move the line up */
    transform: rotate(-45deg) translate(5px, -5px); /* Rotate and move the third line */
}

/* Social Icons Styling */
.sidebar-footer {
    display: flex;
    justify-content: center; /* Center the icons */
    margin-top: 20px; /* Add margin for spacing */
}

.sidebar-social-icons a {
    color: #f0f6fc;
    margin: 0 10px;
    font-size: 20px; /* Adjust size as needed */
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-social-icons a:hover {
    color: #920000;
}

.sidebar {
    margin-left: -5px;
    position: fixed;
    top: 0;
    left: -350px; 
    width: 300px; 
    height: calc(100vh - 100px);   /* hieght of sidebar*/
    background-color: #0e0e0e; 
    color: #f0f6fc;
    transition: left 0.3s ease; 
    z-index: 998; 
    border-radius: 10px; 
    border: 1px solid rgba(255, 255, 255, 0.2); /* Super thin, subtle white border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
    margin-top: 65px;
    z-index: 1000000;
    padding: 15px; /* Padding for inner spacing */
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.sidebar.active {
    left: 0; /* Slide in from the left */
}

.sidebar-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px; /* Adjust the size as needed */
    height: 40px;
}

.sidebar-logo img {
    width: 100%;
    height: auto;
    border-radius: 5px; /* Rounded corners, optional */
}


.nav-links-sticky {
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    font-size: 16px;
    z-index: 1000000;
    margin: 36px 0 0 0px;
    
}

.nav-links-sticky li {
    padding: 5px; /* Space between items */
    transition: background-color 0.3s ease; /* Smooth background color transition */
    border-radius: 5px; /* Optional: rounded corners for each list item */
}

.nav-links-sticky a {
    color: #f0f6fc;
    text-decoration: none;
    display: block; /* Make anchor take up the full width of the list item */
    padding: 0px;
    transition: color 0.3s ease; /* Smooth color transition for text */
}

.nav-links-sticky li:hover {
    background-color: #333333; /* Light grey background color on hover */
}

/* Overlay styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease; /* Smooth fade-in effect */
    z-index: 997; /* Positioned behind the sidebar */
}

/* Show overlay when sidebar is active */
.sidebar.active + .overlay {
    visibility: visible;
    opacity: 1;
}


.logo-container {
    flex-grow: 1; /* Allow the logo container to grow and take available space */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center the logo */
}

.logo {
    text-align: center;
    width: 80%;
    max-width: 1000px;
    /* remove old margin-top if it exists */
}


.sticky-logo {
    text-align: center;
    width: 250px;
    margin-top: 20px;
}

.sticky-logo img {
    text-align: center;
    width: 275px!important;
}

/*  nav bar */
.navbar-links {
    font-size: 18px;
    display: flex;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;        /* just a little gap under the logo */
    justify-content: center;
    font-weight: 500 !important;

    /* make sure there is NO margin-top: 90px here */
}
  
  .navbar-links li a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
  }
  
  .navbar-links li a:hover {
    color: #920000;
    border-radius: 5px;
  }
  


.content {
    padding-top: 120px; /* Space for the original navbar */
    text-align: center;
}


.movie-website-link {
    text-decoration: none; 
    color: inherit; 
    cursor: default;
  }
  
  .movie-website-link:hover {
    color: inherit; 
  }
  
  .movie-website-link img {
    margin-top: 10px;
    width: 70%; 
    height: auto; 
    text-align: center;
  }

  /* mobile header */
  @media (max-width: 768px) {
    main {
        margin-top: 80px!important; /* Adjust the value to your preference */
    }

    .auth-center-content {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .contact-center-content {
        margin-top: 100px;
        margin-bottom: 40px;
    }

    .navbar {
        display: none;
    }

    /* Show the sticky navbar */
    .sticky-navbar {
        display: flex;
    }

    .search-nav-icon {
        padding: 0 0px; /* Adjust padding to your liking */
        font-size: 30px;
    }
    
    .login-nav-icon {
        padding: 0 10px; /* Adjust padding to your liking */
        font-size: 30px;
    }

}

.hidden {
    display: none; /* Hides the sticky navbar */
}

