@font-face {
  font-family: "et-book";
  src: url("/streamflows/public/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot");
  src: url("/streamflows/public/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot?#iefix") format("embedded-opentype"),
       url("/streamflows/public/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"),
       url("/streamflows/public/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf") format("truetype"),
       url("/streamflows/public/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg#etbookromanosf") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "et-book";
  src: url("/streamflows/public/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot");
  src: url("/streamflows/public/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot?#iefix") format("embedded-opentype"),
       url("/streamflows/public/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff") format("woff"),
       url("/streamflows/public/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf") format("truetype"),
       url("/streamflows/public/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg#etbookromanosf") format("svg");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "et-book";
  src: url("/streamflows/public/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot");
  src: url("/streamflows/public/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot?#iefix") format("embedded-opentype"),
       url("/streamflows/public/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff") format("woff"),
       url("/streamflows/public/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf") format("truetype"),
       url("/streamflows/public/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg#etbookromanosf") format("svg");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "et-book-roman-old-style";
  src: url("/streamflows/public/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot");
  src: url("/streamflows/public/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot?#iefix") format("embedded-opentype"),
       url("/streamflows/public/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff") format("woff"),
       url("/streamflows/public/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf") format("truetype"),
       url("/streamflows/public/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg#etbookromanosf") format("svg");
  font-weight: normal;
  font-style: normal;
}

html {
  font-size: 15px;
}

html, body {
  height: 100%;
  width:  100%;
  padding: 0;
  margin:  0;
  background-color: #fffff8;
  color: #444;
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
}

.container {
  width: 600px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

section {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: block;
}

.basin {
  fill: none;
  stroke: #aaa;
  stroke-width: 1px;
}

.river {
  fill: none;
  stroke: #81CFE0;
  stroke-width: 1px;
}

.measurement {
  stroke: #444;
  fill: #eee;
  stroke-width: 1px;
}

.measurement:hover {
  stroke: #36d7b7;
}

.livecam.measurement {
  cursor: pointer;
}

.load-error {
  width: 600px;
  height: 288px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: #eee;
}

.load-error .text {
  line-height: 288px;
}

noscript .text {
  text-align: center;
  width: 600px;
  background-color: #F1A9A0;
  border-radius: 5px;
  border: 2px solid #D64541;
  color: white;
  padding: 10px;
}

.title {
  font-weight: 400;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  font-size: 3.2rem;
  line-height: 1;
}

.subtitle {
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  display: block;
  line-height: 1;
}

.text {
  width: 100%;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  vertical-align: baseline;
  font-size: 1.4rem;
  line-height: 2rem;
}

a:link, a:visited { color: inherit; }

figure {
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.figure-title {
  font-style: italic;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  vertical-align: baseline;
  font-size: 1.4rem;
  line-height: 2rem;
}

.map {
  height: 460px;
  margin-bottom: 50px;
}

.tooltip {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  font-size: 1.2rem;
}

.tooltip .line {
  padding: 3px 0;
}

.tooltip .line:last-of-type {
  margin-bottom: 20px;
}

.tooltip .station {
  text-transform: capitalize;
  margin: 0 0 5px;
  font-weight: bold;
  font-style: italic;
}

.tooltip .measurement-value {
  display: inline-block;
  width: 90px;
}

.tooltip .field,
.tooltip .livestream {
  font-style: italic;
}

.tooltip .field {
  width: 75px;
}

.tooltip .field,
.tooltip .value {
  vertical-align: baseline;
  display: inline-block;
  text-align: left;
}

.tooltip .time,
.tooltip .livestream {
  color: #aaa;
}

.instructions {
  color: #aaa;
  font-size: 1.2rem;
  font-style: italic;
  position: absolute;
  bottom: 30px;
  left: 0;
  margin: 0;
}

.legend {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 1.2rem;
}

.legend div {
  display: inline-block;
}

.legend .river-key,
.legend .basin-key {
  height: 2px;
  width: 10px;
  vertical-align: middle;
}

.legend .key {
  margin-right: 3px;
}

.legend .river-key { background-color: #81CFE0; }
.legend .basin-key { background-color: #aaa; }

.legend .measurement-key {
  border-radius: 2px;
  height: 2px;
  width: 2px;
  background-color: #eee;
  border: 1px solid #444;
  vertical-align: middle;
}

.legend .livestream-key {
  border-radius: 6px;
  height: 6px;
  width: 6px;
  background-color: #eee;
  border: 1px solid #444;
  vertical-align: middle;
}

.loading {
  margin: 100px auto;
  height: 40px;
  text-align: center;
  font-size: 10px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.loading > div {
  background-color: #666;
  height: 100%;
  width: 6px;
  display: inline-block;
  margin: 2px;
  -webkit-animation: stretch 1.2s infinite ease-in-out;
     -moz-animation: stretch 1.2s infinite ease-in-out;
          animation: stretch 1.2s infinite ease-in-out;
}

.loading div:nth-child(2) {
  -webkit-animation-delay: -1.1s;
     -moz-animation-delay: -1.1s;
          animation-delay: -1.1s;
}

.loading div:nth-child(3) {
  -webkit-animation-delay: -1.0s;
     -moz-animation-delay: -1.0s;
          animation-delay: -1.0s;
}

.loading div:nth-child(4) {
  -webkit-animation-delay: -0.9s;
     -moz-animation-delay: -0.9s;
          animation-delay: -0.9s;
}

.loading div:nth-child(5) {
  -webkit-animation-delay: -0.8s;
     -moz-animation-delay: -0.8s;
          animation-delay: -0.8s;
}

@-webkit-keyframes stretch {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
  20%           { -webkit-transform: scaleY(1.0) }
}

@keyframes stretch {
  0%, 40%, 100% {
    -webkit-transform: scaleY(0.4);
            transform: scaleY(0.4);
  }
  20% {
    -webkit-transform: scaleY(1.0);
            transform: scaleY(1.0);
  }
}

.tabular-data {
  margin-top: 25px;
  margin-bottom: 20px;
  height: 650px;
}

.tabular-data table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  display: block;
  font-size: 1.2rem;
  text-align: left;
}

.tabular-data thead tr th {
  font-weight: normal;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
  cursor: pointer;
}

.tabular-data th.asc:after,
.tabular-data th.desc:after {
  display: inline-block;
  font-size: 10px;
  vertical-align: middle;
}

.tabular-data th.desc:after {
  content: '\25bc';
}

.tabular-data th.asc:after {
  content: '\25b2';
}

.tabular-data tbody tr td {
  padding-top: 15px;
}

.tabular-data tbody {
  height: 600px;
  width: 600px;
  overflow-y: auto;
  display: block;
}

.tabular-data tr th,
.tabular-data tr td {
  width: 100px;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  vertical-align: baseline;
  line-height: 1.6rem;
}

.tabular-data tr th:first-of-type,
.tabular-data tr td:first-of-type {
  width: 274px;
  padding-right: 25px;
  max-width: 274px;
}

.tabular-data tr td:first-of-type {
  font-style: italic;
  text-transform: capitalize;
}
