@import '../../partials/variables';
@import '../../lib/functions';

.nav {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 10px 0;
  width: 100%;
  height: map-deep-get($nav, height);

  background-color: var(--background-color);

  border-bottom: 2px var(--border-color) solid;

  @media (max-width: $mobile-breakpoint) {
    justify-content: space-between;
    height: map-deep-get($nav, mobile, height);
    padding: 10px;

    font-size: map-deep-get($nav, mobile, font-size);
  }

  &__list {
    display: flex;
    justify-content: flex-start;

    width: 80%;
    list-style-type: none;

    @media (max-width: $mobile-breakpoint) {
      display: none;
    }
  }

  & .nav-list {
    width: 80%;

    @media (max-width: $mobile-breakpoint) {
      display: none;
    }

    &__item:last-child {
      margin: 0 10px 0 auto;

      border-right: 2px solid var(--border-color);
    }
  }
}
