

.topnav {
  overflow: hidden;
  background-color: white;
}

.topnav a {
  float: left;
  display: block;
  color: red;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 14px;
}

.active {
  background-color: #fff;
  color: red;
}

.topnav .icon {
  display: none;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 14px;    
  border: none;
  outline: none;
  color: red;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ccc;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 2;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: white;
  color: gray;
}

.dropdown-content a:hover {
  background-color: #ccc;
  color: red;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.topnav-right {
  float: right;
}

@media screen and (max-width: 980px) { /*744px*/
  .topnav { position: relative; }

  /* hamburger pinned top-right */
  .topnav > a.icon{
    position: absolute;
    right: 0;
    top: 0;
    display: block;
  }

  /* Home spacing so it doesn’t sit under hamburger */
  .topnav > a.active{
    display: block;
    padding-right: 52px;
  }

  /* hide right-side menu by default */
  .topnav .topnav-right{
    display: none;
    width: 100%;
    float: none;
    clear: both;
  }

  /* show when opened */
  .topnav.responsive .topnav-right{
    display: block;
  }

  /* stack items */
  .topnav.responsive .topnav-right a,
  .topnav.responsive .dropdown,
  .topnav.responsive .dropdown .dropbtn{
    float: none;
    display: block;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  .topnav.responsive .dropdown-content{
    position: relative;
    width: 100%;
  }
}

