.container1 {
    display: flex;
    background: #8ebbe1;
    margin: 50px;
    border: 2px solid #000;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 700px;
    height: 200px;
}

.container2 {
    display: flex;
    background: #8ebbe1;
    margin: 50px;
    border: 2px solid #000;
    flex-wrap: wrap;
    align-content: flex-end;
    width: 700px;
    height: 200px;
}

.container3 {
    display: flex;
    background: #8ebbe1;
    margin: 50px;
    border: 2px solid #000;
    flex-wrap: wrap;
    align-content: center;
    width: 700px;
    height: 200px;
}

.container4 {
    display: flex;
    background: #8ebbe1;
    margin: 50px;
    border: 2px solid #000;
    flex-wrap: wrap;
    align-content: space-between;
    width: 700px;
    height: 200px;
}

.container5 {
    display: flex;
    background: #8ebbe1;
    margin: 50px;
    border: 2px solid #000;
    flex-wrap: wrap;
    align-content: space-around;
    width: 700px;
    height: 200px;
}

.container6 {
    display: flex;
    background: #8ebbe1;
    margin: 50px;
    border: 2px solid #000;
    flex-wrap: wrap;
    align-content: stretch;
    width: 700px;
    height: 200px;
}

.item {
    border: 2px solid black;
    background-color: grey;
    color: white;
    width: 345px;
    height: 50px;
    font-size: 26px;
    text-align: center;
    font-weight: bold;
}

.container1 .item:first-child,
.container2 .item:first-child,
.container3 .item:first-child,
.container4 .item:first-child,
.container5 .item:first-child,
.container6 .item:first-child {
    background-color: blueviolet;
}

.container1 .item:last-child,
.container2 .item:last-child,
.container3 .item:last-child,
.container4 .item:last-child,
.container5 .item:last-child,
.container6 .item:last-child {
    background-color: darkgoldenrod;
}