/* reset css */

/* 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,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

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

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  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;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* styles.css */
@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");

:root {
  --Red: hsl(0, 78%, 62%);
  --Cyan: hsl(180, 62%, 55%);
  --Orange: hsl(34, 97%, 64%);
  --Blue: hsl(212, 86%, 64%);
  --Grey500: hsl(234, 12%, 34%);
  --Grey400: hsl(212, 6%, 44%);
  --White: hsl(0, 0%, 100%);
}

body {
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  text-align: center;
  font-size: 1.5rem;
  margin: 20px 0;
  line-height: 1.3;
}

main {
  padding: 20px 0;
}

h1 span {
  display: block;
  font-weight: 100;
}

/* .body_copy {
  padding: 0 20px;
  text-align: center;
  font-size: 0.938rem;
  margin: 10px 0;
} */

.body_copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.body_copy p {
  margin-top: 0;
  text-align: center;
  max-width: 40ch;
}

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

.image {
  display: block;
  display: flex;
  justify-content: end;
  padding-top: 10px;
  padding-bottom: 30px;
}

.card {
  max-width: 20rem;
  padding: 20px 30px;
  margin: 15px;
  background-color: var(--White);
  box-shadow: 0px 1px 20px var(--Grey400);
  border-radius: 5px;
}

.green {
  border-top: 5px solid var(--Cyan);
}

.red {
  border-top: 5px solid var(--Red);
}

.yellow {
  border-top: 5px solid var(--Orange);
}

.blue {
  border-top: 5px solid var(--Blue);
}

.card p {
  font-size: 0.938rem;
  margin: 10px 0;
}

h3 {
  font-size: 1.3rem;
}

@media (min-width: 50rem) {
  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 1fr 1fr 1fr 1fr;
    margin: 30px 0;
  }
  .green,
  .blue {
    grid-column-start: 1;

    grid-row-start: 1;
    grid-row-end: 3;
  }

  .red,
  .yellow {
    grid-column-start: 2;
    grid-column-end: 3;
  }

  .blue {
    grid-column-start: 3;
  }

  .body_copy p {
    max-width: 60ch;
  }
}
