@import '@/sass/style.scss';

.Navigation {
  @include z-layer-2;
  bottom: 0;
  left: 50%;
  max-width: 768px;
  padding: 8px 8px 0;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;

  &__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  &__item,
  &__item--active {
    a {
      @include factor-a-family;
      align-items: center;
      background-color: $very-soft-green;
      color: $black;
      display: flex;
      flex-direction: column;
      font-size: 16px;
      font-weight: 700;
      height: 100%;
      justify-content: center;
      line-height: 1.125;
      padding: 8px;
      width: 100%;
    }

    svg {
      display: block;
      height: 20px;
      width: auto;
    }
  }

  &__item {
    padding: 8px 0 20px;

    &:nth-child(1) {
      a {
        border-left: solid 4px $mostly-black-green;
        border-radius: 6px 0 0 6px;
      }
    }

    &:nth-child(3) {
      a {
        border-radius: 0 6px 6px 0;
        border-right: solid 4px $mostly-black-green;
      }
    }

    a {
      svg {
        margin-bottom: 2px;
      }
    }
  }

  &__item--active {
    padding: 0 0 12px;

    a {
      background-color: $vivid-green;
      border-radius: 10px;
      border: solid 4px $mostly-black-green;

      svg {
        margin-bottom: 8px;
      }
    }
  }
}
