img {
  max-width: 100%;
  height: auto;
  display: block; }

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; }

.container {
  max-width: 650px;
  margin: 0 auto;
  width: 88%; }

#main {
  background: #090b1a;
  color: white;
  padding: 5.4rem 0; }

.card {
  background: #1b1938;
  border-radius: 10px;
  display: flex;
  flex-direction: column; }

.background {
  position: relative;
  margin-bottom: 2.2rem;
  width: 100%;
  height: 100%; }
  .background::after {
    content: "";
    background: #aa5cdb;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 10px 10px 0 0;
    opacity: .66;
    filter: brightness(56%) contrast(138%); }

.hero-img-mobile {
  border-radius: 10px 10px 0 0;
  display: block; }

.hero-img-desktop {
  display: none; }

.main-content {
  padding: 0 1.2rem;
  text-align: center; }
  .main-content h1 {
    font-family: "Inter", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white; }
  .main-content p {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem; }

.text-color {
  color: #aa5cdb; }

.row {
  display: flex;
  flex-direction: column; }
  .row p {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-size: .8rem;
    font-family: "Inter", sans-serif; }

.col {
  display: flex;
  flex-direction: column; }

.stat-number {
  display: block;
  font-size: 1.6rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: white;
  text-transform: none; }

.attribution {
  font-size: 11px;
  text-align: center;
  color: white;
  margin-top: 2rem; }

.attribution a {
  color: #3e52a3; }

@media screen and (min-width: 500px) {
  .main-content {
    padding: 3rem 2.4rem; }
    .main-content h1 {
      font-size: 1.8rem;
      margin-bottom: 2rem; }
    .main-content p {
      margin-bottom: 2rem; }
  .row {
    gap: 2rem; }
    .row p {
      font-size: .9rem; }
  .stat-number {
    font-size: 1.8rem; } }

@media screen and (min-width: 1280px) {
  #main {
    padding: 12rem 0; }
  .container {
    max-width: 1140px;
    margin: 0 auto;
    width: 78%; }
  .card {
    flex-direction: row-reverse;
    gap: 2rem;
    height: 54vh;
    margin-bottom: 5rem; }
    .card .container {
      width: 50%; }
  .img-container {
    height: 100%;
    width: 50%; }
  .background {
    margin-bottom: 0; }
    .background::after {
      border-radius: 0 10px 10px 0; }
  .hero-img-mobile {
    display: none; }
  .hero-img-desktop {
    background: url("../images/image-header-desktop.jpg") center center/cover;
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 0 10px 10px 0; }
  .main-content {
    text-align: start;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 5rem 5.2rem;
    justify-content: space-between; }
    .main-content h1 {
      font-size: 2.2rem;
      margin-bottom: 0; }
  .row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-right: 2rem;
    gap: .5rem; }
    .row p {
      margin-bottom: 0;
      margin-top: 1rem;
      font-size: .8rem;
      font-family: "Lexend Deca", sans-serif; }
  .stat-number {
    font-size: 1.5rem; } }
