@import url("../libraries/alertifyjs/css/alertify.min.css");
@import url("../libraries/alertifyjs/css/themes/default.min.css");
@font-face {
  font-family: HeitiUI;
  src: url("../libraries/font-awesome/STHeiti.ttc");
}

/* Globals */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  text-align: center;
/*  background: #b4ecff;*/
  background: #b4fff1;
/*  background: rgba(248, 255, 230, 0.8);*/
  overflow: auto;
}

/* Game Mode */
.howto {
  position: absolute;
  top: 0;
  left: 0;
  padding: 16px;
}
.trickcounter {
  position: absolute;
  top: 0;
  right: 0;
  padding: 16px;
}
.topmsg {
  padding: .5em 0 0 0;
  margin: 0;
}
.topmsg span {
  text-transform: capitalize;
}
.topmsg div {
  padding: 0 0 .5em 0;
}
.topmsg hr {
  margin-bottom: 1em;
}
.topmsg div a {
  padding: 0 8vw;
}
.showonsmall {
  display: none;
}
@media all and (max-width:460px) {
  .topmsg div a {
    padding: 0;
  }
  .showonsmall {
    display: block;
  }
}
@media all and (max-width:740px) {
  .topmsg div a {
    padding: 0 4vw;
  }
}
.gamelist {
  font-size: 1.2em;
}

/* Center vertically and horizontally */
.table {
  display: table;
  width: 100%;
  height: calc(100% - 87px);
  margin-top: 20px;
}
.cell {
  display: table-cell;
  vertical-align: middle;
  height: 100%;
}

/* Difficulty */
.difficulty ul li {
/*  color: #5a8194;*/
  color: #666;
/*  border-bottom: 1px solid #5a8194;*/
  border-bottom: 1px solid #43c787;
}
.confirmdifficulty {
/*  background: #5a8194;*/
  background: #43c787;
}
.difficulty ul li .check {
/*  border: 5px solid #5a8194;*/
  border: 5px solid #43c787;
}
.difficulty ul li {
  display: block;
  position: relative;
  float: left;
  width: 100%;
  height: 100px;
}
.difficulty ul li input[type=radio] {
  position: absolute;
  visibility: hidden;
}
.difficulty ul li label {
  cursor: pointer;
  display: block;
  position: relative;
  padding: 30px 80px;
  text-transform: capitalize;
  -webkit-transition: all 0.25s linear;
}
.difficulty ul li .check {
  position: absolute;
  border-radius: 100%;
  height: 30px;
  width: 30px;
  top: 30px;
  left: 20px;
  transition: border .25s linear;
  -webkit-transition: border .25s linear;
}
.difficulty ul li .check::before {
  position: absolute;
  content: '';
  border-radius: 100%;
  height: 10px;
  width: 10px;
  margin: 5px;
  transition: background 0.25s linear;
  -webkit-transition: background 0.25s linear;
  transform: scale(1.3);
}

.difficulty input[type=radio]:checked ~ .check {
  border: 5px solid #937ad6;
}
.difficulty input[type=radio]:checked ~ .check::before {
  background: #937ad6;
}
.difficulty input[type=radio]:checked ~ label {
  color: #937ad6;
}

.difficulty ul li:hover label {
  color: #aba3ff;
}
.difficulty ul li:hover .check {
  border: 5px solid #aba3ff;
}

/* Players */
.playernamehead {
  font-size: 42px;
}
.playername {
  font-size: 24px;
  color: #5a8194;
}
.playername li,
.playernameinput {
  text-transform: capitalize;
}
.playernameinput {
  margin: 0;
  border-radius: 0;
}
.playername button {
  border: 0;
  color: #000;
  background: transparent;
  float: right;
  padding: 0;
}
.confirmplayers,
.confirmdifficulty {
  width: 100%;
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0.4em;
  border-bottom-right-radius: 0.4em;
}
.confirmplayers {
  background: #aba3ff;
}

/* Cards */
.card {
  display: inline-table;
/*
  width: 247px;
  height: 336px;
*/
  width: 232px;
  height: 321px;
  margin: 15px;
  color: #fff;
  border-radius: 20px;
  font-size: 26px;
  font-family: "HeitiUI";
  line-height: 1.5;
  text-transform: capitalize;
}
.card-front {
  border: 30px solid #489bd5;
  background: #3e85bc;
}
.card-flipped {
  border: 30px solid #393939;
  background: #393939;
  text-align: left;
}
.card p {
/*  margin: 0 0 24px 0;*/
  margin: 17px 0 24px 0;
}

/* Winner Alert Dialog */
/*
.alertify .ajs-dialog {
  background-color: #fff136;
}
*/

/* Winner Dialog */

@media all and (max-width:560px) {
  .playernamehead {
    font-size: 30px;
  }
  .playername {
    margin: 14px 0;
    font-size: 20px;
    color: #5a8194;
  }
  input.playername {
    margin: 0;
  }
}

/* Game Buttons */
[class^="btn--"] {
  display: inline-block;
  width: 49%;
  margin-left: 0!important;
}
@media all and (max-width:768px) {
  [class^="btn--"] {
    display: inline-block;
    width: calc(50vw - 50px);
    margin-left: 0!important;
  }
}

/* Misc */
.hide {
  display: none;
}
.invisible {
  position: absolute;
  top: -1000px;
  left: -1000px;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.pointer {
  cursor: pointer;
}
.block {
  display: block;
}
.ib {
  display: inline-block;
}
.fill {
  width: 100%;
}
.tc, .center {
  text-align: center;
}
.tl {
  text-align: left;
}
.fl {
  float: left;
}
.fn {
  float: none;
}
.fr {
  float: right;
}
