body {
    font-family: sans-serif; 
    font-size: 0.9em;
    background: white;
    color: black;
}

#header > h1, #header > h2 {
    margin: 0;
    text-align: center;
}

#header > span {
    display: block;
    text-align: center;
    font-size: 0.8em;
}

#header a:link, #header a:visited {
    text-decoration: none;
    color: blue;
}

#gentime {
    font-size: 0.7em;
    padding-top: 1em;
    text-align: center;
}

#info {
    margin: 1em auto 0;
    border: 1px solid #cccccc;
    background: #f7f7f7;
    display: table;
    font-size: 0.8em;
    min-width: 20em;
}

#info ul {
    margin: 0;
    padding: .5em;
}

#info li {
    margin: 0;
    list-style: none;
    display: table-row;
}

#info li span {
    display: table-cell;
}

#info li span:first-child {
    min-width: 10em;
    font-weight: bold;
}

#quicklinks, #legend {
    margin: 1em auto 0;
    border: 1px solid #cccccc;
    background: #f7f7f7;
    display: table;
}

#quicklinks ul {
    margin: 0;
    padding: 0;
}

#quicklinks li {
    list-style: square inside;
    margin: 0;
    padding-top: 0.3em;
    font-size: 0.8em;
}

#quicklinks a:link, #quicklinks a:visited {
    color: black;
    text-decoration: none;
}

#quicklinks a:hover {
    text-decoration: underline;
}

#quicklinks > div {
    display: table-row;
}

#quicklinks > div > div {
    padding: 1em;
    min-width: 8em;
    display: table-cell;
}

#quicklinks h3 {
    margin: 0;
}

#log {
    margin: 1em;
}

#log table {
    padding: 0;
    width: 100%;
}

#log tr {
    list-style: none;
    width: 100%;
}

#log td {
    padding: .3em;
}

#log td:nth-child(2):not(:last-child) {
    text-align: center;
}

#log tr:nth-child(odd) {
    background: #e7e7e7;
}

#log tr:nth-child(even) {
    background: #f7f7f7;
}

#log a:link, a:visited {
    color: black;
    text-decoration: none;
}

#log a:hover {
    text-decoration: underline;
}

#legend {
    padding: .4em;
    font-size: .7em;
}

#legend div:last-child {
    margin-top: 1em;
}

#legend h4 {
    margin: 0;
    padding: 0;
}

#series ul {
    -moz-column-count: 4;
    -webkit-column-count: 4;
    column-count: 4;
    margin: 1em 0;
    padding: 0;
}

#series li {
    display: block;
    list-style: none;
    margin: 0;
    position: relative;
}

#series li a:first-child {
    padding: .5em;
    display: block;
}

#series li a:last-child {
    position: absolute;
    font-size: 0.7em;
    font-weight: bold;
    padding-left: 0.5em;
    padding-bottom: 0.4em;

    bottom: 0.6em;
    right: .6em;

    visibility: hidden;
}

#series li:hover a:last-child {
    visibility: visible;
}

#series li a:link, li a:visited {
    color: black;
    text-decoration: none;
}

#series li a:hover {
    text-decoration: underline;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    /** Webkit does _not_ like position:relative inside
        a css3 column list. **/

    #series li {
        position: static;
    }

    #series li a:last-child {
        position: static;
        float: right;
        margin-top: -2.3em;
        margin-right: .6em;
        top: none;
        right: none;
    }
}

div.year {
    float: left;
    width: 50%;
    padding-bottom: 1em;
}

div#weekdays {
    padding-bottom: 1.3em;
}

div#hours {
    clear: both;
}

div.year strong {
    clear: left;
    min-width: 30%;
}

#stats h3 {
    margin: 0;
}

#stats h2 {
    margin: 1em 0 .3em 0;
}

#stats h2:first-child {
    margin-top: 0;
}

div.year strong, div.year span {
    float: left;
    display: block;
    font-size: .7em;
}

#stats table {
    width: 100%;
    clear: both;
    padding-right: 0.5em;
}

#stats tr.stat:nth-child(even) {
    background: #f7f7f7;
}

#stats tr.stat:nth-child(odd) {
    background: #e7e7e7;
}

#stats td {
    padding: .3em;
}

#stats td:first-child {
    width: 25%;
}

#stats td:last-child {
    width: 50%;
    padding: 0;
}

#stats tr.stat:nth-child(even) td:last-child > div {
    background: #99ff80;
    padding: .3em;
}

#stats tr.stat:nth-child(odd) td:last-child > div {
    background: #ffe680;
    padding: .3em;
}

.f_0 { font-weight: bold; }
.d_1, .d_1 a, #series li.d_1 a { color: #cc3030; }

.r_10, #series li.r_10 a:last-child { background: #80ff80; }
.r_9,  #series li.r_9 a:last-child  { background: #99ff80; }
.r_8,  #series li.r_8 a:last-child  { background: #b3ff80; }
.r_7,  #series li.r_7 a:last-child  { background: #ccff80; }
.r_6,  #series li.r_6 a:last-child  { background: #e6ff80; }
.r_5,  #series li.r_5 a:last-child  { background: #ffff80; }
.r_4,  #series li.r_4 a:last-child  { background: #ffe680; }
.r_3,  #series li.r_3 a:last-child  { background: #ffcc80; }
.r_2,  #series li.r_2 a:last-child  { background: #ffb380; }
.r_1,  #series li.r_1 a:last-child  { background: #ff9980; }
.r_0,  #series li.r_0 a:last-child  { background: #ffffff; }

#log td.r_0 { background: none; }

