@import "https://fonts.googleapis.com/css?family=Open+Sans";
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #444;
  padding: 0;
  margin: 0;
  font-size: 0.8em;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.main-wrapper {
  display: block;
  padding: 1em;
  position: relative;
  height: 100%;
  width: 100%;
}

.graph-toolbar {
  min-height: 4rem;
  display: flex;
  justify-content: flex-end;
}
/* Graph Layout */
.graph-container {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.graph-container_item {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
}

.graph-container_item > svg {
  align-self: center;
  width: 100%;
  height: 100%;
}

.graph-container--map {
  padding-top: 2rem;
  height: calc(100% - 4rem);
}

.graph-container--timeline {
  height: 100%;
}

.graph-container--timeline rect.axis-cover {
  fill: #fff;
  fill-opacity: 0;
}
.graph-container--timeline rect.axis-cover.active {
  fill-opacity: 0.5;
}

.graph-legend {
  position: absolute;
  right: 0;
  top: 10%;
}

.graph-container--comparison-lollipop .graph-legend {
  display: block;
  width: 100px;
}

.stv-radio-buttons-wrapper {
  clear: both;
  margin: 0 1rem;
  align-self: center;
}

.stv-radio-button {
  position: absolute;
  left: -9999rem;
  top: -9999rem;
}
.stv-radio-button + label {
  float: left;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: 0;
  margin-right: -1px;
  color: #092c74;
  background-color: #fff;
  border: solid 1px #226fb7;
}
.stv-radio-button:checked + label {
  color: #fff;
  background-color: #092c74;
}

#map-container .tick line {
  stroke: #fff;
}

@media (max-width: 425px) {
    .graph-toolbar {
        justify-content: space-between;
    }
    .stv-radio-buttons-wrapper {
        margin: 0;
    }

    .graph-container--comparison-lollipop .graph-legend {
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
    }
}


@media (max-width: 768px) {
  .graph-container--lollipop {
    flex-direction: column;
    min-height: 100vh;
  }
  .graph-container--lollipop .graph-container_item {
    width: 100vw;
  }
}

@media (max-width: 1024px) {
  .stv-radio-button + label { 
    padding: 0.25rem 0.4rem;
  }
}

/* Tooltip */
.tooltip * {
  outline: none;
}

.tooltip h1 {
  font-size: 1.8em;
  font-weight: normal;
  margin: 0;
}

.tooltip h3 {
  margin: 0.15em 0;
  font-size: 1em;
  line-height: 1;
  text-transform: uppercase;
}

.tooltip h2 {
  margin: 0.25em 0 -0.05em;
  font-size: 1.75em;
  line-height: 1.75;
}

.tooltip h5 {
  margin: 0 0 0.25em;
  font-size: 0.85em;
}

.tooltip {
  display: block;
  position: absolute;
  margin: 0;
  font-size: 0.8em;
  padding: 0.5em 1em;
  background-color: #ffff;
  border-radius: 3px;
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  min-width: 10em;
}
.tooltip.hidden {
  display: none;
}
