* {
    margin: 0; bottom: 0; padding: 0; box-sizing: border-box;
}

:root {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    background-color: hsla(200, 80%, 40%, .7);
    color: hsla(200, 80%, 10%, .9);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* ========== consistant 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;  /* for one div use this *or* inline block *or* display flex */
}



/* =========== styles for article 2 ========= */
#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;
}



/* =========== styles for article 3 ========= */
#article3 section {
    overflow: hidden; /* clearfix for floaters */
}

#article3 section div {
    margin: 24px;
    /* position: absolute; */
}

#article3 section div:first-child {
    float: left;
}

#article3 section div:last-child {
    float: right;
}

/* ============== styles for article 4 using flexbox =================*/
#article4 section {
    display: flex; /* makes this a flex parent */
    justify-content: center;
}

#article4 div {
    margin: 24px;
}


/* ============== styles for article 5 ================= */
#article5 section {
    text-align: center; /* works on divs like text */
    padding: 24px 0px;
}

#article5 div {
    display: inline-block; /* puts them side by side and wraps if too many */
}


/* ============== styles for article 6 ================= */
#article6 section {
    display: flex;
    justify-content: space-evenly; /* space-around and space-between too */
    padding: 24px 0px;
}

#article6 div:nth-child(3) {
    background-image: url(../images/d2_2_thumb.jpg);
    background-size: cover;
    background-position: center;
    color: navy;
    overflow: hidden;  /* correct use here.  cuts the rest of the ribbon off the transformed text block below */  
} /* above for adding those images to the anchor tag links */
    

#article6 div:nth-child(3) h3 {
    background-color: orange;    
    text-align: center;
    width: 200%;
    margin: 2px auto;
    transform:  translateX(-15%)
                translateY(65%)
                rotate(25deg)
}

