@import url("https://fonts.googleapis.com/css?family=Mukta:400,700|Playfair+Display:700");
html {
  width: 100%;
  height: 100%;
  font-size: 18px;
  font-family: Mukta, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: default;
  -webkit-text-size-adjust: none;
      -ms-text-size-adjust: none;
          text-size-adjust: none;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.hidden {
  opacity: 0 !important;
}

h1 {
  font-size: 2em;
  margin: 1em 0;
}

h2 {
  font-size: 1.2em;
  margin: 1.25em 0;
  color: #444;
}

h3 {
  font-size: 2em;
  margin: 0.5em 0;
  line-height: 1.5;
  font-family: "Playfair Display", serif;
  color: #fa8525;
}

p {
  font-size: 1em;
}

button {
  display: block;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  font-size: 1em;
  height: 2em;
  margin: 0;
  padding: 0.5em 1em;
  line-height: 1;
  border: none;
  font-family: Mukta, Helvetica, Arial, sans-serif;
  background: #1991bd;
  color: #fff;
  border-radius: 6px;
  outline: none;
  transition: background ease 0.1s;
}
button:hover {
  background: #167ca4;
}

.view {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.view.home > .map {
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
}
.view.home > .home-splash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2em;
  z-index: 2;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
  pointer-events: none;
}
.view.home > .home-splash > .card {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  position: relative;
  width: auto;
  padding: 0 2em 2em;
  background: white;
  border-radius: 0.5em;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(136, 136, 136, 0.3);
  pointer-events: auto;
}
.view.home > .home-splash > .card h1 {
  background: linear-gradient(135deg, #f7ba2a -20%, #fa8525 120%);
  color: #fff;
  margin: 0 -1em 1em;
  padding: 1em;
}
.view.home > .home-splash > .card button.game-play {
  font-size: 1.4em;
  width: 100%;
}
.view.game > .status-bar {
  position: absolute;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  padding: 1em;
  pointer-events: none;
}
.view.game > .status-bar > .prompt {
  display: block;
  font-size: 1em;
  padding: 0.5em 1em;
  margin: 0 1em;
  max-width: 100%;
  background: #fff;
  -ms-flex: 0 1 auto;
      flex: 0 1 auto;
  text-align: center;
  border-radius: 0.5em;
  background: #1991bd;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 60px rgba(136, 136, 136, 0.3);
  transition: opacity ease 0.3s;
}
.view.game #health {
  height: 16px;
  background: #1991bd;
  position: fixed;
  bottom: 0;
  transition: margin-left .5s;
  pointer-events: none;
}
.view.game #health.play {
  animation-name: slide-in;
  animation-iteration-count: 1;
  animation-duration: 15s;
  animation-direction: normal;
  animation-timing-function: linear;
}
.view.game > .map {
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
}
.view.game > .map .leaflet-marker-icon {
  transition: opacity ease 0.25s;
}
.view.game > .level-location-splash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 6em 2em;
  z-index: 2;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
}
.view.game > .level-location-splash.hidden {
  opacity: 1 !important;
}
.view.game > .level-location-splash.hidden > .card {
  opacity: 0;
  perspective: 2000px;
  transform-origin: center;
  transform: translate3d(0, 0, -2000px) rotateY(1deg) translate3d(0, 0, 2000px);
}
.view.game > .level-location-splash.hidden.out > .card {
  transform: translate3d(0, 0, -2000px) rotateY(-1deg) translate3d(0, 0, 2000px);
}
.view.game > .level-location-splash > .card {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  width: 55em;
  max-width: 100%;
  height: 30em;
  max-height: 100%;
  background: white;
  border-radius: 0.5em;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(136, 136, 136, 0.3);
  transition: transform ease 0.35s, opacity ease 0.35s;
}
.view.game > .level-location-splash > .card > * {
  width: 50%;
}
.view.game > .level-location-splash > .card .level-location-img {
  background-size: cover;
  background-position: center;
}
.view.game > .level-location-splash > .card .right {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
}
.view.game > .level-location-splash > .card .level-location-info-container {
  -ms-flex: 1 1 auto;
      flex: 1 1 auto;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}
.view.game > .level-location-splash > .card .level-location-info {
  padding: 1em 2em;
}
.view.game > .level-location-splash > .card .level-location-info .level-location-name {
  margin-right: -1em;
  padding: 0 1em 0.25em 0;
  border-bottom: solid 1px #f7ba2a;
}
.view.game > .level-location-splash > .card .level-location-info .level-location-coords {
  color: #1991bd;
}
.view.game > .level-location-splash > .card .buttons {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  padding: 1em 2em;
  background-color: #fff;
  box-shadow: 0 0 3px #eee;
}
.view.game > .level-location-splash > .card .buttons > button.level-next {
  margin: 0 0 0 auto;
}
.view.game-stats {
  padding: 2em 2em 3.5em 2em;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}
.view.game-stats .container {
  width: 40em;
  max-width: 100%;
  margin: 0 auto;
}
.view.game-stats .game-status {
  font-size: 1.4em;
  color: #888;
}
.view.game-stats .game-status .game-score {
  font-weight: 700;
}
.view.game-stats .levels-stats {
  margin: 2em 0;
}
.view.game-stats .level-stats {
  position: relative;
  box-sizing: border-box;
  padding: 1em 17em 1em 0;
  background-blend-mode: normal;
  background-size: cover;
  background-position: center;
  transition: opacity ease 0.3s, transform ease 0.3s;
}
.view.game-stats .level-stats.hidden {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}
.view.game-stats .level-stats .level-prompt {
  margin: 1em 0 0;
  color: #888;
}
.view.game-stats .level-stats .level-location-name {
  margin-top: 0;
}
.view.game-stats .level-stats .level-location-image {
  position: absolute;
  top: 1em;
  right: 0;
  bottom: 1em;
  width: 15em;
  background-size: cover;
  border-radius: 0.125em;
}
.view.game-stats .level-stats + .level-stats {
  border-top: solid 1px #ddd;
}
.view.game-stats .buttons {
  display: -ms-flexbox;
  display: flex;
  margin: 0 -0.5em -0.5em 0;
  transition: opacity ease 0.3s;
}
.view.game-stats .buttons.hidden {
  opacity: 0;
}
.view.game-stats .buttons button {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  margin: 0 0.5em 0.5em 0;
}

@keyframes slide-in {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}
