.topnav {
  background-color: #333;
  height: 45px;
  position: fixed;
  top: 0px;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 12px;
  text-decoration: none;
  font-size: 17px;
  height: 45px;
  line-height: normal;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

.dropdown-content a.active {
  background-color: #04AA6D;
  color: white;
}

.mNav {display: none;}
/*
.topnav .icon {
  display: none;
}
*/

.toppfelt{width: 100%; background-color: #333; position: fixed; top: 0px;}

a.meny{
    border: 1px solid #333; 
    margin; 2px;
}

a.meny:hover{
  background-color: #ddd;
  color: black;
}

a.logginn {
float: right;
display: block;
}

div.icon {display: none;}
.fa{padding: 12px; color: white; padding: 0px;}

@media screen and (max-width: 1280px) {
    .topnav a {padding: 14px 8px;}
    button.dropbtn {
      padding: 12px 10px;
    }
}

@media screen and (max-width: 1180px) {
    .pNav {display: none;}
    .mNav {display: block;}
    .topnav.responsive {width: 200px;}
    .topnav.responsive .icon {padding: 16px;}
    .topfelt a.icon {
    position: absolute;
    display: block;
    width: 50px;
    }
    .dropdown-content {display: block;}
    div.icon {display: block;}

    .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    color: black;
    }
    .menyvalg {width: 100%; background-color: white;}
}

/* Style The Dropdown Button */
.dropbtn {
  color: white;
  background-color: #333;
  font-size: 16px;
  border: none;
  cursor: pointer;
  margin: 0px;
  margin-top: 2px;
  line-height: normal;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
  float: right;
  font-size: 17px;
  height: 45px;
}

.mdropdown {
  position: relative;
  display: inline-block;
  float: none;
  font-size: 17px;
  height: 45px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: darkgray
}

.w200 {
  width: 200px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.mdropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  }

@media screen and (max-width: 430px) {
    .toppfelt{width: 100%; background-color: #333; position: static; top: 0px;}

}