@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");
/* font-family: "Inter", sans-serif; */
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap");
/* font-family: "Lexend Deca", sans-serif; */

:root {
  --very-dark-blue: hsl(233, 47%, 7%);
  --dark-desaturated-blue: hsl(244, 38%, 16%);
  --soft-violet: hsl(277, 64%, 61%);
  --white: hsl(0, 0%, 100%);
  --slightly-transparent-white1: hsla(0, 0%, 100%, 0.75);
  --slightly-transparent-white2: hsla(0, 0%, 100%, 0.6);
}

* {
  box-sizing: border-box;
}

img {
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif; 
  background-color: var(--very-dark-blue);
  font-size: 15px;
}

.container {
  background-color: var(--dark-desaturated-blue);
  display: flex;
  flex-direction: column;
  margin: 100px;
  border-radius: 15px;
}

.img {
  position: relative;
  border-radius: 15px 15px 0 0;
}

/* Violet tint for the image */
.img:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--soft-violet);
  z-index: 1;
  opacity: 0.5;
  border-radius: 15px 15px 0 0;
}

.img-mobile {
  display: block;
}

.img-desktop {
  display: none;
}

.info {
  display: flex;
  flex-direction: column;
}

h1 {
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.accent {
  color: var(--soft-violet);
}

p {
  color: var(--slightly-transparent-white1);
  font-weight: 400;
  text-align: center;
}

.stats-container {
  padding-bottom: 30px;
}

.stat {
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.stat-heading {
  color: var(--slightly-transparent-white2);
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

/* For larger screens */
@media only screen and (min-width: 992px) {
  .img-mobile {
    display: none;
  }

  .img-desktop {
    display: block;
  }

  .img {
    border-radius: 0 15px 15px 0;
    height: 100%;
    width: 100%;
  }

  .img::before {
    border-radius: 0 15px 15px 0;
  }

  .container {
    flex-direction: row-reverse;
    margin: 100px 80px;
  }

  .info {
    justify-content: space-around;
  }

  .stats-container {
    display: flex;
    justify-content: space-around;
  }

  h1 {
    text-align: left;
    padding: 0 35px;
  }

  p {
    text-align: left;
    padding: 0 35px;
  }

  .stat {
    text-align: left;
  }
}

@media only screen and (min-width: 1200px) {
  h1 {
    padding: 0 50px;
  }

  p {
    padding: 0 50px;
  }
}

/* Attribution */
.attribution { font-size: 11px; text-align: center; color: var(--white);}
.attribution a { color: hsl(228, 45%, 44%); }