.box:nth-child(1) {
  color: hsl(0, 0%, 100%);
  background-color: hsl(263, 55%, 52%);
}

.box:nth-child(2) {
  color: hsl(0, 0%, 100%);
  background-color: hsl(217, 19%, 35%);
}

.box:nth-child(3), .box:nth-child(5) {
  color: hsl(217, 19%, 35%);
  background-color: hsl(0, 0%, 100%);
}

.box:nth-child(4) {
  color: hsl(0, 0%, 100%);
  background-color: hsl(0, 0%, 7%);
}

html {
  font-size: 10px;
}

.box-quote-first {
  line-height: 120%;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 6vw;
}
@media (hover), (hover: none) and (min-width: 700px) {
  .box-quote-first {
    font-size: 2rem;
  }
}

.box-author-name {
  line-height: 110%;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 3.9vw;
}
@media (hover), (hover: none) and (min-width: 700px) {
  .box-author-name {
    font-size: 1.3rem;
  }
}

.box-quote-expound {
  line-height: 140%;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 3.8vw;
}
@media (hover), (hover: none) and (min-width: 700px) {
  .box-quote-expound {
    font-size: 1.3rem;
  }
}

.box-author-note {
  line-height: 110%;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 3.3vw;
}
@media (hover), (hover: none) and (min-width: 700px) {
  .box-author-note {
    font-size: 1.1rem;
  }
}

.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: hsl(263, 55%, 52%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Barlow Semi Condensed", sans-serif;
  background-color: hsl(300, 5.3%, 96.3%);
  min-height: 100vh;
  margin: 0;
}

#testimonials {
  padding: 0 3.2rem;
  margin: 7.3rem auto;
  display: grid;
  gap: 3.2rem;
}
@media (hover) {
  #testimonials {
    width: 40rem;
  }
}
@media (min-width: 700px) {
  #testimonials {
    grid-template: repeat(4, 1fr)/1fr 1fr;
    width: 65rem;
    margin-top: 8.3rem;
  }
}
@media (hover: hover) and (min-width: 1170px) {
  #testimonials {
    width: 116rem;
    grid-template: 1fr 1fr/repeat(4, 1fr);
    row-gap: 2.4rem;
    margin-top: 23rem;
  }
}

.box {
  box-shadow: 4rem 6rem 4rem 0 rgba(72, 85, 106, 0.27);
  border-radius: 0.7rem;
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
@media (hover: none) and (min-width: 700px) {
  .box {
    border-radius: 1.2rem;
  }
}

@media (min-width: 700px) {
  .box:nth-child(1) {
    grid-area: 1/1/2/3;
    background-image: url(../images/bg-pattern-quotation.svg);
    background-repeat: no-repeat;
    background-position: top right 6rem;
  }
}
@media (hover: hover) and (min-width: 1170px) {
  .box:nth-child(1) {
    grid-area: 1/1/2/3;
  }
}

@media (min-width: 700px) {
  .box:nth-child(2) {
    grid-area: 2/1/3/2;
  }
}
@media (hover: hover) and (min-width: 1170px) {
  .box:nth-child(2) {
    grid-area: 1/3/2/4;
  }
}

@media (min-width: 700px) {
  .box:nth-child(3) {
    grid-area: 2/2/3/3;
  }
}
@media (hover: hover) and (min-width: 1170px) {
  .box:nth-child(3) {
    grid-area: 2/1/3/2;
  }
}

@media (min-width: 700px) {
  .box:nth-child(4) {
    grid-area: 3/1/4/3;
  }
}
@media (hover: hover) and (min-width: 1170px) {
  .box:nth-child(4) {
    grid-area: 2/2/3/4;
  }
}

@media (min-width: 700px) {
  .box:nth-child(5) {
    grid-area: 4/1/5/3;
  }
}
@media (hover: hover) and (min-width: 1170px) {
  .box:nth-child(5) {
    grid-area: 1/4/3/5;
  }
}

.box p {
  margin: 0;
}

.box-author-wrapper {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.box-author-image {
  height: 8.5vw;
  width: 8.5vw;
  border-radius: 50%;
  background-size: cover;
}
@media (hover), (min-width: 700px) {
  .box-author-image {
    height: 3rem;
    width: 3rem;
  }
}

.box:nth-child(1) .box-author-image, .box:nth-child(4) .box-author-image {
  border: 2px solid hsl(264, 82%, 80%);
}

.box-author-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.box:hover {
  transform: translate(-20px, -10px) scale(1.1);
  transition: all 0.3s;
}

.box:hover > * {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.box:hover .box-author-image {
  transform: scale(1.5);
  transition: 0.3s;
}

/*# sourceMappingURL=main.css.map */
