/* Battle list like the Tibia 8.0 client: one small row per creature on the screen (outfit, name, health bar); the
   attacked creature has a red square around its outfit. Background and borders like the other windows. */
.battle-entry {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  height: 24px;
  padding: 1px 3px;
  cursor: pointer;
}

.battle-entry:hover .battle-icon {
  border-color: #c8c8c8;
}

.battle-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid transparent;
  image-rendering: pixelated;
}

.battle-entry.targeted .battle-icon {
  border-color: #ff2020;
}

.battle-info {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.battle-name {
  font-size: 11px;
  font-weight: bold;
  line-height: 12px;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 #000;
}

.battle-health {
  height: 4px;
  margin-top: 2px;
  border: 1px solid #000;
  background: #202020;
}

.battle-health-fill {
  height: 100%;
  width: 100%;
  background-color: #00bc00;
}
