@import '../../../styles/_main';

.StorySectionWebsite {
  position: relative;

  &__title {
    font-size: 40px;
    color: $c_white;
    text-align: center;
  }

  &__container-dark,
  &__container-blue {
    position: relative;
    margin: 0 -20px;

    &::after {
      display: block;
      padding-bottom: 63%;
      content: '';
    }

    @media #{$screen-sm} {
      margin: 0;
    }
  }

  &__container-dark {
    img {
      position: absolute;
      bottom: 0;
    }

    &::after {
      padding-bottom: 36%;
    }
  }

  &__container-blue {
    background-color: $c_blue-ribbon;
    background-image: url('../../../assets/svg/brand-website-bg.svg');
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 100% auto;
  }

  &__image-container {
    position: absolute;
    top: 15%;
    width: calc(100% - 20px);

    &::after {
      display: block;
      width: 100%;
      padding-bottom: 63%;
      content: '';
    }
  }

  &__page-link {
    position: absolute;
    bottom: 30%;
    z-index: 2;
    display: block;
    width: 100%;
    font-size: 20px;
    color: $c_white;
    text-align: center;
  }

  &__image {
    position: absolute;
    left: 20px;
    width: calc(100% - 40px);
  }
}

@media #{$screen-sm} {
  .StorySectionWebsite {
    &__row {
      position: relative;
      display: flex;
      flex-direction: row-reverse;
    }

    &__container-dark,
    &__container-blue {
      width: 50%;
      height: 1000px;
    }

    &__title {
      position: absolute;
      left: 50%;
      margin-top: 80px;
      margin-left: 20px;
      font-size: 70px;
    }

    &__image-container {
      top: 50%;
      left: 50%;
      max-width: 930px;
      transform: translate(-50%, -50%);
    }

    &__page-link {
      bottom: 80px;
    }

    &__action {
      position: absolute;
      right: 32px;
      bottom: 150px;
    }
  }
}
