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

:root {
  /* Main BG */
  --Navy-950: hsl(233, 47%, 7%);
  /* Card BG */
  --Blue-950: hsl(244, 37%, 16%);
  /* Accent */
  --Purple-500: hsl(277, 64%, 61%);

  /* Main Heading, Stats */
  --White-head: hsl(0, 0%, 100%);
  /* Main Paragraph */
  --White-para: hsla(0, 0%, 100%, 0.75);
  /* stat heading */
  --White-subhead: hsla(0, 0%, 100%, 0.6);
}

body {
  background-color: var(--Navy-950);
}

h2,
p.amount {
  color: var(--White-head);
}

p {
  color: var(--White-para);
}

p.label {
  color: var(--White-subhead);
}

.purple {
  color: var(--Purple-500);
}

.text-preset-2 {
  /* Text Preset 2 - Inter Bold - 28px - 125% Line Height - 0px Line Spacing */
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  line-height: 125%;
}

@media only screen and (min-width: 48rem) {
  .text-preset-2 {
    font-size: 36px;
  }
}

.text-preset-3 {
  /* Text Preset 3 - Inter Bold - 24px - 120% Line Height - 0px Line Spacing */
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
}

.text-preset-4 {
  /* Text Preset 4 - Inter Regular - 15px - 165% Line Height - 0px Line Spacing */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 165%;
}

.text-preset-5 {
  /* Text Preset 5 - Lexend Deca Regular - 12px - 200% Line Height - 1px Line Spacing */
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 200%;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* FONTS */
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/inter-v19-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/inter-v19-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lexend-deca-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/lexend-deca-v24-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Stats Preview Card */
#stats-preview-card {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5.5rem 1.5rem;

  .container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-width: 564px;
  }

  .image-container {
    width: 100%;
    height: 240px;
    position: relative;
  }

  .image {
    width: 100%;
    height: 100%;
    background: url("./assets/images/image-header-mobile.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.75;
    mix-blend-mode: multiply;
  }

  .overlay {
    border-radius: 0.5rem 0.5rem 0 0;
    width: 100%;
    height: 100%;
    background-color: var(--Purple-500);
    position: absolute;
    top: 0;
  }

  .info-card {
    text-align: center;
    max-width: 564px;
    padding: 1.5rem 2rem;
    background-color: var(--Blue-950);
    border-radius: 0 0 0.5rem 0.5rem;
  }

  .text {
    margin-bottom: 2.5rem;
  }

  h2 {
    margin-bottom: 0.5rem;
  }

  .data {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

@media only screen and (min-width: 48rem) {
  #stats-preview-card {
    padding: 5.75rem 6.375rem;
    .container {
      max-width: 564px;
    }
    .image-container {
      height: 442px;
    }

    .info-card {
      padding: 4rem 5rem;
      text-align: start;
    }
    .text {
      margin-bottom: 4.5rem;
    }
    h2 {
      margin-bottom: 1.5rem;
    }
    .text-preset-4 {
      max-width: 374px;
    }
    .data {
      flex-direction: row;
      gap: 4rem;
    }
  }
}

@media only screen and (min-width: 87rem) {
  #stats-preview-card {
    padding: 11.1875rem 9.75rem;
    .container {
      flex-direction: row-reverse;
      max-width: 1128px;
    }

    .image-container {
      width: 50%;
    }
    .info-card {
      border-radius: 0.5rem 0 0 0.5rem;
      width: 50%;
    }

    .overlay {
      border-radius: 0 0.5rem 0.5rem 0;
    }
  }
}
