/* Define the font */
@font-face {
  font-family: 'MyCustomFont';
  src: url('Fonts/Zain-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Apply the font and background to the body */
body {
  background-color: #000f0f !important;
  font-family: 'MyCustomFont', sans-serif;
  background-image: radial-gradient(circle at 50% 50%, #001f1f 0%, #000f0f 100%); /* پس‌زمینه عمیق‌تر */
}

/* reveal.js themes hard-code "Source Sans Pro"/Helvetica on .reveal and on
   headings (h1..h6), which beats the plain `body` rule above. These rules
   target the same elements with equal/greater specificity and must stay
   after the theme stylesheet (custom --css is loaded last) to win. */
.reveal,
.reveal .slides > section,
.reveal .slides > section > section,
.reveal p,
.reveal li,
.reveal blockquote,
.reveal strong,
.reveal em,
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: 'MyCustomFont', sans-serif !important;
}

/* Keep code blocks in a monospace font so they remain readable */
.reveal pre,
.reveal code {
  font-family: monospace !important;
}

.reveal .slides {
  text-align: right; /* راست‌چین کردن کل اسلایدها */
}

.past,
.present,
.future {
  direction: rtl;
}

/* استایل پاراگراف‌ها و لیست‌ها */
.past li,
.present li,
.future li,
p {
  color: #e5eef7; /* رنگ ملایم‌تر برای چشم */
  line-height: 1.8; /* فاصله خطوط متعادل‌تر */
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 32px;
  direction: rtl;
  text-align: justify; /* تراز کردن متن برای زیبایی بیشتر */
  text-align-last: right; /* خط آخر راست‌چین */
}

/* استایل لیست‌ها */
ul, ol {
  width: 100%;
  padding-right: 40px;
  display: block;
  margin-bottom: 20px;
}

li {
  text-align: right;
  margin-bottom: 15px;
  list-style-type: none; /* حذف بولت پیش‌فرض */
  position: relative;
}

/* اضافه کردن آیکون/بولت سفارشی به لیست‌ها */
li::before {
  content: "❖"; /* یا هر کاراکتر دیگری مانند 💠 */
  color: #00dfae;
  position: absolute;
  right: -35px;
  font-size: 24px;
  top: 5px;
}

/* استایل تیترها با افکت و حاشیه */
h1,
h2,
h3,
h4,
h5,
h6 {
  direction: rtl;
  color: #1f9fef;
  text-shadow: 2px 2px 8px rgba(31, 159, 239, 0.3); /* سایه رنگی برای تیترها */
  margin-top: 20px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid rgba(0, 223, 174, 0.4); /* خط جداکننده زیر تیترها */
  display: inline-block;
}

h1 { font-size: 75px; color: #00dfae; border-bottom: none; } /* تیتر اصلی رنگ متفاوت */
h2 { font-size: 60px; }
h3 { font-size: 45px; color: #00dfae; border-bottom: 2px dashed rgba(31, 159, 239, 0.5); } /* تیترهای بخش‌ها */
h4 { font-size: 36px; }

/* استایل تاکید‌ها (کلمات مهم) */
strong {
  color: #00dfae;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 223, 174, 0.4);
  display: inline-block;
  transform: translateY(-1px);
}

/* استایل نقل‌قول‌ها (شعرها و احادیث) */
blockquote {
  background: rgba(31, 159, 239, 0.08);
  border-right: 6px solid #00dfae;
  border-left: none;
  border-radius: 8px;
  padding: 20px 30px;
  margin: 30px 0;
  font-style: italic;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

blockquote p {
  color: #b3e0ff;
  font-size: 34px;
  line-height: 2;
  text-align: center; /* شعرها وسط‌چین */
}

/* استایل تصاویر */
img {
  margin-top: 25px;
  margin-bottom: 25px;
  max-height: 55vh; /* جلوگیری از خروج تصویر از صفحه */
  max-width: 80%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(0, 223, 174, 0.2); /* قاب و سایه */
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02); /* افکت هاور روی تصاویر */
}

/* استایل کدها (در صورت نیاز) */
code {
  margin-top: 16px;
  margin-bottom: 16px;
  direction: ltr;
  text-align: start;
  padding: 1.5rem 3rem;
  font-size: 22px;
  line-height: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(0, 223, 174, 0.3);
  color: #00dfae;
}

/* تنظیمات مخصوص Reveal.js برای فاصله‌گذاری بهتر */
.reveal .slides section {
  padding: 20px 40px; /* ایجاد حاشیه امن از کناره‌ها */
}

/* استایل پاورقی‌ها */
.reveal .slides section .footnote,
sup {
  font-size: 16px;
  color: #8899a6;
}
