body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background: #222;
  border-radius: 16px;
  padding: 20px;
  max-width: 550px;
  margin: 40px auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

h1 {
  color: #4cafef;
  text-shadow: 0 0 10px #4cafef;
}

select, button {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 10px;
  margin: 10px;
  border: none;
  outline: none;
}

select {
  background: #333;
  color: white;
  cursor: pointer;
}

button {
  background: linear-gradient(45deg, #4cafef, #3a8bd4);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 12px;
  margin: 5px;
  border: none;
  outline: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.2s ease-in-out;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Bloc résultat fixé */
#resultWrapper {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  background: #222;
  border-radius: 12px;
  padding: 10px;
  position: sticky;  /* reste visible même en scroll */
  top: 0;
  z-index: 5;
}

#result {
  font-size: 28px;
  font-weight: bold;
  margin: 5px 0;
  text-shadow: 0 0 10px #000;
  display: inline-block;
  padding: 10px 15px;
  background: #333;
  border-radius: 12px;
}

#counter {
  font-size: 20px;
  color: #ccc;
  margin: 5px 0;
}

/* Historique */
#rollHistory {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
}

#rollHistory img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Animation effet */
#animation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 70px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

@keyframes rainbow {
  0% { color: red; }
  14% { color: orange; }
  28% { color: yellow; }
  42% { color: green; }
  56% { color: blue; }
  70% { color: indigo; }
  84% { color: violet; }
  100% { color: red; }
}
/* Bannières fixes gauche et droite */
.banner {
  position: fixed;
  top: 100px;      /* hauteur de départ des bannières */
  width: 120px;    /* largeur de la bannière */
  z-index: 1000;
}

.banner.left {
  left: 10px;      /* distance depuis le bord gauche */
}

.banner.right {
  right: 10px;     /* distance depuis le bord droit */
}

.banner ins {
  display: block;
  width: 100%;
  height: auto;
}
