* {
  margin: 0;
  padding: 0;
}

body {
  background-color: hsl(233, 47%, 7%);
  font-family: "Lexend Deca", sans-serif;
}

img {
  border-radius: 0 5px 5px 0;
}

/* class styling */

.main-par {
  color: hsla(0, 0%, 100%, 0.75);
  margin-top: 1rem;
  width: 80%;
}

.heading,
.stats {
  color: hsl(0, 0%, 100%);
  margin-top: 2rem;
}

.heading,
.main-par {
  margin-left: 2rem;
}
.titleEmphasis {
  color: hsl(277, 64%, 61%);
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.stat-head {
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 1rem;
}

.heading {
  width: 80%;
}

.container {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  width: 100vw;
}
.text {
  width: 25%;
  background-color: hsl(244, 38%, 16%);
  height: 31.188rem;
  max-height: 446px;
  border-radius: 5px 0 0 5px;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: center;
  position: relative;
  bottom: 0.2%;
  min-width: 27.656rem;
}

.fullStats {
  display: flex;
  text-align: center;
  margin: 2rem 2rem 2rem 2rem;
}

.mobile-image {
  display: none;
}

.cover {
  position: relative;
}

.cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 99.2%;
  background: linear-gradient(rgba(170, 92, 219, 0.5), rgba(170, 92, 219, 0.5));
  opacity: 0.75;
  border-radius: 0 5px 5px 0;
}

.stats {
  display: flex;
  flex-direction: column;
  margin: 0 2rem 0 0;
  text-transform: uppercase;
}

.attribution {
  font-size: 11px;
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  color: hsla(0, 0%, 100%, 0.6);
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

/* Media queries */

@media screen and (max-width: 940px) {
  .container {
    flex-direction: column-reverse;
    margin: 0 0 2rem 0;
  }

  .text {
    height: 60vh;
    max-height: none;
    width: 24.82rem;
    border-radius: 0 0 5px 5px;
    text-align: center;
    min-width: 0;
  }

  .main-par {
    width: 75%;
  }

  .desktop-image {
    display: none;
  }
  .mobile-image {
    display: block;
    width: 24.82rem;
    border-radius: 5px 5px 0px 0;
  }

  .cover::after {
    width: 24.82rem;
    height: 100%;
    border-radius: 5px 5px 0px 0;
  }

  .fullStats {
    flex-direction: column;
    padding: 1rem 2rem 2rem 2rem;
  }

  .stats {
    margin: 0rem 2rem 2rem 2rem;
    font-size: 2rem;
  }
}

@media screen and (max-width: 420px) {
  .text {
    height: 54vh;
    position: relative;
    bottom: 3.2%;
    width: 15.5rem;
    min-width: 0;
  }

  .mobile-image {
    width: 15.5rem;
    height: 90%;
  }

  .cover::after {
    width: 15.5rem;
    height: 90%;
  }
  .heading {
    font-size: 1rem;
    width: 68%;
  }

  .heading,
  .main-par {
    margin: 1rem 0 0 0;
  }

  .main-para {
    font-size: 0.8rem;
    width: 91%;
  }

  .mobile-image,
  .cover::after,
  .text {
    margin-top: 5rem;
  }
  .stats {
    font-size: 1rem;
    margin: 0 0 1rem 0;
  }
  .stat-head {
    font-size: 0.8rem;
  }

  .fullStats {
    margin: 2rem 2rem 2rem 2rem;
  }
}

@media screen and (max-width: 420px) {
  .container {
    position: relative;
    bottom: 2rem;
  }

  .fullStats {
    margin: 0 2rem 2rem 2rem;
  }
}

@media screen and (max-width: 375px) {
  .heading {
    font-size: 1rem;
  }

  .main-para {
    font-size: 0.65rem;
  }

  .text {
    bottom: 2rem;
    font-size: 0.75rem;
  }

  .stats {
    font-size: 0.8rem;
    margin: 0rem 2rem 0.5rem 2rem;
  }
  .stat-head {
    font-size: 0.65rem;
  }

  .fullStats {
    margin: 0 2rem 0 2rem;
    text-transform: uppercase;
  }

  .attribution {
    font-size: 0.65rem;
    width: 80%;
    line-height: 1rem;
    letter-spacing: 0.05rem;
    left: 10%;
    bottom: -1.5rem;
  }
}
