@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap');
/* # Front-end Style Guide

## Layout

The designs were created to the following widths:

- Mobile: 375px
- Desktop: 1440px

## Colors

### Primary

Moderate violet: hsl(263, 55%, 52%)
Very dark grayish blue: hsl(217, 19%, 35%)
Very dark blackish blue: hsl(219, 29%, 14%)
White: hsl(0, 0%, 100%)

### Neutral

Light gray: hsl(0, 0%, 81%)
Light grayish blue: hsl(210, 46%, 95%)

Note for text colors:

1. "Verified Graduate" has the same color as the person's name with 50% opacity
2. Review paragraphs inside the quotations have the same color as well, but are at 70% opacity

## Typography

### Body Copy

- Font size: 13px

### Font

- Family: [Barlow Semi Condensed](https://fonts.google.com/specimen/Barlow+Semi+Condensed)
- Weights: 500, 600 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(210, 46%, 95%);
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.flex {
  display: flex;
  flex-direction: column;
}

.testimonials {
  max-width: 750px;
  margin: 0 auto;
  padding: 2em;
}

.testimonial {
  padding: 3em;
  margin: 2em 0;
  background-color: white;
  color:  hsl(219, 29%, 14%);
  border-radius: 12px;
}

.testimonial__author {
 margin-bottom: 2em;
 display: flex;
 align-items: center;
}

.testimonial__avatar {
  border-radius: 50px;
  margin-right: 1.5em;
}

.testimonial__fullname {
  font-size: 1.5em;
  font-weight: 600;
}

.testimonial__role {
  color:hsla(217, 30%, 14%, 0.5);
  font-size: 1.1em;
}

.testimonial__header {
  font-size: 2em;
  margin-bottom: 1em;
  font-weight: 600;
}

.testimonial__description {
  font-size: 1.5em;
  color: hsla(217, 30%, 14%, 0.7);
}

/* testimonial with purple background */
.testimonial--bg-p {
  position: relative;
  background-color: hsl(263, 55%, 52%);
  color: white;
}

.testimonial--bg-p .testimonial__avatar {
  border: 3px solid hsl(263, 49%, 61%);
}

.testimonial--bg-p .testimonial__author,
.testimonial--bg-p .testimonial__header {
  position: relative;
  z-index: 2;
}

.testimonial--bg-p::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 3em;
  width: 104px;
  height: 104px;
  z-index: 1;
  background-image: url(images/bg-pattern-quotation.svg);
}

/* testimonial with dark grayish blue background */
.testimonial--bg-dgb {
  background-color: hsl(217, 19%, 35%);
}

/* testimonial with dark blackish blue background */
.testimonial--bg-dbb {
  background-color: hsl(219, 29%, 14%);
}

.testimonial--bg-dbb .testimonial__avatar {
  border: 3px solid hsl(263, 55%, 52%);
}

/* testimonial with white text */
.testimonial--text-white .testimonial__fullname,
.testimonial--text-white .testimonial__header {
  color: hsl(210, 46%, 95%);
}

.testimonial--text-white .testimonial__description  {
  color: hsla(210, 46%, 95%, 0.7);
}

.testimonial--text-white .testimonial__role {
  color: hsla(210, 46%, 95%, 0.5);
}

@media (min-width: 1200px) {

  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .testimonials {
    max-width: 1600px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2em;
  }

  .testimonial {
    margin: 0;
  }

  .testimonial:first-child {
    grid-column: span 2;
    grid-row: 1 / 2;
  }

  .testimonial:nth-child(3) {
    grid-column: 1;
  }

  .testimonial:nth-child(4) {
    grid-column: span 2;
  }

  .testimonial:last-child {
    grid-column: 4;
    grid-row: 1 / 3;
  }

  .testimonial--bg-p::before {
    right: 8em;
  }
}