@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");

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

body {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: hsl(234, 12%, 34%);
  height: 100vh;
  background-color: hsl(0, 0%, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.info-container p:first-of-type {
  font-size: 2.4rem;
  font-weight: 200;
}

.info-container p:nth-of-type(2) {
  max-width: 40rem;
  margin: 0 auto;
}

.info-container h1 {
  font-size: 2.4rem;
}

.card-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "first second-top third"
    "first second-bottom third";

  gap: 2.5rem;
}

.card {
  position: relative;
  width: 350px;
  height: 250px;
  padding: 2rem;
  border-radius: 0.3rem;
  border-bottom: none;
  border-left: none;
  border-right: none;
  box-shadow: 0 2px 10px hsl(212, 6%, 70%);
}

.card1 {
  border-top: 3px solid hsl(180, 62%, 55%);
  grid-area: first;
  margin-top: 50%;
}

.card2 {
  border-top: 3px solid hsl(0, 78%, 62%);
  grid-area: second-top;
}

.card3 {
  border-top: 3px solid hsl(34, 97%, 64%);
  grid-area: second-bottom;
}

.card4 {
  border-top: 3px solid hsl(212, 86%, 64%);
  grid-area: third;
  margin-top: 50%;
}

.card > img {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
}

@media (max-width: 1150px) {
  body {
    height: auto;
  }
  .container {
    margin-top: 5rem;
  }

  .card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .card {
    margin-top: 0;
    width: 90%;
    max-width: 350px;
  }
}
