* {
    margin: 0; bottom: 0; padding: 0; box-sizing: border-box;
}

:root {
    font-size: 62.5%;
}

body {
    font-size: 2rem;
    /* background-color: hsla(200, 80%, 40%, .7); */
    background-color: hsla(200 80% 40% / .7);
    color: hsla(200 80% 10% / .9);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* ======= consistent styles for all articles ============== */
article {
    border: 4px solid hsla(200 100% 90% / .9);
    margin: 24px 8px;
    padding: 8px;
}
article h2 {
    text-align: center;
    color: hsla(10 100% 30% / 1);
    font-size: 2.5rem;
}
article section {
        border: 4px solid hsla(200 80% 10% / .9);
        margin: 24px;
        min-height: 200px;
    }

article div {
    width: 180px; height: 180px;
    background-color: burlywood;
    border: 2px solid #222;
}

/* =============styles for article 1 ==================*/

#article1 section div {
    margin: 24px auto;
}





#article2 section {
    position: relative;
    min-height: 232px;
}

#article2 section div {
    position: absolute;
}

#article2 section div:nth-child(1) {
    top: 24px; 
    left: 24px;
}

#article2 section div:nth-child(2) {
    top: 24px;
    right: 24px;
}






#article3 section {
    overflow:hidden; /* clearfix for floaters */
}

#article3 section div {
    margin: 24px;
}

#article3 section div:first-child {
    float: left;
}

#article3 section div:last-child {
    float: right;
}



/* using flexbox */
#article4 section {
    display:flex; /* makes this a flex parent*/
    justify-content: center;
}

#article4 div {
    margin:24px;
}




#article5 section {
    text-align: center;
    padding: 24px 0px;
}

#article5 div {
display: inline-block;

}


#article6 section {
    display: flex;
    justify-content: space-evenly;
    padding: 24px 0px;
}

#article6 div:nth-child(3) {
    background-image: url(../images/mountains1.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

#article6 div:nth-child(3) h3 {
    background-color: orchid;
    text-align: center;
    width:120%;
    margin: 2px auto;
    transform: translateX(10%) translateY(10px) rotate(20deg);
}