*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: #CEC;
    color: #234;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1{
    text-align: center;
    margin: 8px 0;
    border-bottom: 2px solid #234;
    padding-bottom: 8px;
}

h2{
    margin: 8px;
    font-weight: normal;
    background-color: #234;
    color: #CEC;
    padding: 4px;
}

.flex-parent{
    border: 4px solid transparent;
    min-height: 100px;
    display: flex;
    margin: 8px 8px 40px 8px;
}

.flexchild{
    border: 4px solid green;
    min-height: 80px;
    margin: 8px;
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
}

.demo2 .flex-parent{
    border: 4px solid transparent;
    justify-content: space-around;
}

.demo2 .flexchild{
    border: 4px solid black;
    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: row-reverse;
}

.demo5 .flexchild:last-child{
    background-color: yellow;
}

.demo6 .flex-parent{
    display: flex;
    flex-flow: row wrap; /*flex-diorection, flex wrap*/
    justify-content: space-evenly;
}

.demo6 .flexchild{
    background-color: pink;
    min-width: 200px;
    flex-grow: 1;
}

.demo7 .flex-parent{
    border: 4px solid transparent;
    min-height: 200px;
    justify-content: center;  /*horizontaL center*/
}

.demo7 .flexchild{
    flex-grow: 0;
    min-width: 100px;
}

.demo7 .flexchild:last-child{
    background-color: yellow;
    max-height: 100px;
    align-self: center; /*vertical center*/
}

.demo8 .flex-parent{
    border: 4px solid transparent;
    flex-flow: row wrap;
    gap: 10px;
}

.demo8 .flexchild{
    flex-basis: 30%;
    margin: 0;
    flex-grow: 1;
}