/* Given Stylings */
:root {
  /* colors */
  --clr-dkMagenta: hsl(300, 43%, 22%);
  --clr-pink: hsl(333, 80%, 67%);
  --clr-dkGrayMagenta: hsl(303, 10%, 53%);
  --clr-ltGrayMagenta: hsl(300, 24%, 96%);
  --clr-white: hsl(0, 0%, 100%);

  /* font weights */
  --fw-light: 400;
  --fw-med: 500;
  --fw-bold: 700;

  /* fonts */
  --font-leagueSpartan: "League Spartan", sans-serif;
}

/* CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

body {
  font-size: 15px;
  font-family: var(--font-leagueSpartan);
  background-color: var(--clr-white);
  background-image: url("./images/bg-pattern-top-mobile.svg"), url("./images/bg-pattern-bottom-mobile.svg");
  background-position:  left 1px top 1px, right 1px bottom 1px;
  background-repeat: no-repeat;
  background-size: 100%;
}

main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

h1 {
  text-align: center;
  color: var(--clr-dkMagenta);
  font-size: 2.5rem;
  line-height: 2rem;
  margin-bottom: 1.5rem;
  font-weight: var(--fw-bold);
}

.container {
  gap: 2rem;
  padding: 5rem 1.5rem;
}

.container,
.ratingsCard,
.reviewCardSection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.description {
  text-align: center;
  color: var(--clr-dkGrayMagenta);
  font-size: 1.12rem;
  line-height: 1.5rem;
  font-weight: var(--fw-light);
  margin-bottom: 2rem;
}

.ratingsDescription {
  color: var(--clr-dkMagenta);
  font-weight: var(--fw-bold);
  font-size: 1.1rem;
  text-align: left;
}

.starIcon {
  margin: 0 .15rem;
}

.reviewCardSection{
  gap: 1.2rem;
}

.ratingsCard {
  background-color: var(--clr-ltGrayMagenta);
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.5rem;
 
}

.reviewCard {
  background-color: var(--clr-dkMagenta);
  padding: 2rem;
  border-radius: .5rem;
}

.reviewerInfo{
  display: flex;
}

.avatarImg{
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-right: 1.5rem;
}

.reviewerName {
  color: var(--clr-white);
  font-weight: var(--fw-med);
}

.reviewerTitle{
  color: var(--clr-pink);
  font-weight: var(--fw-light);
}

.reviewText{
  color: var(--clr-white);
  font-size: 1.05rem;
  margin-top: 1rem;
  line-height: 1.5rem;
}

/* pre-included attribution css moved from index <style> */
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}


/* non-mobile settings */
@media (min-width: 1100px) {

  body{
    background-image: url("./images/bg-pattern-top-desktop.svg"), url("./images/bg-pattern-bottom-desktop.svg");
    background-size: 45%;
  }

  h1{
    font-size: 4rem;
    line-height: 3rem;

  }

  h1, .description {
    text-align: left;
  }

  .container{
    padding: 10rem;
  }

  .reviewCardSection, .ratingsCard{
    flex-direction: row;
  }

  .summarySection {
    display: flex;
    justify-content: space-between;
  }

  .textSection{
    max-width: 40%;
  }

 .ratingsCard{
    margin-top: 0rem;
    justify-content: space-evenly;
    align-items: center;
  }

  .ratingsDescription{
    padding: 0rem 2rem;
  } 

  .reviewCardSection{
    margin-top: -2rem;
    gap: 1.5rem
  }

  .reviewCard:nth-of-type(2){
    margin-top: 2rem;
  }

  .reviewCard:nth-of-type(3){
    margin-top: 4rem;
  }
}

@media (min-width: 1200px) {
  .ratingsCard:nth-of-type(1){
    margin-left: -6rem;
    margin-right: 6rem;
  }

  .ratingsCard:nth-of-type(2){
    margin-left: -3rem;
    margin-right: 3rem;
  }

  .ratingsCardLong{
    padding-left: .5rem;
  }
}
