/* https://w3schools.invisionzone.com/topic/58231-dropdown-menu-not-working-with-sticky-navbar/    */
.topnav {
  background-color: var(--nbbc);
/*  overflow: ; */

}

.topnav::after {
    clear: both;
    content: "";
    display: block;
}

.topnav a {
  float: left;
  display: block;
  background-color: var(--nbbc);
  color: var(--nbtc);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.active {
  background-color: red;
  color: var(--nbtc);
}

.topnav .icon {
  display: none;
}

.dropdown {
    float: left;
/*    overflow: ;  */
}

.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: var(--nbtc);
    padding: 14px 16px;
    background-color: var(--nbbc);
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--nbbc);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: var(--nbtc);
    background-color: var(--nbbc);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}





.subdropdown .subdropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: var(--nbtc);
    padding: 14px 16px;
    background-color: var(--mbb);
    font-family: inherit;
    width: 160px;
}



.subdropdown-content {
    display: none;
    position: absolute;
    height: 0px;
    background-color: var(--xxx);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.subdropdown-content a {
    float: none;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    position: relative;
    top: -48px;
    left: 160px;
    background-color: var(--nbbc);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}


.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: var(--mbh);
  color: white;
}

.dropdown-content a:hover {
    background-color: var(--dbm);
    color: white;
}

.subdropdown-content a:hover {
    background-color: green;
    color: white;
}

.dropdown:hover .dropdown-content {
  background-color: var(--nbbc);
    display: block;
}

.subdropdown:hover .subdropdown-content {
    display: block;
}

/* Page content */
.content {
  padding: 16px;
}



/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky,.topnav.responsive.sticky {

  position: fixed;
  top: 0;
  width: 100%;
}

/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
  padding-top: 60px;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}
