body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: white;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Sticky Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000; 
  background-color: white;
  border-bottom: 1px solid #eee;
  height: 100px;
}


.brand {
  font-size: 24px;
  margin-left: 2%;
  font-weight: bold;
  color: #555;
}

/* Desktop Menu */
.desktop-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-menu .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.desktop-menu .nav-links li button {
  background: none;
  border: none;
  color: #555;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  padding: 8px 14px;
  border-radius: 6px;
}

.desktop-menu .nav-links li button:hover {
  color: #999;
}

.desktop-menu .nav-links li .join {
  background: #020107;
  color: white;
}

.desktop-menu .nav-links li .signup {
  background-color: green;
  color: white;
}

/* Mobile Menu Header */
.mobile-menu {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: white;
  border-bottom: 1px solid #ddd;
}

/* Hamburger styling */
.hamburger {
  width: 30px;
  height: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #555;
  border-radius: 2px;
}

/* Mobile Links Menu */
.mobile-links {
  display: none;
  flex-direction: column;
  margin-top: 0;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-top: none;
  border-radius: 0;
  animation: fadeIn 0.5s forwards;
  list-style: none;
}

.mobile-links li {
  margin-bottom: 10px;
}

.mobile-links li button {
  width: 100%;
  background-color: white;
  color: #555;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mobile-links li button:hover {
  background-color: #f0f0f0;
}

.mobile-links.show {
  display: flex;
}


/*drop down desktop*/
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #555;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 100;
  border-radius: 6px;
  padding: 10px 0;
  flex-direction: column;
}

.dropdown-content button {
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-content button:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: flex;
}



.nav-links li button,
.dropdown > .dropbtn {
  position: relative;
  background: none;
  border: none;
  color: #555;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.3s ease;
  outline: none;
}

/*drop down menu for mobile*/
/* Parent list item should be positioned */
li.more-option {
  position: relative;
}

/* Submenu overlays below the button instead of pushing content */
.more-submenu {
  display: none;
  position: absolute;
  top: 100%; 
  left: 0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  list-style: none;
  z-index: 999; 
  min-width: 90%;
  margin-left: 10%;
  border-radius: 6px;
}

/* Show submenu when parent is active */
li.more-option.show .more-submenu {
  display: flex;
  flex-direction: column;
}


.welcome-avatar-dropdown {
  position: relative;
  display: inline-block;
}

.welcome-avatar {
  width: 40px;
  height: 40px;
  background-color: #021725;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.avatar-dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: white;
  min-width: 120px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  border-radius: 6px;
  overflow: hidden;
  z-index: 999;
}

.avatar-dropdown-content button {
  width: 100%;
  padding: 10px;
  text-align: left;
  border: none;
  background-color: white;
  cursor: pointer;
  font-size: 14px;
}

.avatar-dropdown-content button:hover {
  background-color: #f0f0f0;
}

/* Show dropdown on hover */
.welcome-avatar-dropdown:hover .avatar-dropdown-content {
  display: block;
}




/*hover on buttons*/
.nav-links li button:not(.join):not(.signup)::after,
.dropdown > .dropbtn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0%;
  background-color: #020614;
  transition: width 0.3s ease;
}

.nav-links li button:not(.join):not(.signup).active::after,
.dropdown > .dropbtn.active::after {
  width: 100%;
}

.nav-links li button:not(.join):not(.signup):hover::after,
.dropdown > .dropbtn:hover::after {
  width: 100%;
}

