/* scss for Space Invaders */
/* bring in other scss files */
/* colors */
/* fonts */
/* Google Fonts - press-start-2p-regular - latin */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  src: local("Press Start 2P"), local("PressStart2P"), url("../fonts/press-start-2p-v9-latin-regular.woff2") format("woff2"), url("../fonts/press-start-2p-v9-latin-regular.woff") format("woff"); }

html {
  opacity: 1; }

body.mobile.portrait #game_canvas canvas {
  transform: scale(0.9); }

body.mobile.landscape #game_canvas canvas {
  transform: scale(0.68); }

/* use media queries and animation-name to set a retrievable device orientation type */
@media all and (orientation: landscape) and (max-width: 519px) {
  html {
    animation: small_landscape 1s 1; } }

@media all and (orientation: landscape) and (max-width: 699px) and (min-width: 520px) {
  html {
    animation: medium_landscape 1s 1; } }

@media all and (orientation: landscape) and (max-width: 1000px) and (min-width: 700px) {
  html {
    animation: large_landscape 1s 1; } }

@media all and (orientation: landscape) and (min-width: 1001px) {
  html {
    animation: xlarge_landscape 1s 1; } }

@media all and (orientation: portrait) and (max-width: 519px) {
  html {
    animation: small_portrait 1s 1; } }

@media all and (orientation: portrait) and (max-width: 699px) and (min-width: 520px) {
  html {
    animation: medium_portrait 1s 1; } }

@media all and (orientation: portrait) and (max-width: 1000px) and (min-width: 700px) {
  html {
    animation: large_portrait 1s 1; } }

@media all and (orientation: portrait) and (min-width: 1001px) {
  html {
    animation: xlarge_portrait 1s 1; } }

/* use media queries and animation-name to set a retrievable screen size category */
@keyframes small_landscape {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

@keyframes medium_landscape {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

@keyframes large_landscape {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

@keyframes xlarge_landscape {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

@keyframes small_portrait {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

@keyframes medium_portrait {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

@keyframes large_portrait {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

@keyframes xlarge_portrait {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

html,
body,
form,
fieldset,
input,
button {
  margin: 0;
  padding: 0;
  font-family: "Press Start 2P", "Arial Narrow", condensed; }

html,
body {
  overflow: hidden;
  background: #6e0909;
  background-image: url("../images/space_invaders_logo_centered.png") bottom center/20% repeat-x border-box;
  background: url("../images/space_invaders_logo_centered.png") bottom center/20% repeat-x border-box, linear-gradient(180deg, #6e0909 0%, #756709 76%);
  outline: none;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  width: 100vw;
  height: 100vh; }

p,
blockquote,
fieldset {
  margin: 0.5vw 0; }

input[type=range][orient=vertical] {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width: 0.5vh;
  height: 10vh;
  padding: 0 0.125vh;
  position: absolute;
  margin-left: 1.25vh; }

.hid {
  display: none; }

#newgame {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50vw;
  margin-left: -10vw;
  width: 20vw;
  text-align: center;
  padding: 0.5em; }

#game_canvas {
  display: block;
  margin: 0 auto;
  font-family: "Press Start 2P";
  outline: none; }
  #game_canvas canvas {
    font-family: "Press Start 2P";
    box-sizing: border-box;
    border: 1px solid rgba(243, 45, 14, 0.5);
    outline: none;
    touch-action: manipulation; }

#highscore_initials_form {
  position: absolute;
  z-index: 5;
  border: 1px solid white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2vw;
  top: 20vw;
  left: 50vw;
  margin-left: -25vw;
  width: 50vw;
  text-align: center; }
  #highscore_initials_form div:first-of-type {
    margin-top: 1em; }
  #highscore_initials_form span {
    padding: 0 0.15em 0.25em; }
  #highscore_initials_form span.rub,
  #highscore_initials_form span.end {
    font-size: 0.5em; }

.blinking {
  animation: blinky 1s linear infinite;
  border-bottom: 2px solid white; }

@keyframes blinky {
  from {
    opacity: 0; }
  to {
    opacity: initial; } }

/*# sourceMappingURL=space-invaders.css.map */