/* =========================================================
   הצופן של ירושלים – סגנון גלובלי
   גופנים: מערכת בלבד (David / Narkisim / Times New Roman וכו') –
   אין טעינת גופנים מהאינטרנט, כנדרש להפעלה מקומית מלאה.
   ========================================================= */

:root {
  /* לוח צבעים: אבן ירושלמית, קלף, עץ, ברונזה */
  --color-stone-dark: #1b1712;
  --color-stone: #2c261d;
  --color-stone-light: #4a3f2f;
  --color-parchment: #e9dcb9;
  --color-parchment-dim: #c9b98c;
  --color-bronze: #a9662f;
  --color-bronze-light: #d8a45b;
  --color-gold: #e8c27a;
  --color-ink: #241b10;

  --font-heading: "Frank Ruhl Libre", "David", "Narkisim", "Adobe Hebrew", "Times New Roman", serif;
  --font-body: "David", "Narkisim", "Adobe Hebrew", "Times New Roman", serif;

  --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.55);
  --topbar-height: 68px;
}

* {
  box-sizing: border-box;
}

/* חיזוק גלובלי: לעולם לא לתת לשום כלל display אחר (לרבות
   .scene/#screen-* מקומיים בקובצי CSS אחרים) לגבור על התכונה
   hidden - מונע מצב שבו שני מסכים ("scene") גלויים יחד בטעות. */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* בלי גלילה מיותרת במסך הראשי */
  background: var(--color-stone-dark);
  color: var(--color-parchment);
  font-family: var(--font-body);
  direction: rtl;
}

body {
  position: relative;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* מסך גנרי (station1-intro, ובעתיד מסכים נוספים) */
.screen {
  position: absolute;
  top: var(--topbar-height);
  right: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
}

/* התאמה בסיסית לרזולוציות נפוצות – מונע גלילה/דחיסה ב-1366x768 */
@media (max-height: 800px) {
  :root {
    --topbar-height: 60px;
  }
}

/* ===================== בקרות קריינות במסכי-הסבר ===================== */
/* *** מוזרק דינמית ע"י audioManager.js מתחת לפסקת ההסבר (.station-
   intro-text) בכל מסך-הסבר של תחנה. כלל גלובלי אחד במקום כלל
   נפרד בכל אחד מקובצי ה-CSS של שש התחנות. ***/
.narration-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.narration-btn {
  padding: 7px 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-gold);
  background: rgba(8, 6, 4, 0.45);
  border: 1.5px solid rgba(216, 164, 91, 0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.narration-btn:hover,
.narration-btn:focus-visible {
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(232, 194, 122, 0.4);
}

.narration-btn-primary {
  background: rgba(169, 102, 47, 0.35);
}
