/* ==|== Globals ====================================================== */

html, body {
  margin:0;
  padding:0;

  .unselectable;

  background-color: #000;
  color:#fff;
}

html, body {
  //width:100%;
  //height:100%;
  //overflow: hidden;
}

body {
}

body {
  font-family: Arial, sans-serif;
}

object, embed { 
  outline: 0;
}

#container {
  #teamchallenge-logo {
    background-image: url(../assets/logo.gif);
    background-size: 320px 129px;
    background-repeat: no-repeat;
    width:320px;
    height:129px;

    margin-left:auto;
    margin-right:auto;
  }
}

#instruction {
  h1 {
    color: #FF00FF;
    font-size: 2em;
    margin:0;
    padding:0;

    @media screen and (max-width: 320px) {
      font-size: 1.5em;
    }
    @media screen and (max-height: 320px) {
      font-size: 1.3em;
    }
  }

}

div {
  padding:0;
  margin:0;
}

#user {
  position:fixed;
  right:0;
  top:0;

  h2 {
    padding:0;
    margin:0;
    font-size: 14px;
  }
}

#signup {

  font-family: Arial, sans-serif;

  #signup-container {
    width:263px;
    margin-left:auto;
    margin-right:auto;
    margin-top:1em;
    font-size: 20px;

    input[type=text] {
      background-color: #FF00FF;
      color: #fff;
      font-size: 20px;
      padding:10px;
      border:none;
      width:243px;
    }

    ::-webkit-input-placeholder { /* WebKit browsers */
        color:    #fff;
    }
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        color:    #fff;
    }
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
        color:    #fff;
    }
    :-ms-input-placeholder { /* Internet Explorer 10+ */
        color:    #fff;
    }

    #signup-button {
      background-image: url(../assets/button_accept_tap_up.gif);
      background-size: 191px 191px;
      background-repeat: no-repeat;
      width:191px;
      height:191px;

      margin-top:2em;

      margin-left:auto;
      margin-right:auto;

      border-radius: none;

      .touch &:active {
        background-image: url(../assets/button_accept_tap_down.gif);
      }

      .no-touch &:hover {
        background-image: url(../assets/button_accept_tap_down.gif);
      }
    }
  }

}

/* ==|== Buttons border ====================================================== */

@button-size:112px;

#game-panel {
  position: absolute;
  width: 100%;
  height: 110%;

  #instruction {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
  }
}

#game-controls {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 100;

  .button-outer-container {
    display:table;
    position: static;
    float:left;
  }

  .button-middle-container {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    position: static;
  }

  .button {

    cursor:pointer;

    width: @button-size;
    height:@button-size;

    margin-left:auto;
    margin-right: auto;

    position: relative;

    background-repeat: no-repeat;
    background-size: @button-size @button-size;

    &.a {
      background-image:url(../assets/buttons/a_anim.gif);
    }

    &.b {
      background-image:url(../assets/buttons/b_anim.gif);
    }

    &.c {
      background-image:url(../assets/buttons/c_anim.gif);
    }

    &.d {
      background-image:url(../assets/buttons/d_anim.gif);
    }

    &.e {
      background-image:url(../assets/buttons/e_anim.gif);
    }

    &.f {
      background-image:url(../assets/buttons/f_anim.gif);
    }

    .touch &:active {
      background-image:url(../assets/buttons/active.gif);
    }

    .no-touch &:hover {
      background-image:url(../assets/buttons/active.gif);
    }

    p {
      position:absolute;
      margin:0;
      padding:0;
      width:100%;
      top:20%;
      left:0;
      text-align: center;
      font-weight: bold;
      font-size: 20px;
      pointer-events:none;
    }

    &:hover {

    }
  }
}

#game-intro, #game-idle {
  .team {
    width:263px;
    margin-left:auto;
    margin-right:auto;
    margin-top:2em;
    font-size: 20px;
  }
}

#game-over {
  h1 {
    margin:0;
    padding:0;
  }

  .feedback {
    width:263px;
    margin-left:auto;
    margin-right:auto;
    margin-top:1em;
    font-size: 30px;
    line-height:1.8em;

    .winner {
      color:#8BD400;
    }

    .loser {
      color:#FF0097;
    }
  }
}

#admin-container {
  font-family: Arial, sans-serif;
  margin: 15px;

  div {
    margin: 20px 0 20px 0;
  }

  h3 {
    margin: 0 0 5px 0;
    padding: 0;
    font-weight: normal;
  }
  
  select {
    min-width: 116px;
    padding: 10px;
    margin-right: 10px;
    font-size: 20px;
    border: none;
    border-radius: 0;
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    background: url(../assets/down_arrow_select.jpg) no-repeat right #ddd;
    text-transform: uppercase;
  }

  button {
    background-color: #FF00FF;
    color: #fff;
    font-size: 20px;
    padding:10px;
    margin-right: 10px;
    border:none;
    border-radius: 0;
    -webkit-appearance: none;
  }

  #players {
    li {
      list-style: none;
    }

    button {
      background-color: #4992ff;
    }

    select {
     
    }

    .player-item span {
      font-size: 20px;
      margin-right: 10px;
      padding: 10px;
      background-color: #4992ff;
    }
  }
}



/* ==|== Mixins ====================================================== */

.transition (@transition) {
  -webkit-transition: @transition;  
  -moz-transition:    @transition;
  -ms-transition:     @transition; 
  -o-transition:      @transition;
  transition:         @transition;
}

.transform (@string) {
  -webkit-transform: @string;
  -moz-transform:    @string;
  -ms-transform:     @string;
  -o-transform:      @string;
  transform:         @string;
}

.perspective (@number) {
  -webkit-perspective: @number;
  -moz-perspective:    @number;
  -ms-perspective:     @number;
  -o-perspective:      @number;
  perspective:         @number;
}

.perspective-origin (@string) {
  -webkit-perspective-origin: @string;
  -moz-perspective-origin:    @string;
  -ms-perspective-origin:     @string;
  -o-perspective-origin:      @string;
  perspective-origin:         @string;
}

.transform-style (@string) {
  -webkit-transform-style: @string;
  -moz-transform-style:    @string;
  -ms-transform-style:     @string;
  -o-transform-style:      @string;
  transform-style:         @string;
}

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

