/* css reset rule */
*{
  margin: 0; padding: 0;
}


/* type selector */

body {
    background-color: #234;
    color: #EEE;
    font-family: verdana, arial, sans-serif;
    padding: 12px;
    border: 4px solid #222;
    padding-bottom: 800px;
    margin: 4px;
}

header {
  border: 8px solid hotpink;
  padding: 12px;
  text-align: center;
}

/* child selector */

header > h1 {
  text-align: center;
  font-weight: normal;
  text-transform: uppercase;
  color: yellowgreen;
  padding-bottom: 20px;
  border-bottom: 2px solid yellow;
}

/* descendent selector */

header span {
    display: block;
    border: 0px;
}

/* class selector */

.subtitle {
    text-align: center;
    border: 2px solid #ddd;
    padding: 10px;
    line-height: 1.5;
    text-transform: lowercase;
    letter-spacing: 8px;
}

/* 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: skyblue;
  margin: 20px auto;
  border-radius: 20px;
}

#art2 div {
  width: 70%;
  aspect-ratio: 2.5/1;
  background-color: #000;
  /* Centera block */
  margin: 20px auto;
  border-radius: 20px;
  box-shadow: -4px 8px 14px white;
}

#art3 h2 {
  font-family: "Winky Rough", sans-serif;
  text-align: center;
  font-size: 18pt;
  color: goldenrod;
}

#art4 {
  /*use position relative on the parent*/
  position: relative;
}

#art4 {
  /*use position absolute on the child you want to manipulate*/
  color: #ff3;
  position: absolute;
  bottom: 0; left: 0;
  border: 2px solid yellowgreen;
  width: 100%;
  text-align: center;
}

#art5 {
  position: relative;
}

#art5 div {position: absolute;}

#art5 div:nth-of-type(1) {
  width: 40%; aspect-ratio: 1;
  background-color: #44f;
  bottom: -8px; right: 4;
  z-index: 2;
}

#art5 div:nth-of-type(2) {
  width: 40%; aspect-ratio: 1;
  background-color: #f44;
  bottom: 10px; left: 4px;
  z-index: 1;
}

#art6 {
  transition: all 300ms linear;
}

#art6:hover {
  background-color: #404;
  color: #ff4;
  border: 2px solid yellowgreen
}







/* css ruleset, aka rule
selector {
  declaration1;
  declaration2;
  property: value;
  property: value;
  property: value1, value2, value3;
  property: value value;
}
  */
