@font-face {
  font-family: "Alagard";
  src: url("../font/alagard.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(
    circle at 35% 40%,
    #5a1010 0%,
    #3d0808 50%,
    #1a0303 100%
  );
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  touch-action: none;
}

#content {
  display: flex;
  flex-direction: column;
}

#controls {
  display: flex;
  flex-direction: row;
  align-items: space-between;
  margin: 0 48px;
  gap: 12px;
}

#controls .btn {
  flex: 1;
  font-family: "Alagard", monospace;
  background: #4a0808;
  color: #d4a017;
  border: 2px solid #2a0404;
  text-align: center;
  padding: 2px 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#controls .btn:hover {
  color: #f4d03f;
  box-shadow: 0 3px 0px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

#controls .btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#controls .btn.off {
  opacity: 0.6;
}

#controls .info {
  flex: 1;
  font-family: "Alagard", monospace;
  text-align: center;
  color: #d4a017;
  padding: 4px 0 0 0;
}

#credits {
  display: flex;
  flex-direction: column;
  font-family: "Alagard", monospace;
  align-items: center;
  color: #a37e1c;
  padding: 32px 0 0 0;
}

#credits hr {
  margin: 0 0 24px 0;
}

#credits a {
  text-decoration: none;
  color: #a37e1c;
}
