body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 20px;
  color: white;
}

h1,
h2,
h3 {
  margin-bottom: 10px;
}

#arena,
#controls,
#log {
  margin-top: 20px;
}

.battle-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.pokemon-card {
  width: 180px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.arena-board {
  flex: 1;
  text-align: center;
}

.arena-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.arena-cell {
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.warning {
  background-color: rgba(255, 0, 0, 0.4);
}

.warning-icon {
  position: absolute;
  top: 5px;
  font-size: 18px;
}

.pokemon-sprite {
  width: 70px;
  height: 70px;
  image-rendering: pixelated;
}

.arena-text {
  font-weight: bold;
}

#controls button {
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

#controls button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#log {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.end-message {
  text-align: center;
  margin-top: 20px;
}

.hp-bar {
  width: 100%;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.hp-fill {
  height: 100%;
  background-color: #22c55e;
  transition: width 0.3s ease;
}