@-webkit-keyframes anim {
  0%   { -webkit-transform: translateY(10px) }
  50% { -webkit-transform: translateY(-10px) }
  100% { -webkit-transform: translateY(10px) }
}
@-moz-keyframes anim {
  0%   { -moz-transform: translateY(10px) }
  50% { -moz-transform: translateY(-10px) }
  100% { -moz-transform: translateY(10px) }
}
@-o-keyframes anim {
  0%   { -o-transform: translateY(10px) }
  50% { -o-transform: translateY(-10px) }
  100% { -o-transform: translateY(10px) }
}
@keyframes anim {
  0%   { transform: translateY(10px) }
  50% { transform: translateY(-10px) }
  100% { transform: translateY(10px) }
}

@-webkit-keyframes animbg {
  0%   { -webkit-transform: translateY(5px) }
  50% { -webkit-transform: translateY(-5px) }
  100% { -webkit-transform: translateY(5px) }
}
@-moz-keyframes animbg {
  0%   { -moz-transform: translateY(5px) }
  50% { -moz-transform: translateY(-5px) }
  100% { -moz-transform: translateY(5px) }
}
@-o-keyframes animbg {
  0%   { -o-transform: translateY(5px) }
  50% { -o-transform: translateY(-5px) }
  100% { -o-transform: translateY(5px) }
}
@keyframes animbg {
  0%   { transform: translateY(5px) }
  50% { transform: translateY(-5px) }
  100% { transform: translateY(5px) }
}

* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html, body {
  overflow: hidden;
  font-family: 'BebasNeueRegular', arial, sans-serif;
  background: #050714;
}

#global {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: url('bg.jpg') no-repeat center center fixed;
  overflow: hidden;
  text-align: center;
  -moz-background-size: cover;
  -webkit-background-size: cover;
  -ms-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: animbg 3s ease-in-out infinite;
  -moz-animation: animbg 3s ease-in-out infinite;
  -o-animation: animbg 3s ease-in-out infinite;
  animation: animbg 3s ease-in-out infinite;
}

#title {
  position: absolute;
  top: 5%;
  right: 0;
  bottom: 5%;
  left: 0;
  z-index: 1;
  background: url('title.png') no-repeat center top;
  -moz-background-size: auto 50%;
  -webkit-background-size: auto 50%;
  -ms-background-size: auto 50%;
  -o-background-size: auto 50%;
  background-size: auto 50%;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: anim 3s ease-in-out infinite;
  -moz-animation: anim 3s ease-in-out infinite;
  -o-animation: anim 3s ease-in-out infinite;
  animation: anim 3s ease-in-out infinite;
}

#howtoplay {
  position: absolute;
  top: 52%;
  right: 20px;
  left: 20px;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  color: #eefcff;
  font-family: 'BebasNeueRegular', arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(18,255,224,0.7);
}

#howtoplay h2 {
  margin: 0 0 8px;
  color: #ff36d6;
  font-size: 2em;
  font-weight: normal;
}

#howtoplay p {
  margin: 3px 0;
  color: #eefcff;
  font-size: 1.18em;
  line-height: 1.05;
}

#menucontainer {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 5%;
  left: 0;
  z-index: 2;
}

#menu {
  position: relative;
  display: block;
  width: 100%;
  max-width: 600px;
  margin: auto;
  text-align: center;
  font-size: 2em;
  font-family: 'BebasNeueRegular', arial, sans-serif;
  text-transform: uppercase;
  color: #6fffe7;
}

#menu div {
  padding: 0.1em 0 0 0;
  margin: 0 0;
  cursor: pointer;
  -moz-text-shadow: 0 0 14px rgba(111,255,231,0.95);
  -webkit-text-shadow: 0 0 14px rgba(111,255,231,0.95);
  text-shadow: 0 0 14px rgba(111,255,231,0.95);
  -webkit-transform-origin-y: 50%;
  -webkit-transition: -webkit-transform 0.2s;
  -webkit-transform: translateZ(0px) scaleY(0.8);
  transform-origin-y: 50%;
  transition: transform 0.2s ease;
  transform: translateZ(0px) scaleY(0.8);
  background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwLjUiLz4KICAgIDxzdG9wIG9mZnNldD0iNjAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAuNSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==);
  background: -moz-linear-gradient(left, rgba(9,14,33,0) 0%, rgba(18,255,224,0.28) 35%, rgba(255,54,214,0.28) 65%, rgba(9,14,33,0) 100%);
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(9,14,33,0)), color-stop(35%,rgba(18,255,224,0.28)), color-stop(65%,rgba(255,54,214,0.28)), color-stop(100%,rgba(9,14,33,0)));
  background: -webkit-linear-gradient(left, rgba(9,14,33,0) 0%,rgba(18,255,224,0.28) 35%,rgba(255,54,214,0.28) 65%,rgba(9,14,33,0) 100%);
  background: -o-linear-gradient(left, rgba(9,14,33,0) 0%,rgba(18,255,224,0.28) 35%,rgba(255,54,214,0.28) 65%,rgba(9,14,33,0) 100%);
  background: -ms-linear-gradient(left, rgba(9,14,33,0) 0%,rgba(18,255,224,0.28) 35%,rgba(255,54,214,0.28) 65%,rgba(9,14,33,0) 100%);
  background: linear-gradient(to right, rgba(9,14,33,0) 0%,rgba(18,255,224,0.28) 35%,rgba(255,54,214,0.28) 65%,rgba(9,14,33,0) 100%);
}

#menu div:hover {
  color: #ff36d6;
  -webkit-transform: scaleY(1.0);
  transform: scaleY(1.1);
}

#start {
  font-size: 1.8em;
  color: #ff36d6;
}

#start:hover {
  color: #6fffe7 !important;
}

#step-2 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #050714;
  vertical-align: bottom;
  text-align: center;
  padding: 20px;
  color: white;
  font-size: 2em;
  background-repeat: no-repeat;
  background-position: center center;
  -moz-background-size: 60% auto;
  -webkit-background-size: 60% auto;
  -ms-background-size: 60% auto;
  -o-background-size: 60% auto;
  background-size: 60% auto;
}

#step-3 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #050714;
}

#step-3 #progressbar {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: 0%;
  background: linear-gradient(90deg, #12ffe0, #ff36d6);
}

#step-5 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #050714;
  text-align: center;
  padding: 100px 20px;
  color: white;
  font-size: 2em;
}

@media (max-height: 720px) {
  #howtoplay {
    top: 48%;
  }

  #howtoplay h2 {
    font-size: 1.6em;
    margin-bottom: 4px;
  }

  #howtoplay p {
    font-size: 1em;
  }

  #menucontainer {
    bottom: 2%;
  }
}

#step-5 #time {
  font-size: 4em
}

#leapinfo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  color: white;
  text-align: center;
  font-size: 3em;
  padding-top: 200px;
  z-index: 999999;
}

#credits {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: black;
  overflow-y: auto;
  text-align: center;
  color: white;
  font-size: 1.1em;
  padding: 40px 20px;
}

#credits h3 {
  font-size: 2em;
  color: #666;
}

#credits b {
  font-size: 1.2em;
  color: #bbb;
}

#credits h4 {
  color: #555;
  font-size: 1.2em;
}
