body {
    box-sizing: border-box;
}

main {
    max-width: 950px;
    margin   : 0 auto;
}

.top {
    margin-top: 1em;
    max-width : 100%;
    position  : relative;
    top       : 0;
    left      : 0;
    right     : 0;
}

img.head-figure {
    height        : auto;
    max-width     : 100%;
    vertical-align: middle;
    border        : 0;
}

.button::-moz-focus-inner {
    border : 0;
    padding: 0;
}

.button {
    display        : inline-block;
    *display       : inline;
    zoom           : 1;
    padding        : 6px 10px;
    margin         : 0;
    cursor         : pointer;
    border         : 1px solid #bbb;
    overflow       : visible;
    font           : bold 13px arial, helvetica, sans-serif;
    text-decoration: none;
    white-space    : nowrap;
    color          : #555;

    background-color: #ddd;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 1)), to(rgba(255, 255, 255, 0)));
    background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    background-image: -o-linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    background-image: linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));

    -webkit-transition   : background-color .2s ease-out;
    -moz-transition      : background-color .2s ease-out;
    -ms-transition       : background-color .2s ease-out;
    -o-transition        : background-color .2s ease-out;
    transition           : background-color .2s ease-out;
    background-clip      : padding-box;
    /* Fix bleeding */
    -moz-border-radius   : 3px;
    -webkit-border-radius: 3px;
    border-radius        : 3px;
    -moz-box-shadow      : 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
    -webkit-box-shadow   : 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
    box-shadow           : 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
    text-shadow          : 0 1px 0 rgba(255, 255, 255, .9);

    -webkit-touch-callout: none;
    -webkit-user-select  : none;
    -khtml-user-select   : none;
    -moz-user-select     : none;
    -ms-user-select      : none;
    user-select          : none;
}

.button:hover {
    background-color: #eee;
    color           : #555;
}

.button:active {
    background        : #e9e9e9;
    position          : relative;
    top               : 1px;
    text-shadow       : none;
    -moz-box-shadow   : 0 1px 1px rgba(0, 0, 0, .3) inset;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
    box-shadow        : 0 1px 1px rgba(0, 0, 0, .3) inset;
}

.button[class~="clicked"] {
    background        : #e9e9e9;
    position          : relative;
    top               : 1px;
    text-shadow       : none;
    -moz-box-shadow   : 0 1px 1px rgba(0, 0, 0, .3) inset;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
    box-shadow        : 0 1px 1px rgba(0, 0, 0, .3) inset;
}

.nav-buttons {
    display: flex;
    justify-content: center;
}

.nav-buttons .button {
    padding: 6px 10px;
    margin: 0;
    flex: 0 0 12.5%;
}