/*
Top navigation dropdown responsive menu (CSS+JS) by W3schools
https://www.w3schools.com/howto/howto_js_topnav_responsive.asp
https://www.w3schools.com/howto/howto_css_fixed_menu.asp

HTML:
<div class="topnav" id="myTopnav">
  <a href="#home">Home</a>
  <a href="#news">News</a>
  <a href="#contact">Contact</a>
  <a href="#about">About</a>
  <a href="javascript:void(0);" class="icon" onclick="myFunction()">&#9776;</a>
</div>

JAVASCRIPT:
function myFunction() {
  var x = document.getElementById("myTopnav");
  if (x.className === "topnav") {
    x.className += " responsive";
  } else {
    x.className = "topnav";
  }
}

*/
/* 
    Created on : 27.1.2022, 11:19:08
    Author     : d.merta
		Version		 : 20221023.1
*/

/* Add a black background color to the top navigation */
.topnav {
	z-index: 99;
  overflow: hidden;
  background-color: var(--contrast);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.topnav a {
  float: left;
  display: block;
  color: var(--contrast-inverse);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
	font-weight: normal;
  font-size: 1em;
}

.topnav a:hover {
  background-color: var(--primary);
}

.topnav a.active {
  background-color: var(--primary);
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: fixed;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}