body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  font-family: 'Roboto', sans-serif;
  color: #fff;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background: #4CAF50; /* Green background to match the game theme */
  display: flex;
  flex-direction: row;
}

#gameCanvas {
  display: block;
  width: calc(100% - 250px);
  height: 100vh;
  margin-left: 0; /* Remove margin since we're using flexbox */
  flex: 1; /* Allow canvas to take remaining space */
  object-fit: fill; /* Fill available space */
  position: relative; /* Ensure proper positioning */
  z-index: 1; /* Lower z-index to prevent overlapping */
}

#stats {
  position: absolute;
  top: 20px;
  left: 270px; /* Sidebar width (250px) + 20px margin */
  background: rgba(255, 255, 255, 0.7);
  padding: 15px 20px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  gap: 15px;
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#stats span {
  color: #000000;
  font-weight: 700;
}

#sidebar {
  position: relative; /* Changed from fixed to relative for flexbox layout */
  z-index: 10;
  width: 250px;
  min-width: 250px; /* Ensure sidebar doesn't shrink */
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 248, 231, 0.85); /* Cream background to match theme */
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto; /* Allow scrolling if needed */
  border-left: 1px solid rgba(210, 180, 140, 0.5);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

#fixed-controls {
  background: transparent;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#tower-container {
  background: transparent;
  padding: 10px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#tower-container h3 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 18px;
  text-align: center;
  flex-shrink: 0;
}

.tower-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 5px;
  margin-bottom: 10px;
  overflow: hidden;
}

/* Game Info Styles */
#game-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  padding: 10px;
  background: rgba(210, 180, 140, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(210, 180, 140, 0.3);
  pointer-events: none; /* Make the game info section non-clickable */
}

.info-section {
  background: rgba(255, 248, 231, 0.8);
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(160, 120, 80, 0.2);
  border: 1px solid rgba(210, 180, 140, 0.4);
}

.info-section h4 {
  margin: 0 0 8px 0;
  color: #000000;
  font-size: 16px;
  border-bottom: 1px solid rgba(210, 180, 140, 0.5);
  padding-bottom: 5px;
}

.info-section p {
  margin: 5px 0;
  font-size: 14px;
  color: #000000;
  display: flex;
  justify-content: space-between;
}

.info-section p span {
  font-weight: 600;
  color: #000000;
}

.tower-btn, #fixed-controls button {
  padding: 10px 8px;
  background: linear-gradient(45deg, #D2B48C, #CD853F); /* Tan to Peru - cream theme */
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(160, 120, 80, 0.3);
  text-align: center;
  width: 100%;
}

.tower-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 12px;
  padding: 5px;
  position: relative;
}

.tower-cost {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 10px;
  background: rgba(210, 180, 140, 0.5);
  padding: 2px 5px;
  border-radius: 10px;
  color: #000000;
  font-weight: bold;
}

.tower-btn:hover, #fixed-controls button:hover {
  background: linear-gradient(45deg, #DEB887, #D2691E); /* BurlyWood to Chocolate */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(160, 120, 80, 0.4);
}

.tower-btn:active, #fixed-controls button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 5px rgba(160, 120, 80, 0.2);
}

.tower-btn.selected {
  background: linear-gradient(45deg, #A0522D, #8B4513); /* Sienna to SaddleBrown */
  box-shadow: 0 0 10px rgba(160, 120, 80, 0.7);
}

/* Modal base styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(255, 248, 231, 0.95); /* Cream background */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(160, 120, 80, 0.3);
  border: 1px solid rgba(210, 180, 140, 0.3);
  overflow-y: auto;
  margin: auto;
  position: relative;
  max-height: 85vh;
  max-width: 85vw;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

/* Tower Upgrade Menu Styles - Cream theme with stars */
.upgrade-content {
  width: 450px; /* Reduced from 600px */
  background: rgba(255, 248, 231, 0.95); /* Cream background */
  box-shadow: 0 8px 20px rgba(160, 120, 80, 0.3), 0 0 15px rgba(210, 180, 140, 0.3);
  border: 1px solid rgba(210, 180, 140, 0.3);
}

/* Tower Selector and Reroll Styles */
.tower-selector-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tower-selector-buttons select {
  flex: 1;
}

.reroll-section {
  background: rgba(210, 180, 140, 0.2);
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid rgba(210, 180, 140, 0.3);
}

.reroll-section h4 {
  margin: 0 0 10px 0;
  color: #000000;
  font-size: 16px;
}

.reroll-container {
  display: flex;
  gap: 10px;
}

.reroll-container select {
  flex: 1;
}

.secondary-btn {
  padding: 8px 15px;
  background: linear-gradient(45deg, #A0522D, #8B4513);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(160, 120, 80, 0.3);
}

.upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px; /* Reduced from 20px */
  border-bottom: 2px solid rgba(210, 180, 140, 0.5);
  padding: 12px 15px; /* Reduced from 15px 20px */
  background: linear-gradient(90deg, rgba(245, 222, 179, 0.9), rgba(222, 184, 135, 0.9)); /* Wheat to BurlyWood */
}

.upgrade-header h3 {
  margin: 0;
  font-size: 20px; /* Reduced from 24px */
  color: #000000;
  text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
  font-weight: 600;
}

.upgrade-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  padding: 0 20px;
  max-width: 100%;
}

.tower-stats {
  flex: 1;
  background: rgba(210, 180, 140, 0.3);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(210, 180, 140, 0.4);
  box-shadow: 0 5px 15px rgba(160, 120, 80, 0.2);
}

.tower-stats p {
  margin: 10px 0;
  font-size: 15px;
  color: #000000;
  display: flex;
  justify-content: space-between;
}

.tower-stats p span {
  color: #000000;
  font-weight: 600;
}

.targeting-info {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed rgba(210, 180, 140, 0.5);
}

.targeting-info p {
  margin: 5px 0;
  font-size: 13px;
}

.target-yes {
  color: #4CAF50 !important; /* Green */
  font-weight: bold;
}

.target-no {
  color: #F44336 !important; /* Red */
  font-weight: bold;
}

.upgrade-paths {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 280px;
}

.upgrade-path {
  background: linear-gradient(135deg, rgba(245, 222, 179, 0.7), rgba(222, 184, 135, 0.7)); /* Wheat to BurlyWood */
  padding: 15px; /* Reduced from 20px */
  border-radius: 8px;
  border: 1px solid rgba(210, 180, 140, 0.4);
  box-shadow: 0 3px 10px rgba(160, 120, 80, 0.1);
  transition: all 0.3s ease;
}

.upgrade-path:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(160, 120, 80, 0.4), 0 0 10px rgba(210, 180, 140, 0.5);
}

.upgrade-path h4 {
  margin: 0 0 6px 0;
  color: #000000;
  font-size: 16px; /* Reduced from 18px */
  font-weight: 600;
  text-shadow: 0 0 3px rgba(210, 180, 140, 0.5);
}

.upgrade-path p {
  margin: 0 0 12px 0;
  font-size: 13px; /* Reduced from 14px */
  color: #000000;
  line-height: 1.3;
}

.upgrade-levels {
  display: flex;
  gap: 10px;
}

.upgrade-btn {
  flex: 1;
  padding: 8px 6px; /* Reduced from 10px 8px */
  font-size: 12px; /* Reduced from 13px */
  background: linear-gradient(45deg, #D2B48C, #CD853F); /* Tan to Peru */
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(160, 120, 80, 0.3);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.upgrade-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.upgrade-btn:hover:not([disabled])::before {
  left: 100%;
}

.upgrade-btn:hover:not([disabled]) {
  background: linear-gradient(45deg, #DEB887, #D2691E); /* BurlyWood to Chocolate */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(160, 120, 80, 0.4), 0 0 10px rgba(210, 180, 140, 0.5);
}

.upgrade-btn:active:not([disabled]) {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(160, 120, 80, 0.3);
}

.upgrade-btn[disabled] {
  background: linear-gradient(45deg, #A9A9A9, #808080); /* DarkGray to Gray */
  color: #D3D3D3; /* LightGray */
  cursor: not-allowed;
  box-shadow: none;
}

.upgrade-btn[disabled]::before {
  display: none;
}

.upgrade-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
  padding: 15px 20px;
  background: rgba(210, 180, 140, 0.3);
  border-top: 1px solid rgba(210, 180, 140, 0.5);
}

#sellTower {
  background: linear-gradient(45deg, #D32F2F, #B71C1C);
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(160, 120, 80, 0.3);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#sellTower:hover {
  background: linear-gradient(45deg, #F44336, #C62828);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(160, 120, 80, 0.4), 0 0 10px rgba(244, 67, 54, 0.3);
}

#sellTower:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(160, 120, 80, 0.3);
}

/* Tutorial Overlay Styles */
#tutorial-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#tutorial-overlay.active {
  display: flex;
}

.tutorial-content {
  background: rgba(255, 248, 231, 0.95); /* Cream background */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(160, 120, 80, 0.3), 0 0 20px rgba(210, 180, 140, 0.4);
  border: 2px solid rgba(210, 180, 140, 0.5);
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 25px;
  color: #000000;
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(210, 180, 140, 0.5);
  padding-bottom: 15px;
}

.tutorial-header h2 {
  margin: 0;
  font-size: 28px;
  color: #000000;
  text-shadow: 0 0 10px rgba(210, 180, 140, 0.3);
}

.tutorial-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.tutorial-close:hover {
  color: #c0392b;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.tutorial-body {
  margin-bottom: 20px;
}

.tutorial-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tutorial-step.active {
  display: block;
}

.tutorial-step h3 {
  margin: 0 0 15px 0;
  color: #000000;
  font-size: 22px;
}

.tutorial-step p {
  margin: 0 0 15px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
}

.tutorial-image {
  width: 100%;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(200, 220, 255, 0.3);
}

.tutorial-highlight {
  background: rgba(255, 235, 59, 0.3);
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
  color: #d35400;
}

.tutorial-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  border-top: 1px solid rgba(210, 180, 140, 0.5);
  padding-top: 20px;
}

.tutorial-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tutorial-prev {
  background: linear-gradient(45deg, #D2B48C, #CD853F); /* Tan to Peru */
  color: white;
}

.tutorial-prev:hover {
  background: linear-gradient(45deg, #DEB887, #D2691E); /* BurlyWood to Chocolate */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(160, 120, 80, 0.3);
}

.tutorial-next {
  background: linear-gradient(45deg, #D2B48C, #CD853F); /* Tan to Peru */
  color: white;
}

.tutorial-next:hover {
  background: linear-gradient(45deg, #DEB887, #D2691E); /* BurlyWood to Chocolate */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(160, 120, 80, 0.3);
}

.tutorial-skip {
  background: linear-gradient(45deg, #A0522D, #8B4513); /* Sienna to SaddleBrown */
  color: white;
}

.tutorial-skip:hover {
  background: linear-gradient(45deg, #8B4513, #654321); /* SaddleBrown to DarkBrown */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(160, 120, 80, 0.3);
}

.tutorial-progress {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(210, 180, 140, 0.5);
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: #CD853F; /* Peru */
  transform: scale(1.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media queries for responsive upgrade menu */
@media (max-width: 768px) {
  .upgrade-content {
    width: 95vw;
    max-height: 80vh;
  }

  .upgrade-info {
    flex-direction: column;
  }

  .tower-stats {
    margin-bottom: 15px;
  }

  .upgrade-levels {
    flex-wrap: wrap;
  }

  .upgrade-btn {
    min-width: 80px;
  }

  .tutorial-content {
    width: 90vw;
    padding: 15px;
  }

  .tutorial-header h2 {
    font-size: 22px;
  }

  .tutorial-step h3 {
    font-size: 18px;
  }

  .tutorial-step p {
    font-size: 14px;
  }

  .tutorial-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* Map Selector Styles - Smaller and lighter */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Reduced from 200px */
  gap: 12px; /* Reduced from 15px */
  margin-top: 12px;
}

.map-option {
  background: rgba(245, 245, 250, 0.9); /* Much lighter background */
  border: 1px solid rgba(200, 220, 240, 0.3);
  border-radius: 6px;
  padding: 12px; /* Reduced from 15px */
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-option:hover {
  background: rgba(220, 240, 255, 0.9);
  transform: translateY(-2px); /* Reduced from -3px */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.map-option.selected {
  background: rgba(200, 230, 255, 0.9);
  border-color: #3498db;
}

.map-option h4 {
  margin: 0 0 4px 0;
  color: #2c3e50; /* Dark blue-gray instead of white */
  font-size: 14px; /* Reduced from 16px */
}

.map-option p {
  margin: 4px 0;
  font-size: 12px; /* Reduced from 13px */
  color: #34495e; /* Dark blue-gray instead of light gray */
}

.map-option .difficulty {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-top: 8px;
}

.difficulty.easy {
  background: #4CAF50;
}

.difficulty.medium {
  background: #FFC107;
  color: #333;
}

.difficulty.hard {
  background: #F44336;
}

.difficulty.very-hard {
  background: #9C27B0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
  color: #fff;
}

.control-group {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  width: 100%;
}

.control-group button {
  flex: 1;
}

#fixed-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}

#fixed-controls input[type="checkbox"] {
  accent-color: #ff6d00;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Infinite mode toggle */
#infiniteMode {
  accent-color: #9C27B0;
}

/* Enemy health bar colors for different enemy types */
.health-bar-normal { background: #4CAF50; }
.health-bar-fast { background: #FF5722; }
.health-bar-tank { background: #607D8B; }
.health-bar-flying { background: #9C27B0; }
.health-bar-healing { background: #8BC34A; }
.health-bar-spawner { background: #FF9800; }
.health-bar-armored { background: #795548; }
.health-bar-invisible { background: rgba(255, 255, 255, 0.7); }
.health-bar-explosive { background: #F44336; }
.health-bar-boss { background: linear-gradient(90deg, #F44336, #9C27B0, #3F51B5); }

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Lighter overlay */
  z-index: 20;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(245, 245, 250, 0.95); /* Much lighter background */
  padding: 25px; /* Reduced from 30px */
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(200, 220, 240, 0.3);
  backdrop-filter: blur(10px);
  max-width: 350px; /* Reduced from 400px */
  margin: auto;
  position: relative;
  max-height: 85vh; /* Reduced from 90vh */
  overflow-y: auto;
}

.modal-content h2 {
  margin-top: 0;
  color: #000000;
  font-size: 24px; /* Reduced from 28px */
}

.modal-content p {
  font-size: 16px; /* Reduced from 18px */
  margin-bottom: 15px; /* Reduced from 20px */
  color: #000000;
}

.game-over-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

#restart, #return-to-menu {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #D2B48C, #CD853F); /* Tan to Peru */
  box-shadow: 0 4px 15px rgba(160, 120, 80, 0.3);
}

#restart:hover, #return-to-menu:hover {
  background: linear-gradient(45deg, #DEB887, #D2691E); /* BurlyWood to Chocolate */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 120, 80, 0.4);
}

/* Game over modal styles */
.modal-content h2, .modal-content p {
  color: #000000;
}

/* Notification box styles */
#notification-box {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 248, 231, 0.95);
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0 5px 15px rgba(160, 120, 80, 0.3);
  color: #000000;
  font-weight: 600;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(210, 180, 140, 0.5);
  text-align: center;
  min-width: 200px;
}

#notification-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Responsive Design */
@media (max-width: 768px) {
  #stats {
    top: 10px;
    left: 10px;
    padding: 10px 15px;
    font-size: 14px;
    gap: 10px;
  }

  #controls {
    top: 60px;
    left: 10px;
    width: 180px;
    padding: 15px;
  }

  #controls h3 {
    font-size: 16px;
  }

  .tower-btn, #controls button {
    padding: 8px;
    font-size: 12px;
  }

  #controls label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #stats {
    top: 5px;
    left: 5px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
  }

  #controls {
    top: 50px;
    left: 5px;
    width: 160px;
    padding: 10px;
  }

  #controls h3 {
    font-size: 14px;
  }

  .tower-btn, #controls button {
    padding: 6px;
    font-size: 10px;
  }

  #controls label {
    font-size: 10px;
  }
}

/* Shadow enemy styles */
.enemy-shadow {
  background-color: #212121;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

/* Health bar for shadow enemies */
.health-bar-shadow {
  background: linear-gradient(90deg, #212121, #9C27B0);
}
