#nav-container {
  width: 100%;
  height: 100%;
  max-width: 1024px;
  margin: 0px auto 0px auto;
  position: relative;
  z-index: 2;
  border-bottom: 3px solid #fdc03a;
  font-size: 18px;
  font-family: 'oswaldregular';
  text-transform: uppercase;
  background-color: #000;
}

#main-nav {
  font-size: 18px;
  margin: 0 auto;
  font-weight: normal;
  background: #000;
}

#main-nav a {
  color: white;
  text-decoration: none;
}


/* Add background transition to main-nav ul */
#main-nav ul {
  margin: 0;
  display: flex;
  list-style: none; /* Remove default list styles */
  padding: 0;
}

#main-nav > ul li {
  background: linear-gradient(black, black 50%, #fdc03a 50%, #fdc03a);
  background-size: 100% 200%;
  /* Transition effect for background */
  transition: background .5s;
  padding-top: 10px;
  padding-bottom: 10px;
}

#main-nav ul li {
  position: relative;
}

#main-nav > ul li:hover {
  background-position: 100% 100%;
}

#main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%; /* Adjust this value to control the vertical spacing */
  left: 0;
  background-color: black;
  padding: 0;
  margin: 0;
  width: 250px;
  z-index: 1; /* Add a higher z-index to ensure it appears above other content */
}

/* Style for dropdown items */
#main-nav ul ul ul {
  left: 100%; /* Position to the right of the parent ul */
  top: 0;
}

#main-nav ul ul li {
  margin: 0;
}

/* Add a class to indicate that the dropdown is open */
#main-nav ul li.open > ul {
  display: block;
}

#main-nav ul li a > span {
  position: relative;
}

#main-nav ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  transition: width 0.2s linear;
}

#main:before,
#main-nav:after {
  content: " ";
  display: table;
}

#main-nav:after {
  clear: both;
}

#main-nav ul li a {
  padding: 5px 20px;
  display: inline-block;
  position: relative;
  transition: color 0.2s linear;
}

#main-nav ul li a:hover::before {
  width: 100%;
}

#main-nav li {
  position: relative;
}

#mainnav > li {
  float: left;
}

#main-nav > li > a {
  display: block;
}

#main-nav > li.hover > ul {
  left: 0;
}

#main-nav li li.hover ul {
  left: 100%;
  top: 0;
  padding-top: 0px;
}

#main-nav li li a {
  display: block;
  position: relative;
  z-index: 3;
}

/* Style for dropdown <li> items */
#main-nav ul ul li {
  background-color: black; /* Set the background color to black */
  background-image: linear-gradient(to right, #fdc03a, black, black);
  background-size: 200% 100%;
  background-position: 100% 0;
  /* Transition effect for background */
  transition: background-position 0.5s;
  margin: 0;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Hover effect for dropdown <li> items */
#main-nav ul ul li:hover {
  background-position: 0 0;
}

/* Add a CSS class to hide the main navigation on small screens */
#main-nav.hide {
  display: none;
}

/* Style for the toggle menu button */
.toggle {
  display: none;
  padding: 10px;
  background-color: #000;
  color: white;
  text-decoration: none;
}

.arrow {
  display: none;
}

.dropdown-arrow {
  display: none;
}


@media screen and (max-width: 768px) {
  .toggle-arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .toggle {
    display: block;
    margin-left: 10px;
  }

  .arrow {
    font-size: 12px;
    color: white;
    margin-right: 20px;
    display: block;
  }


  #main-nav {
    display: none;
  }

  #main-nav ul {
    flex-direction: column;
  }

  #main-nav ul ul li {
    background-color: #616161;
    background-image: none;
    transition: none;
    width: 600px;
  }

  .has-dropdown a {
    display: flex;
    align-items: center;
  }

  .dropdown-arrow {
    display: inline-block;
    font-size: 12px;
    color: white;
    float: right;
    margin-right: 20px;
  }

  #main-nav ul li.open > ul {
    display: block;
  }
}
