.topnav {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #197DD2; /*Frekventia B4*/
  position: sticky;
  position: -webkit-sticky; /*Safari*/
  top: 0;
}

.topnav a{
  float: left;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  color: white;
}
.topnav a:hover{
  background-color: #1EA0F2; /*Frekventia B3*/
  color:#003366; /*Frekventia Navy*/
}
.topnav a.active {
  background-color: #23B6F6; /*Frekventia B2*/
  color:#003366; /*Frekventia Navy*/
}

.topnav a.login {
  float: right;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* When the screen is less than 600 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: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    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: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    background-color: #003366; /*Frekventia Navy*/
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: center;
  }
  .topnav.responsive a.active {
    text-align: left;
  }
}
