:root {
--Purple-100: hsl(254, 88%, 90%);
--Purple-500: hsl(256, 67%, 59%);
--Yellow-100: hsl(31, 66%, 93%);
--Yellow-500: hsl(39, 100%, 71%);
--White: hsl(0, 0%, 100%);
}
* {
  margin: 0;
  padding:  0;
  box-sizing: border-box;
  font-family: DM Sans;
}
body {
  background-color: hsla(254, 88%, 90%,0.2);
}
.homepage {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 1.75rem;
  width: 90%;
  padding: 2rem 0;
}
p{
  font-weight: 500;
  font-size: 18px;
}
.social-media {
  color: var(--White);
  background-color: var(--Purple-500);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-radius: 0.625rem;
  padding: 2.2rem 0;
}
#colored {
  color: var(--Yellow-500);
}
#social-media {
  font-size: 2.2rem;
  line-height: 2rem;
  font-weight: 400;
  width: 70%;
  margin: auto;
}
.social-media img {
  margin: 0 auto;
  padding: 1.5em 0 0.5rem 0;
}
#review {
  opacity: 0.8;
  font-weight: 400;
  font-size: 16px;
}
img {
  width: 10rem;
}

.social-media,
.platform,
.schedule,
.posting,
.grow_followers,
.audience-growth,
.create-post,
.AI {
  border-radius: 0.625rem;
}

.schedule,
.posting,
.grow_followers,
.audience-growth,
.create-post,
.AI {
  display: flex;
  flex-direction: column;
  line-height: 1.2rem;
  justify-content: space-between;
}

.platform {
  background-color: var(--White);
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 7.5rem;
  line-height: 1.2rem;
}
.platform p {
  width: 90%;
  margin: auto;
}
.platform img {
  width: 15rem;
  padding: 0.62rem;
}
.schedule {
  background-color: var(--Yellow-500);
  padding: 0.625rem 0 0 0.625rem;
  row-gap: 0.7rem;
}
.schedule p {
  width: 80%;
}
.posting {
  background-color: var(--Purple-100);
  padding: 0.625rem 0.625rem 0 0.625rem;
  text-align: center;
}
.posting p {
  padding: 1.2rem 0;
}
.posting img {
  width: 95%;
  margin: auto;
}
.grow_followers {
  background-color: var(--Purple-500);
  color: var(--White);
  padding: 1rem 0.625rem 0 0.625rem;
  row-gap: 1rem;
  text-align: center;
}
.grow_followers img {
  width: 70%;
  margin: auto;
}
.grow_followers p {
  padding: 1rem 0;
  font-size: 1.5rem;
  line-height: 1.2rem;
}
.audience-growth {
  background-color: var(--White);
  padding: 1rem 0.625rem 1rem 0.625rem;
  row-gap: 0.8rem;
}
.audience-growth p {
  font-size: 1.8rem;
  font-weight: 500;
}
.create-post {
  background-color: var(--Yellow-100);
  padding: 1rem;
  row-gap: 1rem;
}

.create-post p,
.AI p {
  font-size: 1.4rem;
}
#wrd-spc {
  font-style: italic;
  color: var(--Purple-500);
}
.AI {
  background-color: var(--Yellow-500);
  padding: 1rem;
  row-gap: 1rem;
}

@media(min-width: 64rem) {
  .homepage {
    display: grid;
    column-gap: 1rem;
    grid-template-columns: repeat(4,1fr);
    grid-template-areas:
    "create-post social-media social-media posting "
    "create-post social-media social-media posting"
    "create-post platform schedule posting"
    "AI platform schedule posting"
    "AI audience-growth grow-followers grow-followers"
    ;
  }
  .social-media {
    grid-area: social-media;
  }
  #social-media {
    font-size: 2.4rem;
    line-height: 2.5rem;
  }
  .platform {
    grid-area: platform;
    height:100%;
    grid-template-rows: 0.5fr 1fr;
  }
  .platform p {
    width: 70%;
    font-size: 1.5rem;
    line-height: 1.5rem;
  }
  .schedule {
    grid-area: schedule;
    overflow: hidden;
    row-gap: 0;
    justify-content: center;
  }
  .schedule p {
    font-size: 1.8rem;
    line-height: 1.5rem;
    font-weight: 500;
    padding: 0.8rem 0.8rem 0 0.8rem;
  }
  .schedule img {
    padding: 0 0.8rem;
    position: relative;
    top: 2.9rem;
    width: 90%;
  }
  .posting {
    grid-area: posting;
    padding: 1.2rem;
  }
  .posting p {
    font-size: 1.6rem;
    text-align: left;
    line-height: 1.5rem;
    font-weight: 500;
  }
  .posting img {
    margin:0;
    height: 90%;
    width: 100%;
  }
  #posting-p {
    line-height: 1rem;
  }
  .grow_followers {
    grid-area: grow-followers;
    flex-direction: row;
    justify-content: center;
  }
  .grow_followers img{
    margin: 0;
    width: 50%;
    height: 90%;
  }
  .grow_followers p {
    font-size: 1.8rem;
    line-height: 2rem;
    font-weight: 400;
    text-align: left;
  }
  .audience-growth {
    grid-area: audience-growth;
    justify-content: space-evenly;
  }
  .audience-growth p {
    font-size: 3rem;
    line-height: 2rem;
    font-weight: 500;
  }
  .create-post {
    grid-area: create-post;
    justify-content: center;
  }
  .create-post p,
  .AI p {
    font-size: 2rem;
    line-height: 2rem;
    font-weight: 500;
  }
  .AI {
    grid-area: AI;
  }
  .AI img {
    width: 100%;
    height: 60%;
  }
}