/* RESET RULE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* MAIN BODY RULES */
body {
    background-color: teal;
    color: salmon;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* HEADERS */

h1 {
    text-align: center;
    margin: 2vw 0;
    border-bottom: 4px solid salmon;
    padding-bottom: 1vw;
    text-shadow: 1px 1px 1px black;
}

h2 {
    margin: 3px 6px 3px 6px;
    padding: 2px;
    text-shadow: 1px 1px 1px black;
    background-color: azure;
    color: rgb(255, 150, 138);
    text-align: center;
}

/* ARTICLE TEXT RULE */
article {
    color: black;
    font-weight: bold;
    text-align: center;
}

/*FLEX BOXES */

.flex-parent {
    border: 4px solid transparent;
    min-height: 100px;
    display: flex;
    margin: 8px 8px 32px 8px;
}

.flex-child {
    border: 4px solid red;
    min-height: 8em;
    margin: 8px;
    flex-grow: 1;
}

.demo2 .flex-parent {
    border: 4px solid transparent;
    justify-content: space-around;
}

.demo2 .flex-child {
    border: 4px solid orange;
    flex-grow: 0;
    min-width: 8em;

}

.demo3 .flex-parent {
    justify-content: space-between;
    border: 4px solid transparent
}

.demo3 .flex-child {
    border: 4px solid yellow;
    flex-grow: 0;
    min-width: 8em;
}

.demo4 .flex-parent {
    justify-content: space-evenly;
    border: 4px solid transparent
}

.demo4 .flex-child {
    border: 4px solid rgb(0, 215, 0);
    flex-grow: 0;
    min-width: 8em;
}

.demo5 .flex-parent,
.demo6 .flex-parent {
    border: 4px solid transparent;
}

.demo5 .flex-parent {
    font-size: 18pt;
    text-align: center;
    font-weight: bold;
    flex-direction: row-reverse;
}

.demo5 .flex-child {
    border: 4px solid blue;
}

.demo5 .flex-child:last-child {
    background-color: crimson;
}

.demo6 .flex-parent {
    display: flex;
    flex-flow: row wrap;
    /* flex-direction, flex-wrap  */
    justify-content: space-evenly;
}

.demo6 .flex-child {
    border: 4px solid purple;
    background-color: pink;
    min-width: 16em;
    flex-grow: 1;
}

.demo7 .flex-parent {
    border: 4px solid transparent;
    min-height: 15em;
    justify-content: center;
}

.demo7 .flex-child {
    flex-grow: 0;
}

.demo7 .flex-child:last-child {
    background-color: yellow;
    max-height: 7.5em;
    align-self: center;
    aspect-ratio: 1;
}

.demo8 .flex-parent {
    border: 4px solid transparent;
    flex-flow: row wrap;
    gap: 10px;
}

.demo8 .flex-child {
    background-color: aliceblue;
    border: 4px solid orange;
    flex-basis: 30%;
    margin: 0;
    flex-grow: 1;
}

/* Nav Menu */
#space-small {
    margin: 1vw 0 1vw 0;
    /* Changing the homepage div conflicts with the box center margins*/
}

.hmpg-button {
    transition: all 150ms linear;
}

.hmpg {
    margin: auto;
    border: solid 4px black;
    background-color: white;
    max-width: fit-content;
}

a {
    text-decoration: none;
    color: salmon;
}

.hmpg-button:hover {
    color: blue;

}