@import url('https://fonts.googleapis.com/css?family=Eagle+Lake');
@import url('https://fonts.googleapis.com/css?family=Lato');

@keyframes fadein {
  from {
    opacity:0;
  }
  to {
    opacity:1;
  }
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

@keyframes shadow-pulse {
  0% {
    box-shadow: 0 0 5px rgba(177,54,7,1);
  }
  50% {
    box-shadow: 0 0 10px rgba(177,54,7,1);
  }
  100% {
    box-shadow: 0 0 5px rgba(177,54,7,1);
  }
}

body {
  background-color: #111;
  color: rgba(240,240,240,1);
  font-family: 'Lato', sans-serif;
  padding: 0 20px;
}

  body.wrong-password {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
  }

.scene {
  width: 100%;
  height: 100vh;
  perspective: 600px;
  animation: fadein 2s;
}
  .card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 1s;
    transform-style: preserve-3d;
  }
    .card__face {
      position: absolute;
      height: 100%;
      width: 92%;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      padding: 0 4%;
    }

    .card__face--welcome {
      background: rgba(41,38,37,1);
      z-index: 9998;
    }

    .card__face--directions {
      background: rgba(230,230,230,1);
      color: black;
      transform: rotateY(180deg);
    }

    .card.is-flipped {
      transform: rotateY(180deg);
    }

h1 {
  font-family: 'Eagle Lake', serif;
  font-size: 1.5em;
}

#intro-text {
  text-align: center;
}

#start {
  animation: shadow-pulse 2s infinite;
  background: rgba(177,54,7,1);
  border: 1px solid rgba(109,33,4,1);
  border-radius: 3px;
  color: rgba(255,255,255,1);
  display: inline-block;
  margin-top: 1em;
  padding: 10px;
}
small {
  color: rgba(255,255,255,0.5);
  display: block;
  font-size: 0.7em;
  line-height: 1.35;
  margin-top: 6em;
}

#status-message {
  line-height: 1.35;
  text-align: left;
}

#entrance {
  margin-top: 2em;
}
label {
  display: block;
  margin-bottom: 0.5em;
  text-align: left;
}
input {
  background-color: rgba(200,200,200,1);
  border: 1px solid rgba(177,54,7,0);
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  outline: none;
  padding: 7px;
  width: 85%;
  transition: all 0.5s;
}
input:focus {
  background-color: rgba(255,255,255,1);
  border: 1px solid rgba(177,54,7,1);
  box-shadow: 0 0 5px rgba(177,54,7,1);
}

h1 {
  text-align: center;
}

.card__face--welcome h1 {
  margin: 60% 0 3em;
}

#detecting-location {
  display: block;
  text-align: center;
}

.card__face--directions h1 {
  margin: 15% 0 1.5em;
}

.card__face--directions p {
  line-height: 1.15;
  margin-bottom: 0.5em;
}

#turn-by-turn {
  line-height: 1.35;
  list-style: decimal outside;
  margin-top: 0.5em;
  padding: 0.5em 1em 0 2em;
  text-align: left;
}

  #turn-by-turn li {
    margin-bottom: 0.75em;
  }

  #turn-by-turn em {
    display: inline-block;
    border-bottom: 1px dashed rgba(200,200,200,1);
  }
