* {margin: 0; padding: 0; box-sizing: border-box;}

body {
    font-family: Verdana;
    color: #234;
    background-color: #CEC;
}

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-bottom: 8px;
}

.flex-parent {
    border: 4px solid transparent;
    min-height: 100px;
    display: flex;  
}

.flex-child {
    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 .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 {
    flex-flow: row wrap;
    display: flex;
    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;
}

.demo7 .flex-child {
    flex-grow: 0;
}

.demo7 .flex-child:last-child {
    background-color: yellow;
    max-height: 100px;
    align-self: center;
    aspect-ratio: 1;
}

.demo8 .flex-parent {
    flex-flow: row wrap;
    border: 4px solid transparent;
    justify-content: center;
    gap: 0px;
}

.demo8 .flex-child {
    margin: 0;
    flex-basis: 25%;
    flex-grow: 1;
}

.demo9 .flex-parent {
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.fancy-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #234;
    color: #CEC;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #CEC;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.fancy-button:hover {
    background-color: #CEC;
    color: #234;
    border-color: #234;
}
