body {
  background-color: #111;
  color: white;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
#title{
  margin-bottom: 25%;
  font-size: 5rem;
}
#game-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
#rules {
  width: 200px;
}
canvas {
  border: 4px solid white;
  background: #222;
}
#controls {
  margin-top: 30px;
  padding: 15px 20px;
  background-color: #1e1e1e;
  color: #f0f0f0;
  font-family: sans-serif;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}
#controls ul {
  list-style: none;
  padding: 0;
}
#controls li {
  margin: 5px 0;
}
#mini-containers{
  margin-top: 10px;
}
#restart-btn {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}
#health-container {
  width: 150px;
  height: 30px;
  background-color: #ddd;
  border: 2px solid #333;
  position: relative;
}
#health-bar {
  height: 100%;
  background-color: #4caf50;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: width 0.3s ease;
}
#health-bar-text {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  z-index: 2;
  color: black;
}
#armor-container {
  width: 150px;
  height: 30px;
  background-color: #ddd;
  border: 2px solid #333;
  position: relative;
}

#armor-bar {
  height: 100%;
  width: 0%;               /* empty by default */
  background-color: #3399FF; /* blue fill */
  transition: width 0.3s ease;
}

#armor-bar-text {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  z-index: 2;
  color: black;
}
#enemy-health-container {
  display: none;
  width: 150px; 
  height: 40px; 
  background: #ddd; 
  border: 2px solid #333; 
  position: relative; 
  margin-top: 10px;
}

#enemy-health-bar {
  height: 100%; 
  width: 100%; 
  background-color: red; 
  transition: width 0.3s ease;
}

#enemy-health-text {
  position: absolute; 
  width: 100%; 
  text-align: center; 
  top: 0; left: 0; 
  color: black; 
  font-weight: bold; 
  line-height: 20px; 
  user-select: none; 
  pointer-events: none;
}

#game-container,
#rules,
#mini-containers,
#enemy-health-container,
#controls,
#restart-btn {
  display: none;
}

#mute-btn, #start-game-btn{
  background-color: #333;       
  color: white;                 
  border: none;                
  padding: 12px 24px;          
  font-size: 16px;             
  font-weight: bold;
  border-radius: 8px;           
  box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;   
}

/* Hover effect */
#mute-btn:hover, #start-game-btn:hover {
  background-color: #555;       
 
}

/* Active/click effect */
#mute-btn:active, #start-game-btn:active {
  background-color: #222;

}

/* Focus outline for accessibility */
#mute-btn:focus, #start-game-btn:focus {
  outline: 2px solid #66ccff;
  outline-offset: 2px;
}

/* Position the Start Game button nicely if over canvas (optional example) */
#start-game-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
