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

body {
  font-family: "League Spartan", sans-serif;
  height: 100vh;
  background-color: hsl(300, 24%, 96%);
  background-image: url(../images/bg-pattern-top-desktop.svg),
    url(../images/bg-pattern-bottom-desktop.svg);
  background-repeat: no-repeat, no-repeat;
  background-position: top left, bottom right;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main {
  background-color: hsl(0, 0%, 100%);
  width: 75%;
  height: 80%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 40px 60px;
  border-radius: 10px;
  box-shadow: 6px 6px 15px hsl(235, 39%, 83%);
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  color: hsl(300, 43%, 22%);
  font-weight: 700;
  margin-bottom: 30px;
  width: 60%;
}

.intro p {
  color: hsl(300, 43%, 22%);
  font-size: 20px;
  width: 80%;
}

.rating-section {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(10, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.first {
  grid-area: 2 / 1 / 4 / 5;
}
.second {
  grid-area: 5 / 2 / 7 / 6;
}
.third {
  grid-area: 8 / 3 / 10 / 7;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: hsl(300, 24%, 96%);
  border-radius: 8px;
  color: hsl(300, 43%, 22%);
  font-weight: 600;
}

.reviews {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(8, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.review {
  background-color: hsl(300, 43%, 22%);
  border-radius: 8px;
  padding: 25px;
}

.r1 {
  grid-area: 2 / 2 / 6 / 6;
}
.r2 {
  grid-area: 3 / 7 / 7 / 11;
}
.r3 {
  grid-area: 4 / 12 / 8 / 16;
}

.reviewer-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.logo {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 14px;
}

.reviewer-data {
  display: flex;
  flex-direction: column;
  color: hsl(0, 0%, 100%);
  font-size: x-small;
}

.reviewer-data p {
  color: hsl(333, 80%, 67%);
}

.review-text {
  font-size: 15px;
  color: hsl(0, 0%, 100%);
}

@media (max-width: 1024px) {
  .main {
    width: 90vh;
    height: 95vh;
  }
}

@media (max-width: 700px) {
  body {
    height: auto;
    background-color: hsl(300, 24%, 96%);
    background-image: url(../images/bg-pattern-top-mobile.svg),
      url(../images/bg-pattern-bottom-mobile.svg);
    background-repeat: no-repeat, no-repeat;
    background-position: top left, bottom right;
  }
  .main {
    background-color: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
  }
  .intro {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .rating-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .rating {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    width: 100%;
    background-color: hsl(0, 0%, 100%);
  }
  .reviews {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}
