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

html,
body {
  /* height: 100%; */
  font-size: 13px;
  font-family: "Barlow Semi Condensed", sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  padding: 0.8rem;
  background-color: #19212e;
  color: white;
  text-align: center;
  font-weight: 500;
  letter-spacing: 1px;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: aliceblue;
  padding: 1.5rem;
  overflow: auto;
}

.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1000px;
  min-width: 750px;
  margin: 0 auto;
}

.testimonial {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.daniel {
  background-color: hsl(263, 55%, 52%);
  color: white;
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.jonathan {
  background-color: hsl(217, 19%, 35%);
  color: white;
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.jeanette {
  background-color: hsl(0, 0%, 100%);
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  color: hsl(224, 10%, 45%);
  font-weight: 600;
}

.patrick {
  background-color: hsl(219, 29%, 14%);
  color: hsl(214, 17%, 92%);
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.kira {
  background-color: hsl(0, 0%, 100%);
  grid-column: 4 / 5;
  grid-row: 1 / 3;
  color: hsl(217, 19%, 35%);
}

.content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  gap: 2rem;
}

.profile {
  display: flex;
  flex-direction: row;
}

.bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.name {
  font-weight: 600;
}

.status {
  font-weight: 500;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message h4 {
  font-weight: 600;
  font-size: 1.4rem;
}

.message p {
  font-weight: 500;
  font-size: 0.9rem;
}

.jonathan .message p {
  color: hsl(0, 0%, 81%);
}

.jonathan .profile {
  color: hsl(0, 0%, 81%);
}

footer {
  padding: 0.5rem;
  background-color: #19212e;
  color: white;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
  main {
    padding: 1rem;
    align-items: flex-start;
  }

  .container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, auto);
    padding: 1rem;
    min-width: unset;
    margin: 1rem 0.5rem;
  }

  .testimonial {
    padding: 2rem;
    margin: 1rem 0;
  }

  .message h4 {
    margin-right: 1rem;
    line-height: 2rem;
  }

  .message p {
    margin-right: 1rem;
    line-height: 1.8rem;
  }

  .daniel {
    grid-column: 1;
    grid-row: 1;
  }

  .jonathan {
    grid-column: 1;
    grid-row: 2;
  }

  .jeanette {
    grid-column: 1;
    grid-row: 3;
  }

  .patrick {
    grid-column: 1;
    grid-row: 4;
  }

  .kira {
    grid-column: 1;
    grid-row: 5;
  }
}
