@import '../../../styles/constants';

.link-tab-selector {
  background-color: white;
  display: flex;
  justify-content: center;
  font: $sub-nav;
  box-shadow: $shadow-1;
  z-index: 1;
  display: none;

  > div {
    height: 50px;
    display: flex;
    justify-content: center;

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

      a {
        padding: 15px 24px 13px;
        color: $black;
        border-bottom: 3px solid transparent;

        &.selected {
          border-bottom: 3px solid $sky-blue;
        }
      }
    }
  }
}

@media screen and (max-width: 600px) {
  .link-tab-selector {
    div {
      cursor: pointer;

      a {
        display: none;

        &.selected {
          position: absolute;
          top: 70px;
          display: flex;

          &::after {
            content: '';
            height: 12px;
            width: 14px;
            position: relative;
            top: 5px;
            right: -7px;
            display: block;
            background-image: url(../../../images/down-arrow-menu.svg);
            background-position: center;
            background-size: 14px;
            background-repeat: no-repeat;
          }
        }
      }
    }

    &.menu-open {
      &::before {
        content: '';
        display: block;
        position: absolute;
        width: calc(100%);
        height: 1px;
        background-color: #1d2531;
        opacity: 0.1;
        top: 120px;
      }

      > div {
        height: unset;

        a.selected::after {
          transform: rotate(180deg);
        }

        .items {
          flex-direction: column;
          margin-top: 50px;

          a {
            display: unset;

            &.selected {
              display: flex;
            }
          }
        }
      }
    }
  }
}
