/*reset rule*/
* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}
/*font-family: 'Playfair Display', serif;*/
:root{
    font-size: 62.5%;
    
}
body{
    background-color: rgb(255, 0, 0)
    
    font-family: 'Dosis', sans-serif;
}
header{ 
    height: 300px;
    background-image:linear-gradient(to left, hsla(200,100%,1%,.9)40%,  hsla(200, 100%, 1%, 0)),url(../images/splash.jpg);
    background-size: 100%, 120%;
    background-repeat: no-repeat;
    background-position: right center, center center;
    transform: scaleX(-1);
    display: flex;
    justify-content: right;
    color: white;
}
h1{
    font-size: clamp(2rem, 4vw, 8rem);
    transform: scaleX(-1);
    align-self: center;
    padding-left: 10%;
    line-height: 8rem;
}
header p{
    font-size: 3rem;
    position: absolute;
    bottom: -4rem; left: 3.5rem;
    color: red;
    transform: scaleX(-1);
}
h1 span{
    padding-left: 25vw;
    color: hsla(200, 80%, 98%, .3);
}
#examples{
    
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 12px;
    padding: 12px;
    margin-top: 80px;
}
.example_item{
    border: 4px solid rgb(161, 129, 48);
    flex: 1 0 30%; /*flex-grow,flex-shrink, flex-basis */
    min-width: 350px; min-height: 300px;

}
#examples figure{
    background-size: cover;
    background-position: center;
    transition: all .4s ease-in-out;
    filter: grayscale(0%);
    overflow: hidden; /* hide anything that is over flowing */
}
#examples figure:hover {
    background-size: 140%;
    

}
/* styling all hyperlinks within figures aka class=example_item */
.example_item a{
    display: block;
    width: 100%; height: 100%;
}
/*styles the first fiugre element within the id=examples */ /* creates a pseudo class, :: creates pseduo-element */
#examples figure:nth-child(1){ 
   
    background-image: url(../images/headphones.jpg);
}#examples figure:nth-child(2){ 
   
    background-image: url(../images/makeup.jpg);
}
#examples figure:nth-child(3){ 
    
    background-image: url(../images/redshoe.jpg);
}

/*
#examples figure:nth-child(3):hover{
    background-image: url(../images/water.jpg);
}
*/
#examples figure:nth-child(4){
        background-color: red;
         filter:grayscale(0%);
         background-image: url(../images/redshoe.jpg)
}
#examples figure:nth-child(4) a {
    text-align: center;
    color: #eee;
    font-size: 4rem;
    font-style: italic;
    text-decoration: none;
    font-weight: bold;
    line-height: 250px;
    text-shadow: 1px 1px 2px #000;
}
#examples figure:nth-child(4) figcaption {
    transform: translateY(500px);
    transition: all .4s ease-in-out;
}
#examples figure:nth-child(4):hover figcaption{
    transform: translateY(0px);

}
#examples figure:nth-child(5)
{
    background-image: url(../images/water.jpg);
    background-size: 150%;
    background-position: left center;
}
#examples figure:nth-child(5):hover {
    background-position: right center;
}
