/* Canvas DiceBox */
.dice-box-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: calc(100vh - 150px) !important; /* limite les dés avant la barre */
  pointer-events: none;
  z-index: 10;
}

/* Barre de contrôle */
#controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(50, 50, 50, 0.85);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 20;
}

/* Nombre de dés */
#dice-value {
  color: #eee;
  font-weight: bold;
  font-size: 1.2rem;
  min-width: 20px;
  text-align: center;
}

/* Boutons + / - */
.control-btn {
  background: none;
  border: none;
  color: #eee;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 10px;
  transition: transform 0.2s ease;
}
.control-btn:hover {
  transform: scale(1.2);
}

/* Bouton lancer */
.roll-btn {
  background-color: #ff5e57;
  color: white;
  font-weight: 700;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.roll-btn:hover {
  background-color: #ff3b30;
  box-shadow: 0 0 10px #ff3b30;
}
.roll-btn:active {
  transform: scale(0.95);
}

/* Résultat du lancer */
#roll-result {
  display: none; /* caché au départ */
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 20;
  text-align: center;
  white-space: nowrap;
}
#logo {
  text-align: left; /* logo à gauche */
  margin: 20px;
}

#logo img {
  max-width: 200px; /* taille normale */
  height: auto;
}

/* Sur petit écran (téléphone) */
@media (max-width: 600px) {
  #logo img {
    max-width: 100px; /* divise la taille par 2 */
  }
}


body {
  background: url('assets/img/wallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  font-family: sans-serif;
}
