.site-header {
  border-bottom: 0.063rem solid $green;
  color: $blue;
  position: relative;
  form {
    background: #39bbd6;
    display: block;
    padding: 0.500rem;
    position: absolute;
    right: 0;
    top: 2.000rem;
    z-index: 5;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(.5, -.5, 1.5, 1.8);
    transform: translateY(-18.750rem);
    @media #{$brk-netbook}{
    display: inline;
    margin-right: 0.625rem;
    padding: 0;
    position: relative;
    top: 0;
    transform: none;
    }
  }
  form.comein {
    transform: translateX(0rem);
  }
}

.main-header .row {
  background: $white;
}

.main-header .main-nav .row {
  @media #{$only-tablets}{
  background: none;
  }
}

.custom-header {
  width: 100%;
}

.site-title {
  display: inline-block;
  font-size: 1.8em;
  margin: 0.625rem 0 0.313rem;
  padding: 0;
  @media #{$brk-netbook}{
    font-size: 2.5rem;
  }
  a {
    color: $blue;
  }
}

.site-description {
  font-size: 1.063rem;
  position: relative;
  top: -0.563rem;
}

.mobile-icons {
  margin: 0.188rem 0 0;
  display: inline-block;
  @media #{$brk-netbook}{
    display: none;
  }
  
  .social-links {
    display: inline-block;
    margin: 0;
  }
  .li-social {
    background: none;
  }
}

.nav-columns {
  position: inherit;
}

.social-links,
.mobile-icons {
  li {
    background: $white;
    border-radius: 0.125rem;
    display: inline-block;
    margin-bottom: 0;
    margin-left: 0.625rem;
    a, span {
      color: $blue;
      cursor: pointer;
      font-size: 0.875rem;
      line-height: 0.875rem;
      width: 1.500rem;
      padding: 0.188rem;
    }
  }
}

.social-links {
  display: none;
  @media #{$brk-netbook}{
    display: inline-block;
    margin: 0px 1.250rem 0 0;
    position: relative;
    top: 0.125rem;
  }
  li {
    @media #{$brk-netbook}{
      height: 1.438rem;
    }  
  }
  li a[href*="facebook"]::before {
    content: "\f204";
  }
  li a[href*="linkedin"]::before {
    content: "\f207";
  }
  li a[href*="pinterest"]::before {
    content: "\f209";
  }
  li a[href*="flickr"]::before {
    content: "\f211";
  }
  li a[href*="vimeo"]::before {
    content: "\f212";
  }
  li a[href*="tumblr"]::before {
    content: "\f214";
  }
  li a[href*="youtube"]::before {
    content: "\f104";
  }
  li a[href*="instagram"]::before {
    content: "\f215";
  }
  li a[href*="codepen"]::before {
    content: "\f216";
  }
  li a[href*="google"]::before {
    content: "\f218";
  }
  li a[href*="skype"]::before {
    content: "\f220";
  }
  li a[href*="reddit"]::before {
    content: "\f222";
  }
  li a[href*="twitter"]::before {
    content: "\f202";
  }
  li a[href*="dribbble"]::before {
    content: "\f201";
  }
  li a[href*="github"]::before {
    content: "\f200";
  }
  li a[href*="foursquare"]::before {
    content: "\f226";
  }
}

.pre-header {
  background: $blue;
  padding-bottom: 0.250rem;
  text-align: right;
  @media #{$brk-netbook}{
    padding-bottom: 0.188rem;
  }
  @media #{$print}{
    display: none;
  }
  a.log {
  color: $white;
  display: inline-block;
  @media #{$only-tablets}{
    background: $blue;
    min-width: 5.000rem;
    padding: 0.500rem;
    position: absolute;
    right: 0;
    top: 2.000rem;
    text-align: center;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(.5, -.5, 1.5, 1.8);
    transform: translateY(-250px);
    z-index: 101;
  }
  @media #{$brk-netbook}{
    display: inline;
    margin-right: 0.625rem;
  }
  }
  a.log:last-of-type {
  margin-right: 0;
  top: 4.563rem;
    @media #{$only-tablets}{
      transition-duration: 0.5s;  
    }
  }
  a.log.comein {
    @media #{$only-tablets}{
      transform: translateX(0px);
    }  
  }
  .search-field {
    border-radius: 0.125rem;
    border: 0.063rem solid $white;
    color: $blue;
    padding: 0.188rem 0.625rem;
  }
  .search-submit {
    border: 0.063rem solid $green;
    background: $green;
    border-radius: 0.125rem;
    color: #fff;    
    padding: 0.188rem 0.313rem;
  }
}

.logo {
  .logo-img {
    margin: 0.625rem 0;
    max-height: 4.688rem;
    width: auto;
  }  
}

.header-menu {
  cursor: pointer;
  display: table;
  float: right;
  position: relative;
  top: -2.813rem;
  @media #{$brk-netbook}{
    display: none;
  }
  @media #{$print}{
    display: none;
  }
}

.menu-button {
  display: table-cell;
  line-height: 3.125rem;
  vertical-align: middle;
}

.menu-bar {
	background-color: $green;
	display: block;
	width: 1.563rem;
	height: 0.188rem;
	margin: 0.375rem auto;
	border-radius: 0.063rem;
}

.main-nav {
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  width: 100%;
  z-index: 100;
  @media #{$brk-netbook}{
    position: relative;
    
  }
  .menu {
    display: none;
    left: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    @media #{$brk-netbook}{
      display: block !important;
      margin: 0.625rem 0 0;
      position: relative;
      text-align: left;
    }
  }
  li {
    background: $green;
    border-bottom: 0.063rem solid #fff;
    display: block;
    margin: 0;
    padding: 0.625rem 1.125rem;
    width: 100%;
    @media #{$brk-netbook}{
      background: none;
      border: none;
      display: inline-block;
      left: -1rem;
      margin-left: 1rem;
      padding: 0;
      position: relative;
      width: auto;
    }
  }
  li:last-of-type {
    @media #{$brk-netbook}{
      border: none;
    }
  }
  a {
    color: $white;
    display: block;
    font-size: 1.000rem;
    padding-right: 0;
    text-align: right;
    text-decoration: none;
    @media #{$brk-netbook}{
      color: $green;
      padding-right: 1.250rem;
      text-align: left;
    }
  }
  a.active {
    @media #{$brk-netbook}{
      color: $orange; 
    }
  }
  .sub-menu {
    display: none;
    margin: 0.750rem 0 -0.438rem;
    padding: 0;
    @media #{$brk-netbook}{
      margin-left: -1rem;
      margin-top: 0.125rem;
      position: absolute;
      width: 20rem;
    }
    .sub-menu {
      @media #{$brk-netbook}{
      position: relative;
    }
    }
    li {
      border-top: 0.063rem solid #fff;
      border-bottom: none;
      padding-right: 0;
      width: 100%;
      @media #{$brk-netbook}{
        background: $green;
        border: none;
        color: $white;
        left: -1.000rem;
        margin-top: 0.063rem;
        padding: 0.500rem 1.000rem;
        position: relative;
        width: 100%;
      }
      a {
	@media #{$brk-netbook}{
	  color: $white;
	}
      }
    }
  }
}