@font-face {
  font-family: Exo2;
  src: url("../fonts/Exo_2/Exo2-Regular.ttf");
}

@font-face {
  font-family: Abril;
  src: url("../fonts/Abril_Fatface/AbrilFatface-Regular.ttf");
}

body {
  min-width: 320px;
  font-family: Exo2;
  margin: 0;
  text-align: center;
}

.hidden {
  display: none !important;
}

nav a,
main a {
  color: #000;
  font-size: 20px;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.33s;
}


nav a:hover,
main a:hover {
  color: #fff;
  background: #000;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 5px;
}

.user {
  font-weight: 600;
  padding-left: 24px;
  position: relative;
}

.user::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url('../img/user.png');
  background-size: cover;
  background-position: center center;
  position: absolute;
  top: 8px;
  left: 1px;
}

.admin {
  color: #FF7A00;
}

.admin::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url('../img/admin.png');
  background-size: cover;
  background-position: center center;
  position: absolute;
  top: 8px;
  left: 1px;
}

.admin:hover {
  color: #FF7A00;
}

h1 {
  letter-spacing: 2px;
}

header .logo {
  display: inline-block;
  width: 25%;
  max-width: 350px;
}

header .logo img {
  width: 100%;
}

hr {
  display: block;
  height: 16px;
  background: url('../img/cl-back.png');
  border: none;
}

/*LOGIN*/

.login-form span {
  display: inline-block;
  margin-bottom: 10px;
  width: 70px;
}

form input {
  font-family: Exo2;
}

form input[type="text"],
form input[type="password"] {
  border: none;
  border-bottom: 1px solid #000;
  outline: none;
}

form input[type="submit"] {
  margin-top: 5px;
  padding: 5px 7px;
  font-size: 16px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 5px;
  transition: all 0.33s;
}

form input[type="submit"]:hover {
  cursor: pointer;
  background: #000;
  color: #fff;
}

#messages {
  padding: 10px;
  font-weight: bold;
}



/*MAIN*/

main {
  display: inline-block;
  width: 90%;
  max-width: 960px;
}

.game {
  margin: 35px 0 70px 0;
}

.game a {
  font-size: 16px;
}

.game-time .fa {
  margin: 0 3px;
}

.game-team,
.scoreboard,
.platypus {
  display: inline-block;
  width: 33%;
  max-width: 200px;
  vertical-align: bottom;
  transition: display 0.5s;
}

.game-team img {
  max-width: 100%;
  height: 90px;
  margin-top: 10px;
}

.scoreboard {
  font-family: Abril;
  font-size: 32px;
  padding-bottom: 10px;
}

.platypus {
  position: relative;
}

.platypus form input {
  font-family: Abril;
  font-size: 24px;
  margin-bottom: 16px;
  text-align: center;
}

.platypus form input[type="submit"] {
  width: 36px;
  height: 30px;
  font-family: Exo2;
  font-size: 16px;
  position: absolute;
  bottom: -50px;
  left: 50%;
  margin-left: -18px;
} 

.main-link {
  display: inline-block;
  font-size: 20px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.33s;
}

.main-link.active,
.main-link:hover {
  cursor: pointer;
  color: #fff;
  background: #000;
}

.main-content {
  display: none;
  max-height: 600px;
  overflow: auto;
}

.main-content.active {
  display: block;
}

.main-content span {
  margin: 0 4px;
}

.main-content .game {
  margin: 20px 0;
}

.main-content .user {
  display: inline-block;
  font-size: 20px;
  font-weight: 400;
  margin: 5px;
  padding: 0;
}

.main-content .user.me {
  color: #FF7A00;
}

.main-content .user::before {
  content: '';
  display: none;
}

.other-platypus-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 18px;
  position: relative;
}

.other-platypus-link::before {
  content: '<';
  color: #000;
  font-family: Exo2;
  font-size: 20px;
  position: absolute;
  top: 6px;
  left: -13px;
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
  transition: transform 0.33s;
}

.other-platypus-link::after {
  content: '>';
  color: #000;
  font-family: Exo2;
  font-size: 20px;
  position: absolute;
  top: 6px;
  right: -13px;
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  transition: transform 0.33s;
}

.other-platypus-link.on::before {
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

.other-platypus-link.on::after {
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.other-platypus {
  display: inline-block;
  margin: 7px;
}

/*//USER*/
.user-main p span {
  font-size: 20px;
}

.user-bet {
  min-height: 95px;
  display: inline-block;
  vertical-align: top;
  padding: 15px;
}

.user-bet span {
  font-size: 20px;
}

.no-games-today {
  margin: 20px 0;
}
.no-games-today span {
  font-size: 20px;
}

/*animation field*/
.animation-field {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.animation-field .player {
  display: inline-block;
  width: 200px;
  height: 200px;
  background: url('../img/player.jpg');
  background-size: cover;
  background-position: center center;
  position: absolute;
  top: 0;
  left: 0;
  animation: player-animation 6s 4;
}

.animation-field .ball {
  display: inline-block;
  width: 60px;
  height: 60px;
  margin: 0 200px;
  background: url('../img/ball.png');
  background-size: cover;
  background-position: center center;
  position: absolute;
  top: 90px;
  left: 0;
  animation: ball-animation 6s 4;
}

@keyframes player-animation {
  0% {
    top: 0;
    left: 0;
    transform: rotateY(0deg);
  }
  10% {
    top: 0;
    left: 20%;
    transform: rotateY(0deg);
  }
  15% {
    top: 0;
    left: 20%;
    transform: rotateY(0deg);
  }
  40% {
    top: 0;
    left: 70%;
    transform: rotateY(0deg);
  }
  41% {
    top: 0;
    left: 70%;
    transform: rotateY(0deg);
  }  
  49% {
    top: 0;
    left: 100%;
    transform: rotateY(0deg);
  }
  66% {
    top: 200px;
    left: 100%;
    transform: rotateY(180deg);
  }
  70% {
    top: 200px;
    left: 80%;
    transform: rotateY(180deg);
  }
  71% {
    top: 200px;
    left: 80%;
    transform: rotateY(180deg);
  }
  85% {
    top: 200px;
    left: 60%;
    transform: rotateY(180deg);
  }
  89% {
    top: 200px;
    left: 60%;
    transform: rotateY(180deg);
  }
  94% {
    top: 200px;
    left: 30%;
    transform: rotateY(180deg);
  }
  95% {
    top: 200px;
    left: 30%;
    transform: rotateY(180deg);
  }
  100% {
    top: 200px;
    left: -200px;
    transform: rotateY(180deg);
  }
}

@keyframes ball-animation {
  0% {
    top: 90px;
    left: 0;
    transform: rotate(0deg);
  }
  10% {
    top: 90px;
    left: 27%;
    transform: rotate(400deg);
  }
  17% {
    top: 90px;
    left: 27%;
    transform: rotate(400deg);
  }
  50% {
    top: 90px;
    left: 100%;
    transform: rotate(1200deg);
  }
  51% {
    top: 290px;
    left: 100%;
    transform: rotate(1200deg);
  }
  60% {
    top: 290px;
    left: 80%;
    transform: rotate(900deg);
  }
  65% {
    top: 290px;
    left: 70%;
    transform: rotate(800deg);
  }
  88% {
    top: 290px;
    left: 30%;
    transform: rotate(400deg);
  }
  90% {
    top: 290px;
    left: 30%;
    transform: rotate(400deg);
  }
  98% {
    top: 290px;
    left: -600px;
    transform: rotate(0deg);
  }
  100% {
    top: 290px;
    left: -600px;
    transform: rotate(0deg);
  }
}
