/* ================================================================
	NeW Navigation Bar Menu styles

	SOURCE: https://www.w3schools.com/howto/howto_js_responsive_navbar_dropdown.asp 
*/

/* Add a background color to the top navigation */
.topnav {
  /* background-color: #EBEADF; */
  background-color: #f6f6f2;
  border-bottom: 1px solid #dcdcdc;

  overflow: hidden;

  /* font-size: 125%; */
  font-size: 15px;
  font-weight: 500;

  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.2px;

  max-width: 950px;
  margin: 0 auto;
}

/* --- FIX FLOAT COLLAPSE OF NAVBAR --- */
.topnav::after {
  content: "";
  display: block;
  clear: both;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  text-align: center;

  /* color: #F00; */
  color: #333;
  font-weight: 500;

  /* padding: 14px 16px; */
  padding: 14px 16px;
  line-height: 1.2;

  text-decoration: none;
/*  font-size: 17px; */

  white-space: nowrap;
}

.topnav a.active {
  background-color: #d62828;
  color: #fff;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 100%;    
  border: none;
  outline: none;

  /* color: #F00; */
  color: #333;

  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;

  /* background-color: #EBEADF; */
  background-color: #f6f6f2;
  border-bottom: 1px solid #dcdcdc;

  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: #333;

  /* padding: 12px 16px; */
  padding: 14px 16px;

  text-decoration: none;
  display: block;
  text-align: left;
  text-indent: 5%;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {

  /* background-color: #555;
  color: white; */

  background-color: #e6e6e0;
  color: #000;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 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: 768px) {

  /* Align navigation with reading column */
  .topnav {
    margin: 0;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* hide normal menu */
  .topnav a:not(.icon) {
    display: none;
  }

  /* show hamburger */
  .topnav a.icon {
    float: right;
    display: block;
  }

  /* when menu is opened */
  .topnav.responsive {
    position: relative;
  }

  /* show items vertically */
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    width: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid #e0e0e0;
  }

  .topnav.responsive a.icon {
    position: relative;
    float: right;
  }

  /* Active page must read like a selected item, not a colored row */
  .topnav.responsive a.active {
    background-color: #fff;
    color: #000;
    font-weight: 700;
    border-left: 5px solid #d62828;
    padding-left: 15px;
  }

}
