/* Add a black background color to the top navigation */
.topnav {
  background-color: #fff;
  overflow: hidden;
  color: #333;
  display: inline-block;
  height: 50px;
  transition: .3s;  
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #333 !important;
  text-align: center;
  padding: 8px 18px;
  text-decoration: none;
  font-weight: bold;
  font-variant: small-caps;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #333;
  color: white !important;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: #fff;
  color: #333 !important;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Hide the menu heading on big screens */
.topnav a:first-child {display: none;}

/* When the screen is less than 1000 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 1000px) {
  .topnav {
    display: block;
  }
  .topnav a:not(:first-child) {display: none; font-weight: 400 !important;}
  .topnav a:first-child {display: block;}
  .topnav a.icon {
    float: right;
    display: block;
  }
  
  /* Remove hover style on icon*/
  .topnav a.icon:hover {
  background-color: white !important;
  color: #333 !important;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 1000px) {
  .topnav.responsive {position: relative;height: 260px;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;    
  }
}