body {
  font-family: 'Press Start 2P', monospace;
  display: flex;
  justify-content: center;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

/* Default dark theme */
body.dark-mode {
  background: #000000;
  color: #00ccff;
}

body.light-mode {
  background: #f5f5f5;
  color: #222;
}

.game-container {
  width: 600px;
  border: 3px solid #00ff00; /* Retro terminal border */
  padding: 20px;
  background-color: inherit; /* <-- inherit body background */
  color: inherit;            /* <-- inherit body text color */
  transition: background 0.3s, color 0.3s;
}

#demo-container {
  display: none;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
}

#demo-frame {
  width: 100%;
  height: calc(100vh - 120px);
  border: 2px solid currentColor;
}

#close-demo {
  margin-top: 12px;
  font-family: 'Press Start 2P', monospace;
}

#text-log {
  margin-bottom: 20px;
  line-height: 1.5em;
  font-size: 12px;
}

#options button {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  text-align: left;
  background: #000;
  border: 2px solid #00ff00;
  color: #00ff00;
  cursor: pointer;
  transition: all 0.1s;
}

/* Buttons for dark theme */
body.dark-mode #options button {
  background: #000;
  color: #00ff00;
}
body.dark-mode #options button:hover {
  background: #00ff00;
  color: #000;
}

/* Buttons for light theme */
body.light-mode #options button {
  background: #fff;
  color: #0000ff;
}
body.light-mode #options button:hover {
  background: #0000ff;
  color: #fff;
}
