@font-face {
    font-family: 'October Twilight';
    src: url('OctoberTwilight.ttf');
}

body {
  background-color: #000;
  height: 100vh;
  font-family: 'Roboto Condensed', sans-serif;
  color: #fff;
  overflow-x: hidden; 
  margin: 0px;
}

body:not(#about) {
  -webkit-user-select: none; /* Safari */        
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

#screen {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #000;
  display: none;
}

#screen.win #winAnimation {
  display: none;
    z-index: 12;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
}

#screen.horizontal #winAnimation {
  background-color: blue;
}

#screen.vertical #winAnimation {
  background-color: #ff0000;
}

#screen.win #winAnimation {
  display: block;
  -webkit-animation: win .75s;
  -moz-animation: win .75s;
  -ms-animation: win .75s;
  -o-animation: win .75s; 
   animation: win .75s;
}

@keyframes win {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

#top, #bottom {
  font-size: 50px;
  font-weight: bold;
}

#top #gameId {
  position: fixed;
  top: 0;
  left: 10px;
}

#bottom #playerCount {  
  position: fixed;
  bottom: 0;
  left: 10px;
  background-image: url('./player.png');
  background-size: 50px;
  padding-left: 50px;
  background-repeat: no-repeat;
  background-position: 0 11px;
}

#bottom #instructionsLink {
  position: fixed;
  bottom: 0;
  right: 10px;
}

#instructions {
  margin: 60px 70px;
  font-size: 1em;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow-y: scroll;
}

#instructions.shown {
  display: block;
}

#instructions ol {
  padding: 0 0 0 30px;
  margin: 0;
}

#instructions li {
  margin: 10px 0;
}

p.centered {
  text-align: center;
}

a {
  color: #fff;
  text-decoration: underline;
}

a:hover,
a:active {
  text-decoration: none;
}

#splash {
  position: fixed;
  font-size: 36px;
  text-align: center;
  top: 30px;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: scroll;
}

#splash .title {
  margin-bottom: 10px;
  margin-top: 30px;
  font-family: "October Twilight", sans-serif;
  font-size: 72px;
  background: -webkit-linear-gradient(left, red, blue);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  display: inline-block;
}

#splash .subtitle {
  font-size: 28px;
  margin-bottom: 30px;
}

#splash .subtitle-small {
  font-size: 16px;
}

#interpose-link {
  color: red;
}

button {
  color: #fff;
  font-size: 40px;
  border: none;
  display: block;
  margin: 0 auto 30px;
  background: transparent;
  padding: 5px 10px 10px 10px;
  font-family: 'Roboto Condensed', sans-serif;
  width: 220px;
  border-radius: 35px;
  background: -webkit-linear-gradient(left, red, blue);
}

button:active {
  opacity: .5;
}

#splash #input-number-container {
  position: relative;
  margin-top: 10px;
  white-space: nowrap;
}

#splash #input-number-outer {
  border-bottom: 1px solid #fff;
  width: 220px;
  margin: 0 auto 20px;
  text-align: left;
}

#splash #input-number {
  background: transparent;
  border: 0;
  font-size: 36px;
  outline: none;
  color: #fff;
  width: 196px;
  font-family: 'Roboto Condensed', sans-serif;
  border-radius: 0;
  text-transform: lowercase;
  font-weight: bold;
}

#splash #input-number-container .input-error {
  display: none;
  font-size: 15px;
  margin-top: -15px;
  margin-bottom: 15px;
  color: red;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

#splash #input-number-container #join-game-number {
  display: none;
}

/* Tutorial */

#tutorial {
  text-align: center;
  font-size: 20px;
  display: none;
}

#tutorial .arrow {
  font-size: 50px;
}

#tutorial .step-1,
#tutorial .step-3,
#tutorial .step-4 {
  position: fixed;
  left: 0;
  right: 0;
  top: 200px;
}

#tutorial .step-2 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 50px;
}

#tutorial.shown {
  display: block;
}

#tutorial-2,
#tutorial-3 {
  display: none;
}

#screen.match #tutorial-1,
#screen.win #tutorial-1 {
  display: none;
}

#screen.match #tutorial-2 {
  display: block;
}

#screen.win #tutorial-2 {
  display: none;
}

#screen.match #tutorial-3 {
  display: none;
}

#screen.win #tutorial-3 {
  display: block;
}

#tutorial .tutorial-large {
  font-size: 36px;
}

#partnerColor {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
}

.ball {
  height: 75px;
  width: 75px;
  z-index: 10;
  position: absolute;
  border-radius: 100px;
  margin: auto;
  visibility: hidden;
}

.ball.vertical {
  background-color: red;
  left: 200px;
  left: 0;
  right: 0;
}

.ball.horizontal {
  background-color: blue;
  top: 0;
  bottom: 0;
}

.ball.target {
  background-color: black;
  border-width: 2px;
  border-style: solid;
  border-color: #fff;
  transform: scale(1.4);
  -moz-transform: scale(1.4);
  -webkit-transform: scale(1.4);
}

#screen.match .ball.target {
  -webkit-animation: pulse .75s infinite;
  -moz-animation: pulse .75s infinite;
  -ms-animation: pulse .75s infinite;
  -o-animation: pulse .75s infinite;
  animation: pulse .75s infinite;
  z-index: 11;
}

/*#screen.horizontal .ball.player.horizontal {
  visibility: visible;
}

#screen.vertical .ball.player.vertical {
  visibility: visible;
}*/

#screen.match.horizontal .ball.player.horizontal,
#screen.match.vertical .ball.player.vertical {
  visibility: hidden;
}

#screen.match .ball.target.horizontal {
   background-color: blue;
}

#screen.match .ball.target.vertical {
   background-color: #ff0000;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}


.line {
  position: absolute;
  margin: auto;
  visibility: hidden;
}

.line.vertical {
  width: 1px;
  height: 100%;
  left: 0;
  right: 0;
  border-left: 2px solid #fff;
}

.line.horizontal {
  width: 100%;
  height: 1px;
  top: 0;
  bottom: 0;
  border-top: 2px solid #fff;
}

#screen.game.vertical .vertical {
  visibility: visible;
}

#screen.game.horizontal .horizontal {
  visibility: visible;
}

.info {
  color: #fff;
  font-size: 16px;
  position: absolute;
  top: 60px;
  left: 10px;
  z-index: 10;
  display: none;
}

/*#screen.game .info {
  display: block;
}*/

#intro {
  position: absolute;
}

#splash #part-2,
#splash #part-3 {
  display: none;
}

#splash #part-2 {
  font-size: 28px;
}

#splash #part-2 .subtitle {
  font-size: 36px;
}

#splash #part-3 .subtitle {
  font-size: 48px;
}

.instructions {
  background-color: black;
  color: #fff;
  font-size: 18px;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 10;
  padding: 5px 0;
}

.game:not(.vertical):not(.horizontal) .instructions {
  display: none;
}

.game .instructions.error {
  display: none;
}

.game:not(.vertical):not(.horizontal) .instructions.error {
  display: block;
}

.instructions.top {
  top: 0;
}

.instructions.top.warning {
  background-color: red;
}

.instructions.top .find-target {
  display: block;
}

.instructions.top.warning .find-target {
  display: none;
}

.instructions.top .warning {
  display: none;
}

.instructions.top.warning .warning {
  display: block;
}

.instructions.bottom {
  bottom: 0;
}

#start-buttons .subtitle {
  margin-bottom: 0;
}

#start-buttons .subtitle.awake {
  font-size: 14px;
}

#splash .subtitle.pretitle {
  margin-bottom: 0;
}

#interpose #motion-off {
  display: none;
}

#interpose.motion-off #motion-off {
  display: block;
}

#interpose.motion-off #part-1 {
  display: none;
}

#interpose.motion-off #motion-off button {
  margin-top: 10px;
}

#interpose-image {
  width: 90%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
}

#playerCount {  
  font-size: 18px;
  position: fixed;
  top: 5px;
  right: 10px;
  background-image: url('../player.png');
  background-size: 24px;
  padding-left: 24px;
  background-repeat: no-repeat;
}