* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}
body {
    background-color: pink;
    font-family: verdana;
    color: black;
}
h1 {

    display:flex; /* converts to flex container*/

}
h1 span {
    flex: 1 0 33%; /* grow shrink basis */
    padding: 48px 0;
    text-align: center;
    font-size: 5em;
    background-color: rgba(255,255,255,.4);
    margin: 9px;
}

p.subtitle {
    background-color: rgba(255,255,255,.4);
    text-align:center;
    padding:12px;
    margin: 0 8px;
    font-size: 2em;
    font-variant: small-caps;
}

section.examples {
    margin: 8px;
    min-height: 200px;
    background-color: rgba(225,225,225,.6);
    padding: 4px 0;
    display: flex; /* converts to a flex box container*/
    flex-flow: row wrap; /* displays in a row, wraps when needed */
    justify-content: center;
}

.examples div {
    border: 4px solid #345;
    margin: 8px;
    aspect-ratio: 16 / 9; /* preserve the aspect ratio with changing width */
    flex: 0 0 28%; 
    min-width: 300px; /* min width for phones */ 
    position: relative; /* position relative for the parent */
}
/* direct child selector */
.examples div > p {
    position: absolute; /* use abs position in a relative position*/
    top: 40px; left: 0px; width: 100%;
    background-color: hsl(200,90%,40%);
    color: rgba(255,255,255,.6);
    font-size: 1.5em;
    transform: rotate(-5deg);

}
div.example1 { /* border radius */
    width: 240px; height:240px;
    min-width: 240px; max-width: 240px;
    border-radius: 50%; /* make the block a circle*/ 
}

div.example2 { /* stripes out of gradients */
    background-image: repeating-linear-gradient(to bottom right, #FF69B4 0px, #FF69FB 20px, #FFF000 21px, #FFFF00 40px, #FF69B4 61px);

}

div.example3 { /* transition color on hover*/
    background-color: #FF69FB;
    transition: background-color .4s ease-in;

}

div.example3:hover {
    background-color: #FFFF23
}

div.example4 {
    background-image: url(/images/goat.jpeg);
    background-size: contain;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

div.example5 {
  animation: fade-in 5s;
}

