/* Reset Rule */ 
*{
    margin: 0; padding: 0; box-sizing: border-box;
}

body{
    background-color: #cec;
    color: #234;
    font-family: verdana;
}

h1{
    text-align: center;
    margin: 8px 0px;
    border-bottom: 2px solid #234;
    padding-bottom: 8px;
}

h2{
    margin: 8px;
    font-weight: normal;
    background-color: #234;
    padding: 8px;
    color: #cec;
}

.flex_parent{
    border: 2px solid transparent;
    min-height: 100px;
    display: flex; /* Puts content side by side */
    margin: 8px 8px 40px 8px;
}

.flexchild{
    border: 4px solid green;
    min-height: 80px;
    margin: 8px;
    flex-grow: 1; /* Flex contents fit side by side nicely */
    text-align: center;
    font-weight: bold;
}

.demo2 .flex_parent{
    border: 2px solid transparent;
    justify-content: space-around;
}

.demo2 .flexchild{
    border: 2px solid maroon;
    flex-grow: 0;
    min-width: 16px;
}

.demo3 .flex_parent{
    justify-content: space-between;
    border: 4px solid transparent;
}

.demo3 .flexchild{
    flex-grow: 0;
    min-width: 16px;
    border: 4px solid black;
}

.demo4 .flex_parent{
    justify-content: space-evenly;
    border: 4px solid transparent;
}

.demo4 .flexchild{
    flex-grow: 0;
    min-width: 16px;
    border: 4px solid black;
}

.demo5 .flex_parent,
.demo6 .flex_parent{
    border: 4px solid transparent;
}

.demo5 .flex_parent{
    flex-direction: column-reverse;

}

.demo5 .flexchild:last-child{
    background-color: hotpink;
}

.demo6 .flex_parent{
    display: flex;
    flex-flow: row wrap; /* Flex-direction and flex-wrap */
    justify-content: space-evenly;
}

.demo6 .flexchild{
    background-color: pink;
    min-width: 500px;
    flex-grow: 1; /* 0 sets children to smallest allowed width. 1 expands as much as possible based on limitations */
}

.demo7 .flex_parent{
    border: 4px solid transparent;
    min-height: 200px;
    justify-content: center; /* Horizontially centers content */
}

.demo7 .flexchild{
    flex-grow: 0;
}

.demo7 .flexchild:last-child{
    background-color: yellow;
    min-width: 100px; max-height: 100px; aspect-ratio: 1;
    align-self: center; /* Vertically centers content */
}

.demo8 .flex_parent{
    border: 4px solid red;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
}

.demo8 .flexchild{
    flex-basis: 25%; /* Allows us to make an arrangement we may prefer */
    margin: 0;
    flex-grow: 1;
}

