body {
  font-family: sans-serif;
  text-align: center;
  background: #f0f0f0;
}

canvas {
  border: 2px solid black;
  margin-top: 20px;
}

/* WASD Button Container */
.wasd-container {
  position: relative;
  display: inline-block;
  margin: 20px;
  width: 150px;
  height: 100px;
}

/* Base button styling */
.wasd-button {
  position: absolute;
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #333;
  background-color: #f0f0f0;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.1s ease;
}

.wasd-button:hover {
  background-color: #e0e0e0;
  transform: translateY(1px);
}

.wasd-button:active {
  background-color: #d0d0d0;
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* WASD Layout Positioning */
#upButton {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#leftButton {
  top: 50px;
  left: 0;
}

#downButton {
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
}

#rightButton {
  top: 50px;
  right: 0;
}