/* ==========================================================================
   Tutorial Topbar
   ========================================================================== */

.tutorial .sidebar-offset .topbar {
  width: 100%;
  height: calc(2.5rem * #{$lineHeight});
  min-height: 60px;
  box-shadow: 0 2px 8px rgba($primary, .12);
  padding: 0 12px;
  background: $accent;

  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;

  .topbar-logo {
    align-self: center;
    flex-shrink: 0;
    margin: 0 12px 0 0;

    > * {
      margin: 0;
    }
  }

  .btn-icon {
    height: 36px;
    width: 36px;
    line-height: 36px;
    border-radius: 4px;
    text-align: center;
    margin-right: 12px;

    display: inline-block;
    @media (min-width: 960px) {
      display: none;
    }

    span {
      top: 0;
      margin: 0;
      line-height: 36px;
    }
  }

  .topbar-logo-text {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
  }

  .time-remaining {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;

    align-self: center;

    font-size: .8125rem;
    font-family: $font-primary;
    font-weight: 600;
    color: rgba($white, .8);
    flex-shrink: 0;

    > * {
      margin-right: calc(.5rem * #{$lineHeight});

      &:last-child {
        margin-right: 0;
      }
    }
  }

  &.topbar-light,
  &.topbar--light {
    background: white;
  }

  &.topbar-light .name,
  &.topbar--light .name ,
  &.topbar-light .time-remaining,
  &.topbar--light .time-remaining {
    color: rgba($primary, .8);
  }
}
