html, body {
  margin: 0;
  font: 13px/17px 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #666;
}

main {
  width: 100%;
  height: 100%;
}

#intro {
  display: none;
}

.flex-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.flex-row {
  flex: 1;
  display: flex;
  flex-direction: row;
}

.right-side {
  height: calc(100% - 115px);
  overflow: hidden;
}

.button {
  border-radius: 5px;
  line-height: 30px;
  padding: 0 15px;
  text-align: center;
  margin: 10px auto;
  cursor: pointer;
}

.button.red {
  background-color: #eee;
  color: #E02727;
  margin-bottom: 0;
}

.blue-button {
  background-color: transparent;
  border: 1px solid #2361AA;
  color: #2361AA;
  border-radius: 5px;
  margin: auto;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  width: 60px;
  padding: 5px;
  float: right;
}

.icon-times {
  cursor: pointer;
}

/* HEADER */

header {
  height: 65px;
  padding: 0 30px;
  font-size: 15px;
}

header > *, #controls-right > *, #search > * {
  display: inline-block;
  vertical-align: middle;
  line-height: 65px;
  cursor: pointer;
}

header > img {
  margin-right: 90px;
}

header > a{
  display: none;
}

.eras.start header > a{
  display: inline-block;
  margin-right: 20px;
}

.eras .logo {
  height: 60px;
}

#controls-right {
  float: right;
}

#add-memory-button, #search-button {
  margin-right: 30px;
}

#top-right-buttons > * {
  color: #999;
  font-size: 20px;
}

.eras #top-right-buttons, .eras #search-button, .eras #add-memory-button {
  display: none;
}

/* GENERAL LAYOUTS */
.panel-toggle {
  position: absolute;
  background-color: white;
  z-index: 700;
  height: 20px;
  padding: 10px 20px;
  cursor: pointer;
  line-height: 20px;
  font-weight: bold;
  box-shadow: 4px 0 4px rgba(0,0,0,.1);
}

.panel-toggle > * {
  display: inline-block;
  vertical-align: middle;
}

.panel-toggle span {
  margin-left: 15px;
}

.panel-toggle > i {
  float: right;
}

.panel-toggle i.open {
  display: none;
}

.panel.collapsed .panel-toggle i.close {
  display: none;
}

.panel.collapsed .panel-toggle i.open {
  display: inline-block;
}

/* SEARCH */

#search input {
  font-size: 15px;
  line-height: 30px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  outline: none;
  border: 1px solid #999;
  margin: 0;
  padding: 1px 5px;
  width: 260px;
  cursor: text;
  display: none;
}

header.search #search input, header.search #search > .search-go {
  display: inline-block;
}

header.search #controls-right .search-hide {
  display: none;
}

#search > .search-go {
  display: none;
  line-height: 30px;
  width: 30px;
  text-align: center;
  background-color: #999999;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  color: white;
  padding: 2px;
}

#search > .search-results {
  position: absolute;
  z-index: 700;
  top: 135px;
  right: 30px;
  background-color: white;
  width: 300px;
  display: none;
  line-height: 34px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0,0,0,.25);
  max-height: calc(100% - 200px);
  overflow: auto;
}

.search-results .icon-times {
  position: absolute;
  right: 5px;
  color: white;
}

.results-group > span, .results-group > div {
  padding: 0 15px;
}

.results-group > span {
  color: white;
  background-color: #666;
  display: block;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
}

.search-result {
  margin: 10px 0;
}

.search-result > span {
  display: inline-block;
  background-color: #EEEEEE;
  width: 190px;
  border-radius: 5px;
  padding: 10px 10px 10px 40px;
  line-height: 20px;
  text-indent: -20px;
  vertical-align: middle;
}

.search-result > span:hover {
  background-color: #ccc;
}

.search-result.selected > span {
  background-color: #666;
  color: white;
}

.search-result .icon-down-dir, .search-result.expanded .icon-right-dir, .search-result .result-details {
  display: none;
}

.search-result.expanded .icon-down-dir {
  display: inline-block;
}

.search-result.expanded .result-details {
  display: block;
}

.result-details {
  padding: 0 10px 0 40px;
}

.result-details p {
  margin: 10px 0;
  font-weight: bold;
  line-height: 18px;
}

.result-details p span {
  font-weight: normal;
}

/* TIMELINE */

#timeline {
  height: 50px;
  padding: 0 30px;
  box-shadow: 0 4px 4px rgba(0,0,0,.1);
  position: relative;
  z-index: 1;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none
}

.year-stepper, .timeline-inner {
  display: inline-block;
  vertical-align: middle;
}

.timeline-inner {
  width: calc(100% - 180px);
}

.year-stepper {
  width: 160px;
  margin-right: 20px;
}

.year-stepper > * {
  display: inline-block;
  vertical-align: middle;
}

.year {
  font-size: 34px;
  font-weight: bold;
  color: #07407B;
}

.year-stepper i {
  cursor: pointer;
}

.year-stepper i:before {
  color: #666;
  border-radius: 50%;
  border: 1px solid #666;
  width: 25px;
  line-height: 25px;
  margin: 0 5px;
  font-size: 18px;
}

.year-stepper i:hover:before {
  color: #333;
  border-color: #333;
}

.year-stepper i.disabled:before, .year-stepper i.disabled:hover:before {
  color: #ccc;
  border-color: #ccc;
}

.timeline {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.timeline-track {
  height: 30px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  background: #7ca2ce; /* Old browsers */
  background: -moz-linear-gradient(left, #7ca2ce 0%, #2361aa 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(left, #7ca2ce 0%,#2361aa 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to right, #7ca2ce 0%,#2361aa 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7ca2ce', endColorstr='#2361aa',GradientType=1 ); /* IE6-9 */
}

.timeline-slider {
  position: absolute;
  background-color: #ccc;
  width: 1px;
  height: 20px;
  border: 8px solid #666;
  border-radius: 3px;
  left: 0;
  top: -4px;
  margin-left: -8px;
}

.timeline-probe {
  position: absolute;
  background-color: #333;
  color: white;
  font-size: 12px;
  padding: 8px;
  width: 30px;
  border-radius: 5px;
  margin-left: -23px;
  top: -45px;
  text-align: center;
  display: none;
}

.ticks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  user-select: none;
  pointer-events: none;
}

.tick {
  position: absolute;
  top: 0;
  width: 1px;
  border-left: 1px solid white;
  height: 5px;
  font-size: 12px;
}

.tick-minor {
  height: 10px;
}

.tick span {
  font-weight: bold;
  position: absolute;
  display: block;
  color: white;
  width: 40px;
  text-align: center;
  margin-left: -20px;
  top: 7px;
}

.tick:first-child, .tick:last-child {
  border: none;
}

.tick-major:first-child span {
  text-align: left;
  margin-left: 5px;
}

.tick-major:last-child span {
  text-align: right;
  margin-left: -45px;
}

#timeline .era {
  position: absolute;
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid white;
  margin-top: 25px;
  margin-left: -5px;
}

#timeline .era:first-child, #timeline .era:last-child {
  display: none;
}

/*.era-0 {
  background-color: #7CA2CE;
}

.era-1 {
  background-color: #467FC1;
}

.era-2 {
  background-color: #2361AA;
}*/

/* MAP */

#map {
  flex: 1;
  z-index: 0;
}

.leaflet-grab {
  cursor: pointer;
}

.geolocate-control {
  cursor: pointer;
}

.geolocate-control, .geolocate-control .icon-spinner, .geolocate-control.locating .icon-direction {
  display: none;
}

.geolocate-control.locating .icon-spinner {
  display: inline-block;
}

.leaflet-left {
  margin-left: 20px;
}

.leaflet-bottom .leaflet-control.leaflet-control-zoom {
  margin-bottom: 50px;
}

/* FILMSTRIP */

#filmstrip {
  height: 170px;
  position: relative;
  transition: height .25s;
  background-color: white;
  display: none;
  box-shadow: 4px -4px 4px 0px rgba(0,0,0,0.1);
  z-index: 2;
}

#filmstrip.collapsed {
  height: 0px;
}

.filmstrip-toggle {
  min-width: 230px;
  top: -40px;
  border-top-right-radius: 5px;
  transition: y .25s;
  padding-left: 0;
  box-shadow: 4px -4px 4px rgba(0,0,0,.1)
}

.mini-thumbs {
  margin-left: 10px;
}

.mini-thumbs div {
  display: inline-block;
  border-radius: 50%;
  width: 20px; 
  height: 20px;
  overflow: hidden;
  margin: 0 3px;
  background-color: #eee;
  background-size: cover;
}

.mini-thumbs i {
  display: none;
}

.filmstrip-contents {
  display: flex;
  flex-direction: row;
}

.filmstrip-thumbnail, .filmstrip-showall {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: top;
  margin: 20px 10px;
  cursor: pointer;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

#filmstrip .filmstrip-thumbnail:first-child {
  margin-left: 20px;
}

#filmstrip i.icon-circle-notch.animate-spin, .probe i.icon-circle-notch.animate-spin {
  position: relative;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -12px;
  font-size: 16px;
  color: #999;
}

.filmstrip-thumbnails {
  flex: 1;
  overflow: auto;
  white-space: nowrap;
}

.filmstrip-thumbnails p.no-data {
  text-align: center;
  line-height: 160px;
}

.filmstrip-showall {
  border: 1px solid #95989A;
  text-align: center;
  line-height: 130px;
  background-color: #fff;
}

.raster-types i {
  display: block;
  font-size: 20px;
  padding: 12px 10px;
  cursor: pointer;
}

.raster-types i.selected {
  background-color: #2361AA;
  color: white;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.raster-types i.disabled {
  color: #ccc;
}

.all-thumbs .filmstrip-thumbnail {
  margin: 10px;
}

.thumbs-section {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.thumbs-section:last-child {
  border-bottom: none;
}

.thumbs-title {
  font-size: 20px;
  color: #07407B;
  margin: 0 0 20px 0;
}

/* LEGEND */

#legend {
  width: 280px;
  position: relative;
  transition: width .25s;
  height: 100%;
  box-shadow: 4px 0 4px rgba(0,0,0,.1);
  position: relative;
  z-index: 3;
}

#legend.collapsed {
  width: 0;
}

.legend-toggle {
  width: 10px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  top: 20px;
  left: 280px;
  transition: left .25s, width .25s;
}

#legend.collapsed .legend-toggle {
  left: 0;
  width: 160px;
}

.legend-toggle i.icon-list-bullet {
  float: none;
  display: none;
}

#legend.subsequent.collapsed .legend-toggle {
  width: 10px;
}

.legend-toggle span {
  display: none;
}

#legend.collapsed .legend-toggle span, #legend.collapsed .legend-toggle i.icon-list-bullet{
  display: inline-block;
}

#legend.subsequent .legend-toggle span, #legend.subsequent .legend-toggle i.icon-angle-double-right {
  display: none;
}

.legend-category {
  margin-bottom: 10px;
}

.category-title {
  background-color: #666;
  color: white;
  padding: 10px;
  font-size: 12px;
  font-weight: bold;
}

.legend-contents {
  height: 100%;
  overflow: auto;
}

.legend-group {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.legend-group:last-child {
  border-bottom: none;
}

.legend-group.planned input{
  visibility: hidden;
}

.group-title label {
  font-size: 15px;
  font-weight: bold;
  line-height: 40px;
}

.group-title label input{
  margin-right: 10px;
}

.swatch {
  float: right;
  margin-top: 10px;
  width: 60px;
  height: 20px;
  text-align: center;
}

.group-title .swatch.viewshed {
  margin-top: 0;
  height: 40px;
}

.layer {
  margin-left: 20px;
}

.layer-existing, .layer-plans {
  line-height: 30px;
  padding: 0 5px;
  background-color: #eee;
  display: inline-block;
  margin: 3px 0px;
  border-radius: 5px;
  width: 140px;
  cursor: pointer;
}

.layer.styled .layer-existing {
  width: 140px;
}

.layer.styled .swatch {
  margin-top: 5px;
}

.plans-dropdown {
  position: absolute;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,.25);
  z-index: 5000;
}

.plan-menu-item {
  background-color: #eee;
  margin: 0;
  padding: 10px 5px;
  cursor: pointer;
}

.plan-menu-item:hover {
  background-color: #ccc;
}

.layer-existing:hover, .layer-plans:hover {
  background-color: #ccc;
}

.layer-existing.highlighted, .layer-plans.highlighted, .plan-menu-item.highlighted {
  background-color: #666;
  color: white;
}

.layer-existing.not-present, .layer-existing.not-present:hover {
  background-color: transparent;
  color: #666;
  cursor: default;
}

.layer-plans {
  width: auto;
  margin-left: 10px;
  padding-right: 10px;
}

.layer-existing i, .layer-plans i {
  margin-right: 5px;
}

/* Probes */

.probe-hint {
  position: absolute;
  right: 30px;
  border-radius: 5px;
  top: 135px;
  padding: 10px 15px;
  z-index: 699;
  background-color: #666;
  color: white;
  box-shadow: 0 0 8px rgba(0,0,0,.25);
}

.eras .probe-hint {
  display: none;
}

.probe {
  display: none;
  position: absolute;
  z-index: 3001;
}

#fixed-probe {
  z-index: 2999;
  top: 135px;
  right: 30px;
  background-color: white;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,.25);
}

#fixed-probe.map-feature {
  padding: 10px 40px 5px 20px;
}

#fixed-probe .icon-times {
  position: absolute;
  top: 5px;
  right: 5px;
}

.fixed-probe-title {
  font-weight: bold;
  margin: 5px 0;
}

#fixed-probe .fixed-image {
  margin: 10px auto;
  display: block;
  background-repeat: no-repeat;
  cursor: pointer;
  background-size: cover;
}

#fixed-probe hr {
  margin: 15px 0;
  background: transparent;
  border-style: solid;
  border: none;
  border-top: 1px solid #ccc;
}

#filmstrip-probe .content {
  background-color: rgba(51, 51, 51, .9);
  border-radius: 5px;
  color: white;
  text-align: center;
  padding: 10px 20px;
  max-width: 150px;
}

#filmstrip-probe p {
  margin: 3px 0;
}

#filmstrip-probe .tail {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid rgba(51, 51, 51, .9);
  margin-left: calc(50% - 10px);
}

#map-probe {
  background-color: rgba(255,255,255,.8);
  border-radius: 5px;
  padding: 10px;
  max-width: 150px;
}

#map-probe strong {
  color: #333;
}

#overlay-info {
  display: none;
  position: absolute;
  right: 30px;
  border-radius: 5px;
  top: 135px;
  padding: 10px 15px;
  z-index: 2500;
  background-color: white;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,.25);
}

/* INTRO/ERAS VIEW */

.eras #filmstrip {
  position: absolute;
  bottom: 0;
  z-index: 2000;
  width: 100%;
}

.eras #timeline {
  visibility: hidden;
}

.eras #intro {
  display: block;
  position: absolute;
  z-index: 1999;
  height: calc(100% - 65px);
  top: 65px;
  width: 100%;
  background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 60%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0.9) 60%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0.9) 60%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.eras .start-intro, .eras.start .era-intro, .eras .start-intro-second, .eras.start.second .start-intro {
  display: none;
}

.eras.start .start-intro, .eras.start.second .start-intro-second {
  display: block;
}

.eras.start #filmstrip {
  display: none !important;
}

.eras .leaflet-control-container {
  display: none;
}

.eras.start #eras-button {
  visibility: hidden;
}

.eras.start.second #eras-button {
  visibility: visible;
}

.era-description {
  font-size: 20px;
  font-weight: 300;
  width: 75%;
  margin: 30px auto;
  line-height: 24px;
  color: #666;
}

.disclaimer {
  font-size: 12px;
  line-height: 14px;
  padding: 20px;
  position: absolute;
  bottom: 0px;
}

.eras .disclaimer {
  display: none;
}

.eras.start .disclaimer {
  display: block;
}

.eras.start.second .disclaimer {
  display: none;
}

.era-description-inner {
  width: 100%;
  display: inline-block;
  white-space: normal;
}

.era-description-container {
  white-space: nowrap;
}

.title-container {
  width: 100%;
  white-space: nowrap;
}

#intro h1 {
  font-size: 65px;
  font-weight: 200;
  color: #07407B;
  text-align: center;
  line-height: 75px;
  margin: 20px auto;
  width: 100%;
  display: inline-block;
  vertical-align: middle;
  white-space: normal;
  font-family: 'Helvetica Neue', Helvetica, coolvetica, Arial, sans-serif;;
  font-style: normal;
}

.go-button {
  background-color: #2361AA;
  border-radius: 5px;
  color: white;
  font-size: 27px;
  font-weight: 500;
  width: 275px;
  margin: auto;
  text-align: center;
  padding: 30px;
  cursor: pointer;
  font-family: "HelveticaNeue-CondensedBold", "HelveticaNeueBoldCondensed", "HelveticaNeue-Bold-Condensed", "Helvetica Neue Bold Condensed", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosCnBold', "Helvetica", "Arial Narrow", "Arial", sans-serif;
}

.go-button.era {
  background-color: transparent;
  border: 2px solid #2361AA;
  color: #2361AA;
}

#era-tags {
  text-align: center;
  color: #2361AA;
  font-weight: 600;
  padding: 0 20px;
  margin-bottom: 20px;
}

.era-tag {
  display: inline-block;
  margin: 10px 20px;
  cursor: pointer;
}

.era-tag:hover {
  color: black;
}

.era-tag div {
  width: 12px;
  height: 16px;
  border-radius: 3px;
  margin-right: 10px;
}

.era-tag > * {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

#era-stepper {
  text-align: center;
  font-size: 30px;
}

.era-years-container {
  width: 40%;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.era-years {
  color: #07407B;
  font-weight: 300;
  display: inline-block;
  width: 100%;
  line-height: 34px;
}

#era-stepper i {
  color: #666666;
  border-radius: 50%;
  border: 1px solid #666666;
  line-height: 50px;
  width: 50px;
  cursor: pointer;
}

#era-stepper i:before {
  width: auto;
}

#era-stepper i.disabled {
  color: #ccc;
  border-color: #ccc;
  cursor: default;
}

#era-stepper > * {
  display: inline-block;
  vertical-align: middle;
}

/* LIGHTBOX */

.lightbox {
  position: absolute;
  z-index: 3000;
  width: 100%;
  left: 0;
  top: 0;
  height: 100%;
  background-color: rgba(255,255,255,.9);
  justify-content: center;
  align-items: center;
  display: none;
}

.lightbox .content {
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 0 8px rgba(0,0,0,.25);
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.lightbox .content > div {
  max-height: 80%;
  overflow: auto;
}

.lightbox .content > div.all-thumbs {
  width: 756px;
}

.lightbox .content .icon-times {
  position: absolute;
  top: 10px;
  right: 10px;
}

.lightbox-image {
  margin: 20px auto;
  background-size: cover;
}

.lightbox a.image {
  width: 150px;
}

/* ADD MEMORY */

.add-memory {
  display: none;
}


.lightbox .content > div.add-memory {
  width: 600px;
  display: block;
}

.memory-story, .add-memory input {
  width: 100%;
  height: 6rem;
  padding: .5rem;
  line-height: 18px;
  font-size: 13px;
  margin-bottom: 20px;
}

.add-memory input {
  height: 2.5rem;
}

.add-memory input.memory-class {
  width: 30%;
}

.add-memory button {
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 18px;
  color: white;
  background-color: #2361AA;
  border-radius: 6px;
  padding: .5rem 1rem;
  margin-top: 30px;
  font-family: "HelveticaNeue-CondensedBold", "HelveticaNeueBoldCondensed", "HelveticaNeue-Bold-Condensed", "Helvetica Neue Bold Condensed", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosCnBold', "Helvetica", "Arial Narrow", "Arial", sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.add-memory button:hover {
  opacity: .85;
}

.add-memory button.disabled {
  background-color: #ccc;
  cursor: default;
}

.add-memory button.disabled:hover {
  opacity: 1;
}

.add-memory h3 {
  font-size: 18px;
  font-weight: 500;
}

.add-memory h3 span {
  color: #f82b60
}

.memory-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -125px;
  margin-top: -125px;
  height: 150px;
  width: 150px;
  z-index: 1000;
  text-align: center;
  display: none;
}

.memory-icon .icon-times {
  color: #333;
  cursor: default;
}

.memory-icon p, .memory-icon .cancel, .memory-icon .ok {
  background-color: rgba(255,255,255,.75);
  border-radius: 3px;
}

.memory-icon .ok-cancel {
  margin-top: 10px;
}

.memory-icon .cancel, .memory-icon .ok {
  font-size: 18px;
  display: inline-block;
  cursor: pointer;
}

.memory-icon .cancel {
  color: #d85757;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid #ccc;
}

.memory-icon .ok {
  color: #2361AA;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.memory-icon .icon {
  width: 26px;
  height: 41px;
  background-image: url(../img/marker-icon.png);
  background-repeat: no-repeat;
  z-index: 1000;
  margin: 0 auto -2px auto;
}

/* SLIDER */

.slider {
  position: relative;
  margin: 10px 0;
  height: 10px;
  user-select: none;
  width: calc(100% - 100px);
  display: inline-block;
}

.slider > * {
  position: absolute;
  user-select: none;
}

.slider .track {
  width: 100%;
  height: 5px;
  background-color: #eee;
  border-radius: 5px;
}

.thumb {
  width: 14px;
  height: 14px;
  background-color: #999;
  border-radius: 50%;
  margin-left: -9px;
  top: -4px;
  cursor: pointer;
  left: 100%;
}

.thumb:hover {
  background-color: #666;
}

/* Buncha mouseover styles */

#eras-button:hover,
#add-memory-button:hover,
#search-button:hover,
#top-right-buttons i:hover,
.year-stepper i:not(.disabled):hover,
#era-stepper i:not(.disabled):hover,
.panel-toggle:hover,
.filmstrip-showall:hover,
i.icon-times:hover,
i.icon-ok:hover,
#overlay-info:hover,
.raster-types i:not(.disabled):not(.selected):hover {
  color: #333;
}

.timeline-slider:hover, .filmstrip-showall:hover {
  border-color: #333;
}

.button.red:hover {
  background-color: #ccc;
}

.blue-button:hover {
  background-color: #eee;
}

@media (max-height: 700px) {
  #intro h1 {
    font-size: 60px;
    line-height: 60px;
    margin: 0 auto 10px auto;
  }

  .era-description {
    margin: 10px auto;
  }

  .era-tag {
    margin: 5px 20px;
  }
}

@media (max-width: 1000px) {
  .era-description {
    width: 90%;
    font-size: 18px;
    line-height: 22px;
  }

  .disclaimer {
    font-size: 10px;
    line-height: 12px;
  }
}

@media (max-width: 900px) {
  .era-description {
    font-size: 16px;
    line-height: 18px;
  }
}

@media (max-width: 700px) {

  .desktop {
    display: none !important;
  }

  .mobile {
    display: block;
  }

  .flex-column {
    position: relative;
  }

  .geolocate-control {
    display: block;
  }
  
  /*HEADER*/

  header {
    position: absolute;
    padding: 0;
    width: 100%;
  }


  #eras-button, #search-button {
    font-size: 24px;
    padding: 12px 5px;
    line-height: 24px;
    z-index: 2501;
    position: absolute;
  }

  header > a {
    display: none;
  }

  #top-right-buttons, #add-memory-button {
    display: none;
  }

  #search-button {
    right: 0;
    top: 0;
    margin-right: 0;
  }

  .mobile-header {
    height: 50px;
    width: 100%;
    color: #07407B;
    background-color: white;
    font-size: 20px;
    line-height: 50px;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .mobile-header .icon-times {
    color: #95989A;
    float: right;
  }

  .mobile-header span {
    font-weight: bold;
  }

  /* INTRO/ERAS */

  .eras #intro {
    top: 0;
    height: 100%;
  }

  .title-container {
    height: 250px;
    padding: 20px;
    box-sizing: border-box;
    padding: 10px;
  }

  .start .title-container {
    height: auto;
  }

  .title-container div {
    display: inline-block;
    vertical-align: middle;
    height: 100%;
  }

  .start .title-container div {
    display: none;
  }

  #intro h1 {
    font-size: 46px;
    line-height: 60px;
    white-space: normal;
  }

  .era-years {
    font-size: 22px;
  }

  .era-description {
    width: 90%;
    font-size: 16px;
    line-height: 18px;
  }

  #era-tags {
    text-align: left;
    margin-left: 12.5%;
    margin-right: 12.5%;
    padding: 0;
    margin-top: 20px;
  }

  .era-tag {
    display: block;
    margin: 15px;
    cursor: pointer;
  }

  .era-tag p {
    margin: 0;
  }

  .go-button {
    padding: 15px 30px;
    margin-top: 25px;
    left: 5%;
    width: 90%;
    box-sizing: border-box;
  }

  /*TIMELINE*/

  .year-stepper, .timeline {
    display: block;
  }

  #timeline {
    padding: 0;
    background-color: white;
    position: absolute;
    height: 50px;
    width: 100%;
    z-index: 2500;
    text-align: center;
    box-sizing: border-box;
  }

  .timeline-inner {
    padding: 15px;
    background-color: rgba(255, 255, 255, .8);
    height: 50px;
    width: 100%;
    box-sizing: border-box;
  }

  .timeline {
    width: 100%;
  }

  .timeline-track {
    height: 20px;
  }

  .timeline-slider {
    height: 12px;
  }

  #timeline .era {
    margin-top: 15px;
  }

  .year-stepper {
    margin: auto;
    height: 35px;
    padding-top: 15px;
  }

  .ticks span{
    display: none;
  }

  .year {
    font-size: 20px;
    margin: 0 10px;
  }

  /* SEARCH */

  #search {
    position: absolute;
    z-index: 2600;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #eee;
    display: none;
  }

  header.search {
    height: 100%;
  }

  header.search #search{
    display: block;
  }

  #search input {
    width: 100%;
    border-radius: 0;
    border: none;
    height: 50px;
    padding-left: 50px;
    box-sizing: border-box;
  }

  #search .icon-left-big {
    font-size: 24px;
    padding: 12px 5px;
    line-height: 24px;
    z-index: 2501;
    position: absolute;
    left: 0;
    top: 0;
  }

  #search > .search-results {
    top: 50px;
    left: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .search-results .icon-times {
    display: none;
  }

  .results-group > span {
    border-radius: 0;
  }

  .search-result > span {
    width: calc(100% - 80px);
  }

  /*LEGEND*/

  #legend, #legend.collapsed {
    width: 100%;
    position: absolute;
    z-index: 2600;
  }

  #legend.collapsed {
    z-index: auto;
  }

  .eras #legend, .eras #legend.collapsed {
    z-index: 0;
  }

  .legend-contents{
    background-color: white;
  }

  #legend.collapsed .legend-contents, .legend-toggle {
    display: none;
  }

  #legend.collapsed .mobile-header {
    display: none !important;
  }

  #legend.collapsed .legend-toggle, #legend.subsequent.collapsed .legend-toggle {
    display: block;
    right: 15px;
    width: 15px;
    left: auto;
    border-radius: 5px;
    top: 110px;
    padding: 10px 15px
  }

  .plans-dropdown {
    left: 5%;
    width: 90%;
    box-sizing: border-box;
    box-shadow: 0 0 8px rgba(0,0,0,.5);
    font-size: 16px;
  }

  /* FILMSTRIP */

  .eras #filmstrip {
    display: none !important;
  }

  #filmstrip, #filmstrip.collapsed {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2600;
  }

  #filmstrip.collapsed {
    z-index: auto;
  }

  .filmstrip-toggle {
    width: 46px;
    min-width: 0;
    top: auto;
    bottom: 50px;
    right: 15px;
    border-radius: 50%;
    padding: 0;
    height: 46px;
    line-height: 15px;
    text-align: center;
    font-size: 24px;
    background-color: #2361AA;
    color: white;
  }

  .filmstrip-toggle i {
    font-size: 24px;
    line-height: 50px;
    width: 46px;
  }

  #filmstrip .raster-type-labels, #filmstrip .raster-types {
    display: none;
  }

  #filmstrip.partial .raster-types {
    display: block;
    position: absolute;
    z-index: 2500;
    right: 15px;
    bottom: 115px;
  }

  #filmstrip.partial .raster-type-labels {
    display: block;
    position: absolute;
    z-index: 2500;
    right: 20px;
    bottom: 135px;
    margin-right: 50px;
  }

  .raster-type-labels span.disabled {
    display: none;
  }

  .raster-types i.disabled {
    display: none;
  }

  .raster-types i, .raster-types i.selected {
    width: 46px;
    border-radius: 50%;
    padding: 0;
    height: 46px;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
    background-color: white;
    color: #666;
    margin: 10px 0;
  }

  .raster-type-labels span {
    display: block;
    background: rgba(255,255,255,.8);
    margin-top: 28px;
    padding: 5px 8px;
    border-radius: 3px;
    text-align: right;
  }

  .filmstrip-thumbnail {
    width: 90px;
    height: 90px;
    background-size: cover;
  }

  /* LIGHTBOX */
  .lightbox .content {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  .lightbox .content > div.all-thumbs {
    width: 100%;
    max-height: 100%;
  }

  /* PROBE */
  #fixed-probe {
    position: relative;
    top: auto;
    left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #fixed-probe .fixed-image {
    width: 160px !important;
    margin: 0;
    background-size: cover;
    display: inline-block;
    vertical-align: bottom;
  }

  #fixed-probe hr {
    display: none;
  }

  #fixed-probe .blue-button {
    float: none;
    display: inline-block;
    vertical-align: bottom;
    margin-left: 10px;
  }

  #fixed-probe .blue-button.slider-toggle {
    width: auto;
  }

  #overlay-info {
    top: 160px;
    right: 15px;
  }

  .probe-hint {
    left: 30px;
    right: auto;
    top: 110px;
  }

  .slider, .button.red {
    display: none;
  }

  .slider {
    width: 100%;
    margin: 20px 0;
  }

  @media (max-height: 600px) {
    #intro h1 {
      font-size: 50px;
      line-height: 50px;
    }
  }
}