@import '~styles/mixins';

$resp_spacing: 30px;
$horizontal_spacing: 60px;

.ProjectSection {
  padding: 70px 0;

  background-color: $color-grey-background;
  &.white {
    background-color: white;
  }
  // other color come here
  &.primary {
    background-color: $color_primary;
    color: white;
  }
  &.secondary {
    background-color: $color_secondary;
    color: white;
  }
  &.ternary {
    background-color: $color_ternary;
    color: white;
  }

  .container {
    @include container;
    display: flex;
    justify-content: space-between;
    align-items: center;
    > * {
      width: 47%;
    }
  }
  .picture {
    max-width: 40%;
    font-size: 0;
    padding-left: $horizontal_spacing;
    &.left {
      padding-left: 0;
      padding-right: $horizontal_spacing;
    }
    img {
      border-radius: 10px;
      box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
      width: 100%;
    }
  }
  .content {
    .title {
      font-weight: bold;
      @include font-size(30px);
    }
    .text {
      margin-top: 15px;
      @include font-size(18px);
    }
  }

  @include tablet {
    padding: 40px 0;
    .container {
      display: block;
      text-align: center;
      .content,
      .picture {
        padding: 0;
        width: 100%;
        max-width: none;
        margin: 0px auto;
      }
      .content {
        &.left {
          margin-top: $resp_spacing;
        }
      }
      .picture {
        max-width: 400px;
        margin-top: $resp_spacing;
        &.left {
          margin-top: 0px;
        }
      }
    }
  }
}
