* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.body{
    background: linear-gradient(135deg, #4e2718, #d6b283);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #3c2f2f;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

.quiz-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1rem; /* کاهش padding برای فضای بیشتر */
    max-width: 90vw; /* عرض حداکثر 90% عرض صفحه */
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* ارتفاع خودکار */
    max-height: 90vh; /* حداکثر ارتفاع 90% ارتفاع صفحه */
    overflow-y: auto; /* اسکرول داخلی فقط در صورت نیاز */
}

h1 {
    color: #6b4e31;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 5vw, 2rem); /* اندازه فونت مقیاس‌پذیر */
}

#progress-bar {
    width: 100%;
    height: 8px; /* کاهش ارتفاع */
    background: #e0d8c3;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

#progress {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #ff6f61, #ffb88c);
    transition: width 0.5s ease;
}

#question-number {
    font-size: clamp(0.9rem, 3vw, 1.2rem); /* مقیاس‌پذیر */
    color: #6b4e31;
    margin-bottom: 0.5rem;
}

#question {
    font-size: clamp(1rem, 4vw, 1.5rem); /* مقیاس‌پذیر */
    margin-bottom: 1rem;
    color: #3c2f2f;
}

.option {
    background: #fff;
    border: 2px solid #d9c2a6;
    border-radius: 10px;
    padding: 0.8rem;
    margin: 0.3rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 3vw, 1.1rem); /* مقیاس‌پذیر */
}

.option:hover {
    background: #ff6f61;
    color: #fff;
    border-color: #ff6f61;
}

.option.correct {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
    animation: pulse 0.5s ease;
}

.option.wrong {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

#next-btn {
    background: #6b4e31;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem); /* مقیاس‌پذیر */
    width: 100%;
    box-sizing: border-box;
}

#next-btn:hover {
    background: #ff6f61;
}

#result {
    margin-top: 1rem;
    font-size: clamp(0.9rem, 3vw, 1.2rem); /* مقیاس‌پذیر */
    color: #3c2f2f;
}

.hidden {
    display: none;
}

.footer-quote {
    font-size: clamp(1rem, 2.5vw, 1.4rem); /* مقیاس‌پذیر */
    font-style: italic;
    color: #000000;
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem 0;
}

#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 600px) {
    body {
        padding: 0.5rem;
        min-height: 100vh;

    }

    .quiz-container {
        padding: 0.8rem;
        width: 100%;
        max-width: 80%;
        max-height: 90vh; /* حداکثر ارتفاع برابر با صفحه */
        min-height: auto; /* ارتفاع خودکار */
        overflow-y: hidden; /* حذف اسکرول داخلی */
    }

    h1 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
    #question { font-size: clamp(0.9rem, 3.5vw, 1.2rem); }
    .option { font-size: clamp(0.8rem, 3vw, 1rem); padding: 0.6rem; }
    #next-btn { padding: 0.5rem 1rem; font-size: clamp(0.8rem, 3vw, 1rem); }
    #question-number { font-size: clamp(0.8rem, 2.5vw, 1rem); }
    .footer-quote { font-size: clamp(1rem, 2vw, 0.9rem); }
}















header {
    position: relative;
    background: #3c2f2f;
    color: #f5e6cc;
    padding: 0.6rem 1rem; /* کاهش ارتفاع */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #8a5522;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* سه بخش چپ، وسط، راست */
.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* موقعیت‌های دقیق */
.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

/* لوگو */
.logo {
    height: 80px;
    width: 100px;
    object-fit: contain;
    align-items: center;
}

/* عنوان */
.header-right h1 {
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.home-icon i {
    font-size: 20px; /* یا هر مقدار دلخواه مثلاً 24px */
    color: #f5e6cc;
    transition: color 0.3s;
}

.home-icon i:hover {
    color: #e6b800;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    header {
        padding: 0.3rem 0.5rem;
    }
    .logo {
    width: 60px; /* اندازه کوچکتر در موبایل */
    height: 50px;
    padding: 0;
    margin: 0;
    }

    .header-right h1 {
        font-size: 1rem;
    }

    .header-left a {
        font-size: 1.2rem;
    }
}
















/* ریست حاشیه‌ها و پدینگ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* استایل محتوای اصلی */
.content {
  padding: 40px;
  text-align: center;
  min-height: 80vh; /* برای اطمینان از اینکه فوتر در پایین باشد */
}

/* استایل فوتر */
.footer {
  background-color: #2d2d2d; /* خاکستری تیره برای کنتراست */
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
}

/* محتوای فوتر */
.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* دکمه درباره ما */
.about-button .btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #05396d; /* آبی جذاب */
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.about-button .btn:hover {
  background-color: #1678d6; /* تیره‌تر هنگام هاور */
  transform: translateY(-2px);
}

/* آیکون‌های شبکه‌های اجتماعی */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  color: #f7f2f2;
  font-size: 28px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: #4134ee; /* آبی هنگام هاور */
  transform: scale(1.1);
}

/* استایل ایمیل */
.email p {
  font-size: 20px;
}

.email a {
  color: #3960bb;
  text-decoration: none;
}

.email a:hover {
  text-decoration: underline;
}

/* استایل کپی‌رایت */
.copyright p {
  font-size: 20px;
  color: #ffffff;
  margin-top: 10px;
}

/* برای نمایش بهتر در موبایل */
@media (max-width: 768px) {
  .footer {
      padding: 30px 15px;
  }

  .social-icons a {
      font-size: 24px;
      gap: 15px;
  }

  .about-button .btn {
      padding: 10px 20px;
      font-size: 17px;
  }

  .email p {
      font-size: 17px;
  }

  .copyright p {
      font-size: 17px;
  }
}