body{
    margin: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    font-family: "Electrolize", sans-serif;
}
.electrolize-regular {
    font-family: "Electrolize", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#action-bar {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(7, 6, 70, 0.7);
    padding: 7px;
    border-radius: 7px;
    display: none;
}

.action-slot {
    display: flex;
    flex-direction: row; /* Affichage en ligne */
    align-items: center;
    justify-content:space-evenly; /* Espacement entre icône et compteur */
    padding: 5px;
    position: relative;
    width: 100px; /* Ajuste la largeur du bouton */
    height: 50px; /* Ajuste la hauteur */
    border: 2px solid #1717e1;
    background-color: rgba(73, 73, 229, 0.5);
    border-radius: 5px;
}

.action-slot img {
    width: 40px;
    height: 40px;
}

.enemy-counter {
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-left: 8px; /* Espacement entre l'icône et le texte */
}

.action-slot.selected {
    border-color: rgb(103, 218, 227);
    background-color: rgba(103, 218, 227, 0.5);
}
.action-slot.hover {
    border-color: lightblue;
    cursor: url("image/pointer_custom.png"), pointer;
}
.key-label {
    position: absolute;
    top: 1px;
    left: 1px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

#spell-bar.ui-bar {
  position: absolute;
  bottom: 40px; /* Ajusté selon ta barre d'action */
  left: 40px;
  display: flex;
  gap: 8px;
  z-index: 1000;
  padding: 7px;
  border-radius: 7px;
}

.spell-slot {
  width: 64px;
  height: 64px;
  background: rgba(73, 73, 229, 0.5);
  border: 2px solid #1717e1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.spell-slot:hover {
  border-color: rgb(103, 218, 227);
  box-shadow: 0 0 12px rgba(103, 218, 227, 0.4);
  cursor: url("image/pointer_custom.png"), pointer;
}

.spell-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spell-slot .key-label {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Electrolize', sans-serif;
  text-shadow: 1px 1px 2px #000;
  pointer-events: none;
}

.spell-slot .cooldown-text {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Electrolize', sans-serif;
  color: #ffdd33;
  text-shadow: 1px 1px 2px #000;
  pointer-events: none;
}
.spell-slot img.spell-icon.cooldown {
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.6;
}

.spell-slot.cooldown {
    filter: grayscale(100%) brightness(0.5);
    transition: filter 0.2s ease;
}
.spell-icon.cooldown {
    filter: grayscale(100%) brightness(0.5);
    transition: filter 0.2s ease;
}
.spell-tooltip {
    position: absolute;
    background-color: rgba(36, 110, 243, 0.85);
    color: white;
    font-family: 'Electrolize';
    font-size: 15px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 9999;
    display: none;

    white-space: normal;        /* 👈 autorise le retour à la ligne */
    max-width: 200px;           /* 👈 limite la largeur pour forcer le retour à la ligne */
    word-wrap: break-word;      /* 👈 optionnel : coupe les mots longs si besoin */
}
