body {
  background-color: #0a0a23;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 18px; /* Base font size bigger for mobile */
  line-height: 1.6;
}

#text {
  background-color: #0a0a23;
  color: #ffffff;
  padding: 20px;
  font-size: 20px;
  text-align: center;
}

#game {
  width: 90%;
  max-width: 800px;
  min-height: 900px;
  background-color: #1a1a3a;
  color: #ffffff;
  margin: 40px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

#controls,
#stats {
  border: 1px solid #ffffff;
  padding: 15px;
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 18px; /* stats font size stays fixed */
  border-radius: 8px;
  text-align: center;
}

#monsterStats {
  display: none;
  border: 1px solid #ffffff;
  padding: 15px;
  color: #ffffff;
  background-color: #c70d0d;
  font-size: 18px; /* stats font size stays fixed */
  border-radius: 8px;
  margin-bottom: 15px;
}

.stat {
  padding-right: 15px;
  font-size: 18px; /* stats font size stays fixed */
}

button {
  cursor: pointer;
  color: #0a0a23;
  background-color: #feac32;
  background-image: linear-gradient(#fecc4c, #ffac33);
  border: 3px solid #feac32;
  font-size: 24px;
  padding: 15px 40px;
  border-radius: 12px;
  margin: 15px 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Responsive adjustments for mobile */
@media (max-width: 500px) {
  body {
    font-size: 16px; /* smaller body text */
  }

  #text {
    font-size: 18px;
    padding: 15px;
  }

  #game {
    min-height: 1000px;
    padding: 15px;
  }

  button {
    font-size: 18px; /* smaller buttons on mobile */
    padding: 10px 20px;
  }

  #controls,
  #stats,
  #monsterStats {
    padding: 10px; /* reduce padding on mobile, but font size stays 18px */
    margin-bottom: 10px;
  }
}
