body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #ffffff;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  padding: 10px; /* Add small padding to the footer */
}

#cache-version {
  text-align: center;
  font-size: 0.9em; /* Optional: make the text slightly smaller */
}

button {
  touch-action: manipulation; /* Prevent double-tap zoom */
}

select,
input[type="text"] {
  font-size: 18px; /* Increase font size */
  padding: 10px; /* Add padding for larger appearance */
  width: 100%; /* Full width */
  box-sizing: border-box; /* Include padding in width */
}

.container {
  max-width: 500px;
  width: 95%;
  margin: 2px auto;
  padding: 10px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  min-height: calc(100vh - 40px); /* Full screen height minus action buttons */
  display: flex;
  flex-direction: column;
}

.button-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two buttons per row */
  gap: 20px;
  flex-grow: 1; /* Makes the buttons expand to fill the available space */
  grid-auto-rows: 1fr; /* Ensure buttons grow to fill space */
  margin-top: 20px;
}

button {
  font-size: 2em;
  padding: 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.ball-button {
  background-color: #ff5722; /* Ball button color */
  color: #ffffff;
}

.strike-button {
  background-color: #4caf50; /* Strike button color */
  color: #ffffff;
}

.foul-button {
  background-color: #ffeb3b; /* Foul button color */
  color: #000000;
}

.hit-button {
  background-color: #2196f3; /* Hit button color */
  color: #ffffff;
}

.counter {
  font-size: 2em;
}

.action-buttons {
  max-width: 500px;
  width: 100%; /* Full width of the container */
  margin: 2px auto;
  background-color: #1e1e1e;
  padding: 10px;
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 10px; /* Add space between buttons */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  margin-top: 20px; /* Add margin to separate from main content */
}

.action-buttons button {
  width: 100%; /* Full width of the container */
  padding: 15px;
  font-size: 1.2em;
  border-radius: 5px;
  border: none;
}
