* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

/* 
font-family: 'Dosis', sans-serif;
font-family: 'Kanit', sans-serif;

default fonts are 16px in size.
10 / 16 = 62.5%

now we can use rem to size fonts.
*/

:root, html {
    font-size: 62.5%; /* what is this percentage ?*/
}

body {
    background-color: hsla(200,80%,40%,1);
    color: hsla(200,80%,98%,1);
    font-family: 'Dosis', sans-serif;
    padding-bottom: 100px;
}

header {
    height: 280px;
    background-image:  linear-gradient(to left,hsla(200,100%,1%,.9) 40%,
                     hsla(200,100%,1%,0)), 
                       url(../images/lifeguards.jpg);
    background-size: 100%, 120%;
    background-repeat: no-repeat;
    background-position: right center, center center; /* horizontal and the vertical */
    transform: scaleX(-1); /* flip the header horizontally */
    display: flex; /* makes the header a flexbox container */
    justify-content: right; /* puts the flex item on the right (left since i'm flipped) */
    position: relative; /* position relative on the parent */
}

h1 {
    font-size: clamp(4rem, 4vw, 10rem); /* clamp min normal max */
    transform: scaleX(-1); /* flip the heading 1 horizontally */
    align-self: center; /* only works on a flexbox item*/
    padding-left: 5%; /* so my text isn't right up on the edge */
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    line-height: 8rem;
}

h1 span {
    padding-left: 25vw;
    color: hsla(200,80%,98%,.3);
    font-weight: bold;
}

header p {
    font-size: 3rem;
    position: absolute; /* position absolute on the child */
    bottom: -4rem; left: 3.5rem;
    color: hsla(1,80%,40%,1);
    transform: scaleX(-1);
    font-weight: bold;
    margin-top: 80px;
}

#examples {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 12px;
    padding: 12px;
    margin-top: 80px;
}

.example_item {
    border: 4px solid pink;
    flex: 1 0 30%; /* flex-grow, flex-shrink, flex-basis */
    min-width: 350px; min-height: 300px;
}

#examples figure {
    background-size: 100%;
    background-position: center;
    filter: grayscale(100%);
    transition: all .4s ease-in-out;
    overflow: hidden;
}

#examples figure:hover {
    background-size: 140%;
    filter: grayscale(0%)
}

.example_item a {
    display: block;
    width: 100%; height: 100%;
}

 #examples figure:nth-child(1) {
    background-image: url(../images/headphones.jpg);
 }

 #examples figure:nth-child(2) {
    background-image: url(../images/shoe.jpg);
 }

 #examples figure:nth-child(3) {
    background-image: url(../images/makeup.jpg);
 }

 #examples figure:nth-child(4) {
    background-color: hotpink;
    filter: grayscale(0%);
    background-image: url(../images/shoe.jpg);
 }

 #examples figure:nth-child(4) a {
    text-align: center;
    color: #FF2;
    font-size: 6rem;
    text-decoration: none;
    font-style: italic;
    font-weight: bold;
    line-height: 250px;
    text-shadow: 1px 1px 2px #000;
}

#examples figure:nth-child(4) figcaption {    
    transform: translateX(500px);
    transition: all .4s all ease-in-out;
}

#examples figure:nth-child(4):hover figcaption {
    transform: translateX(0px);
}

#examples figure:nth-child(5) {
    background-image: url(../images/two-women.jpg);
    background-size: 180%;
    background-position: 0% 0%;
}

#examples figure:nth-child(5):hover {
    background-position: 100% 0%;
}
#examples figure:nth-child(6) {
    background-image: url(../images/two-women.jpg);
    background-size: 180%;
    background-position: 100% 0%;
}

#examples figure:nth-child(6):hover {
    background-position: 0% 0%;
}