/* gameplay.css */
/* Styles for the gameplay phase (canvas-based) */
#game-screen {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: calc(100% - 50px);
  /* No fixed width/height here—the Phaser Scale Manager will resize the canvas */
}
#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #87CEEB;
  border: none;
}

/* house.css */
/* Styles for the house phase & upgrade menu */
#upgrade-menu {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: calc(100% - 50px);
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
  box-sizing: border-box;
  display: block;
  overflow-y: auto;
}
.upgrade-menu-columns {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
}
.upgrade-column {
  width: 45%;
  margin: 10px 0;
}
.upgrade-column h2 {
  text-align: center;
  margin-bottom: 10px;
}
.upgrade-entry {
  margin-bottom: 15px;
}
.upgrade-entry button {
  width: 100%;
  margin: 5px 0 2px 0;
  padding: 10px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.upgrade-entry button:hover {
  background-color: #0056b3;
}
.upgrade-entry button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

/* Explicitly disabled upgrades (locked/unavailable) */
.upgrade-disabled {
  background-color: #333 !important;
  color: #bbb !important;
  opacity: 0.65;
  border: 1px dashed #888;
  cursor: not-allowed !important;
  text-shadow: none;
}
.upgrade-desc {
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
  color: #ccc;
}
#bestTimeText {
  margin-top: 20px;
  text-align: center;
  color: #fff;
}
#startGame {
  display: block;
  margin: 10px auto;
  font-size: 16px;
  padding: 8px 16px;
  cursor: pointer;
  background-color: #28a745;
  border: none;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}
#startGame:hover {
  background-color: #218838;
}
/* Global UI elements (title, money display) */
h1 {
  text-align: center;
  margin-top: 10px;
  color: #000;
  font-size: 36px;
  font-weight: bold;
}

/* Improved money display */
#moneyDisplay {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 20px;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 12px 16px;
  border-radius: 10px;
  color: #FFD700;
  font-weight: bold;
  z-index: 1000;
}

/* Live money updates should stand out */
#moneyText {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.1s ease-in-out, color 0.2s ease-in-out;
}

/* Bounce effect when money updates */
.money-increase {
  transform: scale(1.2);
  color: #FFFFFF;
}
