@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.containerAnchor {
  min-height: 8.4rem;
}

.stickyContainer {
  position: fixed;
  z-index: 1;
  animation: fadeIn 1s forwards;
  width: 100%;
  background-color: white;
  box-shadow: 0px 8px 12px 0px;
  left: 0;
  right: 0;
  top: var(--nav-height);

  &.usingExclOperator {
    top: calc(var(--nav-height) + var(--exc-operator-height));
  }
}

.progressBar {
  height: 5px;
  width: 100px;
  background-color: var(--progress-bar-color, #1c1a28);
  transition: width 1s;
}

.defaultConatiner {
  position: relative;
}

.anchor {
  max-width: var(--main-container-max);
  margin: 0 auto;
  @include flex-direction(row);

  &::-webkit-scrollbar {
    height: 0.4rem;
    display: none;
  }

  &::-webkit-scrollbar-track {
    background: #9c9ab0;
  }

  &::-webkit-scrollbar-thumb {
    background: #1c1a28;
  }

  overflow-x: scroll;
}

.link {
  word-break: inherit;
  white-space: nowrap;
  background-color: transparent;
  padding: 0.4rem 1.6rem;
  border-radius: 0.4rem;
  border: 1.5px solid #33313d;
  color: #1c1a28;
  font-weight: 500;
  font-size: 16px;
  line-height: 27px;

  @include flex-align(center, center);
  margin-right: 1.6rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;

  svg {
    margin-left: 1rem;
  }

  @include min(laptop) {
    &:hover {
      background-color: #272735;
      color: #ffffff;
    }
  }
}

.anchorItem {
  &.active>a {
    background-color: #1c1a28;
    color: #fff;
    border: 1.5px solid #3e3c47;
    font-weight: 700;
  }
}

.storyDivs {
  width: 100%;
  display: block;
  margin: 3rem 0;
  padding: 2rem;
}

.anchorTitle {
  font-size: var(--h2-size);
  font-weight: var(--h2-font-weight);
  line-height: var(--h2-line-height);
  color: var(--heading-base-color);
}

.buttLeft,
.buttRight {
  @include flex-align(center, center);
  background-color: var(--body-background-color, white);
  @include flex-align(center, center);
  display: none;
  z-index: 1;

  @include custom-min(960) {
    display: flex;
  }

  >svg {
    width: 3.2rem;
    height: 3.2rem;
    padding: 0.8rem;
    color: #ffffff;
    background-color: #262629;
    border-radius: 10rem;
  }
}

.disabled {
  >svg {
    color: #515156;
    background-color: #f4f4f4;
  }
}

.staticShowButtons {
  display: flex;

  >button:first-child {
    padding-right: 1.6rem;
  }

  >button:last-of-type {
    padding-left: 1.6rem;
  }
}

.stickyShowButtons {
  >button:first-child {
    position: absolute;
    top: 0.6rem;
    padding-right: 1.6rem;
    height: 4rem;

    @include custom-min(960) {
      left: calc(50% - (var(--anchor-max-width, --main-container-max) / 2) - 2.6rem);
      transform: translateX(50%);
    }
  }

  >button:last-of-type {
    position: absolute;
    top: 0.6rem;
    height: 4rem;
    padding-left: 1.6rem;

    @include custom-min(960) {
      right: calc(50% - (var(--anchor-max-width, --main-container-max) / 2) - 2.6rem);
      transform: translateX(-50%);
    }
  }

  >ul {
    >li:first-child {
      margin-left: 4.8rem;
    }

    >li:last-child {
      margin-right: 4.8rem;
    }
  }
}

.containerAnchorFullWidth {
  max-width: 100% !important;
  padding: 0 !important;
}

.titleFullWidth {
  padding: 0 1.6rem;
  max-width: var(--anchor-max-width, --main-container-max);
  margin: 0 auto;

  @include min(tablet) {
    padding: 0 2.4rem;
  }
}

.staticFullScrollWidth {
  min-width: 100vw;
  display: inline-grid;

  @include min(tablet) {
    max-width: 100vw;
  }

  &:not(.staticShowButtons) {
    &::before {
      display: none;
    }

    >ul {
      >li:first-child {
        padding-left: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2) !important;
      }
    }
  }

  &::before,
  &::after {
    content: '';
    display: none;
    position: absolute;
    top: 0;
    background-color: var(--body-background-color, white);
    height: 4.5rem;
    z-index: 1;

    @include custom-min(960) {
      display: block;
    }

    @include custom-min-max(960, 1100) {
      width: 2.4rem;
    }

    width: calc((100% - var(--anchor-max-width, --main-container-max)) / 2 + 6.8rem);
  }

  &::before {
    left: 0;
  }

  &::after {
    right: 0;
  }

  >button {
    position: absolute;
    z-index: 2;
    height: 4.5rem;
    padding-right: 1.6rem;
    left: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2 + 2.4rem);

    &:last-of-type {
      left: unset;
      right: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2 + 2.4rem);
    }

    @include custom-min-max(960, 1100) {
      left: 2.4rem;

      &:last-of-type {
        right: 2.4rem;
      }
    }
  }

  >ul {
    max-width: unset !important;
    margin: 0 !important;
    padding: 0 1.6rem;

    &::-webkit-scrollbar {
      display: block !important;
    }

    >li:first-child {
      padding-left: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2 + 5.8rem) !important;

      @include custom-min-max(960, 1100) {
        padding-left: 7.2rem !important;
      }

    }

    >li:last-child {
      padding-right: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2 + 5.8rem) !important;

      @include custom-min-max(960, 1100) {
        padding-right: 7.2rem !important;
      }
    }
  }
}

.displayNone {
  visibility: hidden !important;
}