@use "../../variables.scss" as variables;

$margin: 8rem;

:host {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  > div {
    margin-top: $margin;
  }
}

h2 {
  font-weight: 500;
  font-style: italic;
}

.left, .right {
  display: flex;
  justify-content: center;

  .text {
    max-width: 50%;
  }

  img {
    max-width: 50%;
  }
}

.right {
  flex-direction: row-reverse;
  text-align: end;
}

.full {
  img {
    max-width: 100%;
    margin-top: 2rem;
  }
}

a {
  color: #fff;
  text-decoration: none;
  background-color: var(--accent-color);
  border-radius: 4rem;
  padding: 0.5rem 1rem;
  margin-top: 2rem;
  position: relative;
  top: 1rem;
  text-transform: uppercase;
  width: fit-content;
}

@media screen and (max-width: variables.$breakpoint) {
  .left, .right {
    flex-direction: column;
    .text, img {
      max-width: 100%;
    }

    img {
      margin-top: 2rem;
    }
  }

  .right {
    text-align: start;
  }
  :host {
    > div {
      margin-top: 3rem;
    }
  }

  .mobile {
    margin: 0 auto;
    font-size: 1.4rem;
  }
}
