/* Universal Selector to remove default browser settings */
* {
  padding: 0rem;
  margin: 0rem;
  box-sizing: border-box;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-VariableFont_opsz_wght.ttf");
  font-weight: 400 700;
}

@font-face {
  font-family: "Lexend";
  src: url("./assets/fonts/LexendDeca-VariableFont_wght.ttf");
  font-weight: 400;
}

/* CSS Variables */
:root {
  /* Primary */

  --main-background: hsl(233, 47%, 7%);
  --card-background: hsl(244, 38%, 16%);
  --accent: hsl(277, 64%, 61%);

  /* Neutral */

  --main-heading-stats: hsl(0, 0%, 100%);
  --main-paragraph: hsla(0, 0%, 100%, 0.75);
  --stat-headings: hsla(0, 0%, 100%, 0.6);
}

html {
  font-size: 15px;
}

body {
  font-family: "Lexend";
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--main-background);
}

section {
  display: inherit;
  justify-content: center;
  width: 1140px;
  height: 446px;
}

.content {
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 4.5rem;
  background-color: var(--card-background);
  padding: 5rem 7rem 5rem 5rem;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.stats {
  display: flex;
  justify-content: space-between;
  padding-right: 4.5rem;
}

.content h1,
.stats .category h2 {
  color: var(--main-heading-stats);
  font-weight: 700;
}

.content h1 {
  font-family: "Inter";
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
}

.content h1 span {
  color: var(--accent);
  font-family: "Inter";
}

.content p {
  color: var(--main-paragraph);
  line-height: 1.6;
  padding-right: 4rem;
}

.stats .category h2 {
  padding-bottom: 0.5rem;
  font-weight: 400;
}

.stats .category h3 {
  color: var(--stat-headings);
  font-family: "Inter";
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.img-container {
  background-color: var(--accent);
}

.img-container img {
  opacity: 0.5;
}

.img-container img,
.img-container {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Extra small devices (phones, 600px and down) */
/* Small devices (portrait tablets and large phones, 600px and up) */
/* Medium devices (landscape tablets, 768px and up) */
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 1199px) {
  main {
    width: 100vw;
    height: 956px;
  }

  picture img {
    width: 100%;
    height: 100%;
  }

  .img-container img,
  .img-container {
    height: 242px;
    border-bottom-right-radius: 0;
    border-top-left-radius: 8px;
  }

  section {
    flex-direction: column-reverse;
    width: 100%;
    height: auto;
    margin: 0 1.5rem;
  }

  .content {
    width: 100%;
    padding: 0;
    align-items: center;
    gap: 3rem;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 8px;
  }

  .text {
    text-align: center;
    padding: 3rem 2rem 0 3rem;
  }

  .text h1 {
    font-size: 2rem;
    line-height: 1;
  }

  .text p {
    padding: 0.2rem 0 0 0;
    font-size: 1rem;
  }

  .stats {
    flex-direction: column;
    padding: 0;
  }

  .stats .category {
    text-align: center;
    padding-bottom: 1.5rem;
  }
}

@media only screen and (min-width: 600px) and (max-width: 1199px) {
  main {
    height: auto;
    padding: 4rem 0;
  }
}
