/** @format */

body {
  background-color: #343434;
  background-image: url(images/beast.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.logout-link {
  color: white;
}
.reset-btn {
  color: white;
  padding: 10px;
  background: #99c502;
  font-weight: bold;
  text-decoration: none;
  position: absolute;
  top: 30px;
}
.wrapper {
  display: grid;
  grid-template-columns: 1fr 600px;
}
.header {
  color: #f4f4f4;
  grid-column-start: 1;
  grid-column-end: 2;
}
.change_card {
  width: 100%;
  height: 120px;
  grid-column-start: 1;
  grid-column-end: 3;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
}
.settings {
  display: flex;
  flex-direction: row-reverse;
}
#board {
  margin-top: 50px;
}
#board button {
  width: 90px;
  height: 90px;
}
#board button:disabled {
  display: none;
}

.beast-stats {
  color: white;
  font-size: 20px;
}
.beast-stats span {
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px;
  color: white;
  font-size: 20px;
  background: #69b437;
}

.beast-stats input {
  font-size: 1em;
  height: 2.2em;
  width: 5em;
}

.image_container {
  font-size: 6vh;
  height: 8.4em;
  width: 6.4em;
  position: relative;
  perspective: 20px;
  -webkit-perspective: 420px;
  left: 20px;
  top: 7px;
}

.card {
  position: relative;
  transform-style: preserve-3d;
  /*
  transform: translateZ(-100px);
  */
  width: 100%;
  height: 100%;
}

.card-frontside {
  position: absolute;
  overflow: hidden;
  height: 100%;
  width: 100%;
  transform: rotateY(0deg) translateZ(2px);
  border: 2px solid #181818;
}
.card-frontside img {
  position: relative;
  height: 10em;
  width: 8em;
  top: -0.8em;
  left: -0.8em;
}

.card-backside {
  background: url(images/card-backside.jpg);
  background-size: 8em 10em;
  background-position: -0.8em -0.8em;
  position: absolute;
  height: 8.4em;
  width: 6.4em;
  transform: rotateY(180deg) translateZ(2px);
  border: 2px solid #343434;
}

.image_container__deck {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 2px solid #181818;
}
.image_container__deck img {
  position: absolute;
  top: -0.8em;
  left: -0.8em;
  height: 10em;
  width: 8em;
}

.show {
  animation: show_card 1s ease-in-out;
}
.show-reverse {
  animation: show_card 1s ease-in-out;
  animation-direction: reverse;

  transform: rotateY(180deg);
  top: 0;
  left: 0;
}

.hide {
  animation: hide_card 1s ease-in-out;
  transform: rotateY(-180deg);
  z-index: 0;
}

.hide-reverse {
  animation: hide_card 1s ease-in-out;
  animation-direction: reverse;
  transform: translateZ(0) rotateY(0deg);
  left: 0;
  z-index: 0;
  top: 0;
}

@keyframes hide_card {
  0% {
    transform: translateZ(0) rotateY(0deg);
    left: 0;
    z-index: 0;
    top: 0;
  }
  25% {
    transform: translateZ(-20px);
    top: -0.3em;
    left: 7.5em;
  }
  50% {
    transform: translateZ(-50px) rotateY(-180deg);
    left: 7.5em;
  }
  75% {
    transform: translateZ(-100px) rotateY(-180deg);
    top: -1.2em;
    z-index: -1;
  }
  100% {
    transform: translateZ(-30px) rotateY(-180deg);
    left: -25px;
    top: -0.6em;
    z-index: -1;
  }
}
@keyframes show_card {
  0% {
    transform: rotateY(180deg);
    top: 0;
    left: 0;
  }
  37.5% {
    transform: rotateY(180deg);
    top: 8px;
    left: 5px;
  }
  100% {
    transform: rotateY(0deg);
    top: 0;
    left: 0;
  }
}

/**
 * Players
 */
.players__template {
  display: none;
}
.players table {
  width: 100%;
}

.players th {
  cursor: default;
}
.players td,
.players th {
  background: #f4f4f4a2;
  border: 1px solid black;
  position: relative;
  text-align: center;
}
.players th {
  background: #005a91;
  color: #fff;
  letter-spacing: 2px;
}
.players td [type="number"] {
  width: 50px;
}

.players td [name="make-move"] {
  border: 5px solid transparent;
  z-index: 1;
  width: 100%;
  outline: none;
  top: 0;
  height: 100%;
  margin: 0;
}
.players td [name="make-move"].active {
  background: #99c502;
}
.players td [name="make-move"]:active {
  border-bottom-color: #99c502;
}
.player.partner .player_torn {
  border-right: 15px solid #005a91;
  transition: border-right 1s;
}

.heart-icon,
.star-icon,
.winpoint-svg,
.helmut-icon,
.shield-icon {
  width: 20px;
}

.player-settings {
  position: relative;
}
.players__avatar {
  font-size: 1.1em;

  width: 5em;
  height: 1.5em;
  background: #99c502;
  border: 1px solid grey;
  vertical-align: middle;
  color: #343434;
  line-height: 1.5em;
}

.setting__options {
  display: none;
}

.player-settings:hover .setting__options {
  position: absolute;
  left: -50px;
  bottom: -20px;
  background: rgba(0, 0, 0, 0.5);
  width: 100px;
  height: 50px;
  display: initial;
}

.player_remove {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
}

.players__add {
  float: right;
}
