/* Navigating styling.  This was repeated in every html file */
/* Now it's in one place and therefore easier to change  */

/* Based on the W3Schools version of a responsive menu */

.topnav {
  overflow: hidden;
  background-color: rgb(142, 159, 150);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;      /* GW add */
  margin-bottom: 20px; /* GW add */
}

.topnav a {
  float: left;
  display: block;
  color: white;           /* menu bar text with no dropdown #f2f2f2; */
  text-align: center;
  padding: 10px 8px;
  text-decoration: none;
  font-size: 12px;
  outline: none;
  border: none;
}

.active {
  background-color: #04AA6D;
  color: white;
}

.topnav .icon {
  display: none;
}

.dropdown {
  float: left;
}

.dropdown .dropbtn {
  font-size: 12px;  /* Change in sync with "topnav a" */
  outline: none;
  color: white;  /* menu bar text with dropdown */
  padding: 10px 3px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  border: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 10;
}

.caret {
  font-size: 9px;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 10px 10px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  /* color: white;     color red addewd for debug - it causes the text of the top level menu to be red*/
  color: white;
}


.dropdown-content {  /* for debug - swapped with ".dropdown-content a:hover" */
	display: none;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: black;  /* Was black, changed to red for debug - dropdown text color changed to red (only if dropdowns are visible! */
}


.dropdown:hover .dropdown-content {   /* this NEVER seems to be invoked */
  display: block;
  /* color: red;     this line added for debug  */
}

@media screen and (max-width: 775px) {		/* Must match TRANSITION_WIDTH in inserted_navigation_w3.html */
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 775px) {		/* Must match TRANSITION_WIDTH in inserted_navigation_w3.html */
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
	font-size: 16px;  /* gw add */
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
	font-size: 16px;   /* gw add */
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
	font-size: 16px;  /* gw add */
  }
}