:root {
  overflow: hidden;
  background-color: black;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

@font-face {
  font-family: "Pixeled";
  src: 
       url("../assets/fonts/pixeled.ttf") format("truetype");
}

body {
  margin: 0;
}

#game {
  background-image: url("../assets/background.gif");
  background-size: 35vh;
  background-position: center;
  background-repeat: repeat;
  position: absolute;
  width: 100vw;
  height: 100vh;
}

canvas {
  transition: all 1s;
  transition-delay: 0.5s;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 1;
}

#logo {
  transition: all 1s;
  position: absolute;
  width: 100%;
  height: 100%;
}

#logo img {
  max-width: 75%;
  margin: auto;
  display: block;


  opacity: 1;

}

.center {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin: auto;
}

#playButton {

  font-weight: bold;
  padding: 0;
  position: relative;
  margin: auto;
  display: block;
  width: 10em;
  height: 4em;
  background-color: #3a83fd;
  border-color: #152742;
  border-width: 5px;
}

#installButton{
  font-weight: bold;
  padding: 0;
  position: relative;
  margin: auto;
  display: block;
  width: 10em;
  height: 4em;
  background-color: #3a83fd;
  border-color: #152742;
  border-width: 5px;
  margin-top: 0.5em;
  display: none;
}

#playButton:hover {
  color: white;
  background-color: #1c5ccc;
}

#ship {
  display: block;
  margin: auto;
  height: 20vh;
  image-rendering: auto;
  transform-origin: center 42.70833333333333%;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

#ui{
  position: absolute;
  display: none;
  width: 100vw;
  height: 100vh;
}


#stick{
  position: absolute;
  width: 40vh;
  height: 40vh;
  bottom: 5vh;
  left: 5vh;
}
#shotButton{
  position: absolute;
  width: 20vh;
  height: 20vh;
  bottom: 10vh;
  right: 10vh;
  border: white solid 2px;
  border-radius: 50%;
}

@media (orientation: portrait) {
  #stick{
    width: 40vw;
    height: 40vw;
    bottom: 5vw;
    left: 5vw;
  }
  #shotButton{
    position: absolute;
    width: 20vw;
    height: 20vw;
    bottom: 10vw;
    right: 10vw;
    border: white solid 2px;
    border-radius: 50%;
  }
}

#foot{
  position: absolute;
  bottom: 0;
  width: 100%;
  color: white;
  font-family: Pixeled;
  text-align: end;
}