/* UI Overlay container */
.ui-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* UI elements that need to interact override this */
    z-index: 1000;
  }
  
/* Scoreboard (Top Left) */
.scoreboard {
    position: fixed;
    top: 60px;
    left: 110px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 20px;
    color: white;
    pointer-events: auto;
    border-radius: 4px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}
.scoreboard .tower-score {
    font-size: 30px;
    margin-bottom: 12px;
    padding-left: 10px;
}
.scoreboard .champion-status {
    display: flex;
    align-items: center;
}
.scoreboard .champion-status img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}
.scoreboard .champion-status .hp-bar {
    width: 180px;
    height: 15px;
    background: red;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.scoreboard .champion-status .hp-bar .hp-fill {
    width: 100%;
    height: 100%;
    background: green;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.1s linear;
    border-radius: 4px;
}


  
  
.top-notifications {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.top-notifications .notification {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 35px; /* was 15px, now +20px */
    margin: 5px 0;
    font-size: 24px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    opacity: 1;
    transition: opacity 0.5s;
    border-radius: 4px;
    width: auto;
    max-width: 90%;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}





.bottom-notifications {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    background: grey;
    color: white;
    padding: 15px 30px;
    font-size: 24px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    border-radius: 4px;
    width: auto;
    max-width: 90%;
    text-align: center;
}

  
  
  /* Add to css/ui.css */
  .movement-pad {
    position: fixed;
    bottom: 150px; /* 10px + 100px up */
    right: 130px;  /* 10px + 100px left */
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    touch-action: none;
    pointer-events: auto;
}

  
.movement-pad .joystick-stick {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px; /* half of 100 */
    border-radius: 50%;
    background: darkgrey;
    transition: transform 0.1s linear;
    pointer-events: none;
}
  
  /* Bottom Left Buttons (Ability & Trash Talk) */
  .bottom-left-buttons {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
  }
  .bottom-left-buttons .button {
    width: 60px;
    height: 60px;
    background: darkgrey;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
  }
  
  /* Bottom Center Trash Talk Notifications */
  .bottom-notifications {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: grey;
    color: white;
    padding: 10px 20px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
  }
  
  #gameOverUI button {
    font-size: 24px;
    padding: 12px 36px;
    margin: 10px;
    cursor: pointer;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: #ffcc66;
    color: #000;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    box-shadow: 2px 2px 0 #cc9933;
}
