html,
body {
    height: 100vh;
}

body {
    background-color: hsl(233, 47%, 7%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(244, 38%, 16%);
    border-radius: 2%;
}

.text span {
    color: hsl(277, 64%, 61%);
}

.text h1 {
    color: hsl(0, 0%, 100%);
    padding: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 0.4rem;
    padding-left: 3.4rem;
}

.text p {
    color: hsla(0, 0%, 100%, 0.75);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-left: 3.4rem;
}

.text ul li h2 {
    color: hsl(0, 0%, 100%);
}

.text ul {
    display: flex;
    justify-content: space-evenly;
}

.text ul li {
    list-style-type: none;
}

.text,
.image1 {
    max-width: 400px;
}

img {
    max-width: 400PX;
}

.text ul li p {
    margin-left: 0%;
    padding-left: 0%;
    padding-top: 0%;
    margin-top: 0%;
}

.text ul li h2 {
    margin-bottom: 0%;

}

img {
    border-bottom-right-radius: 2%;
    border-top-right-radius: 2%;
    width: 100%;
    display: block;
}

.image1 {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(277, 64%, 61%);
    opacity: 0.5;
    border-bottom-right-radius: 2%;
    border-top-right-radius: 2%;
}

@media (max-width: 820px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .image1 {
        order: -1;
    }

    .text ul {
        display: flex; 
        flex-direction: column;
        gap: 1rem;
        align-items: center; 
    }
    .text ul li {
    display: flex;
    flex-direction: column;
    align-items: center;  
    text-align: center;
  }
    img {
        border-top-left-radius: 2%;
        border-top-right-radius: 2%;

    }
    .text h1,
  .text p {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}