@charset "UTF-8";

html {
  touch-action: manipulation;
}

body {
  white-space: nowrap;
  user-select: none;

  font-family:
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Helvetica Neue",
    Meiryo,
    Arial,
    sans-serif;
}

h1 {
  margin-bottom: 14px;
}

p {
  display: inline;
}

.p3 {
  font-size: 18px;
}

.p2 {
  font-size: 14px;
}

.gray {
  color: #656565;
}

.bold {
  font-weight: bold;
}

.result {
  font-size: 22px;
}

#canvasWrapper {
  position: relative;
  height: 320px;
  margin-bottom: -10px;
}

#canvasWrapper canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#grid {
  border: 1px solid #c8c8c8;
}

.modeImage {
  position: fixed;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0.75;
}

.buttonMode {
  width: 60px;
  height: 60px;
  margin-top: 0px;
}

.buttonMode img {
  image-rendering: pixelated;
  width: 100%;
  pointer-events: none;
}

#currentRail {
  display: inline-block;
  width: 100px;
  height: 100px;
  margin-top: 10px;
  margin-left: 20px;
  position: absolute;
  background-color: rgba(96, 114, 247, 0.2);
  border-radius: 20%;
}

#currentRail img {
  image-rendering: pixelated;
  width: 80%;
  pointer-events: none;
  margin-top: 10%;
  margin-left: 10%;
}

.buttonFeature {
  width: 60px;
  height: 50px;
  margin-top: 16px;
  margin-right: 10px;
}

.buttonFeature img {
  image-rendering: pixelated;
  width: 80%;
  margin-top: 12%;
  pointer-events: none;
}

#buttonUndo:disabled img {
  opacity: 0.25;
}

#buttonCalc {
  height: 45px;
  width: 90px;
  font-size: 14px;
  margin-top: 16px;
  margin-right: 16px;
}

.buttonPointer {
  width: 40px;
  height: 40px;
  margin-top: 50px;
}

.buttonPointer img {
  image-rendering: pixelated;
  width: 100%;
  margin-top: 14%;
  pointer-events: none;
}

footer {
  padding-top: 32px;
  text-align: right;
}

img[alt="Touch Mode"] {
  opacity: 30%;
}
