/* css reset rule 8 */

* {
   margin: 0; padding: 0;
}
  




/* Type Selector */


body {
  background-color: #2b2a67;
  color: #ffffff;
  border: 4px solid lightblue;
  padding-bottom: 800px;
  margin: 4px;
  padding: 12px;
  font-family: Arial, Helvetica, sans-serif;
 
}

header {
  border: 2px solid lightblue;
  background-color: #1f1e49;
  padding: 20px;
       
}


/* Child Selector */

header > h1 {
   text-align: center;
   font-weight: normal;
   text-transform: uppercase;
   color: chartreuse;
   padding-bottom: 12px;
   margin-bottom: 12px;
   border-bottom: 2px solid rgb(24, 165, 31);
}



/* Descendent Selector */

header span {
    display: block;
    border: 0px;
    color: #d2720b;

}


/* Class Selector */

.subtitle {
   text-align: center;
   border: 0px solid #000000;
   padding: 10px;
   line-height: 1.5;
   text-transform: lowercase;
   letter-spacing: 8px;
}


/* ================================== */
/* CSS Examples */

section {
   display: flex;
   justify-content: center;
   flex-flow: row wrap;
   margin-bottom: 800px;
}


section article {
    border: 2px solid rgb(4, 125, 62);
    max-width: 360px;
    min-height: 200px;
    margin: 10px;
    flex: 0 0 auto;
    padding: 4px;
}

article h2 {
    font-size: 16px;
}


article p {
    margin: 8px;
    line-height: 1.4;
}




/* ID selector */
#art1 div {
    width: 70%;
    aspect-ratio: 2/1;
    background-color: rgb(15, 146, 240);
    margin: 20px auto;
    border-radius: 20px;

}

#art2 div {
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color: rgb(30, 50, 198) ;
    /* Center a Block */
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: -4px 9px 15px rgb(18, 243, 255);
}



#art3 h2 {
    font-family: "Freckle Face", system-ui;
    text-align: center;
    font-size: 18pt;
    color: rgb(228, 249, 0);
}

#art4 {
    /* Use position relative on the parent */
    position: relative;
}

#art4 h2 {
    color: rgb(243, 255, 6);
    /*Use position absolute on the child you want to manipulate */
    position: absolute;
    bottom: 0; left: 0;
    border: 0px solid yellowgreen;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}

#art5 {
    position: relative;
}

#art5 div {
    /* Setting position absolute to ALL divs within art5 */
    position: absolute;
}


#art5 div:nth-last-of-type(1) {
    width: 40%; aspect-ratio: 1;
    background-color: #f33e3e;
    bottom: 10px; left: 64px;
    z-index: 5;
}

#art5 div:nth-last-of-type(2) {
    width: 40%; aspect-ratio: 1;
    background-color: #505ef8;
    bottom: -10px; right:64px;
    z-index: 3;
}

#art6 {
    transition: all 200ms linear;
}



/* Pseudo Element */
#art6:hover {
    background-color: purple;
    color: rgb(255, 2, 255);
    border: 2px solid yellowgreen;

}










/*CSS ruleset {

 declaration1;
 declaration2;
 property: value;
 property; value;
 property; value1, value 2, value3;
 property; value value;
}
   */