/* css reset rule */
* {
    margin: 0; 
    padding: 0;
}


/* type selector */

body {
    background-color: rgb(38, 58, 78);
    color: #dddbdb;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    padding: 12px;
    border: 4px solid #222;
    margin: 4px;
    padding: 12px;
}

header {
    border: 3px solid rgb(218, 218, 97);
    padding: 12px;
}

/* child selector */

header > h1 {
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
    color: rgb(238, 147, 147);
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgb(70, 124, 77);
}

/* descendant selector */

header span {
    display: block;
    color: rgb(199, 111, 111);
}

/* Class Selector */

.subtitle {
    text-align: center;
    border: 2px solid rgb(161, 159, 159);
    padding: 10px;
    line-height: 1.5;
    text-transform: lowercase;
    letter-spacing: 6px;
}

/* ====================================== */

/* CSS Examples */

section {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    margin-bottom: 800px;
}

section article {
    border: 2px solid hotpink;
    max-width: 360px;
    min-height: 200px;
    margin: 10px;
    flex: 0 0 auto;
    text-align: center;
    padding: 4px;
}

article h2 {
    font-size: 16pt;
}

article p {
    margin: 8px;
    line-height: 1.5;
}

/* ID Selector */

#art1 div {
    width: 70%;
    aspect-ratio: 2/1;
    background-color: rgb(240, 210, 215);
    margin: 20px auto;
    border-radius: 20px;

}

#art2 div {
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color: #ffc;
    /* Center a block */
    margin: 20px auto;
    box-shadow: 4px 6px 8px gray;
    border-radius: 20px;
}

#art3 h2 {
    font-family: "Playwrite MX Guides", cursive;
    text-align: center;
    font-size: 18pt;
    color: rgb(236, 236, 105);
}

#art4 {
    /* use position relative to the parent */
    position: relative;

}

#art4 h2 {
    color: #ff3;
    /* use position absolute on the child you want to manipulate */
    position: absolute;
    bottom: 0; ; left: 0;
    border: 2px solid yellowgreen;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
}

#art5 {
    position: relative;

}

#art5 div {
    /* setting position absolute to all divs within art5 */
    position: absolute;
}

#art5 div:nth-of-type(1) {
    width: 40%; aspect-ratio: 1;
    background-color: rgb(255, 109, 109); 
    bottom: 30px; left: 64px;
    z-index: 5;
}

#art5 div:nth-of-type(2) {
    width: 40%; aspect-ratio: 1;
    background-color: rgb(109, 131, 255);
    bottom: -5px; right: 64px;
    z-index: 3;
}

#art6 {
    transition: all 300ms linear;
}

/* pseudo elements */
#art6:hover {
    background-color: #404;
    color: #f4f;
    border: 2px solid yellowgreen;
}

#art7 {
    display: inline-block;
	text-align: center;
	padding: 12px 16px;
	background-color: gray;
}

#art7 p {
	text-align: center;
	padding: 12px 16px;
	text-decoration: none;
}

#art7 nav {
	text-align: center;
    padding: 12px 16px;
	text-decoration: none;
}


#art7 p:hover {
    background-color: rgb(158, 158, 158);
}

#art7 nav:hover {
    background-color: rgb(158, 158, 158);
}

/* adjacent selector */

header + p {
    display: none;
}

/* css ruleset, aka rule 
selector {
    declaration1;
    declaration2;
    property: value;
    property: value;
    property: value1, value2, value3;
    property: value value;
}
*/
