@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap");

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

body {
  font-family: "Inter", sans-serif;
  font-family: "Lexend Deca", sans-serif;
  min-height: 100vh;
  background-color: hsl(233, 47%, 7%);
  display: flex;
  align-items: center;
  font-size: 15px;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
}

.wrapper {
  background-color: hsl(244, 38%, 16%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 15px;
  overflow: hidden;
  margin: 2rem;
}

.img-component img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-component {
  position: relative;
}

.img-component::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  background-color: hsla(277, 64%, 61%, 0.5);
}

.text-component {
  padding: 13%;
}

.title {
  color: hsl(0, 0%, 100%);
  font-weight: 700;
  padding-bottom: 22px;
}

.title span {
  color: hsl(277, 64%, 61%);
}

.subtitle {
  color: hsla(0, 0%, 100%, 0.75);
  line-height: 1.8;
}

.state-box {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  padding-top: 60px;
}

.state-box p.num {
  color: hsl(0, 0%, 100%);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 7px;
}

.state-box p {
  color: hsla(0, 0%, 100%, 0.6);
}

@media only screen and (max-width: 768px) and (min-width: 426px) {
  body {
    font-size: 12px;
  }
  .text-component {
    padding: 12%;
  }
  .title {
    font-size: 22px;
  }
  .state-box {
    padding-top: 30px;
  }
  .state-box p.num {
    font-size: 17px;
  }
}

@media only screen and (max-width: 425px) {
  body {
    text-align: center;
  }
  .wrapper {
    grid-template-columns: 1fr;
  }

  .img-component {
    order: -1;
  }

  .title {
    font-size: 23px;
    line-height: 1.4;
  }

  .text-component {
    padding: 12% 8%;
  }
  .state-box {
    flex-direction: column;
    padding-top: 30px;
  }

  .state-box div {
    margin-top: 20px;
  }
}
