/* popup.css */

/* Popup container */
#bdPopup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none; /* initially inactive */
  transition: opacity 0.4s;
}

#bdPopup.active {
  opacity: 1;
  pointer-events: all;
}

/* Popup box - smaller version */
#popupBox {
  position: relative;
  background: rgba(0,0,0,0.55);
  border: 2px solid #00ffcc;
  border-radius: 2rem;
  padding: 1.5rem;           /* smaller padding */
  width: 85%;                 /* slightly smaller width */
  max-width: 22rem;           /* smaller max width */
  text-align: center;
  box-shadow: 0 0 15px #00ffcc, 0 0 30px #00ffcc; /* smaller shadow */
  animation: slideScaleShake 0.7s ease forwards;
}

/* Neon glow behind popup */
#popupBox::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(0,255,204,0.25) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: neonBackgroundGlow 2s infinite alternate;
}

/* Hulk icon - smaller */
.hulk-icon {
  width: 5rem;   
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  animation: pulseGlow 2s infinite alternate;
  margin: 0 auto 1rem;
}

/* Heading */
#popupBox h2 {
  font-size: 1.75rem;  /* smaller than before */
  margin-bottom: 0.5rem;
  color: #34d399;
}

/* Description */
#popupBox p {
  font-size: 1rem;   /* smaller than before */
  margin-bottom: 1.2rem;
  line-height: 1.5;
  color: #e5e7eb;
}

/* Button */
#closePopupBtn {
  background: #22c55e;
  color: black;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
  transition: all 0.3s ease;
}

#closePopupBtn:hover {
  animation: buttonGlow 1.5s infinite alternate;
}

/* Animations */
@keyframes slideScaleShake {
  0% { opacity:0; transform: translateY(50px) scale(0.9); }
  60% { opacity:1; transform: translateY(0) scale(1.02) rotate(-2deg); }
  80% { transform: translateY(0) scale(1) rotate(2deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes pulseGlow {
  0%,100% { transform: scale(1); box-shadow:0 0 20px #00ffcc,0 0 40px #00ffcc; }
  50% { transform: scale(1.05); box-shadow:0 0 30px #00ff88,0 0 60px #00ff88; }
}

@keyframes buttonGlow {
  0%,100% { box-shadow:0 0 10px #00ff88,0 0 20px #00ff88; }
  50% { box-shadow:0 0 15px #00ffcc,0 0 30px #00ffcc; }
}

@keyframes fadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

@keyframes neonBackgroundGlow {
  0% { box-shadow: 0 0 30px #00ffcc, 0 0 60px #00ffcc; }
  50% { box-shadow: 0 0 50px #00ff88, 0 0 100px #00ff88; }
  100% { box-shadow: 0 0 30px #00ffcc, 0 0 60px #00ffcc; }
}

/* Fade-out class */
.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  #popupBox h2 { font-size: 2rem; }
  #popupBox p { font-size: 1.1rem; }
  .hulk-icon { width: 5.5rem; height: 5.5rem; font-size: 2.25rem; }
  #closePopupBtn { padding: 0.7rem 1.75rem; font-size: 1.05rem; }
}

@media (min-width: 1024px) {
  #popupBox { max-width: 24rem; padding: 2rem; }
  #popupBox h2 { font-size: 2.25rem; }
  #popupBox p { font-size: 1.15rem; }
  .hulk-icon { width: 6rem; height: 6rem; font-size: 2.5rem; }
}
