* {
    margin: 0; padding 0; box-sizing: border-box;
}

:root {
    font-size: 62.5%;
}

body {
    font-size: 2rem;
    background-color: hsla(200,80%,40%,.7);
    color: hsla(200,80%,20%,.9);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, 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: rgba(124, 12, 109, 0.9);
}

article section {
    border: 4px solid yellow;
    margin: 24px;
    min-height: 200px;
}

article div {
    width: 180px; height: 180px;
    background-color: pink;
    border: 4px solid green;
    margin:24px auto;
}

/* styles for individual articles */
#article1 section div {
    margin: 24px auto;
}




#article2 section {
    position: relative;
    min-height: 232px;
}

#article2 section div {
    position: absolute;
    margin:auto
}

#article2 section div:nth-child(1) {
    top: 24px; left: 24px;
}

#article2 section div:nth-child(2) {
    top: 24px; right: 24px;
}





#article3 section {
    overflow: hidden;
}

#article3 section div{
    margin: 24px;
}


#article3 section div:first-child {
   float: left; 
}
#article3 section div:last-child {
    float: right;
 }

 /* using flex-box */


 #article4 section {
    display: flex;
    justify-content: center;
 }

 #article4 div {
    margin: 24px;
 }

 #article4 div:first-child {
    top: 24px; left: 200px;
 }

 #article4 div:first-child {
    top: 24px; right: 200px;
 }





#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/blossoms.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
 }
 
#article6 div:nth-child(3) h3 {
    background-color: rgb(73, 226, 43);
    text-align: center;
    width: 120%;
    margin: -20px;
    transform: translateX(30%)
                translateY(40%)
                rotate(30deg);

}