@import '../../constants/theme.scss';
@import '../../utils/mixins.scss';

.questionTitle {
  @include theme(color, eSecondary);
}

.questionDetails {
  & li {
    @include theme(color, contrast1Opacity90);
  }
}

.wrapper {
  @include spacing(1rem, 2rem 0);
  @include theme(border, contrast1Opacity20, 1px dotted);
  border-radius: 0.25rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 50rem;
}

.productsContainer {
  width: 100%;
  display: grid;
  row-gap: 0.25rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    'systems'
    'ml'
    'algo'
    'frontend'
    'programming';

  @media screen and (min-width: 1200px) {
    row-gap: 1.5rem;
    grid-template-columns: 4fr 1fr 2fr 3fr;
    grid-template-areas:
      'systems systems . ml'
      'algo algo algo algo'
      'frontend programming programming programming';
  }

  .product {
    @include spacing(0.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: $white;
    font-weight: bold;
    font-size: 1rem;
    height: 3rem;

    @media screen and (min-width: 1200px) {
      font-size: 1.1rem;
    }
  }

  .algoExpert {
    background-color: $eProductBlue;
    grid-area: algo;

    @media screen and (min-width: 1200px) {
      @include spacing($margin: 0 auto);
      width: 75%;
    }
  }

  .systemsExpert {
    background-color: $eProductRed;
    grid-area: systems;

    @media screen and (min-width: 1200px) {
      align-self: center;
    }
  }

  .mlExpert {
    background-color: $eProductOrange;
    grid-area: ml;

    @media screen and (min-width: 1200px) {
      height: 5rem;
    }
  }

  .frontendExpert {
    background-color: $eProductGreen;
    grid-area: frontend;

    @media screen and (min-width: 1200px) {
      align-self: flex-end;
    }
  }

  .programmingExpert {
    background-color: $eProductBrightRed;
    grid-area: programming;

    @media screen and (min-width: 1200px) {
      @include spacing($margin: 0 0 0 0.75rem);
      height: 5rem;
    }
  }
}
