header {
  height: 65px;
  margin: 0;
  position: relative;
  z-index: 1;

  &.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;

    .container {
      animation-delay: 0s;
      animation-duration: 0s;
    }
  }

  .container {
    height: 65px;
    width: 100%;
    animation-delay: .8s;
    animation-duration: .5s;
    padding: 0;

    @include breakpoint($break-tablet) {
      margin: 0;
    }
  }

  .logo-link {
    position: fixed;
    left: 3rem;
  }

  .img-logo {
    width: 100px;
  }

  .logo {
    margin-top: 14px;
    margin-left: 2rem;
    float: left;
    z-index: 997;
    position: absolute;
  }

  .button {
    text-shadow: none;
  }

  nav {
    margin-top: 20px;
    float: right;
    display: none;

    @include breakpoint(900px) {
      display: block;
    }
  }

  nav a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
  }

  nav ul {
    list-style: none;
  }

  nav li {
    float: left;
    margin-right: 15px;

    @include breakpoint(1024px) {
      margin-right: 30px;
    }
  }

  nav li a {
    opacity: 1;
  }

  nav li a:hover {
    color: $light-gray;
    opacity: .6;
  }

  nav li.active a {
    opacity: .6;
  }

  .dropdown-menu {
    z-index: 1000;
  }

  .header-dropdown-menu {
    text-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 380px;
    width: 110vw;
    left: -65px;
    top: 49px;
    padding-left: 105px;
    height: 110vh;

    .dropdown-item {
      display: block;
      text-transform: uppercase;
      color: #fff;
      font-size: 16px;
      font-weight: 400;
      line-height: 48px;
      opacity: 1;

      &:hover {
        opacity: .6;
      }
    }

    .desktop {
      display: none;
    }
    .mobile {
      display: block;
    }
    
    @include breakpoint($break-tablet) {
      width: auto;

      .desktop {
        display: block;
      }
      .mobile {
        display: none;
      }
    }
  }
}

.header-dark {
  background: #4574e0;

  nav a {
    color: #f2f2f2;
  }
}

.header-light {
  background: #f2f2f2;

  nav a {
    color: $dark-gray;
  }
}

.dark-background {
  background: #4574e0;
}

.light-background {
  background: #f2f2f2;
}

.mobile-nav {
  display: none;
  font-size: 24px;
  line-height: 60px;
  z-index: 998;
  background: #ffffff;
  text-align: center;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;


  ul {
    margin-top: 30%;
  }

  a {
    color: #6c778c;

    &:hover {
      color: $light-gray;
    }

    &.button {
      font-size: 20px;
    }
  }

  &.visible {
    display: block;
  }
}

.menu-toggle, .menu-right-toggle {
  position: absolute;
  padding: 10px 2px 4px 2px;
  top: 22px;
  right: 20px;
  cursor: pointer;
  z-index: 999;
  height: 35px;

  &.fixed {
    position: fixed;
  }

  .menubars {
    width: 25px;
    height: 30px;
    position: relative;
    transition: top 0.3s ease-in-out;
    background: #6c778c;

    &:before,
    &:after {
      background: #6c778c;
      content: '';
      display: block;
      width: 25px;
      height: 1px;
      position: absolute;
      z-index: -1;
      transition: all 0.3s ease-in-out;
      zoom: 1;
    }
  }

  &.open {
    float: right;
    color: #6c778c;

    .menubars {
      height: 1px;

      &:before {
        top: -8px;
      }

      &:after {
        top: 8px;
      }
    }

    @include breakpoint(900px) {
      display: none;
    }
  }

  &.close {

    .menubars {
      background: transparent;
      &:before {
        transform: rotate(-45deg);
        top: 0;
      }

      &:after {
        transform: rotate(45deg);
        top: 0;
      }
    }
  }
}

.menu-right-toggle {
  right: auto;
  display: inline-block;

  &.open {
    display: inline-block;
  }
}

.header-block {
  margin-top: 0;
  padding-top: 0;
}
