@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --Cyan: hsl(179, 62%, 43%);
    --BrightYellow: hsl(71, 73%, 54%);
    --LightGray: hsl(204, 43%, 93%);
    --GrayishBlue: hsl(218, 22%, 67%);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {position: relative;min-height: 100vh;}
.attribution { font-size: 12px; text-align: center;position: absolute;bottom: 0;left: 50%;transform: translateX(-50%);width:80vw;font-family: "Roboto", sans-serif;}
.attribution:hover {font-size: 16px;transition: 0.5s;}
.attribution a { text-decoration: none;color: hsl(0, 0%, 0%); }


body {
    font-size: 16px;
    background-color: hsla(218, 22%, 67%,0.3);
}

#main {
    width: 311px;
    height: 722px;
    margin: 72px auto 76px auto;
    font-family: "Karla", serif;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border-radius: 5px;
}

h2 {
    font-size: 20px;
}

#community, #subscription, #about {
    padding: 24px;
}

#community {
    width: 311px;
    height: 266px;
    color: var(--GrayishBlue);
}

#headC {
    color: var(--Cyan);
    margin-bottom: 26px;
}

#paraC1 {
    color: var(--BrightYellow);
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 15px;
}

#paraC2 {
    line-height: 1.75;
    font-size: 14px;
}

#subscription {
    width: 311px;
    height: 228px;
    color: white;
    background-color: var(--Cyan);
}

#headS {margin-bottom: 18px;}

#subscription div {
    display: inline-block;
    height:32px;
    line-height: 32px;
    margin-bottom: 12px;
}

#subscription div h2 {
    display: inline-block;
    font-size: 32px;
}

#subscription div p {
    display: inline-block;
    color: rgba(255,255,255,0.5);
    vertical-align: top;
}

#paraS1 {margin-bottom: 28px;}

button {
    width: 264px;
    height: 48px;
    background-color: var(--BrightYellow);
    border: none;
    border-radius: 5px;
    color: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

#about {
    width: 311px;
    height: 228px;
    color: white;
    background-color: hsla(179, 62%, 43%,0.8);
    border-radius: 0 0 5px 5px;
}

#about h2 {margin-bottom: 20px;}

#about p {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.7);
}

@media (min-width:680px) {
    
    #main {
        width: 630px;
        height: 480px;
        font-size: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -65%);
    }

    #community, #subscription, #about {
        padding: 40px;
    }

    #community {
        width: 630px;
        height: 220px;
    }

    #headC {
        font-size: 32px;
    }

    #subscription {
        display: inline-block;
        width: 315px;
        height: 260px;
        vertical-align: top;
        border-radius: 0 0 0 5px;
    }

    #about {
        display: inline-block;
        width: 315px;
        height: 260px;
        box-sizing: border-box;
        border-radius: 0 0 5px 0;
    }

    button {
        width: 236px;
    }

    #subscription div,#paraS1 {
        font-size: 16px;
    }

    

}




