@import '../../../styles/main';

.IndexPage {
  &__fm-cta-wrapper {
    background-color: $c_white;
  }

  &__fm-cta {
    @extend %container;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 120px 0;
    background: url('../../../assets/background/fm-avatars-bg-left.svg'), url('../../../assets/background/fm-avatars-bg-right.svg');
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    background-size: auto, auto;

    &__content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 900px;
    }

    &__subtitle {
      font-family: $font-secondary;
      font-size: 14px;
      line-height: 20px;
      letter-spacing: 0;
      color: #5c6475;
    }

    &__title {
      margin-top: 24px;
      font-family: $font-primary;
      font-size: 48px;
      line-height: 56px;
      letter-spacing: 0;

      &--alt {
        display: none;
      }
    }

    &__link-wrapper {
      width: fit-content;
      margin-top: 32px;
    }

    &__link {
      display: inline-flex;
      align-items: center;
      font-family: $font-primary;
      font-size: 20px;
      line-height: 28px;
      letter-spacing: 0;
      color: $c_blue-ribbon;
    }

    &__link-arrow {
      margin-left: 13px;
      transform: rotate(-90deg) scale(.85);
    }

    @media #{$screen-max-lg} {
      background-position: -45% center, 145% center;
      background-size: 55% 55%;
    }

    @media (max-width: 1100px) {
      background-position: -65% center, 145% center;
    }

    @media #{$screen-max-md} {
      display: flex;
      align-items: center;
      flex-direction: column-reverse;
      padding: 80px 0;

      &__content {
        width: 80%;
      }

      &__title {
        margin-top: 20px;
        font-size: 40px;
        line-height: 48px;
      }

      &__link-wrapper {
        margin-top: 20px;
      }
    }

    @media #{$screen-max-sm} {
      background: url('../../../assets/background/fm-avatars-bg-left-alt.svg'), url('../../../assets/background/fm-avatars-bg-right-alt.svg');
      background-position: left bottom, right top;
      background-repeat: no-repeat;

      &__title {
        display: none;
        font-size: 32px;
        line-height: 40px;

        &--alt {
          display: block;
        }
      }
    }

    @media (max-width: 500px) {
      &__content {
        width: 335px;
      }
    }
  }
}
