body { font-family: sans-serif; padding:10px 20px; color:#333;}
#fulldiv{width:1200px; margin:auto; background-color:antiquewhite; box-shadow: 2px 2px 5px 5px #ddd; padding:0px;}
.menu { padding-top: 5px; margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px dotted grey; border-top: 1px dotted grey; display: flex;  flex-wrap: wrap; gap: 10px 15px; }
.menu a, .menu .menu-button { display: flex; align-items: center; text-decoration: none; color: #333; font-size: 12px; font-weight: bold;  cursor: pointer; padding: 0px 6px; border-radius: 2px; background-color: #d9be99; border: 1px solid #ddd; }
.menu a:hover, .menu .menu-button:hover { background-color: #e9e9e9; }
.menu a.active-menu, .menu .menu-button.active-menu { background-color: #774000; color: white; }

.main-menu { background-color: #fff8ee; padding: 0 5px 0px 5px; border-bottom: 1px dotted #ccc; margin-bottom: 10px; display: flex; align-items: center; gap: 15px; position: relative; }
.main-menu a { margin-right: 20px; text-decoration: none; color: #774000; font-weight: bold; cursor: pointer; padding:5px;}
.main-menu a:hover{ color: #fff; background-color: #dbad78; padding:5px;}
.main-menu a.active { color: #fff; background-color: #774000; padding:5px;}
#content-area { border: 1px solid #eee; padding: 0 10px 10px 10px; min-height: 200px; }
        
#archontology-content { border: 0px solid #ddd; padding: 0px; }
.clearfix::after { content: ""; display: table; clear: both; }
.loader { text-align: center; padding: 50px; font-style: italic; color: #888; }
label { font-weight: bold; align-self: center; }
label.nobold { font-weight: normal; align-self: center; font-size: 13px;}
#date-slider.ui-slider-horizontal { height: 8px; background: #d9be99; border: 1px solid #ccc; border-radius: 2px;}
#date-slider .ui-slider-handle { background: #774000; border: 1px solid #333; width: 1em; height: 1em; border-radius: 15px; }
#slider-ticks { position: relative; height: 16px; margin-top: 3px; border-bottom:1px dotted grey;}
.tick-label { position: absolute; font-size: 10px; color: #888; transform: translateX(-50%); }
.select2-container { min-width: 300px !important; background-color:#fff8ee;}
.period-toggle { display: flex; align-items: center; background-color: #d9be99; border: 1px solid #ccc; border-radius: 15px; padding: 2px; }
.period-toggle label { cursor: pointer; padding: 3px 10px; border-radius: 12px; font-size: 12px; transition: all 0.2s; }
.period-toggle input { display: none; }
.period-toggle input:checked + label { background-color: #774000; color: white; }
#period-display { font-size: 26px; font-weight: bold; color: #774000; align-self: center; margin-left: 5px; }
.disabled-ui { opacity: 0.5; pointer-events: none; }
.smallname{ padding:0px; text-align: center; font-size: 10px; line-height: 110%;}
a{ text-decoration: none; color:#111;}
table{border-spacing:0; background-color:antiquewhite;}
td { color: #000;  border-top: dotted 1px #AAA; font-size: 12px; padding: 2px 0 0px 0;}
.smb{ float: left; width:115px; height:110px; margin:auto; padding-top:10px; text-align: center; font-size: 10px; }
div.divtitlearch{ padding-bottom: 5px; margin:20px 0px 10px 0px; border-width: 0px 0px 1px 0px; border-style: dotted; border-color: grey; width: 300px; font-weight: bold; font-size: 14px; }

#change-chart-toggle{margin-top:0; padding-top:0;}

#person-timeline {
  width: 100%;
  height: 400px; /* vagy amennyi jól néz ki */
  border: 1px solid #ddd; /* debughoz jó, látszik a keret */
}







.submenu {
    display: none;        /* Alapból rejtett */
    position: absolute;   /* A szülőjéhez (.dropdown-container) képest pozicionáljuk */
    top: 100%;            /* Közvetlenül a szülő alá kerül */
    left: 0;              /* A szülő bal széléhez igazodik */
    margin-top: 8px;      /* Távolság a főmenü és az almenü között */
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: nowrap;  /* Megakadályozza, hogy az almenü elemei törjenek */
    z-index: 10;          /* Biztosítja, hogy más elemek felett jelenjen meg */
}
    .submenu a {
        display: block; /* Egymás alatt jelennek meg */
        margin-bottom: 5px;
    }
    .submenu a:last-child {
        margin-bottom: 0;
    }
    #recommendation-controls { margin-bottom: 20px; }
    .dropdown-container { position: relative; display: inline-block; }
    #forrasok-toggle.active { color: #fff; text-decoration: none; }
    #selected-source { font-weight: bold; }





div.positionratio{ 
    min-width: 300px; 
    float: left; 
    max-width: 280px; 
    font-size: 12px; }
div.positionimage{ float: left; }

/* 1. A doboz stílusa (a placeholder helye) */
#position-filter-container .select2-selection--multiple {
    background-color: #fff8ee; /* A kívánt háttérszín */
    border: 1px solid #d9be99;
    font-size: 13px; /* A placeholder és a kiválasztott elemek betűmérete */
    color:#222;
}
/* 2. A felugró lista (dropdown) stílusa */
.select2-dropdown {
    background-color: #fff8ee; /* UGYANAZ a háttérszín, mint a dobozé */
    border: 1px solid #ccc;
}
/* 3. A listaelemek (pozíciók) stílusa a felugró listában */
.select2-results__option {
    font-size: 13px; /* A lista betűmérete */
    padding: 6px;
}
/* 4. A kiemelt (hover) listaelem stílusa */
.select2-results__option--highlighted {
    background-color: #e0eaf1 !important; /* Egy kellemes kiemelő szín */
    color: #333 !important;
}
h1 { font-family: serif; font-weight:lighter; font-size: 444%; border-bottom-style: dotted; border-bottom-width: 1px; margin-top: 10px; 
    margin-bottom: 10px; padding-left: 20px; color: #774000;  font-variant: small-caps; cursor: pointer; }
h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 130%;
}

hr.undergraph{border: 1px dotted #ccc;}
p.mtah1{
    font-size: 24px;
    font-weight: normal;
    margin-top: 50px;
}
p.mtah2{
    font-size: 20px;
    font-weight: bold;
    margin-top: 40px;
}
p.mtah3{
    font-size: 16px;
    font-weight:bold;
    margin-top: 20px;
    margin-bottom: 5px;
}
p.mtarecommender{
    font-size: 12px;
    font-family: sans-serif;
    font-weight: 200;
    margin: 0;
    line-height: 100%;
}
p.mtanormal{
    font-size: 14px;
    font-weight: 100;
    margin:0px;
    padding:0px;
}
p.mtatitle{
    font-size: 32px;
    font-weight:bold;
    margin-bottom: 0px;
}
p.mtasubtitle{
    font-size: 22px;
    font-weight:bold;
    margin-bottom: 30px;
}
div.columnbook {
    margin-top:10px;
    float: left;
    text-align: center;
    width: 126px;
    border-left: 1px solid black;
    border-right: 1px solid black;
    font-size: 14px;
    padding:0;
}
li.lawli, li.lawli li{
    margin:5px 0px 0px 0px;
    padding:5px 0px 0px 0px;
    font-size: 14px;
}
.sumdetailtitle{
    margin-top:10px 0 10px 5px;
    font-size: 15px;
    border-top:1px dotted #999;
    width: 150px;
}
#person-detailsposition{
    font-size: 13px;
}
.divtitle{
    margin: 30px 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px dotted #999;
    width: 150px;
}
.linklist{
    font-size: 12px;
    line-height: 1.8;
}
.titlename{
    font-size: 24px;
    font-weight: bold; 
    margin: 0 0 10px 0px;
    display: block;
}
.personsmallfact{
    margin: 0px 0 0px 0px;
    font-size: 14px;
}
.personportrait{
    height:120px;
    margin-right:0px;
}

.namecardbox {
    display: flex; /* Bekapcsolja a flexbox elrendezést */
    align-items: flex-start; /* Az elemeket a tetejükhöz igazítja */
    gap: 20px; /* Térköz a kép és a szöveg között */
    padding: 0px;
    margin: 10px 0 20px 0;
}

/* A bal oldali oszlop (kép) konténere */
.namecard-image {
    flex-shrink: 0; /* Megakadályozza, hogy a kép összenyomódjon */
}

/* A jobb oldali oszlop (információk) konténere */
.namecard-info {
    display: flex;
    flex-direction: column; /* Az elemek (cím, adatok) egymás alatt helyezkednek el */
}



/*--------------*/
/* .persondetails a namecardbox-ban: (ha kell további finomhangolás) */
.namecardbox #person-details {
    box-sizing: border-box;
    padding-left: 6px;
}

/* age labels wrapper és egyedi label stílus */
#timeline-container-zoom .age-labels { position: absolute; left:0; right:0; bottom:-26px; height:24px; pointer-events:none; }
#timeline-container-zoom .age-labels .age-label {
    font-size: 11px;
    color: #222;
    white-space: nowrap;
}

/* ha a zoom-container-nek van margin-bottom, csökkentsük, hogy legyen hely a labelnek */
#timeline-container-zoom { padding-bottom: 36px; }
/*--------------*/



.sumdetail-container {
    clear: both; /* Biztosítja, hogy a korábbi elemek alatt kezdődjön */
}

.personid{
    font-size: 10px;
}

#download-container {
            text-align: center;
            margin-top: 15px;
        }
        #download-logo {
            text-decoration: none;
            background-color: #476274;
            font-family: "Arial Black", Arial, sans-serif;
            color: white;
            padding: 6px 7px 7px 7px;
            border-radius: 4px 0px 0px 4px;
            font-size: 14px;
            transition: opacity 0.3s, background-color 0.3s;
        }
        #download-link {
            text-decoration: none;
            background-color: #8ea6b7;
            color: white;
            padding: 8px 10px;
            border-radius: 0px 4px 4px 0px;
            font-size: 14px;
            transition: opacity 0.3s, background-color 0.3s;
        }
        #download-link.disabled {
            background-color: #bdc3c7;
            pointer-events: none;
            opacity: 0.5;
        }

/* -------- timeline ---------- */

#timeline-container-full{
    height:50px; 
    background: #f2ece5; 
    margin: 0;
    padding: 0;
}
#timeline-container-zoom{
    height:55px; 
    background: #fff8ee; 
    margin: 0;
    padding: 0;
}

.vis-timeline .vis-item {
    background-color: #ccc;
    border-color: #aaaaaa; 
    vertical-align: middle;
    }

/* itemek szövege */
#timeline-container-full .vis-item .vis-item-content,
#timeline-container-zoom .vis-item .vis-item-content {
    font-size: 10px !important;
    line-height: 1.05 !important;
    padding: 2px 4px !important;
    text-transform: none !important;
}

/* axis (dátumok): SVG text és tspan célzása is fontos */
#timeline-container-full .vis-axis .vis-text,
#timeline-container-zoom .vis-axis .vis-text,
#timeline-container-full .vis-axis .vis-text tspan,
#timeline-container-zoom .vis-axis .vis-text tspan {
    font-size: 10px !important;
    text-transform: none !important;
    fill: #222 !important;
}

/* kisebb current-time jel */
#timeline-container-full .vis-current-time,
#timeline-container-zoom .vis-current-time {
    font-size: 10px !important;
}

/* birth/death point styling */
#timeline-container-full .vis-item.timeline-birth .vis-item-content,
#timeline-container-zoom .vis-item.timeline-birth .vis-item-content {
    font-size: 10px !important;
    background-color: #ffffff !important;
}
#timeline-container-full .vis-item.timeline-death .vis-item-content,
#timeline-container-zoom .vis-item.timeline-death .vis-item-content {
    font-size: 10px !important;
    background-color: #55360b !important;
    color:white;
}

/* eltávolítjuk a loader megjelenést ha maradt */
#timeline-container-full .loader, #timeline-container-zoom .loader { display:none !important; }




/* SVG axis text/tspan célzott felülírás */
#timeline-container-full svg text, 
#timeline-container-full svg tspan,
#timeline-container-zoom svg text,
#timeline-container-zoom svg tspan {
    font-size: 10px !important;
    text-transform: none !important;
    fill: #222 !important;
    font-weight: 400 !important;
}


/* kisebb current-time jel */
#timeline-container-full .vis-current-time, #timeline-container-zoom .vis-current-time {
    font-size: 10px !important;
}

/* persistens eltávolítás a loader-nek */
#timeline-container-full .loader, #timeline-container-zoom .loader { display:none !important; }

.vis-time-axis .vis-text {
    font-size: 10px;
}

