nav {
  font-family: "Oswald", sans-serif;

  ul {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      flex-grow: 1;
      text-align: right;
      a {
        color: $themeWhite;
        text-transform: uppercase;
        font-size: 2em;
        letter-spacing: .2em;
        display: block;
        padding: $sizeSmall $sizeMedium;
        @include hover-focus-active {
          text-decoration: none;
          color: $themeSecondary;
        }
        word-wrap: break-spaces;
      }
    }
  }

  @include media-breakpoint-down(md) {
    .navbar-collapse{
      background-color: $themePrimary;
      width: 100%;
      height: 100vh;
      min-height: 300px;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      ul{
        margin-top: $sizeLarge;
        margin-bottom: $sizeLarge*2;
        li{
          text-align: left;
          margin-bottom: 10px;
          a{
            @include hover-focus-active {
              text-decoration: none;
              color: $themeSecondary;
            }
          }
        }
      }

      transform-origin: 0% 0%;
      transform: translate(-100%, 0);

      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);

      &.show {
        transform: none;
      }
    }

  }
}

.navbar{
  position: unset;
  display: unset;
  z-index: 2;
  padding-right: 0;
  @include media-breakpoint-up(lg) {
    width: 250px;
  }
}

.navbar-toggler {
  position: relative;
  z-index: 2;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  outline: none;
  @include hover-focus-active {
    background-color: transparent;
    border: none;
    box-shadow: none;
    outline: none;
  }

  span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;

    background: $themeWhite;
    border-radius: 3px;

    z-index: 1;

    transform-origin: 4px 0px;

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    opacity 0.55s ease;

    &:first-child {
      transform-origin: 0 0;
    }

    &:last-child {
      transform-origin: 0 100%;
    }
  }

  &:not(.collapsed) {
    span {
      opacity: 1;
      transform: rotate(45deg) translate(-2px, 0);
      &:nth-child(2) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
      }
      &:last-child {
        transform: rotate(-45deg) translate(-3px, 0);
      }
    }
  }
}
