/* style.css */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden; /* prevent scrolling */
  display: flex;
  justify-content: center;
  align-items: center;
}
html {
  background-color: rgb(99, 77, 177);
}
body {
  background-color: rgb(136, 22, 22);
}
#version-display {
  position: fixed;
  top: 5px;
  left: 5px;
  font-family: monospace;
  font-size: 12px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
}

#game-wrapper {
  width: 360px;
  height: 576px;
  background: rgb(122, 255, 144);
  /* transform-origin: center center; */
  user-select: none;
  overflow: hidden;
  box-sizing: border-box;
  font-family: monospace;
  position: relative; /* needed for absolute children */
}

button {
  font-family: inherit;
}

/* Fill container */
#title-screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: white;
  background: rgb(189, 139, 139);
  text-align: center;
  box-sizing: border-box;
  padding: 20px;
  user-select: none;
}

/* Title styling */
#title-screen h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.2;
}

/* Buttons styling */
.mode-btn {
  width: 200px;
  padding: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  background: #222;
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  transition: background 0.3s;
}

.mode-btn:hover {
  background: white;
  color: black;
}

#back-btn {
  /* font-family: monospace; */
  font-size: 1rem;
  cursor: pointer;
  background: #fafafa;
  color: black;
  border: 2px solid white;
  border-radius: 3px;
}

/* Canvas fills the wrapper */
#canvas {
  width: 100%;
  height: 100%;
  display: none; /* hidden initially until mode starts */
  background-color: rgb(0, 0, 0);
}
