/* Alapértelmezett box-sizing minden elemre */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Main summary, accordion és summary szövegkezelése */
.main-summary, .accordion-group, summary {
  overflow-x: hidden;
  word-break: break-word;
}

body, html {
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding-top: 60px;
  height: 100%;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

nav {
    background-color: #e35d6a; /* Navigációs sáv háttérszíne */
    font-family: 'Poppins', sans-serif;
}

/* Kereső form - finomított padding */
form {
    padding-right: 15px;
}

/* Alap oldal struktúra - footer lent tartása */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.content-wrap {
    flex: 1; /* Kitölti a rendelkezésre álló helyet */
}

/* Main summary és accordion container: rugalmas szélesség min- és max értékekkel */
.main-summary {
    border-top: none;         /* Nincs felső szegély */
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    border-left: 2px solid black;
    width: 90%;
    max-width: 800px;
    min-width: 280px;
    margin: 0 auto;
    font-weight: bold;
    font-size: 24px;
    padding: 12px;
    text-align: center;
    background-color: #f2f2f2;
    box-sizing: border-box;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Accordion container */
.accordion-group {
    width: 90%;
    max-width: 800px;
    min-width: 280px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Egyes összecsukható elemek */
details {
    border: 2px solid black;
    margin-top: -1px; /* Összeérnek a keretek */
}

/* Összecsukható fejléc */
summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background-color: #fff;
    box-sizing: border-box;
}

summary span {
    font-size: 18px;
}

/* Nyíl ikon */
summary svg {
    flex-shrink: 0;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

details[open] summary svg {
    transform: rotate(180deg);
}

/* Tartalom */
details p {
    padding: 12px;
    margin: 0;
    font-weight: normal;
    background-color: #fff;
    border-top: 2px solid gray;
    box-sizing: border-box;
}

/* Hungarikum év */
.year {
    font-style: italic;
    font-size: 14px;
}

/* Footer stílus */
/* Footer stílus */
footer {
    background-color: #55AF4D;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 20px 0;
    width: 100%;
    margin-top: auto;
}

/* Linkek egységes stílusa */
footer a {
    font-size: 16px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

footer a:hover {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

/* Footer tartalom igazítás minden eszközön balra */
.footer-left,
.footer-center,
.footer-right {
    text-align: left;
}

/* Jobb oszlop jobbra csak nagyobb képernyőn */
@media (min-width: 768px) {
    .footer-right {
        text-align: right;
    }
}

.source-link {
    color: #6d1d24;
    font-weight: bold;
}

.source-link:hover {
    color: #FF6666;
    text-decoration: underline;
}


@media (min-width: 768px) {
    .footer-left {
        text-align: left;
    }
    .footer-right {
        text-align: right;
    }
}

/* Reszponzív stílusok */

/* Extra nagy képernyők */

/* Nagy képernyők */
@media (min-width: 1200px) and (max-width: 1400px) {
    body {
        padding-top: 60px; /* vagy annyi, mint a navbar magassága */
    }

    .main-summary {
        width: 80%;
        font-size: 16px; /* kisebb betűméret a jobb illeszkedésért */
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    body {
        padding-top: 60px;
    }

    .main-summary {
        width: 82%;
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    body {
        padding-top: 60px;
    }

    .main-summary {
        width: 90%;
        font-size: 16px;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .main-summary {
        width: 90%;
        font-size: 16px;
    }
}

/* Kisebb tablet és nagyobb telefon képernyők */
@media (min-width: 480px) and (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .main-summary {
        width: 90%;
        font-size: 16px;
    }
}

@media (min-width: 375px) and (max-width: 780px) {
    body {
        padding-top: 60px;
    }

    .main-summary {
        width: 90%;
        font-size: 16px;
    }
}

/* Köztes méret a problémás tartományban */
@media (min-width: 340px) and (max-width: 375px) {
    body {
        padding-top: 60px;
    }

    .main-summary {
        width: 90%;
        font-size: 16px;
    }
}