@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;700&display=swap");

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

:root {
  --primary-color-1: hsl(300, 43%, 22%);
  --primary-color-2: hsl(333, 80%, 67%);

  --neutral-color-1: hsl(303, 10%, 53%);
  --neutral-color-2: hsl(300, 24%, 96%);
  --neutral-color-3: hsl(0, 0%, 100%);

  --font-size: 15px;
}

body {
  background-color: var(--neutral-color-3);
  text-align: center;
  font-family: "League Spartan", sans-serif;
  font-size: var(--font-size);
  padding: 2rem;
}

.left__side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.left__side_title {
  color: var(--primary-color-1);
  font-size: 2.3rem;
  font-weight: 700;
}

.left__side_content {
  color: var(--neutral-color-1);
  font-size: 1.8rem;
}

.card__rating {
  background-color: var(--neutral-color-2);
  color: var(--primary-color-1);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1em;
  padding: 1rem;
  border-radius: 1rem;
}

.bottom__section {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin: 1rem 0;
}

.card__comment {
  background-color: var(--primary-color-1);
  padding: 2rem;
  border-radius: 1rem;
  color: var(--neutral-color-2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: start;
  line-height: 150%;
  letter-spacing: 0.2px;
}

.card__comment_header {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.avathar {
  width: 20%;
  border-radius: 50%;
}

.highlight {
  color: var(--primary-color-2);
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 425px) {
  body {
    text-align: start;
    padding: 2rem 4rem;
  }

  .top__section {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
  }

  .left__side {
    max-width: 40%;
  }

  .left__side_title {
    font-size: 3.4rem;
  }

  .left__side_content {
    font-size: 1.25rem;
    width: 462px;
  }

  .right__side {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 40%;
  }

  .card__rating {
    flex-direction: row;
    align-items: center;
  }

  .card__rating:nth-child(1) {
    align-self: flex-start;
  }

  .card__rating:nth-child(2) {
    align-self: center;
  }

  .bottom__section {
    flex-direction: row;
    margin-bottom: 5rem;
  }

  .card__comment {
    position: relative;
    transition: transform 0.3s ease;
  }

  .card__comment:nth-child(1) {
    align-self: flex-start;
    top: 0;
  }

  .card__comment:nth-child(2) {
    align-self: center;
    top: 1rem;
  }

  .card__comment:nth-child(3) {
    align-self: flex-end;
    top: 2rem;
  }
}
