/* general style settings */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: hsl(0, 0%, 100%);
}

main {
  font-size: 13px;
  font-family: "Barlow Semi Condensed";
  color: hsl(0, 0%, 100%);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5% auto;
}

/* mobile grid styles */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  background-color: inherit;
  padding: 0;
  margin: 3.5rem 0;
  width: 90%;
}

.grid-item {
  background-color: hsl(0, 0%, 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-radius: 10px;
  margin: auto;
  padding: 1.75rem 2rem;
  box-shadow: 16px 16px 16px 16px hsl(0, 0%, 81%, 0.4);
}

/* grid items styles */
#card1 {
  background-color: hsl(263, 55%, 52%);

  .user-img {
    border: 1.5px solid hsl(264, 82%, 80%);
  }
}

#card2 {
  background-color: hsl(224, 10%, 45%);
}

#card3,
#card5 {
  background-color: hsl(0, 0%, 100%);
  color: hsl(0, 0%, 7%);
}

#card4 {
  background-color: hsl(0, 0%, 7%);

  .user-img {
    border: 1.5px solid hsl(264, 82%, 80%);
  }
  p {
    color: hsl(214, 17%, 92%);
  }
}

.user-profile {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: left;
  align-items: center;
}

.user-profile div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
}

.user-img {
  border-radius: 100%;
  width: 2rem;
  height: 2rem;
}
.user-name {
  font-size: 15px;
  font-weight: 600;
}

.user-status {
  font-size: 12px;
  font-weight: 400;
}
.title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.details {
  line-height: 1.5;
}

/* desktop view */
@media (min-width: 768px) {
  .grid-container {
    width: 90%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    place-content: space-between;
    background-color: inherit;
    padding: 0;
  }

  .grid-item {
    width: 100%;
    height: 100%;
    padding: 1.25rem 2rem;
  }

  /* unequal distribution of cards */
  #card1 {
    grid-column: 1 / span 2;
    background-image: url("./images/bg-pattern-quotation.svg");
    background-repeat: no-repeat;
    background-position: top 0px right 3rem;
  }

  #card4 {
    grid-column: 2 / span 2;
  }

  #card5 {
    grid-row: 1 / span 2;
  }

  .grid-item:nth-child(1) {
    grid-row: 1;
  }

  .grid-item:nth-child(4) {
    grid-row: 2;
  }

  .grid-item:nth-child(5) {
    grid-column: 4;
  }
}
