.graph {
    position: relative;
    background: rgba(255, 255, 255, 0);
}
.graph:focus {
    outline: #76d2b8 solid 0.2em;
}
.graph div.background {
    position: absolute;
    background: #E3EFE3;
}
.graph div.button-layer {
    position: absolute;
    text-align: right;
}
.graph div.button-layer a {
    opacity: 0.3;
    color: black;
    font-size: 120%;
}
.graph div.button-layer a:hover {
    opacity: 1;
}
.graph div.button-layer a:active {
    opacity: 0.6;
}
.graph div.button-layer .active {
  color: #00b4d6;
}

.graph ul.legend-layer {
    position: absolute;
    text-align: left;
    margin: 0;
    border: 1px solid #bcbcbc;
    background-color: rgba(255, 255, 255, 0.8);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, transparent), color-stop(100%, rgba(230, 230, 230, 0.5)));
    background-image: -webkit-linear-gradient(top, transparent, rgba(230, 230, 230, 0.5));
    background-image: -moz-linear-gradient(top, transparent, rgba(230, 230, 230, 0.5));
    background-image: -ms-linear-gradient(top, transparent, rgba(230, 230, 230, 0.5));
    background-image: -o-linear-gradient(top, transparent, rgba(230, 230, 230, 0.5));
    background-image: linear-gradient(top, transparent, rgba(230, 230, 230, 0.5));
    padding: 0.15em 0.3em;
    color: #333333;
    border-radius: 0.4em;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    list-style: none;
}
.graph .legend-layer li{
  margin: 0.15em 0 0.15em 0;
}
.graph .legend-layer label{
  margin-left: 0.2em;
}
.graph div.legend-colorsquare{
  vertical-align: middle;
  display: inline-block;
  width: 0.7em;
  height: 0.25em;
  margin: 0.1em;
}
.graph ul.legend-layer.legend-invisible{
  display:none;
}
.graph canvas.overlay {
    position: absolute;
}
svg.graph:focus {
    outline: #76d2b8 solid 0.2em;
}
svg.graph text.title {
    font-size: 0.9em;
}
svg.graph text.ylabel {
    font-size: 0.8em;
}
svg.graph text.xlabel {
    font-size: 0.8em;
}
svg.graph text.axis {
    font-size: 0.8em;
}
svg.graph text.axis:focus {
    outline: #76d2b8 solid 0.2em;
}
svg.graph rect.draggable-axis {
    fill: rgba(255, 255, 255, 0);
}
svg.graph rect.draggable-axis:hover {
    fill: rgba(196, 196, 196, 0.2);
}
svg.graph .ruler.hidden {
    visibility: hidden;
}
svg.graph circle {
    fill: none;
    fill-opacity: 0.2;
    stroke: steelblue;
    cursor: move;
}
svg.graph circle.selected {
    fill: #ff7f0e;
    stroke: #ff7f0e;
}
svg.graph circle:hover {
    fill: #ff7f0e;
    stroke: #707f0e;
}
svg.graph circle.selected:hover {
    fill: #ff7f0e;
    stroke: #ff7f0e;
}
svg.graph .brush .extent {
    opacity: 0.2;
}
