body {
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  font-family: 'Inter', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  text-align: center;
}

/* CHANGED: added a main container so the page has cleaner spacing */
.game-container {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  /* CHANGED: removed display:flex because it is not needed here */
  background-color: #f5f7fa;
  color: #222;
  font-size: 2.2rem;
  font-weight: 700;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  margin-bottom: 24px;
}

/* CHANGED: removed styling all divs, which was too broad */

/* Tap number and message text */
.tapNum {
  font-size: 2rem;
  color: #ffbfae;
  margin: 16px 0;
}

/* CHANGED: created one shared button class so all buttons match in size */
.gameButton {
  border: none;
  border-radius: 30px;
  font-size: 2rem;
  width: 175px;
  min-height: 90px;
  padding: 16px 12px;
  margin: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* CHANGED: made a proper row container for the buttons */
.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  max-width: 700px;
  margin: 0 auto 24px auto;
  padding: 20px;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.tapButton {
  background: linear-gradient(90deg, #4caf50 0%, #43e97b 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.tapButton:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
}

.upgradeButton {
  background: linear-gradient(90deg, #ff5858 0%, #f09819 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 88, 88, 0.15);
}

.upgradeButton:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 88, 88, 0.25);
}

/* CHANGED: made auto button use the same size as the others */
.autoTapButton {
  background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
  color: black;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.autoTapButton:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.home {
  color: #ffbfae;
  font-size: 1.2rem;
  text-decoration: none;
  margin: 16px;
  display: inline-block;
  transition: color 0.2s;
}

.home:hover {
  color: #43e97b;
}

/* Responsive Design */
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
    padding: 12px 10px;
  }

  .tapNum {
    font-size: 1.2rem;
  }

  .gameButton {
  border: none;
  border-radius: 30px;
  font-size: 2rem;
  width: 175px;
  min-height: 90px;
  padding: 16px 12px;
  margin: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
}

  .button-row {
    padding: 12px;
    border-radius: 16px;
  }
}