* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: black;
  font-family: JetBrains Mono, monospace;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

button {
  background: #1c1c1c;
  color: #efefef;
  border: none;
  padding: 1rem;
  font-family: monospace;
  border-radius: 3px;
}

button:hover {
  background: #2c2c2c;
  cursor: pointer;
}

label {
  color: #efefef;
}

input {
  background: #3c3c3c;
  border: none;
  padding: 0.5rem 1rem;
  color: #efefef;
  font-family: JetBrains Mono, monospace;
  margin-top: 10px;
}

.flex {
  display: flex;
}

.column {
  flex-direction: column;
}

.center {
  justify-content: center;
  align-items: center;
}

.container {
  position: absolute;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
}

.form {
  top: 55vh;
}

.container form > * {
  margin: 0.5rem;
}

.error-modal {
  display: none;
  background: #eb3734;
  color: #efefef;
  padding: 1rem 2rem;
  border-radius: 3px;
  text-align: center;
}

.small-text {
  font-size: 12px;
}

.graphics-options {
  display: none;
  bottom: 0;
  top: inherit;
}

.graphics-options p {
  text-align: center;
  margin-bottom: 0.75rem;
  color: #6c6c6c;
}

#low {
  background: #eb3734;
}

#medium {
  background: #ee7606;
}

#high {
  background: #0ff751;
}

.mobile-modal {
  display: none;
  padding: 2rem;
  width: 100%;
  height: 100vh;
  background: #eb3734;
  color: #efefef;
  text-align: center;
}

.restart-button {
  position: absolute;
  top: 40vh;
  left: 50vw;
  transform: translate(-50%, -50%);
}

#p5_loading {
  color: #efefef;
  font-size: 72;
}

#command {
  color: #efefef;
}

#print {
  color: #3c3c3c;
}

.dim {
  filter: brightness(50%);
}

#instructions-button-container {
  position: relative;
  display: none;
  justify-content: center;
  margin-top: 2rem;
  z-index: 2;
}

.instructions-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 4rem;
}

.blur {
  background-color: rgba(0, 0, 0, 0.9);
}

@supports ((backdrop-filter: none)) {
  .blur {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
  }
}

.inner-container {
  padding: 4rem;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 4px;
}

table {
  text-align: left;
  font-size: 1.2rem;
}

th:nth-child(odd) {
  padding-right: 4rem;
}

th {
  color: #efefef;
  padding: 1rem;
}

td {
  color: #9c9c9c;
  padding: 0.5rem 1rem;
}

kbd {
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2),
    0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
  color: #333;
  display: inline-block;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  white-space: nowrap;
}

kbd.key {
  border-radius: 3px;
  padding: 1px 2px 0;
  border: 1px solid black;
}

pre {
  color: #fefefe;
  margin-left: -4rem;
  margin-top: -12rem;
  font-size: 12px;
}

.title {
  top: 500;
  display: none;
}

#insert-coin {
  color: #e6a40c;
  text-align: center;
  font-size: 24px;
  animation: blink 0.5s linear infinite alternate-reverse;
}

.hide {
  display: none;
}

.show {
  display: flex;
}

@keyframes blink {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
