




/* خوش‌آمدگویی و فلش */

/* حذف اسکرول آزاردهنده */
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Vazirmatn', sans-serif;
  background: black;
}

.sr-welcome-banner {
  text-align: center;
  font-size: 17px;
  color: #ff4444;
  margin-top: -20px;
  margin-bottom: 20px;
  font-weight: bold;
  animation: sr-fadeIn 1.5s ease;
}
.sr-arrow {
  font-size: 32px;
  color: #ff0000;
  animation: sr-explode 1.5s infinite;
  cursor: pointer;
  margin-top: 10px;
  text-shadow: 0 0 12px #ff0000, 0 0 24px #ff4444;
}
@keyframes sr-explode {
  0% {transform: scale(1);}
  50% {transform: scale(1.4);}
  100% {transform: scale(1);}
}

/* بخش تایپ‌شونده */
.sr-intro-hidden {
  display: none;
  text-align: center;
  margin: 30px auto;
  max-width: 600px;
}
.sr-typing-box {
  position: relative;
  font-size: 18px;
  color: #00ff88;
  font-family: 'Vazirmatn', monospace;
  white-space: pre-wrap;
  text-shadow: 0 0 8px #00ff88;
  line-height: 1.8;
  padding: 20px;
  margin: 0 auto;
  max-width: 90%;
  border-radius: 12px;
  background: linear-gradient(to right, rgba(0,255,136,0.05), rgba(0,255,136,0.15));
  backdrop-filter: blur(4px);
  box-shadow: 0 0 12px rgba(0,255,136,0.3);
  background-size: 200% 100%;
  animation: sr-glowShift 6s linear infinite;
    position: relative;
  min-height: 160px; /* ارتفاع ثابت برای جلوگیری از تغییر */
  max-height: 160px;
  overflow: hidden;
}

#typedText {
    position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: inline-block;
  overflow: hidden;
  max-height: 100%;
}

@keyframes sr-glowShift {
  0% {background-position: 0%;}
  100% {background-position: 100%;}
}
.sr-cursor {
  animation: sr-blink 1s infinite;
}
@keyframes sr-blink {
  0%, 50% {opacity: 1;}
  51%, 100% {opacity: 0;}
}
@keyframes sr-fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* آیکن قطع صدا */
.sr-mute-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  font-size: 24px;
  cursor: pointer;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
#sr-introSection {
  overflow: hidden;
}
