@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* 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;
}

:root {
  --veryDarkBlue: hsl(233, 47%, 7%);
  --darkDesaturatedBlue: hsl(244, 38%, 16%);
  --softViolet: hsl(277, 64%, 61%);
  --white: hsl(0, 0%, 100%);
  --slightlyTransparentWhite: hsla(0, 0%, 100%, 0.75);
  --slightlyTransparentWhite2: hsla(0, 0%, 100%, 0.6);
}
html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  background-color: var(--veryDarkBlue);
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  background-color: var(--darkDesaturatedBlue);
  margin: 2rem;
  border-radius: 0.8rem;
  overflow: hidden;
  max-width: 1200px;
}

.main-heading {
  color: var(--white);
  font-size: 3rem;
}

span {
  color: var(--softViolet);
}
.main-paragraph {
  color: var(--slightlyTransparentWhite);
  font-size: 1.5rem;
}
.stats-content {
  margin-top: 4rem;
}
.stat-headings {
  color: var(--white);
  font-size: 2.2rem;
}
.stat {
  margin-bottom: 3rem;
}
.stat p {
  color: var(--slightlyTransparentWhite);
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}
.picture-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-content {
  text-align: center;
  padding: 2rem;
}
.picture-content {
  position: relative;
  overflow: hidden;
}
.picture-content .overlay {
  position: absolute;
  inset: 0;
  background-color: hsl(277, 64%, 61%);
  opacity: 0.5;
  pointer-events: none;
}

@media only screen and (min-width: 768px) {
  .wrapper {
    display: flex;
  }
  .picture-content {
    order: 2;
    width: 50%;
  }
  .text-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
  }
  .stats-content {
    margin: 0;
    display: flex;
    justify-content: flex-start;
    gap: 4rem;

    /* border: 2px solid red; */
  }
  .stat {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-heading {
    font-size: 2.9rem;
    margin-bottom: 2rem;
  }
  .main-paragraph {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }
}
@media only screen and (min-width: 992px) {
  .main-heading {
    font-size: 3.7rem;
  }
  .main-paragraph {
    font-size: 1.7rem;
  }
  .text-content {
    display: flex;
    text-align: start;
    padding: 4rem;
  }
  .stats-content {
    width: 100%;
    gap: 8rem;
  }
}

@media only screen and (min-width: 992px) {
  .main-heading {
    font-size: 4.5rem;
  }
  .main-paragraph {
    font-size: 2rem;
  }
  .stat-headings {
    font-size: 2.7rem;
  }
  .stat p {
    font-size: 1.6rem;
  }
}
