
/* Güncellenmiş stil dosyası */

/* Genel stil ayarları */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #355E3B;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

/* Oyun konteyneri */
#game-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

/* Oyun alanı */
#game-area {
  width: 1000px;
  height: 500px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
  background: #705335;
  border: 2px solid #4E3629;
  position: relative;
}



.path-end {
  background: #FF4500;
  border: 2px solid #FFD700;
}

/* Düşmanlar */
.enemy {
     top: 50%;
  left: 50%;
  transform: translate(0, 0);
   background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
  position: absolute; /* Akıcı hareket için gerekli */
  z-index: 10;
}




.enemy-red {
  background-image: url("./img/red_enemy.png");
}

.enemy-orange {
  background-image: url("./img/orange_enemy.png");
}

.enemy-yellow {
  background-image: url("./img/yellow_enemy.png");
}

.enemy-green {
  background-image: url("./img/green_enemy.png");
}

.enemy-purple {
  background-image: url("./img/purple_enemy.png");
}

/* Kuleler */
.tower {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.tower-blue {
  background-image: url("./img/blue_tower.png");
}

.tower-purple {
  background-image: url("./img/purple_tower.png");
}

.tower-black {
  background-image: url("./img/black_tower.png");
}

/* Arayüz paneli */
#ui-panel {
  background: #2A4F2D;
  border: 1px solid #355E3B;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  padding: 10px;
  width: 200px;
}

#ui-panel h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

/* Butonlar */
button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #FFD700;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #DAA520;
}

button.active {
  background: #355E3B;
  color: white;
}

/* Hücreler */
.cell {
  border: 1px solid #705335;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.cell.path {
  background-image: url("img/grass.png");
  background-size: contain;
  border: none;
  z-index: 0;
}

.cell.path-end {
  border: 2px solid #FFD700;
}

/* Sağlık Barı */
.enemy-health-bar {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(0, 0);
  width: 80%;
  height: 5px;
  background: #ff4d4d;
  border: 1px solid #990000;
  z-index: 6;
}

.enemy-health {
  height: 100%;
  background: #00e600;
 
}

/* Mermiler */
.missile-blue {
  background-color: blue;
  box-shadow: 0 0 5px blue;
}

.missile-purple {
  background-color: purple;
  box-shadow: 0 0 5px purple;
}

.missile-black {
  background-color: black;
  box-shadow: 0 0 5px black;
}



.missile {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}



@keyframes explosion {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

