/* CSS reset rule */
* {
    margin: 0; padding: 0;
}




/* type selector*/

body {
    background-color: #233;
    color: whitesmoke;
    font-family: Georgia, 'Times New Roman', Times, serif;
    padding: 12px;
    border: 4px gray;
    margin: 4px;
    padding-bottom: 800px;
}

header {
    border: 2px solid gray;
    padding: 12px;
}

/* child selector */
header > h1 {
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
    color: antiquewhite;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid lightgray;
}

/* descendent selector */

header span {
    display:  block;
    border: 0px;
    color: antiquewhite ;
}

/* class selector */

.subtitle {
    text-align: center;
    /* border: 2px solid lightgray; */
    padding: 10px;
    line-height: 1.5;
    text-transform: lowercase;
    letter-spacing: 8px;
}

/* ===================== */
/* CSS Examples */

section {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
}

section article {
    border: 2px solid gainsboro;
    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: #198;
    margin: 20px auto;
    border-radius: 20px;
}

#art2 div {
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color: #198;
    /* center a block */
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: -6px 8px 14px;
}

#art3 h2 {
    font-family: "Edu AU VIC WA NT Arrows", cursive;
    text-align: center;
    font-size: 18pt;
    color: antiquewhite;
    border: 2px solid lightgray;
}

#art4 {
    /* use posotion relative on the parent */
    position: relative;
}

#art4 h2 {
    color: antiquewhite;
    /* use position absolute on  the child you want to 
    manipulate */
    position: absolute;
    bottom: 10px; left: 0;
    /* border: 2px solid; */
    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: aliceblue;
    bottom: -20px; left: 54px;
    z-index: 10;
}

#art5 div:nth-of-type(2) {
    width: 40%; aspect-ratio: 1;
    background-color: greenyellow;
    bottom: -10px; right: 44px;
    z-index: 5;
}

#art6 {
    transition: all 300ms linear;

}

/* psudo element */
#art6:hover {
    background-color: bisque;
    color: blueviolet;
    border: 4px solid brown;
}
/* adjacent selector */

header + p {
    display: inline;
}
    /* CSS rule for a semi-transparent element */
    #art7 {
        background-color: #3498db; 
        height: 100px; 
        opacity: 0.5; 
        color: white; 
        text-align: center; 
        line-height: 100px; 
    }

    #art8 {
        height: 100px; 
        background-color: lightgray; 
        color: rgb(17, 204, 33); 
        overflow: scroll; 
        border: 2px solid black; 
        padding: 10px; 
        text-align: left; 
    }

    #art9 {
        font-size: 1.2em; 
        color: bisque; 
        text-decoration: underline dashed;
        text-decoration-color: greenyellow;
        
    }


/* css ruleset, aka rule
selector {
declaration1;
declaration2;
property: value;
property: value;
property: value1, value2, value3;
property: value value;
}
    */

