/*reset rule*/

* {
    margin: 0; padding: 0;
}



/*type selector*/

body{
    font-family: verdana, Arial, Helvetica, sans-serif;
    background-color: rgb(7, 62, 129); 
    color: #e8e8e6;
    border: 8px solid rgb(3, 54 116);
    padding-bottom: 800px; 
    margin: 4px;
    padding: 12px;
    
}

header{
    border: 4px solid rgb(216, 215, 216);
    padding: 12px;
}


/*child selector*/

header > h1 {
    text-align: center;
    font-weight: normal;
    text-transform: uppercase; 
    font-weight: bold;
    color: rgb(84, 243, 230);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgb(82, 244, 13);
}


/* decendant selector */

header span {
    display: block;
    border: 0px;
    color: rgb(239, 239, 94);
    
}


/* class selector - affects class tags like "class= subtitle" */

.subtitle {
    text-align: center;
    /* border: 3px solid rgb(254, 59, 234); */
    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;
    margin-bottom: 800px;
}

section article {
    border: 2px solid rgb(7, 149, 220);
    max-width: 360px;
    min-height: 200px;
    margin: 4px;
    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(51, 231, 186);
   margin: 20px auto;
   border-radius: 20px;
}

#art2 div {
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color: rgb(0, 0, 0);
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: -4px 8px 20px ghostwhite;
}

#art3 {
   font-family: "Silkscreen", sans-serif;
   text-align: center;
   font-size: 18px;
   background-color: black; 
   color: rgb(11, 211, 28);
   text-shadow: 1px 2px 1px green;
}

#art4 {
    /* use position relative on the parrent */
    position: relative;
     
}

#art4 h2 {
     /* use position absolute on the child you want to manipulate */
    position: absolute;
    color: #FF3;
    bottom: 10px; left: 0;
    width: 100%;
    text-align: center;
    /* padding-bottom: 10px; */
        }


#art5 {
    position: relative;
    padding-bottom: 30px;
}

#art5 div {
    /* setting position absolute to ALL divs within art5 */
    position: absolute;
}

#art5 div:nth-of-type(1) {
    width: 40%; aspect-ratio: 1/1;
    background-color: rgb(240, 97, 97);
    bottom: 10px; left: 64px;
    z-index: 5;
}

#art5 div:nth-of-type(2) {
    width: 40%; aspect-ratio: 1/1;
    background-color: rgb(97, 233, 240);
    bottom: -10px; right: 64px;
    z-index: 3;
}

#art6 {
    transition: all 300ms linear;
}

/*psuedo element*/
#art6:hover {
    background-color: purple;
    color: greenyellow;
    border: 4px solid greenyellow;
}

#bkgrdimg {
    background-image: url(../images/digitalocean.png);
      background-size: cover;
      background-position: center;
}

#art7 {
    text-align: center;
    position: relative;
    
}

#image {
    width: 140px;
    height: 140px;
    position: absolute;
    top: 60px; 
    left: 120px;
    border: 3px solid greenyellow;
}
#image img {
    width: 100%; 
    height: 100%; 
    opacity: 0;
}

#image:hover img {
    opacity: 1;
    transition: all 600ms linear;
}

#art8 {
    text-align: center;

}

#art8 div {
    margin: 20px;
}

#button {
    padding: 10px;
    background-color: rgb(0, 0, 0);
    border: 4px groove #0bff2b;
    color: rgb(0, 0, 0);
    text-transform: capitalize;
    font-family: "Silkscreen", sans-serif;
}

#button:hover {
    background-color: rgb(0, 0, 0);
    border: 4px groove #0bff2b;
    color: #0bff2b;
    text-transform: capitalize;
    font-family: "Silkscreen", sans-serif;
    transition: all 100ms linear;
}

#button:active {
    background-color:#0bff2b;
    color: black;



/* css ruleset, aka rule selector {
    decleration1;
    declaration2;
    property: value;
    property: value;
    property: value1, value2, value3;
    property: value calue;
}
    */