@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: hsl(229, 6%, 66%);
  height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: hsl(0, 0%, 98%);
}

.container {
  max-width: 120rem;
}

.section-primary {
  padding: 2.4rem 9.6rem;
  margin-top: 3.2rem;

  display: flex;
  flex-direction: column;
}

.heading-primary {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.3;
  width: 100%;
  text-align: center;
  margin-bottom: 1.6rem;
}

.sub-heading {
  display: block;
  width: 100%;
  font-weight: 600;
  color: hsl(234, 12%, 34%);
  letter-spacing: 0.025rem;
}

.info {
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-align: center;
  align-self: center;
  width: 60%;
}

.section-feature {
  padding: 2.4rem 9.6rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  justify-content: center;
}

#top,
#bottom {
  grid-column: 2;
}

#right {
  grid-column: 3;
  grid-row: 2/3;
  grid-column: 3/4;
  transform: translateY(-50%);
}

#left {
  grid-column: 1;
  grid-row: 2/3;
  grid-column: 1/2;
  transform: translateY(-50%);
}

.feature {
  border-radius: 3px;
  padding: 2.4rem;
  overflow: hidden;
  box-shadow: 4px 2px 8px 0px hsl(229deg 6% 66%);
}

.feature-title {
  color: hsl(234, 12%, 34%);
}

#top {
  border-top: 3px solid hsl(0, 78%, 62%);
}

#right {
  border-top: 3px solid hsl(212, 86%, 64%);
}

#bottom {
  border-top: 3px solid hsl(34, 97%, 64%);
}

#left {
  border-top: 3px solid hsl(180, 62%, 55%);
}

.feature-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.feature-info {
  line-height: 1.4;
  margin-bottom: 2.4rem;
}

.icon-container {
  display: flex;
  justify-content: flex-end;
}

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

/* RESPONSIVE DESIGN */
/* Screen size: 608px */
@media (max-width: 38em) {
  .section-primary {
    padding: 2.4rem;
  }

  .heading-primary {
    font-size: 2rem;
  }

  .section-feature {
    padding: 2.4rem;

    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 2.4rem;
  }

  .feature-title {
    font-size: 1.8rem;
  }

  #left {
    grid-row: 1;
    transform: none;
    grid-column: 1/3;
  }

  #top {
    grid-row: 2;
  }

  #bottom {
    grid-row: 3;
  }

  #right {
    grid-row: 4;
    grid-column: 1/3;
    transform: none;
  }

  .info {
    width: 100%;
  }
}
