@import "styles/breakpoints.scss";

.container {
  position: relative;

  &:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: var(--target-width);
    height: 100%;
    transform: translateX(var(--target-x));
    border-radius: 100px;
    background: var(--button-background-color);
    transition: 0.2s ease;
  }
}
.menuList {
  display: flex;
  gap: 0.5rem;

  margin: 0;
  padding: 0;

  @include respond-to("medium") {
    padding: 0 var(--space-base);
  }
}

.menuItem {
  margin: 0;
  padding: 0;
  list-style: none;

  button {
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
  }
}

.menuLink {
  display: inline-flex;
  // opacity: 0.4;
  transform: scale(0.95);
  transition: opacity 500ms 200ms, transform 300ms 200ms;

  font-weight: 500;
  font-size: 1.6rem;
  text-align: center;
  letter-spacing: -0.025em;

  padding: 1rem 2rem;
  border-radius: 100px;

  @include respond-to("small") {
    font-size: 1.4rem;
  }
}

.active {
  opacity: 1;
  transform: scale(1.05);
  // color: var(--button-text-color);
  // background: var(--button-background-color);
}

.transitionActive:after {
  transition: width 400ms cubic-bezier(0.86, 0, 0.07, 1),
    transform 500ms cubic-bezier(0.86, 0, 0.07, 1);
}
