/* CSS reset rule */
* {
    margin: 0;
    padding: 0;
}

/* type selector*/

body{
    background-color: rgb(39, 53, 85);
    color: white;
    padding: 12px;
    border: 4px solid black;
}
header{
    background-color: black;
    padding: 12px;
}

/* Child selector*/
header > h1 {
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
    color: yellowgreen;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border: 2px solid white;
}

/* Descendant selector*/
header span{
    display: block;
    color: salmon;
}

/* Class Selector */
.subtitle{
    text-align: center;
    border: 2px solid white;
    line-height: 1.5;
    text-transform: lowercase;
    letter-spacing: 8px;
}

/* adjacent selector */
header + p {
    display: none;
}

/* ============================= */
/* CSS Examples*/
section{
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
}

section article{
    border: 2px solid hotpink;
    max-width: 360px;
    min-height: 200px;
    margin: 10px;
    flex: 0 0 auto;
    padding: 4px;
}

article h2 {
    font-size: 16pt;

}

article p {
    margin: 8px;
    line-height: 1.4;
}

/* ID selector*/
#art1 div{
    width: 70%;
    aspect-ratio: 2/1;
    background-color: skyblue;
    margin: 20px auto;
    border-radius: 20px;
}

#art2 div {
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color: #000;
    margin: 20px auto;
    box-shadow: -4px 8px 15px white;
    border-radius: 20px;
}

#art3 h2 {
    font-family: "Playwrite DE Grund Guides", cursive;
    text-align: center;
    font-size: 18pt;
    color: #FF3;
}

#art4 {
    /* use position relative on the parent */
    position: relative;
}

#art4 h2 {
    color: #FF3;
    /* use position absolute on the child you want to manipulate */
    position: absolute;
    bottom: 10px; left: 0;
    border: 0px solid yellowgreen;
    width: 100%;
    text-align: center;
    /* padding-bottom: 10px; */
}

#art5 {
    position: relative;
}

#art5 div {
    position: absolute;
}

#art5 div:nth-of-type(1) {
    width: 40%; aspect-ratio: 1;
    background-color: #F44;
    bottom: 10px; left: 64px;
    z-index: 10;
}

#art5 div:nth-of-type(2) {
    width: 40%; aspect-ratio: 1;
    background-color: #44F;
    bottom: -10px; right: 64px;
    z-index: 5;
}

#art6 {
    transition: all 300ms linear;
}

/* pseudo element */
#art6:hover {
    background-color: #404;
    color: #ff4;
    border: 2px solid yellowgreen
}

#art7 {
    background-image: url('../images/backgroundexp.jpeg');
    background-size: cover;
    text-align: center;
    color: red
}
#art8 {
    background-image: url('../images/backgroundexp.jpeg');
    background-size: cover;
    text-align: center;
    color: black;
    filter: grayscale(100);
}

#art9 {
    background-image: url('../images/backgroundexp.jpeg');
    min-width: 500px;
    background-size: cover;
    text-align: center;
    color: darkblue;
    perspective: 800px;
    transform: rotateY(180deg);
}
.text{
    transform: scaleX(-1);
}

footer{
    text-align: center;
}

footer a {
    color: navajowhite;
}

footer a:hover {
    color: yellowgreen;
}




