body {
  background-image: url(bg-pattern-bottom-desktop.svg);
  background-repeat: no-repeat;
  background-position: 100% 100%;
  margin: 0;
  font-family: "Spartan";
  font-size: 14px;
  line-height: 1.5;
}

h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 700;
  color: hsl(300, 43%, 22%);
}

.desktop-top-svg {
  position: absolute;
}

.desktop-bottom-svg {
  position: absolute;
  top: 100px;
  right: 0;
}

/* TOP SECTION */
.top-section {
  background-image: url(bg-pattern-top-desktop.svg);
  background-repeat: no-repeat;
  padding: 8% 11% 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* TITLE SECTION */
.title {
  width: 27.75rem;
}

.title p {
  color: hsl(303, 10%, 53%);
  font-weight: 500;
  margin-bottom: 0;
}

/* RATING SECTION */
.star {
  display: inline-block;
  letter-spacing: 5px;
  margin: 1.25rem 2rem 1rem;
}

.star-rating {
  display: grid;
  row-gap: 15px;
  grid-template-rows: 1fr 1fr 1fr;
  margin: 3% 0 2% 5%;
  line-height: normal;
}

.star-rating h4 {
  display: inline-block;
  color: hsl(300, 43%, 22%);
}

.first-rating {
  background-color: hsl(300, 24%, 96%);
  border-radius: 8px;
  width: 27.5rem;
}

.second-rating {
  background-color: hsl(300, 24%, 96%);
  border-radius: 8px;
  margin-left: 3.75rem;
  width: 27.5rem;
}

.third-rating {
  background-color: hsl(300, 24%, 96%);
  border-radius: 8px;
  margin-left: 7.5rem;
  width: 27.5rem;
}

/* BOTTOM SECTION */
.bottom-section {
  display: grid;
  grid-gap: 30px;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 11% 0;
}

.bottom-section h4 {
  margin: 3px 0 0;
}

img {
  border-radius: 100%;
  width: 45px;
  float: left;
  margin-right: 25px;
}

.grid-item {
  background-color: hsl(300, 43%, 22%);
  border-radius: 8px;
  color: hsl(300, 24%, 96%);
  padding: 30px;
}

.verified {
  color: hsl(333, 80%, 67%);
  margin: 0;
}

.item2 {
  position: relative;
  top: 20px;
}

.item3 {
  position: relative;
  top: 40px;
}

.review {
  margin-top: 30px;
}

.attribution {
  margin-top: 50px;
}

@media (max-width:1320px) {
  .first-rating, .second-rating, .third-rating {
    margin: 0;
  }
}

@media (max-width:1150px) {
  body{
    background-image: none;
  }
  .title {
    text-align: center;
    width: auto;
    margin: 1.5rem 0;
  }

  .top-section {
    grid-template-columns: 1fr;
    padding: 4% 5% 2%;
    background-image: url(bg-pattern-top-mobile.svg);
    background-repeat: no-repeat;
  }

  .bottom-section {
    grid-template-columns: 1fr;
    grid-gap: 15px;
    padding: 2% 5% 4%;
    background-image: url(bg-pattern-bottom-mobile.svg);
    background-repeat: no-repeat;
    background-position: 100% 100%;
  }

  .star {
    display: block;
    margin: 1rem 0 0;
  }

  .star-rating h4 {
    margin: 1rem 0;
  }

  .star-rating {
    text-align: center;
    margin: 1.5rem 0;
  }

  .first-rating, .second-rating, .third-rating {
    width: auto;
  }

  .item3, .item2, .item2 {
    position: static;
    margin: 0;
  }

  .desktop-top-svg, .desktop-bottom-svg {
    display: none;
  }
}
