/* Set the default font and background color */

@font-face {
  font-family: 'Evil Empire';
  src: url('/EvilEmpire-4BBVK.ttf');
}

html, body {
  background-color: transparent;
}

.player-hand, .enemy-hand, .player-field, .enemy-field {
  display: flex;
  column-gap: 0.25rem;
}

button { 
  display: block;
  width: 100%;
  height: 3rem;
}

button:disabled {
  pointer-events: none;
}

.card {
  display: inline-block;
  width: 12rem;
  height: 12rem;
  border-color: black;
  transition: all 1.5s ease-in;
}

.card.playing {
  outline: none;
  border-color: white;
  box-shadow: 0 0 10px black;
  pointer-events: none;
}

.card.playing.enemy {
  outline: none;
  border-color: red;
  box-shadow: 0 0 10px darkred;
}

.card-container > h1 {
  font-size: 1000%;
  align-self: center;
  margin: auto;
  font-family: 'Evil Empire', serif;
}

.card-container.win > h1 {
  color: gold;
}

.card-container.lose > h1 {
  color: red;
}

.nes-container.card {
  padding: 0.5rem 0.5rem;
}

.card-image {
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0%;
  top: 0%;

  opacity: 0.90;
  filter: blur(0px);
  z-index: 0;
  transition: all 30ms ease-in-out 100ms;
}

.enemy-hand > .card > .card-image {
  filter: blur(1px);
}

.card:hover > .card-image {
  opacity: 0.4;
  filter: blur(4px);
}

.play-container {
  z-index: 2;
  opacity: 0;
  position: fixed;
  left: 50%;
  top: 40%;
  pointer-events: none;
  transition: opacity 1.5s ease-out;
}

.play-container.enemy {
  left: 50%;
  top: 20%;
}

.play-container.playing {
  display:block;
  opacity: 1;
}

.play-container.playing .card-image {
  opacity: 0.1;
}

.play-container.playing .card-description {
  color: inherit;
  z-index: 1;
  position: relative;
  color: black;
}

.play-container.playing .card-description i {
  display: none;
}

.card-description {
  font-size:x-small;
  color: transparent;
  transition: all 30ms ease-in-out 100ms;
}

.card:hover > .card-description {
  color: inherit;
  z-index: 1;
  position: relative;
  color: black;
}

.counter {
  display: none;
}

.field > .card:hover > .counter {
  display: none;
}

.field .card > .counter {
  display: block;
  opacity: 0.5;
  color: white;
  font-weight: 900;
  font-size: 5rem;
  text-align: center;
  z-index: 1;
  position: absolute;
  transform: translateY(50%) translateX(25%);
  line-height: 1;
}

#enemy-area > .enemy-hand .card > .counter {
  display: none;
}

.card-container { 
  height: 12rem;
}

.card-areas { 
  flex-direction: column;
  display: flex;
  justify-content: space-between;
}

.combatant-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.combatant {
  font-size:x-large;
  font-weight:900;
  -webkit-text-stroke: 1px black;
  color: white;
}

.enemy-title, .player-title {
  color: grey;
  transition: all 2s ease-in 100ms;
}

.enemy-title.win, .player-title.win {
  color: gold;
}

.enemy-title.lose, .player-title.lose {
  color: red;
}

.card-title {
  font-size:medium;
  font-weight:900;
  -webkit-text-stroke: 1px #1d1d1dF0;
  color: white;
  z-index: 1;
  position: relative;
  transition: all 200ms ease-out 100ms;
}

.card:hover > * >.card-title {
  color: black;
  -webkit-text-stroke: 0px black;
  font-size:large;
}

.card-cost {
  font-size:medium;
  font-weight:900;
  z-index: 1;
  position: relative;
  color: white;
  -webkit-text-stroke: 1px black;
  transition: all 200ms ease-out 100ms;
}

.card:hover > * > .card-cost {
  font-size:large;
  color: white;
  -webkit-text-stroke: 2px black;
}

.card.discard {
  background-color: #343434;
}

.card.discard:hover {
  background-color: #000000;
}

.card.discard:hover > div > .card-title,
.card.discard:hover > div > .card-cost,
.card.discard:hover > .card-description {
  color: #DFDFDF;
}


.nes-badge span:first-child {
  display:block;
}

.nes-badge {
  display:block;
  margin:auto;
}