/* css reset rule */
* {
    margin: 0; padding: 0;
}

/* type selector */

body {
    font-family: verdana, arial, sans-serif;
    background-color: #234; 
    color: #EEE;
    border: 4px solid #333;
    padding-bottom: 800px;
    margin: 4px;
    padding: 12px; 
    
}

.homepage {
    position: absolute;
    top: 8px;
    right: 16px;
    color: #FFF;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
} 

.homepage:hover {
    color: black;
}

header {
    /* border: 2px solid hotpink; */
    padding: 12px;
    background-color: #333;
}

/* child selector */

header h1 {
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
    color: yellowgreen;
    padding-bottom: 0px;
    margin-bottom: 8px;
    border: 2px solid #999;
    background-color: #333;
}

/* decendent selector */

header span {
    display: block;
    border: 0px;
    color: #FF4;     
}

header p span {
    color: yellowgreen;
    display: block; padding: 8px;
    background-color: #333;
}

/* class selector */

.subtitle {
    text-align: center;
    outline: 2px solid gray;
    text-transform: lowercase;
    letter-spacing: 8px;
    color: yellowgreen;
}

/* adjacent selector */

header + p {
    display: none;
}

/* ============================================= */
/* CSS Examples */

section {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    margin-bottom: 800px;
}

section article {
    border: 2px solid hotpink;
    /* min-width: 200px; */
    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: skyblue;
    margin: 20px auto;
    /* round corners */
    border-radius: 20px;
}

#art2 div {
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color: black;
    /* center a block */
    margin: 20px auto; 
    /* round corners */
    border-radius: 20px;
    box-shadow: -4px 8px 9px white;
}

#art3 h2 {
    font-family: "Playwrite HU", cursive;
    text-align: center;
    font-size: 18pt;
    color: #FF3;
    border: 2px solid yellowgreen;
}

#art4 {
    /* use position relative on the parent */
    position: relative;
}

#art4 h2 {
    color: #FF3;
    /* use position absolute on the child you want to manipulate */
    position: absolute;
    bottom: 10px; left: 0;
    border: 0px 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;
}

/* pseudo element */
#art5 div:nth-of-type(1) {
    width: 40%; aspect-ratio: 1/1;
    background-color: #F44;
    bottom: 10px; left: 64px;
    z-index: 2;
}

/* pseudo element */
#art5 div:nth-of-type(2) {
    width: 40%; aspect-ratio: 1/1;
    background-color: #44F;
    /* margin: 30px; */
    bottom: -10px; right: 64px;
    z-index: 3;
}

#art6 {
    transition: all 300ms linear;
}

/* pseudo element */
#art6:hover {
    background-color: #404;
    color: #FF4;
    border: 2px solid yellowgreen;
}

#art7 iframe {
    transform: scale(0.50);
    border: 50px solid #004;
}

#art8{
    font-style: italic;
    text-align: center;
}

#art8 div {
    border: 10px solid aqua;
    height: 200px;
    padding: 40px;
    /* background-color: rgb(130, 255, 119); */
    opacity: 40%;
    background-image: url(../hobby/images/glass-butte-map.jpg);
}
/* verticle */
#art9 {
    background-color: #46F;
    color: #F44;
    width: 100%;
 }
/* Horizontal */
#art9 h2:nth-of-type(2) {
    background: repeating-linear-gradient(
  to right,
  #f6ba52,
  #f6ba52 10px,
  #ffd180 10px,
  #ffd180 20px);
}
/* 55 degrees */
#art9 h2:nth-of-type(3){
    background: repeating-linear-gradient(
  -55deg,
  #222,
  #222 10px,
  #333 10px,
  #333 20px);
    height: 50px;
}
/* Radial */
#art9 h2:nth-of-type(4) {
    background: repeating-radial-gradient(
  circle,
  #f6ba52,
  #f6ba52 10px,
  #ffd180 10px,
  #ffd180 20px);
  height: 235px;
}

#art9 footer {
    color: white;
    font-size: 8pt;
    text-align: center;
    background-color: #999;
    height: 25px;
}

/* css ruleset, aka rule
selector {
    declaration1;
    declaration2;
    property: value;
    property: value;
    property: value1, value2, value3;
    property: value value;
}
    */

