#button-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.button {
  padding: 5px;
  border-radius: 5px;
  background-color: #efd007;
  border: outset 3px #fae352;
  color: #001ea1;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    box-shadow: 0 0 5px #fae352;
    border: inset 3px #fae352;
    color: #001ea1;
  }
}

.button:active {
  background-color: #fae352;
  border: inset 3px #fae352;
  transform: scale(0.95);
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  border: outset 3px #aaa;
  box-shadow: none;
}

.button:focus {
  outline: none;
  border: outset 3px #fae352;
}

.button:focus:hover {
  outline: none;
  border: inset 3px #fae352;
}

#mobile-controls {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none; 
}

#mobile-controls .left-buttons,
#mobile-controls .right-buttons {
  position: absolute;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto; 
}

#mobile-controls .left-buttons {
  left: 20px;
}

#mobile-controls .right-buttons {
  right: 20px;
}

#mobile-controls button {
  padding: 15px;
  font-size: 24px;
  border-radius: 8px;
  border: none;
  background: #f0a24b;
  color: #001ea1;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  pointer-events: auto; 
}

#mobile-controls button:active {
  background: #fae352;
  transform: scale(0.95);
}
