@font-face {
  font-family: "TheGoodMonolith";
  font-style: normal;
  font-weight: 500;
  src: local("TheGoodMonolith"),
    url("https://fonts.cdnfonts.com/s/32398/TheGoodMonolith.woff")
      format("woff");
}

body {
  margin: 0;
  user-select: none;
  overflow: hidden;
  font: 16px TheGoodMonolith;
}

label {
  padding-bottom: 5px;
}

input {
  font: 16px TheGoodMonolith;
  background-color: black;
  color: white;
  border: 2px solid grey;
  padding: 5px;
}

button {
  font: 16px TheGoodMonolith;
  background-color: black;
  border: 2px solid grey;
  color: white;
  padding: 5px;
}

button:disabled {
  color: grey;
}

#canvas {
  z-index: 1;
}

.modal {
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: black;
  padding: 10px;
  border: 2px solid grey;
  color: white;
}

#start-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.color-radio {
  display: inline-block;
  position: relative;
}

.color-radio input[type="radio"] {
  display: none;
}

.color-radio label {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
  border-width: 2px;
  border-style: solid;
}

.color-1 {
  border-color: #0d6efd;
}
input:checked + .color-1 {
  background-color: #0d6efd;
}

.color-2 {
  border-color: #198754;
}
input:checked + .color-2 {
  background-color: #198754;
}

.color-3 {
  border-color: #dc3545;
}
input:checked + .color-3 {
  background-color: #dc3545;
}

.color-4 {
  border-color: #ffc107;
}
input:checked + .color-4 {
  background-color: #ffc107;
}

.color-5 {
  border-color: #0dcaf0;
}
input:checked + .color-5 {
  background-color: #0dcaf0;
}

#joystick {
  z-index: 2;
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 128px;
  height: 128px;
  border: 2px solid white;
}

#stick {
  position: absolute;
  left: 32px;
  top: 32px;
  width: 64px;
  height: 64px;
  border: 2px solid red;
  border-radius: 32px;
}

#shoot-button {
  z-index: 2;
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: 64px;
  height: 64px;
  border: 2px solid red;
  border-radius: 32px;
}

#disconnected-modal {
  display: none;
  z-index: 3;
}

#disconnected-modal .modal-content {
  display: flex;
  flex-direction: column;
}
