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

/* CSS Resets */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, p {
  margin-block-end: 0;
}

/* Set core body defaults */
body {
  min-height: 100svh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2, h3 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}


/* Variables */

:root {
  --red: hsl(0, 78%, 62%);
  --cyan: hsl(180, 62%, 55%);
  --orange: hsl(34, 97%, 64%);
  --blue: hsl(212, 86%, 64%);
  --dark-blue: hsl(234, 12%, 34%);
  --gray-blue: hsl(229, 6%, 66%);
  --light-gray: hsl(0, 0%, 98%);
  --font-size-normal: 0.9375rem;
  --font-family-poppins: 'Poppins', sans-serif;
  --font-weight-light: 200;
  --font-weight-normal: 400;
  --font-weight-bold: 600;
}

/* Base Styles */

body {
  font-family: var(--font-family-poppins);
  font-size: var(--font-size-normal);
  font-weight: var(--font-weight-normal);
  color: var(--dark-blue);
}

main {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  max-width: 32rem;
}

h1 {
  font-weight: var(--font-weight-light);
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.5;
}

h1 span {
  font-weight: var(--font-weight-bold);
}

.description {
  text-align: center;
  color: var(--gray-blue);
  margin-top: 1rem;
}

.card-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 4rem;
}

.card {
    background-color: white;
    padding: 1.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-top: 0.25rem solid;
    max-width: 22rem;
}

.card h2 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
}

.card p {
    margin-top: 0.5rem;
    color: var(--gray-blue);
    font-size: 0.8281rem;
}

.card-icon {
    margin-top: 2.5rem;
    margin-left: auto;
}

#supervisor-card {
    border-color: var(--cyan);
}


#team-builder-card {
    border-color: var(--red);
}

#karma-card {
    border-color: var(--orange);
}

#calculator-card {
    border-color: var(--blue);
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    place-items: center;
  }

  #supervisor-card {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  #team-builder-card {
    grid-column: 2;
    grid-row: 1;
  }

  #karma-card {
    grid-column: 2;
    grid-row: 2;
  }

  #calculator-card {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}