/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 10 version
*/

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
main, footer, section, picture {
  display: block; /* for older browsers */
}
body {
  background-color: hsl(233, 47%, 7%); /*very dark blue*/
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
}
.container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.card {
  background-color: hsl(244, 38%, 16%); /*dark desaturated blue*/
  color: hsla(0, 0%, 100%, 0.75); /*slightly transparent white*/
  border-radius: 10px;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.card-img {
  background-color: hsl(277, 100%, 35%);
}
.card-img img {
  max-width: 100%;
  display: block;
  opacity: 0.5;
}
.card-content h1 {
  color: hsl(0, 0%, 100%);
  font-size: 1.8em;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.card-content p {
  line-height: 1.7;
}
.card-content strong {
  color: hsl(277, 64%, 61%);
}
.card-stat {
  list-style-type: none;
  line-height: 1.6em;
}
.card-stat .stat-head {
  color: hsl(0, 0%, 100%);
  font-size: 1.6em;
  font-weight: bold;
}
.card-stat .stat-sub {
  color: hsla(0, 0%, 100%, 0.6);
  display: block;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.08em;
}

@media only screen and (width <= 768px) {
  .card {
    max-width: 654px;
    -ms-flex-preferred-size: 87%;
        flex-basis: 87%;
    margin-top: 5.9em;
    margin-bottom: 5.9em;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .card-img {
    margin-bottom: 2.3em;
  }
 .card-content {
    text-align: center;
    margin: 1em 2.3em;
  }
  .card-content h1 {
    margin-bottom: 1em;
  }
  .card-content p {
    margin-bottom: 2em;
  }
  .card-stat {
    margin-bottom: 2em;
  }
  .stat-sub {
    margin-bottom: 1.5em;
  }
}

@media only screen and (width > 768px) {
  .container {
    height: 100vh;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .card {
    -ms-flex-preferred-size: 95%;
        flex-basis: 95%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .card-img {
    width: 50%;
  }
  .card-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-line-pack: distribute;
        align-content: space-around;
    text-align: left;
    width: 40%;
    margin: 2em;
  }
  .card-stat {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 100%;
    margin-right: 2em;
  }
}

 @media only screen and (width >= 1024px) {
  .card {
    max-width: 1110px;
  }
  .card-img {
    width: auto;
  }
  .card-content {
    margin: 3rem 5rem;
  }
  .card-content h1 {
   font-size: 2.4rem;
   letter-spacing: 0;
  }
 }
