*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    /* color */
    --Very-Dark-Blue: hsl(233, 47%, 7%); /* main background */

    --Dark-Desaturated-Blue: hsl(244, 38%, 16%); /* card background */
    --Soft-Violet: hsl(277, 64%, 61%); /*accent*/

    /* Neutral */

    --White: hsl(0, 0%, 100%); /* main heading, stats */
    --Slightly-Transparent-White: hsla(0, 0%, 100%, 0.75); /* main paragraph */  

    --Slightly-Transparent-White-2: hsla(0, 0%, 100%, 0.6); /* stats headings */
}

body{
    background-color: var(--Very-Dark-Blue);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
}


main{
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}


.stats-card{
    background-color: var(--Dark-Desaturated-Blue);
    border-radius: 1rem;
    
    color: var(--White);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.stat-container{
    gap: 30px;
    margin: 75px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
}

h1{
    font-family: "Inter", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--White);
}

span{
    color: var(--Soft-Violet);
}

p{
    line-height: 1.3;
    font-family: "Lexend Deca", sans-serif;
    font-size: 1rem;
    color: var(--Slightly-Transparent-White);
}


ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}



.stat-number{
    font-family: "Inter", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--Slightly-Transparent-White);
}

.stat-number {
  margin-bottom: 0.25rem;
}


.stat-label{
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--Slightly-Transparent-White-2);
}


.image-overlay {
  position: relative;
}

.image-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--Soft-Violet);
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}


#header-desktop{
    border-radius: 0px 18px 18px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header-mobile{
    display: none;
}


@media (max-width: 375px) {
  main {
    padding: 1rem;
  }

  .stats-card {
    flex-direction: column-reverse;
   
    text-align: center;
    
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 1rem;
  }

  h1 {
    font-size:18px;
    line-height: 1.2;
    scale: 1.6;
    margin-bottom:  0.5rem;
  }

  p {
    font-size: 10px;
    scale: 1.4;
    line-height: 1.3;
    color: var(--Slightly-Transparent-White);
  }

  ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding: 0;
  }

  li {
    margin: 0;
  }

  .stat-number {
    font-size: 2.1rem;
    margin-bottom: 0.25rem;
  }

  .stat-label {
    font-size: 0.875rem;
    color: var(--Slightly-Transparent-White-2);
  }

  #header-desktop {
    display: none;
  }

  #header-mobile {
    display: block;
    width: 100%;
    height: auto;
    
    

    border-radius: 0.75rem 0.75rem 0 0;
  }
}
