nav#tophdr.navbar {
  background-color: #E52837;
  border-radius: 0px;
  border: none;
  min-height: 40px;
}
#tophdr a {
  color: #FFF;
}
#tophdr .nav li a:hover {
  text-decoration: underline;
  background-color: #FFF;
  color: #E52837;
}
#tophdr .navbar-nav > li > a {
  padding: 10px; 
}
#tophdr .nav li.active {
  background-color: #A11B2A;
}
#tophdr .nav li.active a:hover {
  background-color: #A11B2A;
  color: #FFF;
}
#tophdr_right {
  float: right;
}
#tophdr .icon-bar {
  background-color: #FFF;
}
#tophdr .navbar-brand {
  padding: 10px 15px;
  height: 40px;
}
#tophdr .lib_dropdown {
  float: right;
  border-right: 1px solid #FFF;
  border-left: 1px solid #FFF;
  padding: 0 10px;
}
#tophdr_right #lib_dropdown_text {
  padding: 10px 0;
  float: left;
  display: inline-block;
  cursor: pointer;
  font-size: 0.8em;
  line-height: 20px;
  color: #fff;
}
#tophdr #lib_dropdown_btn {
  background: url('//img.lib.aalto.fi/img/aalto/header/mobile-icon-menu2.png') no-repeat scroll center 10px transparent;
  display: inline-block;
  height: 40px;
  width: 36px;
  font-size: 0px;
  margin-top: 0px;
  float: right;
  cursor: pointer;
}
#tophdr .lib_dropdown ul.dropdown-menu a {
  color: #222;
}
#tophdr div.lang-select {
  margin-top: 0px;
  border-right: 1px solid #FFF;
  float: right;
  font-size: 13px;
  line-height: 18px;
}
#tophdr div.lang-select span a {
  padding: 10px 10px 12px 11px;
  float: left;
  border-left: 1px solid #FFF;
}
#tophdr div.lang-select.mobile {
}
#tophdr .search {
  float: right;
  padding-top: 6px;
  padding-left: 10px;
  height: 40px;
}
#tophdr .search_mobile {
  float: right;
  padding-top: 8px;
  margin-right: 10px;
}
#tophdr div.search form input {
  float: left;
  font-size: 13px;
}
#tophdr #mobile_search_btn {
  background: url('//img.lib.aalto.fi/img/aalto/header/search-icons.png') no-repeat scroll 3px -30px transparent;
  display: inline-block;
  height: 25px;
  width: 28px;
  font-size: 0px;
  margin-top: 0px;
  float: right;
  cursor: pointer;
  xborder: solid 1px #A11B2A;
  box-shadow: 0px 1px 0px rgba(255,255,255,0.2) inset, 0px 1px 2px rgba(0,0,0,0.05);
}
#tophdr #search_btn {
  background: url('//img.lib.aalto.fi/img/aalto/header/search-icons.png') no-repeat scroll 3px -30px transparent;
  display: inline-block;
  height: 25px;
  width: 28px;
  font-size: 0px;
  margin-top: 0px;
  float: left;
  cursor: pointer;
  border: medium none;
  box-shadow: 0px 1px 0px rgba(255,255,255,0.2) inset, 0px 1px 2px rgba(0,0,0,0.05);
  margin-left: 3px;
}
#tophdr #lib_search #mobile_close_btn {
  backgroundx: url('//img.lib.aalto.fi/img/aalto/header/search-icons.png') no-repeat scroll 3px -30px transparent;
  display: inline-block;
  height: 22px;
  width: 24px;
  cursor: pointer;
  font-size: 12px;
  color: #FFF;
  padding: 2px 8px;
  box-shadow: 1px 1px 0px rgba(255,255,255,0.3) inset, 0px 1px 2px rgba(0,0,0,0.09);
  margin: 0 6px;
}
#lib_header {
  border-bottom: 3px solid #E52837;
  padding-bottom: 25px;
  margin-bottom: 10px;
}
#mylib {
  float: right;
}
.navpath {
  color: #444;
  font-size: 12px;
}
.navpath a {
  color: #444;
}
#footer-small {
  color: #918C82;
  color: #444;
  border-top: 4px solid #FFF;
  clear: both;
  font-size: 12px;
  line-height: 20px;
  margin: 10px 0 20px 0;
}
#footer-small a {
  color: #918C82;
  color: #444;
}
#footer-small a:hover {
  text-decoration: underline;
}
#footer-small #footer-bar {
  min-height: 40px;
  background-color: #777;
  background-color: #E52837;
  height: 30px;
  color: #FFF;
  padding: 10px 0;
  margin-bottom: 5px;
}
#footer-small #footer-bar a {
  color: #FFF;
}
#footer-small .footer-logo-small {
  background: url('//img.lib.aalto.fi/img/aalto/footer/navi-small-logo.png') no-repeat scroll 0% 0% transparent;
  width: 31px;
  height: 20px;
  float: left;
}
#footer-small div.footer_title {
  float: left;
  font-weight: bold;
  margin-left: 10px;
  font-size: 1.1em;
}
#footer-small div.copyright {
  float: right;
  margin-left: 40px;
}
#footer-small-links {
  text-align: right;
  font-size: 10px;
}
#footer-small-links a {
  margin-left: 12px;
  padding: 1px 0px 1px 20px;
}
#footer-small-links a#footer-info {
  background: url("//img.lib.aalto.fi/img/aalto/bg-footer-info.gif") no-repeat scroll 0 0 transparent;
}
#footer-small-links a#footer-feedback {
  background: url("//img.lib.aalto.fi/img/aalto/bg-footer-feedback.gif") no-repeat scroll 0 0 transparent;
  padding-left: 24px;
}
#footer-small-links a#footer-sitemap {
  background: url("//img.lib.aalto.fi/img/aalto/footer/footer-sitemap.png") no-repeat scroll 0 0 transparent;
}
#footer-lib {
  clear: both;
  float: left;
}
@media (min-width: 768px) {
  #tophdr div#lib_search #mobile_close_btn {
    display: none;
  }
}
@media (max-width: 767px) {
  #tophdr_left {
    float: left;
  }
  #tophdr_right {
    display: block;
    height: 40px;
  }
  #top_navbar {
    clear: both;
    xmargin-top: 70px;
  }
  #top_navbar ul.navbar-nav {
    padding-top: 4px;
    padding-bottom: 4px;
    background-color: #FFF;
  }
  #top_navbar .navbar-nav > li {
    background-color: #FFF;
    color: #444;
    border-top: 1px solid #E4E4E4;
    padding-left: 2px;
  }
  #top_navbar .navbar-nav > li.active {
    background-color: #FFF;
  }
  #top_navbar .navbar-nav > li > a {
    color: #222;
    background-color: #FFF;
    padding-left: 9px; 
    border-left: solid 4px #FFF;
  }
  #top_navbar .navbar-nav > li.active > a {
    border-left: solid 4px #CCC;
    color: #06C;
  }
  #top_navbar .navbar-nav > li > a:hover {
    border-left: solid 4px #06C;
    color: #06C;
    text-decoration: none;
  }
  #top_navbar .navbar-nav > li.active > a:hover {
    background-color: #FFF;
    color: #06C;
  }
}
@media (max-width: 360px) {
  #tophdr .navbar-brand {
    padding: 10px 0px 10px 10px;
    font-size: 15px;
  }
  #tophdr .search_mobile {
    margin-right: 0px;
  }
  #tophdr .lib_dropdown {
    border: none;
    padding: 0;
  }
  #tophdr div.lang-select {
    border: none;
  }
  #tophdr div.lang-select span a {
    border: none;
  }
  #footer-small {
    font-size: 11px;
  }
  #footer-small div.copyright {
    margin-left: 20px;
  }
}
