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

:root{
  /* -------------- Primary--------------------------- */

---main-background: hsl(233, 47%, 7%);
--card-background: hsl(244, 38%, 16%);
--accent: hsl(277, 64%, 61%);

/* ------------------Neutral---------------------------- */

--main-heading-stats: hsl(0, 0%, 100%);
--main-paragraph: hsla(0, 0%, 100%, 0.75);
--stat-headings: hsla(0, 0%, 100%, 0.6);

/* ----------------fonts-------------------------------- */
--ff1: 'Inter', sans-serif;
--ff2: 'Lexend Deca', sans-serif;

--f-size: 15px;
}

body{
  display: grid;
  place-items: center;
  background: var(---main-background);
}

.container{
  display: flex;
  background: var(--card-background);
  border-radius: 5px;
}

.text-box{
  width: 540px;
  height: 445px;
  padding: 80px;
}


.text-box__text__heading{
  font-family: var(--ff1);
  color: var(--main-heading-stats);
  font-weight:700 ;
}

span{
  color: var(--accent);
}
.text-box__text__para{
  font-size: var(--f-size);
  font-family: var(--ff2);
  color: var(--main-paragraph);
  font-weight: 400;
  line-height: 25px;
  padding: 30px 0;
}

.text-box__stats__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px 0 0;
  
}

.text-box__stats__col3__para{
  font-family: var(--ff2);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--stat-headings);
  text-transform: uppercase;
  padding: 5px 0;
}
.text-box__stats__col3__heading{
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--ff1);
  color: var(--main-heading-stats);
}


.card{
  display: grid;
  min-height: 100vh;
  place-items: center;
}



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

.image-overlay{
  position: absolute;  
  transform: translate(100%, 0);
  width: 540px;
  height: 445px;
  background: var(--accent);
  opacity: 0.5;
}

/* ---------------------------- */

@media screen and (max-width:375px) {

  .container{
    flex-direction: column-reverse;
    
  }
  
  

  img{
    width: 320px;
    border-radius: 10px 10px 0 0 ;
  }
  
  .text-box{
    width: 320px;
    height: auto;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 10px 10px;
  }
  

  .text-box__text__heading{

    font-size: 30px;
  }

  .text-box__stats__row{
    display: block;
    padding: 20px;
  }

  .text-box__stats__col3{
    padding-bottom: 20px;
  }
  
  .text-box__stats__col3__heading{
    padding: 3px;
    font-size: 25px;
  }

  .text-box__stats__col3__para{
    font-size: 12px;
  }

  .image-overlay{
    position: absolute;  
    transform: translate(0, 0);
    top: 0%;
    width: 320px;
    height: 265px;
    background: var(--accent);
    opacity: 0.5;
    border-radius: 10px 10px 0 0;
  }
  
}