@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap");

:root {
  --bg-main: hsl(233, 47%, 7%);
  --bg-card: hsl(244, 38%, 16%);
  --accent: hsl(277, 64%, 61%);
  font-size: 15px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
}

* {
  margin: 0;
  padding: 0;
}

main {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  font-family: "Inter", sans-serif;
  color: white;
}

.container:first-of-type {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

span {
  color: var(--accent);
}

.body {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 2rem;
  color: hsla(0, 0%, 100%, 0.6);
}

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

h2 {
  font-size: 2rem;
}

.statName {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: hsla(0, 0%, 100%, 0.6);
}

.container:last-of-type {
  font-size: 0;
  background: var(--accent);
}

.container:last-of-type img {
  mix-blend-mode: multiply;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;

}

@media (min-width: 800px) {
  main {
    margin-top: 6rem;
    flex-direction: row;
  }

  .container {
    width: 50%;
  }

  .container:first-of-type {
    text-align: left;
    padding: 4rem;
  }

  .body {
    margin-bottom: 4rem;
  }

  .statsContainer {
    flex-direction: row;
    justify-content: space-between;
  }

  .container:last-of-type {
    max-height: fit-content;
  }
}
