/* some style */

* {
  touch-action: none;
}

body {
  overflow-y: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.controls {
  display: none;
}

.crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  height: 20px;
  width: 20px;
}

.crosshair:before, .crosshair:after {
  content: "";
  position: absolute;
  z-index: -1;
  background: #fff;
}

.crosshair:before {
  left: 62%;
  width: 6%;
  margin-left: -15%;
  height: 100%;
}

.crosshair:after {
  top: 62%;
  height: 6%;
  margin-top: -15%;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .pc-prompt {
    display: none;
  }

  .github-link {
    display: none;
  }

  .controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid black;
    background-color: rgba(255, 255, 255, 0.2);
  }

  .controls div {
    flex-grow: 1;
  }

  .left-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .left-controls div {
    display: flex;
  }

  .center-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .right-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .control-button {
    width: 50px;
    height: 50px;
    margin: 3px;
    background-color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    font-size: 14px;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
  }
}

.pick-block {
  bottom: 0;
  display: flex;
  justify-content: center;
  position: fixed;
  width: 100%;
}

.pick-block * {
  background-image: url("/texture.png");
  background-size: 399px;
  border-color: #ccc;
  border-style: solid;
  height: 50px;
  width: 50px;
}

.pick-block #grass {
}

.pick-block #dirt {
  background-position: -100px 0;
}

.pick-block #stone {
  background-position: -50px 0;
}

.pick-block .selected {
  border-color: #000;
}
