:root {
  --radius: 6px;

  --purple: hsl(256, 67%, 59%);
  --purple-light: hsl(254, 88%, 90%);
  --yellow: hsl(39, 100%, 71%);
  --yellow-light: hsl(31, 66%, 93%);
  --white: white;
}

body {
  background-color: #eee;
  color: black;
  font-family: "DM sans", Arial, Helvetica, sans-serif;
  position: relative;
}

h2 {
  font-size: 2rem;
  margin-block-end: 10px;
}

.multiple,
.maintain,
.schedule {
  h2 {
    font-size: 1.2rem;
  }
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;

  padding-inline: 10px;
  padding-block: 20px;
}

img {
  max-width: 100%;
  display: block;
  margin-block: 10px;
}

.social {
  background-color: var(--purple);

  & img {
    max-width: 65%;
    margin-inline: auto;
  }
}

.multiple {
  background-color: var(--white);
}

.maintain {
  background-color: var(--yellow);

  & img {
    max-width: 65%;
    margin-bottom: -10px;
  }
}

.schedule {
  background-color: var(--purple-light);
}

.grow {
  background-color: var(--purple);
  display: flex;

  & img {
    max-width: 65%;
    margin-inline: auto;
  }
}

.faster {
  background-color: var(--white);

  & img {
    max-width: 65%;
  }
}

.create {
  background-color: var(--yellow-light);

  & img {
    max-width: 65%;
  }
}

.write {
  background-color: var(--yellow);

  & img {
    max-width: 65%;
  }
}

:is(.social, .multiple, .maintain, .schedule, .grow, .faster, .create, .write) {
  padding: 10px;
  border-radius: var(--radius);
}

.social,
.grow {
  color: var(--white);
}

:where(.center-txt) {
  text-align: center;
}

@media (width >600px) {
  main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 45%, 10%, 20%, 25%;
  }

  .create {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  .social {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
  }
  .schedule {
    grid-column: 4 / 5;
    grid-row: 1 / 4;
  }
  .write {
    grid-column: 1 / 2;
    grid-row: 3 / 5;
  }
  .multiple {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
  }
  .maintain {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
  }
  .faster {
    grid-column: 2 / 3;
    grid-row: 4 / 5;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .grow {
    grid-column: 3 / 5;
    grid-row: 4 / 5;

    & img {
      width: 50%;
    }

    h2 {
      margin-block: auto;
    }
  }
}
