@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");
*, *:before, *:after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/*
@import url('https://fonts.googleapis.com/css2?family=Poppins@1&family=Raleway&display=swap');
$headers-font: 'Poppins', sans-serif;
*/
body {
  font-family: "Montserrat", sans-serif;
}

h1, h2, h3, h4 {
  font-weight: 700;
}

* {
  color: #511f50;
}

.main {
  margin: 5rem;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 3rem;
}

.col {
  margin: 0 1rem;
}

.third {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 33.333%;
          flex: 0 0 33.333%;
  max-width: 33.333%;
}

.half {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 50%;
          flex: 0 0 50%;
  max-width: 50%;
}

.message {
  margin-right: 7rem;
}

.message h2 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.message p {
  font-size: 1.1rem;
  margin-top: 0.7rem;
  line-height: 1.5;
  opacity: 0.8;
}

.ratings {
  padding-top: 1rem;
}

.ratings span {
  margin-right: 2rem;
  color: #e88f3f;
  font-size: 1.5rem;
}

.rating {
  background-color: #f7f2f8;
  border-radius: 7px;
  padding: 0.7rem 2rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.rating:nth-child(1) {
  margin-right: 6rem;
}

.rating:nth-child(2) {
  margin-left: 3rem;
  margin-right: 3rem;
}

.rating:nth-child(3) {
  margin-left: 6rem;
  margin-bottom: 0;
}

.third:nth-child(2) {
  margin-top: 1rem;
}

.third:nth-child(3) {
  margin-top: 2rem;
}

.testimonial-card {
  background-color: #511f50;
  border-radius: 7px;
  padding: 3rem 2rem;
  color: white;
}

.testimonial-card .card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.testimonial-card .card-header img {
  border-radius: 50%;
  margin-right: 1.3rem;
}

.testimonial-card .card-header h3 {
  font-weight: 500;
  color: white;
  margin: 0;
}

.testimonial-card .card-header h4 {
  font-weight: 500;
  color: rgba(211, 132, 187, 0.7);
  margin: 0.2rem 0 0 0;
}

.testimonial-card p {
  margin-top: 2rem;
  color: white;
  opacity: 0.9;
  line-height: 1.5rem;
  font-size: 0.8rem;
}

.attribution {
  text-align: center;
  font-size: 0.7rem;
}

@media only screen and (max-width: 375px) {
  .main {
    margin: 7rem 1rem;
  }
  .row {
    margin: 1rem 0;
  }
  .third {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    max-width: 100%;
  }
  .half {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    max-width: 100%;
  }
  .message {
    margin: auto;
    text-align: center;
  }
  .message h2 {
    font-size: 2rem;
  }
  .message p {
    font-size: 0.7rem;
  }
  .rating:nth-child(1) {
    margin-right: 0;
  }
  .rating:nth-child(2) {
    margin-right: 0;
    margin-left: 0;
  }
  .rating:nth-child(3) {
    margin-left: 0;
  }
  .third:nth-child(2) {
    margin-top: 1rem;
  }
  .third:nth-child(3) {
    margin-top: 2rem;
    margin-bottom: 0;
  }
}
