/* Source: https://www.w3schools.com/howto/howto_js_responsive_navbar_dropdown.asp */

.topnav {
  background-color: inherit;
  overflow: hidden;
  padding: 0 1.7rem;
  margin: 1rem 0;
}

.topnav a {
  float: left;
  display: block;
  color: var(--menu-text-color);
  text-align: center;
  text-decoration: none; /* To prevent underline the links */
  font-size: 1.8rem;
  padding: 0.6rem 1.2rem;
  margin: 0.3rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--menu-bg-color);
}

.dropdown {
  float: left;
  overflow: hidden;
  background-color: inherit;
}

.dropdown .dropbtn {
  font-size: 1.8rem;
  border: none;
  outline: none;
  color: var(--menu-text-color);
  background: var(--menu-bg-color);
  padding: 0.6rem 1.2rem;
  margin: 0.3rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;

}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 16rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--menu-bg-color);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: var(--menu-text-color);
  padding: 0.25rem;
  text-decoration: none;
  display: block;
  background-color: inherit;
  border: none;
  text-align: left;
}

.topnav a:hover {
  background-color: var(--hover-color);
  color: white;
}



/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

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

.topnav a.icon_right {
  float: right;
  display: block;
  padding: 0.3rem 0.5rem;
  margin-right: 0.25rem;
  border-radius: 50%; /* Make it circle */
}


@keyframes fade {
  0%, 20% { 
   opacity: 0.4; 
  }
  21%, 100% { 
   opacity: 1; 
  }
}

.netstatus_ok {
  margin: 0;
  padding: 0;
  color: green;
}

.netstatus_bad {
  margin: 0;
  padding: 0;
  color: red;
  animation: fade 0.6s linear;
  animation-iteration-count: infinite;
}

#language_id {
  color: #8c1aff;
}

.theme_light {
  color: blue;
}

.theme_dark {
  color: red;
}

/* When the screen is less than 680 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: 680px) {
/* KG:  .topnav a:not(:first-child), .dropdown .dropbtn {*/
   .topnav a, .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
/* KG:    float: right; */
    float: left;
    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: 680px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    display: none; /* KG: added */
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  /* KG: Make second level menus visible and shifted right */
  /* .topnav.responsive .dropdown-content {position: relative;} */
  /*.topnav.responsive .dropdown-content {position: relative; display: block; margin-left: 2rem;}*/
  .topnav.responsive .dropdown-content {position: relative; margin-left: 2rem;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    text-align: left;
  }
} 












