@font-face {
  font-family: "LuckiestGuy";
  src: url("fonts/LuckiestGuy-Regular.ttf");
}

body {
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #404fae;
}

header {
  width: 100%;
  box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.2);
}

.backlink {
  max-width: 1440px;
  display: block;
  width: 100%;
  margin-top: 60px;
}

.backlink img {
  height: 36px;
  width: 36px;
  margin-right: 12px;
  margin-left: 40px;
}

.backlink a {
  display: flex;
  align-items: center;
  font-family: "LuckiestGuy";
  font-size: 28px;
  color: #ffff00;
  text-decoration: none;
  cursor: pointer;
}

.backlink span {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

.main {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
}

.imprint-text {
  font-size: 20px;
  font-family: sans-serif;
  color: white;
}

.imprint-text h2 {
  margin-top: 60px;
  font-family: sans-serif;
  -webkit-text-stroke-width: 0;
}

.imprint-text a {
  color: #ffff00;
  text-decoration: none;
  cursor: pointer;
}

.imprint-text a:hover {
  color: #ffb700;
}

button {
  cursor: pointer;
}

h1 {
  font-size: 64px;
  display: block;
  text-align: center;
  font-family: "LuckiestGuy";
  color: cyan;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #cc33ff;
}

h3 {
  margin-top: 130px;
  font-family: "LuckiestGuy";
  font-size: 20px;
  font-weight: 400;
  color: #ffff00;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  text-align: center;
}

h2 {
  margin-top: 130px;
  font-family: "LuckiestGuy";
  font-size: 24px;
  font-weight: 400;
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  text-align: center;
}

.gamecontainer {
  position: relative;
}

.hud {
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 0;
}

.hudelements {
  width: 100%;
  background-color: transparent;
}

.tophud {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.bottomhud {
  height: 100px;
  display: flex;
  justify-content: space-between;
}

.sound {
  display: flex;
  align-items: center;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 100%;
}

.movement {
  width: 100px;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 100%;
  margin-left: 50px;
}

.shoot {
  width: 180px;
  height: 100px;
  margin-right: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.attack {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 100%;
}

.attack img {
  width: 80px;
  height: 80px;
}

canvas {
  background-color: black;
  display: block;
  position: relative;
  margin: auto;
}

.overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 10;
}

.overlay a {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: sans-serif;
  font-size: 20px;
  color: #ffff00;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.overlay a:hover {
  color: #ffb700;
}

#restart {
  font-family: "LuckiestGuy";
  font-size: 36px;
  color: orangered;
  background-color: aquamarine;
  border-color: orangered;
  border-style: solid;
  padding: 12px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 8px;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: 64px;
  z-index: 20;
}

.notice {
  display: none;
}

@media (pointer: coarse) and (orientation: portrait) {
  .notice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #404fae;
    z-index: 100;
  }
}

@media (pointer: coarse) and (orientation: landscape) {
  h1 {
    display: none;
  }

  .hud {
    visibility: visible;
  }

  .notice {
    display: none;
  }
}

@media (max-width: 960px) {
  canvas {
    width: 100%;
  }
}

@media (max-width: 650px) {
  #restart {
    font-size: 24px;
    top: 30px;
  }

  h3 {
    margin-top: 80px;
  }
}

@media (max-width: 470px) {
  #restart {
    font-size: 20px;
    top: 30px;
    padding: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }

  h3 {
    font-size: 16;
    margin-top: 60px;
  }
}

@media (max-height: 540px) {
  canvas {
    height: 100vh;
  }
}
