/*New styles*/
svg {
  float: left;
  padding: 1rem 2rem;
}

.legend {
  position: absolute;
  right: 0;
  top: 0;
  width: 400px;
}

.legend ul{
  text-align: right;
  list-style-type: none;
}
.legend li,
.legend li p {
  margin: 0.1rem;
  font-size: 0.8rem;
}

.viz {
  overflow: hidden;
}

/*.reagan {
  background: green;
}*/

.blue {
  margin-top: 0.35rem;
  margin-left: 1rem;
  float: right;
  background: blue;
  width: 10px;
  height: 10px;
}

.green {
  margin-top: 0.35rem;
  margin-left: 1rem;
  float: right;
  background: green;
  width: 10px;
  height: 10px;
}

.orange {
  margin-top: 0.35rem;
  margin-left: 1rem;
  float: right;
  background: orange;
  width: 10px;
  height: 10px;
}

#field-desc {
  padding-left: 2rem;
  margin-top: 2rem;
}

#field-desc > * {
    float: left;
    width: 30%;
    margin: 0 1%;
}

.measure-desc {
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.desc-title {
  font-size: 1.5rem;
  line-height: 1;
}

.scores {
  font-size: 1.2rem;
  line-height: 1.5;
}

.scores .score {
    display: block;
}

.radar-chart .area {
  fill-opacity: 0.7;
}
.radar-chart.focus .area {
  fill-opacity: 0.3;
}
.radar-chart.focus .area.focused {
  fill-opacity: 0.9;
}

/*.x text { display: none; }*/

.back {
  fill: grey;
}

.back:hover {
  fill: black;
}

.bar {
  fill: steelblue;
}

.bar:hover {
  fill: brown;
}

.axis {
  font: 10px sans-serif;
}

.axis path,
.axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

.x.axis path {
  display: none;
}

/*From d3-radar*/
.radar-chart .level {
  stroke: grey;
  stroke-width: 0.5;
}

.radar-chart .axis line {
  stroke: grey;
  stroke-width: 1;
}
.radar-chart .axis .legend {
  font-family: sans-serif;
  font-size: 10px;
}
.radar-chart .axis .legend.top {
  dy:1em;
}
.radar-chart .axis .legend.left {
  text-anchor: start;
}
.radar-chart .axis .legend.middle {
  text-anchor: middle;
}
.radar-chart .axis .legend.right {
  text-anchor: end;
}

.radar-chart .tooltip {
  font-family: sans-serif;
  font-size: 1.5rem;
  transition: opacity 200ms;
  opacity: 0;
}
.radar-chart .tooltip.visible {
  opacity: 1;
}

/* area transition when hovering */
.radar-chart .area {
  stroke-width: 2;
  fill-opacity: 0.5;
}
.radar-chart.focus .area {
  fill-opacity: 0.1;
}
.radar-chart.focus .area.focused {
  fill-opacity: 0.7;
}

.radar-chart .circle {
  fill-opacity: 0.9;
}

/* transitions */
.radar-chart .area, .radar-chart .circle {
  transition: opacity 300ms, fill-opacity 200ms;
  opacity: 1;
}
.radar-chart .d3-enter, .radar-chart .d3-exit {
  opacity: 0;
}

#chart-container {
    overflow: hidden;
}

.viz {
    margin-bottom: 2em;
    position: relative;
}
