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


body{
    background-color: rgb(25, 52, 79); color: #EEE;
    font-family: verdana, arial, sans-serif;
    padding: 12px;
   

}

header{
    border: 2px solid dodgerblue;
    padding: 12px;

}

/* child selector */

header > h1 {
    text-align: center;
    font-family: "Sekuya", system-ui;
    font-weight: normal;
    text-transform: uppercase;
    color:#FFC;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid skyblue;
}

/* descendent selector */

header span {
    display: block;
    border: 0px;
    color: #FFC;

}

/* class selector */

.subtitle {
    text-align: center;
    /* border: 2px solid #222; */
    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;
}

section article {
    border: 2px solid skyblue;
    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;
    border-radius: 20px;
}

#art2 div {
    width: 70%;
    aspect-ratio: 2.5/1;
    background-color: #FFC;
    /* center a block */
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: -4px 8px 14px white;
}

#art3 h2 {
    font-family: "Sekuya", system-ui;
    text-align: center;
    font-size: 18pt;
    color: #FFC;
    border: 2px solid dodgerblue;
}

#art4 {
    /* use position relative on the parent */
    position: relative;
}

#art4 h2 {
    color:#FFC;
    /*use position absolute on the child you want to manipulate */
    position: absolute;
    bottom: 0; right: 0;
    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: dodgerblue;
    bottom: 10px; left: 64px;
    z-index: 10;
}

#art5 div:nth-of-type(2) {
    width: 40%; aspect-ratio: 1;
    background-color:gold;
    bottom: -10px; right: 64px;
    z-index: 5;
}

#art6 {
    transition: all 300ms linear;
}

/* pseudo element */
#art6:hover {
    background-color:darkblue;
    color: gold;
    border: 2px solid gold;
}




/* css ruleset, aka rule
selector {
    declaration1; 
    declaration2; 
    property: value; p
    roperty: value;
    property: valuel, valuez, value3; 
    property: value value;
}
    */

