/* 
 * Fix for duel HUD positioning:
 * - Timer should be in the top center
 * - Opponent should be in the top right
 * - Player should be in the top left
 */

/* Ensure the duel HUD container has proper positioning */
#duel-hud-container {
  position: relative;
  width: 100%;
  height: 128px; /* Adjust based on your design */
  margin-bottom: 1rem;
}

/* Position the timer in the top center */
#duel-timer-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  min-width: 200px;
}

/* Position the opponent in the top right */
#opponent-hud-container {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  text-align: right;
  max-width: 40%;
}

/* Position the player in the top left */
#player-hud-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  text-align: left;
  max-width: 40%;
}

/* Mobile timer positioning */
#duel-timer-mobile-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  #duel-hud-container {
    height: 100px;
  }
  
  #player-hud-container,
  #opponent-hud-container {
    max-width: 35%;
  }
  
  #duel-timer-container {
    min-width: 150px;
  }
  
  #duel-timer {
    font-size: 2.5rem !important;
  }
}