@import url('https://fonts.googleapis.com/css2?family=Poppins: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;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

div {
  width: 100%;
}
  
main {
  background: hsl(0,0%,100%);
  text-align: center;
  height: 100vh;
  align-content: center;
  padding: 40px 24px;
  max-width: 1200px;
  margin: auto;
}

main header {
  margin: 0 auto 20px;
  padding: 0 8px;
  max-width: 500px;
}

main header h2 {
  margin-bottom: 6px;
}

main header .first-heading {
  font-weight: 200;
  font-size: 1.7rem;
  color: hsl(212,6%,44%);
}

main header .second-heading {
  font-weight: 600;
  font-size: 1.7rem;
  color: hsl(234,12%,34%);
  margin-bottom: 16px;
}

main header p {
  font-weight: 400;
  font-size: 0.95rem;
  color: hsl(212,6%,44%);
}

main .cards {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
}

main .cards .card {
  box-shadow: 0px 6px 30px -17px hsl(212,6%,44%);
  text-align: left;
  position: relative;
  padding: 30px;
  margin: 15px auto;
  border-radius: 6px;
}

main .cards #flex-item2 {
  display: flex;
  flex-direction: column;
}

main .cards .card h3 {
  color: hsl(234,12%,34%);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

main .cards .card p {
  color: hsl(212,6%,44%);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 100px;
}

main .cards .card img {
  position: absolute;
  width: 60px;
  bottom: 40px;
  right: 30px;
}

main .cards #card1 {
  border-top: 4px solid hsl(180,62%,55%);
}

main .cards #card2 {
  border-top: 4px solid hsl(0,78%,62%);
}

main .cards #card3 {
  border-top: 4px solid hsl(34,97%,64%);
}

main .cards #card4 {
  border-top: 4px solid hsl(212,86%,65%);
}





@media(min-width:740px){
  main .cards {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }
  
  main .cards .flex-item {
    width: 30%;
  }
  
}