/* NAVIGATION : NAVBAR (RESPONSIVE) */

 /* Add a black background color to the top navigation */
.topnav {
/*   width: 760px; */
  width: 100%;
  margin: 0 auto;
  background-color: #333;
  overflow: hidden;
  font-family: sans-serif;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 16px;
}

#input-form .topnav {
  width: 600px;
  background-color: #4CAF50;
}
/*
#input-form .topnav label {
  float: right;
  display: block;
  color: #f2f2f2;
  text-align: center;
  font-size: 14px;
}
*/
/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.active {
  background-color: #4CAF50;
  color: white;
}

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

.brand {
  display: none;
  background-color: #000;
  font-weight: bold;
}

 /* 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 {width: 100%;}
  .topnav a:not(:first-child) {display: none;}
  .topnav a {height: calc(48px - 28px);}
  /*.topnav a:hover:not(:first-child) {background-color: #ddd;}*/
  .topnav div.dropdown {display: none;} /* Dropdown */
  .topnav a.icon {
    width: 48px;
    float: right;
    display: block;
  }
  .topnav a.icon:hover {
    color: #FFF;
    background-color: #333;
  }
  
  .menu-active {
    background-color: #3a9c3a;
  }
  
  .brand {
    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; animation: openmenu 0.7s 1;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
    text-align: center;
  }
  
  .topnav.responsive a.icon:hover {
    color: #FFF;
    /*background-color: #3a9c3a;*/
/*     background-color: #2f7a32; */
    background-color: #333;
  }
  
  /* Make content of dropdown menus visible */
  .topnav.responsive {
    overflow: visible;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive div.dropdown {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown:hover div.dropdown-content {
    display: inline;
  }
  
   @keyframes openmenu {
    from {opacity: 0.2}
    to {opacity: 1.0}
  }
}

@media screen and (min-width: 992px) {
  .brand { display: none !important; }
}

/*NAVIGATION : DROPDOWN MENU */

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 13px 16px;
  background-color: inherit;
  font-family: inherit;
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: #F5AF37;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: #FFF;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

#input-form .dropdown-content label {
  float: none;
  color: #FFF;
  margin-left: 2px;
  padding: 0px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}
