/* css reset rule */
* {
    margin: 0; padding: 0;
    text-align: center;
}


/*type selector */

body {
    background-color: #234;
    color: #EEE;
    font-family: verdana, arial, sans-serif;
    padding: 12px;
    border: 3px solid orange;
}

header {
    background-color: rgba(0, 0, 12, 0.336);
    border: 4px solid orangered;
    padding: 12px;
}

/* child selector */

header > h1 {
    border: 4px solid rgb(128, 128, 128);
    text-align: center;
    font-weight: heavy;
    text-transform: uppercase;
    color: rgb(255, 0, 0);
    padding-bottom: 20px;
}

/* descendant selector */

    header span {
        display: block;
        border: 0px;
        color: #FF4;

    }

/* class selector */

.subtitle {
    text-align: center;
    border: 2px solid gray;
    padding: 15px;
    line-height: 1.5;
    text-transform: lowercase;
    line-height: 10px;
}

/* adjacent selector */

header + p {
    display: none;
}

/* css ruleset, aka rule
selector {
    decloration1;
    decloration2;
    property: value; 
    property: value;
    property: value1, value2, value3;
    property: value1, value2;
}
    */

/*--------------------------------------------*/
/* CSS Examples */

section {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    margin-bottom: 800px;
}

section article {
    border: 2px solid orange;
    min-width: 200px;
    min-height: 200px;
    max-width: 360px;
    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: gold;
    margin: 20px auto;
    border-radius: 20px;
}

#art2 div {
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color: rgb(255, 166, 0);
    margin: 20px auto;
    box-shadow: 2px 4px 5px rgb(255, 0, 0);

}

#art3 h2 {
    font-family: "Press Start 2P", system-ui;
    color: goldenrod;
}

#art4 {
    position: relative;
}

#art4 h2 {
    position: absolute;
    bottom: 0; Left: 0;
    border: 2px solid rgb(238, 255, 0);
    width: 100%;
    text-align: center;
}

#art5 {
    position: relative;
}

#art5 div {
 position: absolute; 
 align-items: center;  
}

#art5 div:nth-last-of-type(1) {
    width: 40%; aspect-ratio: 1;
    background-color: goldenrod;
    bottom: -30px; left: 64px
    z-index: 10;
}

#art5 div:nth-last-of-type(2) {
    width: 40%; aspect-ratio: 1;
    background-color: rgb(255, 0, 0);
    margin: 20px
    bottom:-10px; left: 64px;
    z-index: 5;
}

#art6 {
   transition: all 300ms linear; 
}

#art6:hover {
    background-color: #404;
    color: gold;
    border: 4px solid white;
}

