#header {
  background-color: $headerBackgroundColor;

  .brand {
    position: relative;
    top: 24px;
    display: block;
    overflow: hidden;
    width: 280px;
    height: 32px;
    margin-right: .75em;
    color: $white;
    font-size: 18px;
    font-weight: 600;
    line-height: 600;
    background: url(#{$imgPath}/logo.png) no-repeat 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .btn-navbar {
    display: none;
    height: auto;
    padding: 14px 0 10px;
    margin: 25px -20px 0;
    font-size: 16px;
    text-align: center;
  }

  .gravatar-img{
    max-width: 24px;
    max-height: 24px;
  }

  #main-nav {
    position: relative;
    padding: 0;
    margin-top: 15px;
    margin-right: 0;
    margin-bottom: 0;

    > li {
      float: left;
      padding: 0;
      margin: 0 4px 0 0;
      list-style: none;

      .nav-item-link {
        outline: none;

        &.active {
          color: $lightDark;
          font-weight: bold;
          text-shadow: none;
          background: $white;
          border-bottom: 1px solid $white;
        }
      }

      > a {
        padding: 10px 12px;
        font-size: 12px;
        font-weight: 600;
        color: $white;
        background: transparent;
        border: 1px solid transparent;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        border-top-left-radius: 3px;
        background-clip: padding-box;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
      }

      a, a:hover, .open {
        color: $white;
        text-decoration: none;
        @include toBottomGradient($menuBGBlue, $menuTopGradient, $menuBottomGradient);
        border: 1px solid $menuBorder;
        box-shadow: inset 0 1px 0 $menuShadow;
      }

      a:hover,
      .open > a {
        @include toBottomGradient($menuBGBlueHover, $menuTopGradientHover, $menuBottomGradientHover);
      }

      .active > a {
        color: #192d42;
        background: $white;
        filter: none !important;
        border-bottom-color: $white;
        box-shadow: none;
        text-shadow: none;
      }

      a > i {
        position: relative;
        top: 1px;
        padding-right: .35em;
        font-size: 14px;

      }

      .nav-icon > a {
        i {
          padding-right:0;
        }
        span {
          display:none;
        }
      }

    }

  }

  #headerbar {
    position: relative;
    z-index: $headerBarZIndex;
    height: 80px;
    background: $footerContainerBackground;
    box-shadow: inset 0 1px 0 #28496b;

    .container {
      position: relative;
      height: 80px;
    }
  }

  #topbar {
    position: relative;
    z-index: $topBarZIndex;
    padding: 6px;
    height:35px;
    background: $menuBottomGradientHover;
    border-bottom: 1px solid $topBarBorderBottom;

    #top-nav {

      > ul {
        padding: 0;
        margin: 0;

        > li {
          float: left;
          padding: 0;
          margin: 0 0 0 1.5em;
          list-style: none;
          color: $white;
          font-size: 11px;

          height: 24px;
          line-height: 24px;
          :first-child {
            margin-left: 0;
          }

          > a {
            color: #80a7cf;
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 979px) {
  #header {
    .btn-navbar {
      display: block;
      float: right;
      margin: -7px 0 10px;
      padding: 0 0 8px;
      font-size: 2rem;
      text-align: right;
      color: $menuResponsiveIcon;

      &:hover {
        color: $menuResponsiveIconHover;
      }

      .fa-align-justify {
        margin-right: 14px;
      }
    }

    .nav-collapse {
      clear: both;
    }

    #main-nav {
      display: none;
      float: none;
      padding: 0;
      margin:0 0 15px;

      .nav-item {
        float: none;
        display: block;
        width: 100%;
      }

      .nav-item-link {
        display: block;
        border: 1px solid $menuBorder;
        box-shadow: inset 0 1px 0 $menuShadow;
      }
    }

    #headerbar {
      height: auto;

      .container {
        height: auto;
      }
    }
  }
}

@media only screen and (min-width: 980px) {
  #header {
    #main-nav {
      display: inline-block !important;
    }
  }
}
