// Sidebar
// -----------------------------------------------
// -----------------------------------------------

#site-sidebar {
  position: fixed;
  background-color: $brand-secondary;
  background-image: url("../img/helios-background-masthead.svg");
  background-position: center center;
  background-repeat: no-repeat;
  width: 250px;
  height: 100%;
  left: 0;
  z-index: 2;
  transition: left $base-duration $base-timing;

  &.toggled {
    left: -100%;
  }

  .sidebar-brand {
    height: 88px;
    padding: ($base-point-grid * 2);
    background: rgba($white, 0.1);
    display: flex;
    justify-content: space-between;

    a {
      display: flex;
      align-items: center;
      color: $white;
      width: 100%;
      justify-content: space-evenly;

      &:visited,
      &:hover,
      &:active {
        color: $white;
        text-decoration: none;
      }

      img {
        height: 60px;
      }

      span {
        font-size: 2.143rem;
      }
    }
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-menu {
    margin-top: ($base-point-grid * 2);
  }
}

// Responsive
// -----------------------------------------------
@include bp(medium) {
  #site-sidebar {
    left: -100%;
    width: 100%;

    &.toggled {
      left: 0;
    }

    .sidebar-toggle {
      padding: 24px 32px;
      display: block;
      opacity: 0.7;
      transition: opacity 0.3s ease, transform 0.3s ease;

      &:hover {
        opacity: 1;
        transform: rotate(-180deg);
      }
    }
  }
}
