/*! responsive drop-down menu.css | 
  http://www.olivergast.de/blog/2015/05/22/css-ein-horizontales-dropdown-menue-responsive-gestalten/ 
  */
  
/*
body {
  background: orange;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}
*/

/* hide the checkbox and the label */
input#responsive-nav,
label.responsive-nav-label {
  display: none;
}

/* declarations for the not-responsive-menu */
nav {
  position: relative;
  float: left;
  width: 100%;
  background-color: rgb(0,67,130);
  font-size: 1.25rem;
}

/* any level list */
nav ul {
  margin: 0;
  padding: 0;
  display:inline-block;
}


/* any level list item link */
nav a {
  display: block;
  color: #fff;
  text-decoration: none;
}
/* any level list item */
nav ul li {
  position: relative;
  float: left;
  list-style: none;
  color: #fff;
  transition: 0.5s;
  margin-bottom: 0;
  margin: 1px;
}
/* any level list item */
nav ul li:hover {
  color: #FFFF00;
  background-color: #4096ee;
  border: 1px solid #4096ee;
  border-radius: 3px;
}
/* any level list item link */
nav ul li a {
  padding: 5px 10px;
  border-bottom: none;
}
/* base level item link */
nav > ul > li.active > a {
  /* color: red; */
  border: 2px solid #fff;
  border-radius: 3px;
}
/* 1st level drop-down link */
nav ul > li.submenu > a:after {
  position: relative;
  float: right;
  content: '';
  margin-left: 10px;
  margin-top: 5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
  border-bottom: 5px solid transparent;
}
/* 2nd level drop-down link */
nav ul ul li.submenu > a:after {
  margin-left: auto;
  margin-right: -10px;
  border-left: 5px solid #fff;
  border-right: 5px solid transparent;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* 2nd level list */
nav ul ul {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background-color: rgb(0,67,130);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
/* 2nd level list item */
nav ul ul li {
  float: none;
  width: 200px;
  border-bottom: 1px solid #555;
}
/* 2nd level list item link */
nav ul ul li a {
  padding: 5px 10px;
}
nav ul ul li.active > a {
  border: 2px solid #fff;
  border-radius: 3px;
}
/* 2nd level list last item */
nav ul ul li:last-child {
  border-bottom: none;
}
/* 1st level list item -> 2nd level list */
nav ul li:hover > ul {
  top: 100%;
  left: 0;
}
/* 2nd level list item -> 3rd level list */
nav ul ul li:hover > ul {
  top: 0;
  left: 200px;
}

/** Declarations for the responsive menu **/
/* max-width depending on menu items - void line-wraps */
@media screen and (max-width: 930px) {
  label.responsive-nav-label {
    position: relative;
    display: block;
    padding: 10px;
    font-size: 1.5rem;
    color: #fff;
    background-color: rgb(0,67,130);
    cursor: pointer;
  }
    
  label.responsive-nav-label span {
    margin-right: 10px;  
  }

  nav {
    position: absolute;
    top: -9999px;
    padding: 10px;
  }

  input#responsive-nav[type=checkbox]:checked ~ nav {
    position: relative;
    top: 0;
  }

  nav a:after {
    display: none;
  }

  nav li {
    float: none !important;
    width: 100% !important;
    border-bottom: none !important; 
  }
    
  nav li a {
    margin-bottom: 10px !important;
    padding: 10px 20px !important; 
    background-color: rgb(0,67,130);
  }
    
  nav ul li:hover {
    background: none;
  }
    
  nav ul li a:hover {
    background-color: #4096ee;
  }
    
  nav ul ul {
    position: relative !important;
    width: 100%;
    left: 0 !important;
    top: 0 !important;
    background: none !important;
    box-shadow: none;
  }
    
  nav ul ul li {
    padding-left: 20px;
  }
}

@media screen and (max-width: 930px) {
  .nav-brand {
    display: none !important;
  }
}

.nav-brand {
  display: inline-block;
  /* position: relative; */
  float: left;
  margin: 7px 20px 0;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  /* line-height: 1.4; */
}

.nav-brand a {
  text-decoration: none;
  border-bottom: none;
}
.nav-brand:hover, .navbar-brand:focus,
.nav-brand a:hover, .navbar-brand a:focus {
  text-decoration: none;
  color: #fff;
}