
.flex-container {
    display: -webkit-flex;
    display: flex;
    width: auto;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
            
    justify-content: center;
}

.flex-item {
    width: 210px;
    height: 210px;
    margin: 8px;    
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #FFF;    
    padding: 0;            
}

.flex-item.blank {
    height: 0px;
    background-color: transparent;
}

.flex-item.small {
    width: 104px;
    height: 104px;
    margin: 3px 4px 4px 3px;
    position: relative;
    padding: 0;
}

.flex-item.small.enabled {
    opacity: 1;
} 

a.block {
    display: block;
    height: 100%;
    width: 100%;    
}

/* main layout */

#main {
    margin: 0px;
    padding: 0px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row;
    flex-flow: row;
}

#main > nav {
    -webkit-flex: 1 6 20%;
    flex: 1 6 20%;
    -webkit-order: 1;
    order: 1;
}

#main > article {
    -webkit-flex: 3 1 60%;
    flex: 3 1 60%;
    -webkit-order: 2;
    order: 2;
}

#main > aside {
    -webkit-flex: 1 6 20%;
    flex: 1 6 20%;
    -webkit-order: 3;
    order: 3;
}

header, footer {
    display: block;
    min-height: 100px;
}

/* Too narrow to support three columns */
@media all and (max-width: 640px) {

    #main, #page {
        -webkit-flex-flow: column;
        flex-direction: column;
    }
    
    #main > article, #main > nav, #main > aside {
    /* Return them to document order */
        -webkit-order: 0;
        order: 0;
        flex: auto;
    }
        
}


.group-item {
    font-weight: bold;
    font-size: 13.5px;
    line-height: 22px;
    background-color: #FFF;
    color: #f58221;
    text-transform: uppercase;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 4px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;    
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;    
}

.group-item.selected {
    opacity: 1;
    background-color: #f58221;
    color: #FFF;
}

.group-item span {
    display: block;
    padding: 2px 0;
    margin: 0 2px;
}

.group-item:hover {
}