:root {
    /* ### Primary */

--Pale-blue: hsl(225, 100%, 94%);
--Bright-blue: hsl(245, 75%, 52%);

/* ### Neutral */

--Very-pale-blue: hsl(225, 100%, 98%);
--Desaturated-blue: hsl(224, 23%, 55%);
--Dark-blue: hsl(223, 47%, 23%);
--White: hsl(0, 0%, 100%);
--hover: hsl(245, 83%, 68%);

--shadow: 0 5px 30px  hsl(247, 72%, 79%);
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Red Hat Display", sans-serif;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--Pale-blue);
}

main {
    background-image: url(images/pattern-background-desktop.svg);
    background-repeat: no-repeat;
    background-position-x: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90rem;
    height: 100%;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28.125rem;
    height: 43.5rem;
    background: var(--White);
    overflow: hidden;
    border-radius: 1.1rem;
    box-shadow: var(--shadow);

}

.groups {
    padding: 2rem;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
}

.title {
    font-size: 2rem;
    font-weight: 900;
    padding: 0.2rem;
    color: var(--Dark-blue);
}

.desc {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.5rem;
    color: var(--Desaturated-blue);
    padding: 0.8rem 0;
}

.section.item2 {
    padding: 1.5rem;
    background: var(--Very-pale-blue);
    align-items: start;
    justify-content: center;
    border-radius: 1rem;
    margin: 1.2rem 0;
}

.offer, .plan {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.icon {
    padding-right: 1.5rem;
}

.annual-offer {
    padding-right: 4rem;
}

.annual-plan {
    font-size: 1.1rem;
    font-weight: 900;
    padding-bottom: 0.3rem;
    color: var(--Dark-blue);
}

.amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--Desaturated-blue);
}

.change {
    font-size: 1rem;
    font-weight: 700;
    padding-left: 2.3rem;
    outline: none;
    cursor: pointer;
    text-decoration: underline;
    color: hsl(246, 59%, 49%);
}

.change:hover {
    color: var(--hover);
    text-decoration: none;
}

.section.item3 {
    width: 100%;
    gap: 0.5rem;
    padding-left: 0;
    padding-right: 0;
}

.btn {
    outline: none;
    border: none;
    width: 100%;
    height: 3.2rem;
    border-radius: 0.6rem;
    cursor: pointer;
}

.btn1 {
    background: var(--Bright-blue);
    color: var(--White);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.btn1:hover {
    background: var(--hover);
}

.btn2 {
    font-size: 1rem;
    font-weight: 900;
    color: var(--Desaturated-blue);
    background: transparent;
}

.btn2:hover{
    color: var(--Dark-blue);
    font-weight: 900;
}


@media screen and (max-width: 48rem) {

    body {
        justify-content: start;
        height: 80vh;
    }
        main {
        padding-top: 1rem;
        background-image: url(images/pattern-background-mobile.svg);
        background-size:contain;
        height: 90rem;
        width: 25rem;
    }

    article {
        width: 18rem;
        height: 34rem;
    }

    .title-image{
        max-width: 18rem;
    }

    .groups {
        padding: 0 1.2rem;
        height: 26rem;
        overflow: hidden;
    }

    .title {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }

    .desc {
        font-size: 0.85rem;
        padding: 0.5rem 0.1rem;
        margin: 0.4rem 0;
    }

    .section.item2 {
        padding: 0.5rem 0.5rem 0.8rem;
        margin: 0.6rem 0 1.5rem;
    }

    .icon {
        margin: 0.4rem;
        padding-right: 0.5rem;
        height: 2.5rem;
    }

    .annual-offer {
        padding-right: 0.2rem;
    }

    .annual-plan {
        font-size: 0.9rem;
        padding-bottom: 0.3rem;
    }

    .amount {
        font-size: 0.9rem;
        color: var(--Desaturated-blue);
    }

    .change {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }

    .section.item3 {
        gap: 0.5rem;
        padding: 0.5rem 0;
        margin: 1.2rem 0 0;
    }

    .btn {
        font-size: 0.8rem;
    }

}