@charset "UTF-8";

.menunav {
  background-color: #000;
  background-color: var(--menu-back-color);
  font: normal 1.0rem "Verdana", sans-serif;
  display: flex;
  flex-wrap: wrap;
}

/* Style the links inside the navigation bar */
.menunav a {
  display: block;
  color: #fff;
  color: var(--menu-text-color);
  text-align: left;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 1rem;
}

.active {
  color: #fff;
  color: var(--menu-text-color);
  background-color: #000;
  background-color: var(--menu-back-color);
}

.menunav .icon {
  padding: 0.5rem 0.75rem;
  display: none;
  margin-left: auto; /* Pushes hamburger to the right */
}

.dropdown {
  position: relative;
}

.dropdown .drophdr {
  font-size: 1em;
  color: #fff;
  color: var(--menu-text-color);
  padding: 0.5em 1em;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 0.875rem; 
  color: #fff;
  color: var(--menu-text-color);
  background-color: #000;
  background-color: var(--menu-back-color);
  min-width: 14rem;
  min-width: var(--max-menu-wid);
  z-index: 1;
  opacity: 0.85;
}

.dropdown-content a {
  color: #fff;
  color: var(--menu-text-color);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  display: block;
  text-align: left;
}

.menunav a:hover, .dropdown:hover .drophdr {
  background-color: #444;
  background-color: var(--menu-highlight-color);
  color: #2bf;
  color: var(--menu-hover-color);
}

.dropdown-content a:hover {
  background-color: #444;
  background-color: var(--menu-highlight-color);
  color: #2bf;
  color: var(--menu-hover-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

@media screen and (min-width: 900px) {
  .drophdr {
    text-transform: uppercase;
  }
}

@media screen and (max-width: 600px) {
  .menunav a:not(:first-child), .dropdown .drophdr {
    display: none;
  }
  .menunav a.icon {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .menunav.responsive {
    flex-direction: column;
  }
  
  .menunav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .menunav.responsive a {
    display: block;
    text-align: left;
  }
  
  .menunav.responsive .dropdown-content {
    position: static;
  }

  .menunav.responsive .dropdown .drophdr {
    display: block;
    width: 100%;
    text-align: left;
  }

  .menunav.responsive .dropdown-content a {
    color: #fff;
    color: var(--menu-text-color);
    padding: 0.75em 2em;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.875em;
  }
}