body {
  margin: 0;
  padding: 0;
  font-family: inherit;
  background: inherit;
  color: inherit;
}

/* képek illeszkedjenek mobilon is */
img {
  max-width: 100%;
  height: auto;
}

/* alapértelmezett táblázat (desktopon hagyjuk békén) */
table {
  width: auto;
  border-collapse: collapse;
}

/* szövegek ne fussanak ki a keretből */
span.normaltext, p {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* kisebb kijelzőn finomított szövegméret */
@media (max-width: 768px) {
  span.normaltext, p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  /* táblázatok mobilon rugalmasan kezelve */
  table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
  }

  table th, table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* naptár finom mobil optimalizálás */
  .calendar {
    width: 100%;
    table-layout: fixed;
  }

  .calendar td, .calendar th {
    padding: 6px 0;
  }

  .calendar a.day-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
  }

  /* kisebb kör kijelölés */
  .calendar td.today .day-link,
  .calendar td.active .day-link {
    transform: scale(0.85);
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  span.normaltext, p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* nagyon keskeny kijelzőn görgethető táblázat */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* még kisebb kijelölő kör */
  .calendar td.today .day-link,
  .calendar td.active .day-link {
    transform: scale(0.75);
  }
}
/* --- Mobil naptár javítás: ne nyomódjon össze a napok oszlopa --- */
/* --- Mobil naptár finomhangolás: szélesebb napok --- */
@media (max-width: 768px) {
  table.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed !important; /* egyenlő, de rugalmas oszlopok */
  }

  table.calendar th,
  table.calendar td {
    width: 14.5%; /* kicsit több helyet ad, mint 14.2% */
    padding: 12px 0;
    text-align: center;
  }

  .calendar a.day-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;   /* enyhén nagyobb */
    min-height: 38px;
    line-height: 38px;
    border-radius: 50%;
    text-decoration: none;
    color: inherit;
  }

  /* kisebb, de szép kerek kijelölő körök */
  .calendar td.today .day-link,
  .calendar td.active .day-link {
    transform: scale(0.85);
  }
}

@media (max-width: 480px) {
  table.calendar {
    width: 100%;
    table-layout: fixed !important;
  }

  table.calendar th,
  table.calendar td {
    width: 14.8%; /* még picit több hely mobilon */
    padding: 10px 0;
  }

  .calendar a.day-link {
    min-width: 34px;
    min-height: 34px;
    line-height: 34px;
  }

  .calendar td.today .day-link,
  .calendar td.active .day-link {
    transform: scale(0.8);
  }
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: #f4f7f6; }
.container {
    max-width: 800px; /* Szélesebb elrendezéshez lehet nagyobb */
    margin: 20px auto;
    /* A 'display: flex' eltávolítva, hogy a blokkok egymás alá kerüljenek */
}

.calendar-container {
    max-width: 500px; /* A naptár ne nyúljon túl nagyra */
    margin: 0 auto 20px auto; /* Középre igazítás és alsó margó */
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.daily-content-container {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

/* === ÚJ SZEKCIÓ: A tartalom fejlécének és navigációjának stílusai === */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#content-date-display {
    margin: 0;
    font-size: 1.3em;
    color: #333;
}

.content-nav-arrow {
    text-decoration: none;
    font-size: 1.8em;
    color: #007bff;
    padding: 0 15px;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.content-nav-arrow:hover {
    background-color: #f0f0f0;
}
.content-nav-arrow.hidden { /* Rejtett állapot a nyilaknak */
    visibility: hidden;
}

#toggle-calendar-btn {
    display: block;
    width: 200px;
    margin: 0 auto 20px auto;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#toggle-calendar-btn:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

.daily-content-container {
    /* ... a meglévő stílusaid ... */
    min-height: 250px; /* Ez megakadályozza az ugrálást */
}

.nav-arrow {
    cursor: pointer; /* Vizuális visszajelzés, hogy kattintható */
}
/* ================================================================= */

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-header h2 { margin: 0; font-size: 1.2em; }
.nav-arrow { text-decoration: none; font-size: 1.5em; color: #333; padding: 0 10px; }

.calendar { width: 100%; border-collapse: collapse; }
.calendar th, .calendar td { text-align: center; padding: 10px; }
.calendar th { color: #888; font-weight: normal; font-size: 0.9em; }
.calendar td { border-radius: 50%; }

.day-link { display: block; text-decoration: none; color: #333; padding: 5px; border-radius: 50%; width: 30px; height: 30px; line-height: 30px; margin: auto; }
.day-link:hover { background-color: #e0e0e0; }
.day-link.active { background-color: #007bff; color: #fff; }
td.today .day-link { border: 2px solid #007bff; }

.placeholder { text-align: center; color: #888; padding: 50px 0; }


/* === Eredeti tartalom stílusok (MÓDOSÍTVA: CSAK A TARTALMI DOBOZBAN ÉRVÉNYESEK) === */
.daily-content-container a:link 		{font-size:10pt; color: rgb(0,0,255); text-decoration:none; font-weight:bold}
.daily-content-container a:visited 	{font-size:10pt; color: rgb(0,0,255); text-decoration:none; font-weight:bold}
.daily-content-container a:hover 	{font-size:10pt; color: rgb(153,153,153); text-decoration:none; font-weight:bold}

.daily-content-container a:link.main 	{font-size:10pt; color: #800000}
.daily-content-container a:visited.main 	{font-size:10pt; color: #800000}
.daily-content-container a:hover.main 	{font-size:10pt; color: #cc6600} 
.daily-content-container a:active.main 	{font-size:10pt; color: #ff0000}

.daily-content-container .normaltext { color: #000000; font-weight: normal; font-size: 10pt; font-family: arial, helvetica, sans-serif }
.daily-content-container .minortext { color: #757575; font-weight: normal; font-size: 10pt; font-family: arial, helvetica, sans-serif }
.daily-content-container .dataheader { color: #ff3300; font-weight: bold; font-size: 11pt; font-family: arial, helvetica, sans-serif }
.daily-content-container .headerheader { color: #000000; font-weight: bold; font-size: 11pt; font-family: arial, helvetica, sans-serif }
.daily-content-container .headerfast { color: #008000; font-weight: bold; font-size: 11pt; font-family: arial, helvetica, sans-serif }
.daily-content-container .headernofast { color: #ff5050; font-weight: bold; font-size: 11pt; font-family: arial, helvetica, sans-serif }
.daily-content-container .scriptureheader { color: #000000; font-weight: bold; font-size: 11pt; font-family: arial, helvetica, sans-serif }
.daily-content-container .troparionheader { color: #000000; font-weight: bold; font-size: 11pt; font-family: arial, helvetica, sans-serif }
.daily-content-container .troparionseparator { background-color: #800000 }

.daily-content-container .pdataheader { word-spacing: 0; text-indent: 0; line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 10; margin-bottom: 5 }
.daily-content-container .pheaderheader { word-spacing: 0; text-indent: 0; line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 10; margin-bottom: 5 }
.daily-content-container .pscriptureheader { word-spacing: 0; text-indent: 0; line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 10; margin-bottom: 5 }
.daily-content-container .ptroparionheader { word-spacing: 0; text-indent: 0; line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 10; margin-bottom: 5 }

.daily-content-container .ptroparionheader { word-spacing: 0; text-indent: 0; line-height: 100%; margin-left: 0; margin-right: 0; margin-top: 10; margin-bottom: 5 }

/* Ezt a részt add a CSS fájl végéhez */

/* === Modal Stílusok === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Alapból rejtett */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: #000;
}

/* Látható állapot */
.modal-overlay.visible {
    display: flex;
}

/* A modalon belüli tartalom stílusai */
.bible-modal-content h4 {
    margin-top: 0;
    font-size: 1.4em;
    color: #800000; /* Ortodox színvilághoz illő */
}
.bible-modal-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}
.bible-modal-content sup {
    font-weight: bold;
    color: #888;
}

body.ige-page {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.ige-container {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.vissza-gomb {
    display: inline-block;
    margin-bottom: 25px;
    padding: 8px 15px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}
.vissza-gomb:hover {
    background-color: #5a6268;
}

.ige-content h4 {
    margin-top: 0;
    font-size: 1.6em;
    color: #800000;
}
.ige-content p {
    margin-bottom: 1em;
    line-height: 1.7;
    font-size: 1.1em;
}
.ige-content sup {
    font-weight: bold;
    color: #888;
    margin-right: 5px;
}

.ige-content .error {
    color: #d9534f;
}
.ige-content .error-details {
    font-size: 0.8em;
    color: #888;
}

/* Stílus a beillesztett magyar biblia linkhez */
.bible-link-hu {
    font-weight: bold;
    color: #800000; /* Ortodox bordó szín */
    font-size: 10pt;
    font-family: arial, helvetica, sans-serif;
    text-decoration: none;
}
.bible-link-hu:hover {
    text-decoration: underline;
}

