@font-face {
  font-family: 'Poke\'mon FireRed & LeafGreen Font Recreation';
  src: url('./assets/fonts/Pokmon-FireRed--LeafGreen-Font-Recreation.eot');
  src: url('./assets/fonts/Pokmon-FireRed--LeafGreen-Font-Recreation.eot?#iefix') format('embedded-opentype'),
      url('./assets/fonts/Pokmon-FireRed--LeafGreen-Font-Recreation.woff2') format('woff2'),
      url('./assets/fonts/Pokmon-FireRed--LeafGreen-Font-Recreation.woff') format('woff'),
      url('./assets/fonts/Pokmon-FireRed--LeafGreen-Font-Recreation.ttf') format('truetype'),
      url('./assets/fonts/Pokmon-FireRed--LeafGreen-Font-Recreation.svg#Pokmon-FireRed-&-LeafGreen-Font-Recreation') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Press Start 2P';
  src: url('./assets/fonts/PressStart2P-Regular.ttf');
}

body {
  font-family: 'Poke\'mon FireRed & LeafGreen Font Recreation';
  margin: 0;
  height: 100vh;
  background-color: rgb(27, 27, 27);
  display: flex;
  justify-content: center;
  align-items: center;
}
#root {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 10px 10px 5px black;
  width: 640px;
  height: 384px;
  transform: scale(2.0);
  background-repeat: no-repeat;
  image-rendering: pixelated;
  transition-duration: 500ms;
}
#transition, .battle-arena-backdrop, #loading-screen {
  z-index: 101;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  transition: opacity 500ms;
  opacity: 0;
}
#loading-screen {
  opacity: 1;
  background-image: url('./assets/images/loading-screen.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.loading-text {
  font-family: 'Press Start 2P';
  color: white;
  bottom: 60px;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
}
#transition {
  z-index: 100;
}
.battle-arena-backdrop {
  z-index: 99;
  display: flex;
  align-items: center;
  opacity: 0;
}
.battle-arena-container {
  background-image: url('./assets/images/maps/battle-backgrounds.png');
  background-repeat: no-repeat;
  width: 640px;
  height: 299px;
  position: relative;
  opacity: 0;
  transition: opacity 500ms;
}
.battle-arena-container > * {
  transition: right 500ms, left 500ms;
}
.enemy, .player {
  height: 128px;
  width: 128px;
  position: absolute;
}
.player {
  background-image: url('./assets/images/players/player-back.png');
  bottom: 0;
  left: -128px;
}
.enemy {
  background-image: url('./assets/images/players/fighters.png');
  top: 64px;
  right: -128px;
}
.ui {
  position: absolute;
  width: 350px;
  height: 100px;
  border-radius: 6px 2px;
  border: 3px solid black;
  background-color: beige;
}
.player-ui {
  bottom: 2px;
  right: -360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.enemy-ui {
  top: 2px;
  left: -360px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.enemy-ui > .content {
  text-align: center;
}
.space {
  height: 64px;
  width: 32px;
  position: absolute;
  box-sizing: border-box;
  border: 1px solid black;
}
.player-health-bar-container,
.enemy-health-bar-container {
  position: absolute;
  height: 100px;
  width: 20px;
  border: 2px solid black;
}
.player-health-bar-container {
  left: -26px;
  bottom: 2px;
}
.enemy-health-bar-container {
  right: -26px;
  top: 2px;
}
.enemy-health,
.player-health {
  height: 100%;
  transition: height 500ms;
  font-size: .7rem;
  text-align: center;
}
.enemy-health {
  background-color: red;
}
.player-health {
  background-color: green;
}
[data-answer] {
  font-family: 'sans-serif';
  padding: 2px;
  font-size: .8rem;
}
[data-answer].selected {
  border: 1px solid gold;
  border-radius: 3px;
}
.correct {
  border-color: green !important;
}
.wrong {
  border-color: red !important;
}
.movement-buttons, .interaction-buttons {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  display: none;
  opacity: 0.5;
}
.movement-buttons {
  background-image: url('./assets/images/movement-buttons.png');
  left: 20px;
  bottom: 3px;
  width: 100px;
  height: 100px;
}
.interaction-buttons {
  background-image: url('./assets/images/interaction-buttons.png');
  right: 20px;
  bottom: 3px;
  width: 100px;
  height: 81px;
}
.hidden {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .movement-buttons, .interaction-buttons {
    display: block;
  }
}
