@import "~@politico/interactive-style/vars.scss";
@import "../../theme/fonts.scss";

.styles :global {
  max-width: 495px;
  margin: 0.5rem auto 2.5rem;

  @media (min-width: $min-width-sm) {
    margin-top: 3rem;
    margin-bottom: 4rem;
  }

  .inner-container {
    @include futura-book;
    font-size: 1rem;
    display: flex;
    align-items: center;
    height: 30px;
    position: relative;
  }

  .logo-container {
    flex: 0 0 90px;
    min-width: 90px;
    padding: 0 10px;
  }

  .link-tray {
    flex: 1;
    width: calc(100% - 110px);
    height: 100%;
    display: inline-flex;
    position: relative;

    .swiper-container {
      width: 100%;
    }

    .swiper-wrapper {
      height: 100%;
    }

    .link-container {
      width: auto;
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: center;

      a {
        position: relative;
        color: $politico-dark-gray;
        text-decoration: none;
        text-align: center;
        font-size: 1rem;
      }

      &.active {
        a {
          font-weight: bold;
          color: $black;

          &::after {
            content: "";
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #00418c;
          }
        }
      }
    }

    .shadow-overlay {
      opacity: 0;
      position: absolute;
      height: 100%;
      width: 50px;
      z-index: 2;
      pointer-events: none;
      transition: opacity 0.25s linear;

      @media screen and (min-width: 768px) {
        width: 95px;
      }

      &.active {
        opacity: 1;
      }

      &.left {
        left: -1px;
      }

      &.right {
        right: -1px;
      }
    }
  }
}
