﻿.flex-container {
    padding: 0;
    margin: 0;
    list-style: none;
    /*border: 1px solid silver;*/
    flex-direction: row;
    -ms-box-orient: horizontal;
    align-items: stretch;
    align-content: center;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
}

.nowrap {
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.wrap {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

    .wrap li {
        background: gold;
    }

.wrap-reverse {
    -webkit-flex-wrap: wrap-reverse;
    flex-wrap: wrap-reverse;
}

    .wrap-reverse li {
        background: deepskyblue;
    }

.flex-item {
    background: #9ead57;
    padding: 5px;
    width: 200px;
    height: 100px;
    flex-basis: auto;
    align-self: flex-start;
    margin: 10px;
    line-height: 30px;
    color: white;
    font-weight: bold;
    font-size: 1.3em;
    text-align: center;
}

.text-centered {
    padding-top: 30px !important;
}

/* Medium screens */
@media all and (max-width: 800px) {
    .flex-container {
        /* When on medium sized screens, we center it by evenly distributing empty space around items */
        justify-content: space-around;
    }
}

/* Small screens */
@media all and (max-width: 500px) {
    .flex-container {
        /* On small screens, we are no longer using row direction but column */
        flex-direction: column;
    }
}
