
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html{
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-family: 'Open Sans', sans-serif;
    background: dimgrey;
}

header{
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    align-items: center;
    background: #fff;
    padding: 0 20px;
    align-self: flex-start;
    position: fixed;
    top: 0;
    left: 0;
}

footer{
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    align-items: center;
    background: #fff;
    align-self: flex-end;
    order: 2;
    position: fixed;
    bottom: 0;
    left: 0;
}

footer span{
    flex: 1;
    text-align: center;
    border-right: 1px solid #ddd;
}

footer span:last-child{
    border-right: 0px;
}

ol{
    background: dimgrey;
    color: #fff;
    width: 100%;
    padding: 10px 40px;
    font-size: 14px;
    margin-top: 48px;
}

ol.olTwo{
    order: 1;
    margin-top: 0px;
    margin-bottom: 48px;
}

h5{
    text-align: center;
    font-size: 16px;
}

#main{
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    flex:1;
    align-content: center;
    background: -webkit-linear-gradient(top, #222, #333);
    background: linear-gradient(top, #222, #333);
}

.button{
    width: 100px;
    height: 40px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px #617586,inset 0 0 40px 5px rgba(0,0,0,.3),0 0 2px 1px rgba(0,0,0,.5);
    margin: 15px 10px 6px;
    text-align: center;
    line-height: 40px;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,.5);
    cursor: pointer;
    text-decoration: none;
}

[class$="face"] {
    margin: 16px;
    padding: 4px;

    background-color: #e7e7e7;
    width: 104px;
    height: 104px;
    object-fit: contain;

    box-shadow: inset 0 5px white,
    inset 0 -5px #bbb,
    inset 5px 0 #d7d7d7,
    inset -5px 0 #d7d7d7;

    border-radius: 10%;

    display: flex;
}

.pip {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 4px;

    background-color: brown;
    box-shadow: inset 0 3px #111, inset 0 -3px #513;

}

.first-face {
    align-items: center;
}

.second-face .pip:nth-of-type(2) {
    align-self: flex-end;
}

.third-face .pip:nth-of-type(2) {
    align-self: center;
}

.third-face .pip:nth-of-type(3) {
    align-self: flex-end;
}

.fourth-face,
.sixth-face {
    justify-content: space-between;
}

.fourth-face .column,
.sixth-face .column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fifth-face .column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fifth-face .column:nth-of-type(2) {
    justify-content: center;
}
