*{
    margin: 0; padding: 0; box-sizing: border-box; 
}

body {
    background-color: rgb(224, 238, 251);
    color: rgb(23, 79, 154);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1 {
    text-align: center;
    margin: 8px 0;
    border-bottom: 2px solid rgb(23,79,154);
    padding-bottom: 8px;
}

h2{
    margin: 8px;
    font-weight: normal;
    background-color: rgb(23, 79, 154);
    color:   rgb(224, 238, 251);
    padding: 4px;
}

.flex-parent {
    border: 2px solid transparent;
    min-height: 100px;
    display: flex;
    margin: 8px 8px 32px 8px;
}

.flex-child {
    border: 2px solid rgb(2, 96, 2);
    min-height: 30px;
    margin: 8px;
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
    background-color: bisque;
}

.demo2 .flex-parent{
border: 4px solid transparent;
justify-content: space-around;
}

.demo2 .flex-child{
    border: 4px solid black;
    flex-grow: 0;
    min-width: 16px;
}

.demo3 .flex-parent {
    border: 4px solid transparent;
    justify-content: space-between;
}

.demo3 .flex-child {
    border: 4px solid black;
    flex-grow: 0;
    min-width: 16px;
}

.demo4 .flex-parent {
    border: 4px solid transparent;
    justify-content: space-evenly;
}

.demo4 .flex-child {
    border: 4px solid black;
    flex-grow: 0;
    min-width: 16px;
}

.demo5 .flex-parent, .demo6 .flex-parent {
    border: 4px solid transparent;
}

.demo5 .flex-parent{
    flex-direction: row-reverse;
}

.demo5 .flex-child:last-child {
background-color: yellow;
}

.demo6 .flex-parent {
    display: flex;
    flex-flow: row wrap; /*shorthand for (flex-direction: row; + flex-wrap: wrap;)*/ 
    justify-content: space-evenly;
}

.demo6 .flex-child{
    background-color: pink;
    min-width: 200px;
    flex-grow: 1;
}

.demo7 .flex-parent {
    border: 4px solid transparent;
    min-height: 200px;
    justify-content: center; /*horixontal cente*/
}

.demo7 .flex-child{
    flex-grow: 0;
}

.demo7 .flex-child:last-child {
    background-color: yellow;
    min-width: 100px; aspect-ratio: 1;
    align-self: center; /*vertical center*/
}

.demo8 .flex-parent {
    border: 4px solid transparent;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
}

.demo8 .flex-child {
    flex-basis: 25%;
    margin: 0;
    flex-grow: 1;
}

.demo9 .flex-parent{
    border: 4px solid red;
    align-items: center;
}

.demo10 .flex-parent{
    border: 4px solid red;
    flex-flow: row wrap;
    align-content: center;
    min-height: 200px;
}

.demo10 .flex-child{
    min-width: 30%;
}

.demo11 .flex-parent{
    justify-content: center;
}

.demo11 .flex-child:nth-child(1) {
    order:3;
}

.demo11 .flex-child:nth-child(2) {
    order:4;
}

.demo11 .flex-child:nth-child(3) {
    order:2;
}
.demo11 .flex-child:nth-child(4) {
    order:1;
}

