/* General header styles */
header {
  background-color: #333;
  color: #fff;
  z-index: 1000;
  padding: 0;
}

.top-nav {
    display: flex;
    justify-content: space-between; /* Space out menu and user options */
    align-items: center; /* Vertically align items */
    background-color: #333; /* Match the header background */
}

.menu {
    flex: 1; /* Take up remaining space if needed */
}

.menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex; /* Top-level items are displayed horizontally */
  align-items: center;
}

.menu ul li {
  position: relative;
  margin: 0 0px; /* Space between menu items */
}

/* Make the entire <li> clickable and responsive to hover */
.menu ul li:hover {
  background-color: #555; /* Changes background for entire <li> */
}

/* Ensure <a> fills the <li> for proper hover area */
.menu ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px .4rem; /* Adds consistent padding for clickable area */
  text-align: left; 
}

/* Dropdown menus */
.menu ul li > ul {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 160px;
  z-index: 1000;
  top: 100%; /* Position below the parent */
  left: 0;
  list-style-type: none;
  padding: 0;
}

.menu-ul-left {
  left: auto;
  right: 0; /* Align dropdown to the left */
}

/* Show dropdowns on hover */
.menu ul li:hover > ul {
  display: block;
}

/* Submenu items */
.menu ul li > ul > li {
  position: relative;
}

/* Nested dropdowns (position to the right of parent) */
.menu ul li > ul > li > ul {
  display: none;
  position: absolute;
  top: 0;
  left: 50%; /* Align nested dropdown to the right */
  /*right: 100%; /* Align nested dropdown to the right */*/
}

/* Show nested dropdowns on hover */
.menu ul li > ul > li:hover > ul {
  display: block;
}

/* Dropdown links */
.menu ul li > ul > li a {
  padding: 10px 15px; /* Consistent padding for links */
  display: block;
  text-decoration: none;
  color: #fff;
}

.menu ul li > ul > li a:hover {
  background-color: #555; /* Highlight dropdown links on hover */
}

/* For mobile, allow the dropdown to stay open when clicked */
@media (max-width: 600px) {
  .menu ul li.open > ul {
    display: block; /* Show dropdown when clicked */
  }

  /* Nested dropdown menus */
  .menu ul li > ul > li > ul {
    display: none; /* Keep nested dropdowns hidden by default */
    position: absolute;
    left: 100%; /* Position to the right of the parent */
    top: 0;
  }

  /* Show nested dropdowns when the parent li is open */
  .menu ul li > ul > li.open > ul {
    display: block; /* Show nested dropdown when clicked */
  }
}

.cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .cookie-notice {
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    position: relative; /* Ensures it’s above the overlay */
    z-index: 1001;
  }
  
  .cookie-notice button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-left: 10px;
  }
  
  .cookie-notice button:hover {
    background-color: #0056b3;
  }
  
  #main-content.blurred {
    filter: blur(5px);
    pointer-events: none;
  }
  
  footer {
    background-color: #1a1a1a;
    padding: 1vh;
    text-align: right;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
    font-size: 16px;
}

@media (max-width: 600px) {
  footer {
    font-size: 10px; /* Smaller text for smaller screens */
  }
}


/* Align user-options menu to the right */
.user-options {
    z-index: 100;
    position: relative; /* Ensure dropdown alignment works properly */
    display: flex;
    justify-content: flex-end; /* Align items to the right */
}

.user-options ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.user-options ul li {
    position: relative;
}

.user-options ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 10px;
    background-color: #333;
    transition: background-color 0.3s ease;
}

.user-options ul li a:hover {
    background-color: #555;
}

/* Dropdown menu styles */
.user-options ul li > ul {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    top: 100%; /* Position below the parent */
    right: 0; /* Align dropdown to the right */
    list-style-type: none;
    padding: 0;
    border-radius: 5px;
}

/* Show dropdown on hover */
.user-options ul li:hover > ul {
    display: block;
}

/* Dropdown links */
.user-options ul li > ul > li a {
    padding: 10px 15px;
    display: block;
    color: #fff;
    text-decoration: none;
}

.user-options ul li > ul > li a:hover {
    background-color: #555;
}

.gear-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.top-banner {
    position: fixed;
    margin-top: 5rem;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px;
    z-index: 1000;
}
.close-banner {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border: none;
    background: none;
}
