@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/Press_Start_2P/PressStart2P-Regular.ttf") format("truetype");
}

html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
}

body {
  font-family: 'Press Start 2P', sans-serif;
}

body,
canvas {
  background-color: black;
}

canvas {
  flex-shrink: 1;
  width: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  aspect-ratio: 4 / 3;
}

img,
audio {
  display: none;
}

p {
  line-height: 1.6;
}

.fixed {
  position: fixed;
}

.hidden {
  display: none;
}

a {
  color: red;
  text-shadow: .15em .15em 0px #0044AA;
  transition: all 200ms ease-in-out;
}
a:hover {
  color: blue;
  text-shadow: .15em .15em 0px red;
}

.red {
  color: red;
}

.gray {
  color: gray;
}

.blue {
  color: #01AAFF;
}

.white {
  color: #FFFFFF;
}

.flex {
  display: flex;
}

.col {
  display: flex;
  flex-direction: column;
  flex-basis: 50%;
}


/* sprite helper ui */
.hurtBox {
  bottom: 50px;
}

.animation-select {
  position: fixed;
  bottom: 100px;
  right: 100px;
  z-index: 1;
}

.frame-select {
  position: fixed;
  bottom: 70px;
  right: 100px;
  z-index: 1;
}

.y-input {
  position: fixed;
  bottom: 10px;
  right: 100px;
  z-index: 1;
}

.x-input {
  position: fixed;
  bottom: 40px;
  right: 100px;
  z-index: 1;
}

/** end sprite helper css */

.facist-fight-game-container {
  position: relative;
}


.player-controls {
  color: white;
  width: 100%;
  font-size: 1.5vw;
  line-height: 1.6em;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}

.player-controls-header {
  text-transform: uppercase;
  font-size: 3.75vw;
  margin-top: 0.5em;
  margin-bottom: 0.75em;
  color: red;
  text-shadow: .15em .15em 0px #0044AA;
}

.player-controls-sub-header {
  font-size: 3.75vw;
  margin-top: 0.33em;
  margin-bottom: 0.75em;
  text-shadow: .15em .15em 0px #0044AA;
}

.col-1 {
  margin-right: .5em;
}

.col-2 {
  margin-left: .5em;
}

.col-1 .control-value {
  background-color: #01AAFF;
}

.col-2 .control-value {
  background-color: red;
}

.control-value {
  color: black;
  padding: 0.25em;
  margin-left: 10px;
}

.control {
  padding: 3px;
}

/** modal styles **/
.modal {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 90%;
  height: 100%;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  padding: 2em;
  background: rgba(0, 0, 0, .75);
  transition: opacity 200ms ease-out;
}

.modal.active {
  z-index: 50;
  opacity: 1;
  visibility: visible;
}

.modal-trigger {
  background-color: transparent;
  border: 0;
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  cursor: pointer;
}

.game-controller-svg path {
    fill: white;
    transition: all 200ms ease-out;
}
.game-controller-svg:hover path {
  fill: #f30000;
}

.close-modal {
  font-size: 4vw;
  color: white;
  background-color: transparent;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 200ms ease-out;
  position: fixed;
  top: .66em;
  right: 2.5%;
  font-family: inherit;
  text-shadow: .15em .15em 0px #0044AA;
  z-index: 10;
}

.close-modal:hover,
.close-modal:active {
  color: teal;
  text-shadow: .15em .15em 0px red;
}

.modal-inner-wrap {
  width: 100%;
  position: relative;
  overflow-y: auto;
}

.modal-inner-wrap {
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}

.modal-inner-wrap::-webkit-scrollbar {
  display: none;  /* Safari and Chrome */
}

.modal-section {
  margin-bottom: 3em;
}

.special-move-description {
  color: white;
  margin-bottom: 2.5em
}

.player-name {
  font-size: 0.65em;
  color: red;
  text-shadow: none;
}


@media screen and (min-width: 1240px) {
  .player-controls-header {
    font-size: 47px;
  }

  .player-controls {
    font-size: 19px;
  }

  .close-modal {
    font-size: 40px;
    top: 40px;
  }
}
