:root {
    --navy-950: hsl(233, 47%, 7%);
    --blue-950: hsl(244, 37%, 16%);
    --purple-500: hsl(277, 64%, 61%);
    --white: #FFF;
}   

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

body {
    background-color: var(--navy-950);
}

main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10rem auto;
}

.stats-container {
    width: 35.25rem;
    height: 28rem;
    background-color: var(--blue-950);
    color: var(--white);
    border-radius: 0.5rem 0 0 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

h1 {
    font-family: 'Inter', sans-serif;
    width: 70%;
    font-size: 2.25rem;
    font-weight: 700;
    margin-left: 5rem;
    margin-top: 4rem;
}

.purple-text {
    color: var(--purple-500);
}

.stats-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: hsla(0, 0%, 100%, 0.75);
    width: 65%;
    margin-left: 5rem;
    margin-top: 1.5rem;
}

.stats-standing-container {
    display: flex;
    justify-content: space-evenly;
    margin-top: 4.5rem;
}

h2 {
    margin-bottom: 0.5rem;
}

.companies-container {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.templates-container {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.queries-container {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.upper-case {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.0625rem;
    opacity: 0.6;
}

img {
    border-radius: 0 0.5rem 0.5rem 0;

}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(128, 0, 128, 0.5); /* purple with 50% opacity */
}

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

   main {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    overflow: scroll;
    width: 100%;
    object-fit: contain;
   }

   .stats-container {
    width: 66%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
   }

   .image-container {
    width: 66%;
   }

   img {
    border-top-left-radius: 0.5rem;
    border-bottom-right-radius: 0;
   }

   .stats-standing-container {
    margin-left: -2rem;
   }

}

@media screen and (max-width: 650px) {
    h1 {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 486px) {
    h1 {
        padding: 0.5rem;
        text-align: center;;
        margin-left: 3rem;
        margin-top: 1rem;
    }

    .stats-text {
        text-align: center;
        margin-left: 3.6rem;
    }

    .stats-standing-container {
        display: grid;
        align-items: center;
        justify-content: center;
        margin-top: 0.5rem;
        margin-left: 1rem;
    }

    .companies-container {
        align-items: center;
        text-align: center;
        margin-top: 0.5rem;
    }

    .templates-container {
        align-items: center;
        text-align: center;
        margin-top: 0.5rem;
    }

    .queries-container {
        align-items: center;
        text-align: center;
        margin-top: 0.5rem;
    }
}

@media screen and (max-width: 479px ) {
    .companies-container {
        margin-top: 0;
        font-size: 0.75rem;
    }

    .templates-container {
        margin-top: 0;
        font-size: 0.75rem;
    }

    .queries-container {
        margin-top: 0;
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 425px) {
    h1 {
        width: 80%;
    }
}

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

    main {
        min-height: 100vh;
    }
    h1 {
        width: 83%;
        margin-left: 1.5rem;
    }

    .stats-text {
        width: 83%;
        margin-left: 1.5rem;
        padding: 
    }

    .stats-standing-container {
        margin-top: 1.5rem;
    }
}