.pill {
    flex: 1;
    text-align: center;
    padding: var(--gap-medium);
    font-size: 1.2rem;
    background: linear-gradient(0deg, hsla(216, 100%, 20%, 1) 35%, hsla(216, 90%, 31%, 1) 100%);
    border-radius: 45px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 18rem;
    aspect-ratio: 1 / 1;
}

    .pill img {
        width: 60%;
        color: white;
        margin-block-end: 1ch; /*margin for h1 text under*/
    }

@media (max-width: 1544px) {
    .pill {
        max-width: 15rem;
    }
}

@media (max-width: 1044px) {
    .pill {
        max-width: 12rem;
    }
}

@media (max-width: 750px) {

    .pill {
        max-width: 8rem;
    }

        .pill h2 {
            font-size: 0.8rem;
        }

        .pill img {
            width: 63%;
            margin-block-end: 0ch;
        }
}

@media (max-width: 530px) {
    .pill {
        border-radius: 35px;
        max-width: 6rem;
    }
}
