/* ================= gameDesign.css START ================= */

/* Body: a smooth gradient background with a consistent color theme */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0a0a23 40%, #141447 100%);
  font-family: Arial, sans-serif;
  color: #ffffff;
}

/* Main container for the game */
#game {
  max-width: 80%;
  min-width: 80%;
  max-height: calc(100% - 250px);
  margin: 40px auto;
  background-color: #1a1a3d;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

/* Stats at the top: Level, XP, Health, Gold */
#stats {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #2a2a5d;
  border-radius: 5px;
  margin-bottom: 20px;
  align-items: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.stat {
  font-size: 1rem;
  font-weight: bold;
}

/* The controls (main + secondary) in separate containers. */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

#mainControls {
  justify-content: space-evenly;
  margin-bottom: 20px;
}

#secondaryControls {
  background-color: #2a2a5d;
  padding: 10px;
  border-radius: 5px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Buttons: consistent theme and hover effect */
button {
  background: linear-gradient(#FFBF55, #FEAC32);
  border: none;
  border-radius: 5px;
  padding: 10px;
  color: #0a0a23;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.2s ease;
  min-width: 90px;
  text-align: center;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(#ffc675, #ff9f1a);
}

/* Monster stats panel that appears during fights */
#monsterStats {
  display: none;
  background-color: #822525;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#text {
  margin-top: 20px;
  background-color: #29294d;
  border-radius: 5px;
  padding: 15px;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
  min-height: 120px;
  white-space: pre-line;
}

#gameContainer {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

/* Canvas for health bars, placed centrally below stats but above text? */
#gameCanvas {
  display: block;
  margin: 0 auto 10px auto;
  background-color: #2a2a5d;
  border: 2px solid #feac32;
  border-radius: 5px;
}

/* ================= gameDesign.css END ================= */
