/* Reset and full viewport styling */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background: #d0d0d0;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* GameBoy wrapper */
#gameboy {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #9dac78;
  border: 10px solid #444;
  border-radius: 20px;
  padding: 10px;
  box-shadow: inset -4px -4px 10px rgba(0,0,0,0.3);
}

/* Canvas screen */
#gameCanvas {
  display: block;
  width: 90vw;
  max-width: 300px;
  height: auto;
  background: #000;
  border: 4px solid #333;
  image-rendering: pixelated;
}

/* Controls area: D-pad left, A/B right */
#controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
}

/* D-pad styling */
#dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dpad-btn {
  background: #666;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 2px;
}

.dpad-middle-row {
  display: flex;
  align-items: center;
}

.dpad-spacer {
  width: 20px; /* Space between left and right */
}

/* A/B buttons container: same row */
#buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

#buttons button {
  background: #666;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* Start/Select buttons at the bottom */
#menu-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

#menu-buttons button {
  background: #444;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  width: 70px;
  height: 30px;
  border-radius: 10px;
}
