body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: url('ring.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  margin: 0;
  padding: 0;
}

.imagen-derecha {
  position: absolute;
  top: 40px;     
 left: 60px;   
  width: 90px;  
}

h1 {
  margin: 20px 0;
  font-size: 40px;
  text-shadow: 2px 2px 4px #000;
}

.arena {
  position: relative;
  width: 1100px;
  height: 500px;
  margin: 0 auto;
  border: 4px solid #333;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.luchador {
  position: absolute;
  bottom: 0;
  width: 220px;
  height: 340px;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 12px;
  transition: transform 0.2s ease, background-image 0.2s ease;
}

#player {
  left: 60px;
  background-image: url('luchador-normal.png');
}

#enemy {
  left: 780px;
  background-image: url('luchador-enemigo.png');
}

.hidden {
  display: none;
}

#belt {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  z-index: 10;
}

#result {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 6px #000;
  z-index: 15;
  white-space: nowrap;
}

.info {
  margin: 20px auto;
  width: 1100px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 22px;
  gap: 10px;
}

.health-bar-container {
  width: 250px;
  height: 28px;
  background: #444;
  border-radius: 10px;
  overflow: hidden;
}

.health-bar {
  height: 100%;
  width: 100%;
  background: #4caf50;
  transition: width 0.3s ease;
}

.enemy-bar {
  background: #e53935;
}

.health-bar-text {
  min-width: 150px;
  text-align: left;
}

#timer {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}

#restart-btn {
  margin: 20px auto;
  padding: 12px 30px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #2ecc71;
  color: white;
}
