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


/* type selector */
body {
    background-color: #234;
    color: #EEE;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    border: 4px solid rgb(23, 35, 48);
    padding: 12px;
}

header {

    padding: 12px; 
}

/* descendent selector */

header > h1 {
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
    color: rgb(184, 212, 240);
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgb(195, 146, 154);
}

/* descenedent selector */
header span {
    display: block;
    border: 0px;
    color: rgb(153, 194, 235);
    letter-spacing: 8px;
}


/* class selector */
.subtitle {
    text-align: center;
    border: 2px solid rgb(92, 94, 97);
    padding: 10px;
    line-height: 1.5;
    text-transform: lowercase;
}

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

/* ============================ */
/* CSS Examples */

section {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    border: 2px solid yellow;
}

section article {
    border: 2px solid hotpink;
    min-width: 200px;
    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:rgb(212, 219, 230);
    margin: 20px auto;
    border-radius: 20px
    
}

#art2 div{
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color:rgb(230, 212, 224);
     /* center a block */
    margin: 20px auto;
    box-shadow: 4px 4px 15px palevioletred;
    border-radius: 20px;
}

#art3 h2 {
    font-family: "Licorice", cursive;
    text-align: center;
    font-size: 24pt;
    color:rgb(157, 68, 98);
}

#art4 {
    /* use position relative on the parent */
    position: relative;
}
 #art4 h2 {
    color:palevioletred;
    /* use position absolute on the child you want to manipulate */
    position: absolute;
    bottom: 10px; left:0;
    border: 0px solid yellow;
    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(119, 28, 119);
    bottom: -80px; left:64px;
    z-index: 10;

 }
 #art5 div:nth-of-type(2) {
    width: 40%; aspect-ratio: 1;
    background-color:rgb(42, 119, 28);
   bottom: -90px; right:64px;
   z-index: 5;

 }
/* psuedo element */
 #art6:hover {
    background-color:azure;
    color:black;
    border: 2px solid yellow
 }

 #art6 {
    transition: all 300ms linear;

 }

/* css ruleset, aka rule
selector {
declaration1;
declaration2;
property: value;
property: value;
property: value1, value2, value3;
proterty: value value
}
*/
