/* Mobile fixes minimal - vuoto per evitare 404 */

/* Loading indicator for animations */
.animation-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 10000;
  display: none;
  text-align: center;
}

.animation-loading .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Countdown overlay for animations */
.animation-countdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 240px; /* Raddoppiato da 120px */
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6); /* Leggermente più trasparente */
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  pointer-events: none;
  display: none;
  animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }

/* Floating STOP button */
.animation-stop-btn {
  position: fixed;
  top: 100px;  /* Più in basso per evitare conflitti con header */
  right: 20px;
  background: #ff4444;
  color: white;
  border: 2px solid white; /* Bordo bianco per maggiore visibilità */
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 999999; /* Z-index molto alto per stare sopra tutto */
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.animation-stop-btn:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.animation-stop-btn:active {
  transform: scale(0.95);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .animation-countdown {
    font-size: 160px; /* Raddoppiato da 80px */
  }
  
  .animation-stop-btn {
    top: 120px; /* Più in basso su mobile */
    right: 10px;
    padding: 12px 20px;
    font-size: 14px;
    z-index: 999999; /* Assicura visibilità su mobile */
  }
}