body {
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-size: 13px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f0f4f8;
  min-height: 100vh;
}
main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh - 50px); /* Adjust height to account for footer */
}
.container-grid {
  display: grid;
  grid-template-rows: repeat(
    5,
    auto
  ); /* Stack cards vertically on small screens */
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 375px;
  margin: 0 auto; /* Center the grid container */
  padding: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.card-header {
  display: inline-flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

img {
  width: 30px; /* Set a fixed width */
  height: 30px; /* Set a fixed height */
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image fits within the circle */
  margin-right: 10px; /* Space between image and text */
  flex-shrink: 0; /* Prevents the image from shrinking */
  border: hsl(264, 82%, 80%) solid 2px; /* Border around the image */
}
.DanielClifford {
  background-color: hsl(263, 55%, 52%);
  background-image: url("./images/bg-pattern-quotation.svg");
  background-repeat: no-repeat;
  background-position: right;
  padding: 10px 20px;
}
.DanielClifford h3 {
  color: hsl(0, 0%, 100%);
}
.DanielClifford p {
  font-weight: lighter;
  color: hsl(260, 100%, 95%);
}
.DanielClifford .card-header {
  color: hsl(260, 100%, 95%);
}

.JonathanWalters {
  background-color: hsl(217, 19%, 35%);
}
.JonathanWalters h3 {
  color: hsl(0, 0%, 100%);
  margin-bottom: 10px;
}
.JonathanWalters img {
  border: hsl(264, 82%, 80%) solid 2px; /* Border around the image */
}
.JonathanWalters p {
  font-weight: lighter;
  color: hsl(260, 100%, 95%);
}
.JonathanWalters .card-header {
  color: hsl(260, 100%, 95%);
}

.JeanetteHarmon {
  background-color: hsl(0, 0%, 100%);
}
.JeanetteHarmon h3 {
  color: hsl(219, 29%, 14%);
  margin-bottom: 10px;
}
.JeanetteHarmon img {
  border: hsl(264, 82%, 80%) solid 2px; /* Border around the image */
}
.JeanetteHarmon p {
  font-weight: lighter;
  color: hsl(217, 19%, 35%);
}
.JeanetteHarmon .card-header {
  color: hsl(217, 19%, 35%);
}
.PatrickAbrams {
  background-color: hsl(219, 29%, 14%);
}
.PatrickAbrams h3 {
  color: hsl(0, 0%, 81%);
  margin-bottom: 10px;
}
.PatrickAbrams img {
  border: hsl(264, 82%, 80%) solid 2px; /* Border around the image */
}
.PatrickAbrams p {
  font-weight: lighter;
  color: hsl(214, 17%, 92%);
}
.PatrickAbrams .card-header {
  color: hsl(0, 0%, 81%);
}
.KiraWhittle {
  background-color: hsl(0, 0%, 100%);
}
.KiraWhittle h3 {
  color: hsl(219, 29%, 14%);
  margin-bottom: 10px;
}
.KiraWhittle img {
  border: hsl(264, 82%, 80%) solid 2px; /* Border around the image */
}
.KiraWhittle p {
  font-weight: lighter;
  color: hsl(217, 19%, 35%);
}
.KiraWhittle .card-header {
  color: hsl(217, 19%, 35%);
}
.KiraWhittle .card-header {
  color: hsl(217, 19%, 35%);
}
.KiraWhittle .card-header {
  color: hsl(217, 19%, 35%);
}
.KiraWhittle .card-header {
  color: hsl(217, 19%, 35%);
}

@media (min-width: 768px) {
  .container-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    padding: 20px;
  }
  .DanielClifford {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
    align-self: center;
  }
  .JonathanWalters {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
  }

  .JeanetteHarmon {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
  }
  .PatrickAbrams {
    grid-row: 2 / 3;
    grid-column: 2 / 4;
  }
  .KiraWhittle {
    grid-row: 1 / 3;
    grid-column: 4 / 5;  
  }
}

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