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

.main{
    background-color: hsl(0, 0%, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container{
    width: 100%;
    max-width: 23.4375em;
    display: flex;
    flex-direction: column;
    background-color: hsl(0, 0%, 100%);
    padding: 1.5em;

}

.header h1{
    font-size: 32px;
    font-weight: 200;
    color: hsl(212, 6%, 44%);
    font-family: 'Poppins Extra Light', sans-serif;
    line-height: 140%;
    letter-spacing: 0.25px;
    margin-bottom: -0.625em;
}

.header h2{
    font-size: 32px;
    font-weight: 600;
    font-family: 'Poppins Semibold', sans-serif;
    line-height: 140%;
    letter-spacing: 0.25px;
    color: hsl(234, 12%, 34%);
}

.header p{
    font-family: 'Poppins Regular', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 140%;
    color: hsl(234, 12%, 34%);
    text-align: center;
    width: 100%;
    margin-bottom: 3.0em;
}

.supervisor{
    position: relative;
    padding: 1.0em 2.5em 5em 2.0em;
    box-shadow: 0 1.0em 1.5em 0 rgba(131, 166, 210, 0.3);
    margin-bottom: 2.5em;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
    }

.supervisor::before{
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25em;
    background-color: hsl(180, 62%, 55%);
    border-top-left-radius: 1.0em;
    border-top-right-radius: 1.0em;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.supervisor-title{
    font-size: 20px;
    font-family: 'Poppins Semibold', sans-serif;
    font-weight: 600;
    color: hsl(234, 12%, 34%);
    line-height: 135%;
    margin-bottom: -0.5em;
}

.supervisor-description{
    font-family: 'Poppins Regular', sans-serif;
    font-size: 14px;
    line-height: 160%;
    color: hsl(212, 6%, 44%);
    font-weight: 200;   
    letter-spacing: 0.5px;
    margin-bottom: 5.0em;
}

.supervisor svg {
    position: absolute;
    right: 2.0em;
    bottom: 1.5em;
    margin-bottom: 1.5em;
}

.team-builder{
    position: relative;
    padding: 1.0em 2.5em 5em 2.0em;
    box-shadow: 0 1.0em 1.5em 0 rgba(131, 166, 210, 0.3);
    margin-bottom: 2.5em;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
}

.team-builder::before{
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25em;
    background-color: hsl(0, 78%, 62%);
    border-top-left-radius: 1.0em;
    border-top-right-radius: 1.0em;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.team-builder-title{
    font-size: 20px;
    font-family: 'Poppins Semibold', sans-serif;
    font-weight: 600;
    color: hsl(234, 12%, 34%);
    line-height: 135%;
    margin-bottom: -0.5em;
}

.team-builder-description{
    font-family: 'Poppins Regular', sans-serif;
    font-size: 14px;
    line-height: 160%;
    color: hsl(212, 6%, 44%);
    font-weight: 200;   
    letter-spacing: 0.5px;
    margin-bottom: 5.0em;
}

.team-builder svg{
    position: absolute;
    right: 2.0em;
    bottom: 1.5em;
    margin-bottom: 1.5em;
}

.karma{
    position: relative;
    padding: 1.0em 2.5em 5em 2.0em;
    box-shadow: 0 1.0em 1.5em 0 rgba(131, 166, 210, 0.3);
    margin-bottom: 2.5em;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
}

.karma::before{
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25em;
    background-color: hsl(34, 97%, 64%);
    border-top-left-radius: 1.0em;
    border-top-right-radius: 1.0em;
}

.karma-title{
    font-size: 20px;
    font-family: 'Poppins Semibold', sans-serif;
    font-weight: 600;
    color: hsl(234, 12%, 34%);
    line-height: 135%;
    margin-bottom: -0.5em;
}

.karma-description{
    font-family: 'Poppins Regular', sans-serif;
    font-size: 14px;
    line-height: 160%;
    color: hsl(212, 6%, 44%);
    font-weight: 200;   
    letter-spacing: 0.5px;
    margin-bottom: 5.0em;
}

.karma svg{
    position: absolute;
    right: 2.0em;
    bottom: 1.5em;
    margin-bottom: 1.5em;
}

.calculator{
    position: relative;
    padding: 1.0em 2.5em 5em 2.0em;
    box-shadow: 0 1.0em 1.5em 0 rgba(131, 166, 210, 0.3);
    margin-bottom: 2.5em;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
}

.calculator::before{
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25em;
    background-color: hsl(212, 86%, 64%);
    border-top-left-radius: 1.0em;
    border-top-right-radius: 1.0em;
}

.calculator-title{
    font-size: 20px;
    font-family: 'Poppins Semibold', sans-serif;
    font-weight: 600;
    color: hsl(234, 12%, 34%);
    line-height: 135%;
    margin-bottom: -0.5em;
}

.calculator-description{
    font-family: 'Poppins Regular', sans-serif;
    font-size: 14px;
    line-height: 160%;
    color: hsl(212, 6%, 44%);
    font-weight: 200;   
    letter-spacing: 0.5px;
    margin-bottom: 5.0em;
}

.calculator svg{
    position: absolute;
    right: 2.0em;
    bottom: 1.5em;
    margin-bottom: 1.5em;
}



@media (min-width: 48em) {
  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2em;
    width: 100%;
    align-items: center;
    margin-left: 0;
    margin-right: auto;
    max-width: 300px;
  }

  .container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1em; /* optional for side spacing */
}

  .header{
    text-align: center;
    margin-bottom: 2em;
    max-width: 540px;
    margin-right: auto;
    margin-left: 20em;
    margin-top: 5em;
  }

  .header p{
    font-size: 15px;
  }
  .supervisor {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* Span both rows */
    align-self: center; /* Center vertically */
    max-width: 300px;
  }
  .team-builder {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    max-width: 300px;
  }
  .karma {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    max-width: 30px;
  }
  .calculator {
    grid-column: 3 / 4;
    grid-row: 1 / 3; /* Span both rows */
    align-self: center; /* Center vertically */
    max-width: 300px;
  }

  .supervisor, .team-builder, .karma, .calculator {
  min-width: 300px;
}

}