* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial Black', Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.header {
  text-align: center;
  position: relative;
  padding: 60px 20px;
  margin-bottom: 40px;
  background: radial-gradient(circle at center, #8b0000 0%, #4b0082 40%, #000000 80%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
  overflow: hidden;
}


.lightning-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  animation: lightning 3s ease-in-out infinite;
}

@keyframes lightning {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.option-card.vincente {
  border: 4px solid red;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.main-title {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.rock-text {
  display: block;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  text-shadow: 
    3px 3px 0px #000000,
    6px 6px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: 3px;
  transform: perspective(500px) rotateX(15deg);
}

.anniversary-text {
  display: block;
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  color: #ff6b35;
  text-shadow: 
    2px 2px 0px #000000,
    4px 4px 8px rgba(255, 107, 53, 0.5);
  letter-spacing: 2px;
  margin: 10px 0;
}

.year-text {
  display: block;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  color: #d4af37;
  text-shadow: 
    3px 3px 0px #b8860b,
    6px 6px 15px rgba(212, 175, 55, 0.6);
  letter-spacing: 5px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 3px 3px 0px #b8860b, 6px 6px 15px rgba(212, 175, 55, 0.6); }
  to { text-shadow: 3px 3px 0px #b8860b, 6px 6px 25px rgba(212, 175, 55, 0.9); }
}

.subtitle {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  color: #cccccc;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Poll Section */
.poll-section {
  margin-bottom: 40px;
}

.poll-container {
  background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid #444;
}

.poll-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: #d4af37;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.poll-description {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #cccccc;
  line-height: 1.6;
}

/* Options */
.options-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.option-card {
  background: linear-gradient(145deg, #333333, #222222);
  border-radius: 15px;
  padding: 30px;
  border: 3px solid #666;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  transition: left 0.5s ease;
}

.option-card:hover {
  transform: translateY(-5px);
  border-color: #d4af37;
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.option-card:hover::before {
  left: 100%;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.option-card h3 {
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vote-count {
  background: linear-gradient(145deg, #d4af37, #b8860b);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
  animation: pulse-count 2s ease-in-out infinite;
}

@keyframes pulse-count {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.option-description {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

.vote-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(145deg, #d4af37, #b8860b);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

.vote-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.6);
}

.vote-btn:hover::before {
  width: 300px;
  height: 300px;
}

.vote-btn:active {
  transform: translateY(0);
}

.vote-btn:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Animazioni dinamiche per i voti */
.vote-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  animation: vote-burst 0.8s ease-out;
}

@keyframes vote-burst {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.vote-particles {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #d4af37;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float 2s ease-out forwards;
}

@keyframes particle-float {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0);
  }
}

/* Total Votes */
.total-votes {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(145deg, #444, #333);
  border-radius: 10px;
  border: 2px solid #d4af37;
  animation: total-glow 3s ease-in-out infinite alternate;
}

@keyframes total-glow {
  from { box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
  to { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
}

/* Disclaimer */
.disclaimer {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
}

.disclaimer p {
  margin-bottom: 5px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #444;
}

/* Voted Overlay */

.voted-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* sfondo semi-trasparente */
  display: none;
  justify-content: center; /* centra orizzontalmente */
  align-items: center;     /* centra verticalmente */
  z-index: 9999;
}

.voted-overlay.show {
  display: flex;
}

.voted-message {
  background: linear-gradient(145deg, #333, #222);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  border: 3px solid #d4af37;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  max-width: 400px;
  width: 90%;
  margin: 0 auto;
}

.voted-message h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.voted-message p {
  margin-bottom: 30px;
  color: #cccccc;
  font-size: 1.1rem;
}

#closeOverlay {
  padding: 15px 30px;
  background: linear-gradient(145deg, #d4af37, #b8860b);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#closeOverlay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .header {
    padding: 40px 15px;
  }
  
  .poll-container {
    padding: 20px;
  }
  
  .options-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .option-card {
    padding: 20px;
  }
  
  .option-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .poll-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .rock-text {
    font-size: 2rem;
  }
  
  .year-text {
    font-size: 2.5rem;
  }
  
  .poll-title {
    font-size: 1.5rem;
  }
  
  .voted-message {
    padding: 30px 20px;
  }
}