@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;
  box-sizing: border-box;
}

:root {
  --Red: hsl(0, 78%, 62%);
  --Cyan: hsl(180, 62%, 55%);
  --Orange: hsl(34, 97%, 64%);
  --Blue: hsl(212, 86%, 64%);

  --Grey-500: hsl(234, 12%, 34%);
  --Grey-400: hsl(212, 6%, 44%);
  --White: hsl(0, 0%, 100%);

  --size-0: 0.4rem;
  --size-1: 0.8rem;
  --size-2: 0.938rem;
  --size-3: 1.2rem;
  --size-4: 1.6rem;
  --size-5: 2rem;
  --size-6: 2.4rem;
  --size-7: 4rem;
  --size-8: 4.2rem;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--White);
  width: 100dvw;
  height: 100dvh;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/*Main info area*/
.container-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: var(--size-5) var(--size-6);
  margin-top: var(--size-8);
}

.content-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
}

.content-info p:first-child {
  color: var(--Grey-400);
  font-size: var(--size-5);
  font-weight: 300;
}

.content-info h1 {
  color: var(--Grey-500);
  font-size: var(--size-5);
  font-weight: 700;
  margin-bottom: var(--size-2);
}

.content-info p:last-child {
  display: inline-block;
  width: 540px;
  color: var(--Grey-400);
  font-size: var(--size-2);
  font-weight: 500;
  text-align: center;
}

/*Card area*/

.container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--size-6);
  margin: var(--size-6) 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
}

.content-supervisor {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  justify-self: end;
}

.content-calculator {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  justify-self: start;
}

.content-team-builder {
  justify-self: center;
}

.content-karma {
  justify-self: center;
}
.container-grid .card {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
  box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  border-style: solid var(--Grey-400);
  height: 250px;
  padding: var(--size-4) var(--size-4);
  max-width: 20.875rem;
  min-width: 15rem;
}

.card p {
  color: var(--Grey-400);
  font-size: var(--size-1);
  font-weight: 500;
  margin-bottom: var(--size-1);
}

.card h2 {
  color: var(--Grey-500);
  font-size: var(--size-3);
  font-weight: 700;
  margin-bottom: var(--size-1);
}

.card img {
  align-self: flex-end;
  margin-top: 1.5rem;
}

.content-supervisor .card {
  border-top: 0.4rem solid var(--Cyan);
}

.content-calculator .card {
  border-top: 0.4rem solid var(--Blue);
}
.content-karma .card {
  border-top: 0.4rem solid var(--Orange);
}
.content-team-builder .card {
  border-top: 0.4rem solid var(--Red);
}

@media (max-width: 1200px) {
  .container-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(3, 1fr);
    gap: var(--size-5);
    justify-content: center;
    padding: var(--spacing-400);
  }

  .content-supervisor {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    justify-self: center;
  }

  .content-calculator {
    grid-column: 1/ 3;
    grid-row: 3 / 4;
    justify-self: center;
  }

  .content-team-builder {
    justify-self: center;
  }

  .content-karma {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .container-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .content-supervisor {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: center;
  }

  .content-calculator {
    grid-column: 1/ 2;
    grid-row: 2 / 3;
    justify-self: center;
  }
}
