ul,li {list-style:none;padding:0;margin:0;}
html{
    -ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;
    line-height: 1.5;
    font-family: "Roboto", sans-serif;
    font-weight: normal;
    color: #335;
}
body{margin:1em;}
table,tr {padding:0;margin:0}
tr {
    display: table-row;
    vertical-align: inherit;
    border-color: inherit;
}
table {
    display: table;
    border-collapse: separate;
    border-spacing: 2px;
    border-color: grey;
}
tbody {
    display: table-row-group;
    vertical-align: middle;
    border-color: inherit;
}
.table-list, table {
    border-collapse: collapse;
    border-spacing: 0;
}
.table-list {
    empty-cells: show;
    border: 1px solid #cbcbcb;
}
.table-list thead {
    background-color: #e0e0e0;
    color: #000;
    text-align: left;
    vertical-align: bottom;
}
.table-list td:first-child, .table-list th:first-child {
    border-left-width: 0;
}
.table-list tr:nth-child(2n-1) td {
    background-color: #f2f2f2;
}
.table-list th, .table-list td {
    padding: 0.5em 1em;
}
.table-list td, .table-list th {
    border-left: 1px solid #cbcbcb;
    border-width: 0 0 0 1px;
    font-size: inherit;
    margin: 0;
    overflow: visible;
    padding: .3em .8em;
    font-size:75%;

}
.table-list td {
    background-color: transparent;
}
td {border:1px solid #eee;padding:0 1em;font-size:75%;}
button, .btn {
    background-color: #5393da;
    border: 0;
    border-radius: .25em;
    cursor: pointer;
    display: inline-block;
    padding: .5em 1.5em;
    outline: 0;
    text-align: center;
    text-decoration: none;
    color: #fff;
}
button img {float:left;margin:0 0.7em 0 0;}
.card, .btn, button {
    transition: box-shadow .25s;
}
.card:hover, .btn:hover, button:hover {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26), 0 2px 10px 0 rgba(0, 0, 0, 0.22);
}

.card {
    position: relative;
    overflow: hidden;
    margin: 0.5rem 0 0 0;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.c0 {background:#0c0;}
.c1 {background:#b6f000;}
.c2 {background:#ff0;}
.c3 {background:#d7a800;}
.c4 {background:#d75600;}
.c5 {background:#d71d00;}
.c6 {background:#d7003b;}
.c7 {background:#d700ad;}
.c8 {background:#000;}

body {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

#q-graph {
    display: block;
    position: relative;
    width: 80vw;
    height: 300px;
    margin: 0;
    padding: 0;
    background: transparent;
    background-image: linear-gradient(bottom, #9cf 0%, #39f 100%);
    background-image: -o-linear-gradient(bottom, #9cf 0%, #39f 100%);
    background-image: -moz-linear-gradient(bottom, #9cf 0%, #39f 100%);
    background-image: -webkit-linear-gradient(bottom, #9cf 0%, #39f 100%);
    background-image: -ms-linear-gradient(bottom, #9cf 0%, #39f 100%);
    background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #9cf),color-stop(1, #39f));  
    font-size: 11px;
}

#q-graph caption {
    caption-side: top;
    width: 80vwpx;
    top: -40px;
    position: relative;
    z-index: 10;
    font-weight: bold;
    display:none;
}

#q-graph tr, #q-graph th, #q-graph td {
    position: absolute;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 0;
    text-align: center;
}

#q-graph td {
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}
#q-graph td:hover {
    background-color: #4d4d4d;
    opacity: .9;
    color: white;
}

#q-graph thead tr {
    left: 80vw;
    top: 0%;
    bottom: auto;
    margin: 0;
}

#q-graph thead th {
    width: 14vw;
    height: auto;
    padding: 0.5em 1em;
}

#q-graph thead th {
    left: 5px;
    line-height: 2;
}

#q-graph thead th.c0 {top:0;}
#q-graph thead th.c1 {top:3em;}
#q-graph thead th.c2 {top:6em;}
#q-graph thead th.c3 {top:9em;}
#q-graph thead th.c4 {top:12em;}
#q-graph thead th.c5 {top:15em;}
#q-graph thead th.c6 {top:18em;}
#q-graph thead th.c7 {top:21em;}
#q-graph thead th.c8 {top:24em;}

#q-graph tbody tr {
    height: 296px;
    padding-top: 2px;
    border-right: 1px dotted #C4C4C4;
    color: #AAA;
}

#q-graph tbody th {
    bottom: -2.75em;
    vertical-align: top;
    font-weight: normal;
    color: #333;
}
#q-graph .bar {    
    border: 1px solid;
    border-bottom: none;
    border-color: rgba(0,0,0,.5);
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

#q-graph .bar:hover p {
    display: block;
}

#q-graph .bar p {
    display: none;
    background: rgba(0, 0, 0, 0.4);
    left: 0;
    margin: 5px 0 0;
    padding: 0 5px;
    z-index: 999;
    position: absolute;
    top: -30px;
    white-space: nowrap;
    width: auto;
}

#ticks {
    position: relative;
    top: -300px;
    left: 0;
    width: 80vw;
    height: 300px;
    z-index: 1;
    margin-bottom: -270px;
    font-size: 10px;
}

#ticks .tick {
    position: relative;
    border-bottom: 1px dotted #C4C4C4;
    width: 80vw;
    text-align: right;
}

#ticks .tick p {
    margin: 0;
    position: absolute;
    right: 1vw;
    top: 0;
    white-space: nowrap;
}

@media (max-width:500px) {
    #q-graph tbody tr:nth-child(2n+0) th {
        display: none;
    }
}
/*
@media (orientation: landscape) and (max-device-width: 350px){
    #q-graph, #ticks {
        height: 90vh;
    }
    #ticks {
        top: -90vh;
    }
}
*/
#status {
    background: #ccc;
    border-radius: 50%;
    height: 15px;
    position: absolute;
    right: 2px;
    top: 2px;
    width: 15px;  
}