/*----Start Here, Body styles----*/

*{
    margin: 0;
    padding: 0;
    font-family: ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Symbol,"Noto Color Emoji";
    box-sizing: border-box;
    scroll-behavior: smooth;
}

#background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: url(/images/anubis.webp) no-repeat;
    height: 105vh;
    background-size: cover;
    background-position: center;
}

body {
    position: relative; /* Ensure layering works */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    /* background-color: rgba(0, 8, 20, 1); */
}

#background-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0, 8, 20, .92)100%, /* Solid color at the top */
        rgba(0, 0, 0, 0)/* Fully transparent at the bottom */
    );
    pointer-events: none; /* Ensure it doesn’t block clicks */
    z-index: 1; /* Ensure it overlays the background */

}

/*----Nav Bar Styles----*/

#desktop-header {
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: space-between; /* Space between logo, nav, and Discord */
    align-items: center;
    padding: 30px 10%;
    top: 0;
    position: sticky;
    backdrop-filter: blur(20px);
    z-index: 3;
    user-select: none;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1.5px;
    cursor: pointer;
    flex: 0 1 auto;
}

.desktop-display{
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex; /* Ensure nav items are displayed in a row */
    justify-content: center; /* Center nav items horizontally */
    align-items: center; /* Vertically align nav items */
    gap: 20px; /* Add spacing between links */
    flex-grow: 1; /* Allow it to stretch for centering */
}

nav li{
    display: inline-block;
    list-style: none;
    padding: 1.2rem;
}

nav li a {
    display: inline-block;
    transition: transform 0.3s ease;
}

nav li .li-item:hover {
    transform: scale(1.05); /* Slight zoom */
}

.li-item:visited{
    color: #fff;
}

a{
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
}

.secondary-cta img {
    width: 90px; /* Adjust icon size */
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.secondary-cta:hover img{
    transform: scale(1.05); /* Slight zoom */
}

/*----Mobile Nav----*/

.mobile-display{
    display: none;
}
.container {
    display: inline-block;
    cursor: pointer;
  }
  
  .bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    margin: 6px 0;
    transition: 0.4s;
    background-color: #fff;
  }
  
  .change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }
  
  .change .bar2 {opacity: 0;}
  
  .change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }

  #mobile-display-content {
    display: none;
    opacity: 0;
    transform: translateY(-20px); /* Start slightly above its normal position */
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 75px; /* Adjust based on your header height */
    right: 10px; /* Align the dropdown to the right edge */
    width: auto; /* Make the width fit the content */
    background-color: rgba(0, 8, 20, 0.9); /* Match your theme */
    color: white;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
    padding: 1rem 0;
    border-radius: 8px; /* Optional: Add rounded corners */
}

#mobile-display-content.show {
    display: block; /* Ensure it displays */
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Normal position */
}

#mobile-display-content a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    text-align: right; /* Align the text to the right */
    transition: background-color 0.3s ease;
}

#mobile-display-content a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
}

/* Optional: Add spacing between items */
#mobile-display-content a:not(:last-child) {
    margin-bottom: 10px;
}

/*----Mobile Responsiveness----*/

@media (max-width: 768px) {
    .desktop-display{
        display: none;
    }
    .word-display{
        display: none;
    }
    .mobile-display{
        display: inline-block;
    }
    
}