@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');
:root
{
/* ## Colors */
/* ### Primary */
    --cyan: hsl(179, 62%, 43%);
    --bright-yellow: hsl(71, 73%, 54%);
    /* ### Neutral */
    --light-Gray: hsl(204, 43%, 93%);
    --grayish-Blue: hsl(218, 22%, 67%);
}

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


body 
{
    font-family: "Karla", sans-serif;
    padding: 3rem 1.8rem;
    padding: 3rem 1.8rem 0 1.8rem;
    background-color: var(--light-Gray);    
}

main 
{
    display: flex;
    flex-direction: column;
    max-width: 800px;
}

.card 
{
    padding: 2rem 1.5rem;
}

.card:nth-of-type(1)
{
    border-radius: 5px 5px 0 0;
}

.card:nth-of-type(3)
{
    border-radius: 0 0 5px 5px;
}

.community-container 
{
    grid-area: community;
    background-color: white;
    h2 
    {
        color: var(--cyan);
        font-weight: bold;
        margin-bottom: 2rem;

    }
    h3 
    {
        color: hsl(54, 92%, 53%);
        margin-bottom: 1.3rem;

    }
    p 
    {
        color: rgba(128, 128, 128, 0.62);
        font-weight: 500;
        line-height: 1.5rem;

    }
}

.monthly-subscription
{
    grid-area: monthly-subscription;
    background-color: var(--cyan);
    color: white;

    h2 
    {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    h1 
    {
        display: flex;
        align-items: center;
        column-gap: .5rem;
        margin-bottom: .5rem;
        span 
        {
            font-size: 1rem;
            color: var(--light-Gray);
        }
    }

    .sign-up 
    {
        padding: 1rem;
        border-radius: 10px;
        border: none;
        background-color: var(--bright-yellow);
        color: white;
        font-weight: bold;
        width: 100%;
        margin-top: 2rem;
        cursor: pointer;
    }
}

.why-us 
{
    grid-area: whyus;
    color: white;
    background-color: hsla(179, 62%, 43%,0.6);

    h3 
    {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 1.8rem;
    }
    p 
    {
        margin-bottom: .3rem;
    }
}

@media (min-width:800px)
{
    body 
    {
        height: 100vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
       
    }
    main 
    {
        
        display: grid;
        grid-template-columns: 400px 400px;
        grid-template-rows: 300px 350px;
        align-content: center;
        grid-template-areas: 
        "community community"
        "monthly-subscription whyus";
    }

    .card 
    {
        padding: 3rem;
    }

    .community-container
    {
        border-radius: 10px 10px 0 0;

    }

    .monthly-subscription
    {
        border-radius: 0 0 0 10px;
    }
    .why-us
    {
        h3 
        {
            margin: 0 0 1.5rem 0;
        }
        border-radius: 0 0 10px 0 !important;
        p 
        {
            margin-bottom:0;
        }
    }


    footer 
    {
        position: fixed;
        bottom: 1.5rem;
        
    }
}


