* {
	box-sizing: border-box;	
}

body {
	background-color:#fff;
	color:#444;
	font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
}
nav {

	background-color:#F0F0F0;
	width:90%;
	padding:10px;
	text-align:center;
	border-radius:20px;
	max-width: 1020px;	
	margin:0 auto;
	
}
nav a {
	color:#A12C2F;
	text-decoration:none;
	border-right:1px solid #aaa;
	padding:10px;
	letter-spacing:0.1em;
	padding-top:8px;
	padding-bottom:12px;
	line-height:40px;
	transition: transform 0.1s ease;
	font-weight:bold;
}
nav a:last-of-type {
	border-right:none;
}
nav a:HOVER {
	color:#F17C7F;
	
}
p {
	font-size: .875rem;
    line-height: 1.8;
}

h1,h2,h3,h4,h5 {
	text-align:center;
}
article {
	max-width:1020px;
	margin:0 auto;
}
/* Kereső ablak */
.searchbox {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;  
}

.inp {
	height: 40px; 
	border-radius: 5px;
	border: 1px solid #ccc;
	width: 240px;
}
.inp_rov {
	width:100px;
}
.inp_button {
	height: 40px; 
	line-height:40px;
	vertical-align:center;
	background-color:#A12C2F;
	color:#fff;
	font-size:15px;
	border-radius:10px;
	border:1px solid #000;
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.28);
}
.inp_button:HOVER {
	border:1px solid #555;
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.78);
} 

a {
	color:#A12C2F;
	text-decoration:none;
	/*font-weight:bold;*/
	
}
a:HOVER {
	color:#F17C7F;
}

.imglink {
	color:#A12C2F;
	text-decoration:none;
	cursor:pointer;
}
.imglink:HOVER {
	color:#F17C7F;
}
/* TÁBLÁZAT */

.table-container {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  text-align: left;
}

.responsive-table th {
  background-color: #A12C2F;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 18px;
}

.responsive-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #eef2f5;
  color: #333333;
}

.responsive-table tbody tr:nth-of-type(even) {
  background-color: #f8fafc;
}

.responsive-table tbody tr:hover {
  background-color: #f1f5f9;
}

@media screen and (max-width: 768px) {
  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .responsive-table tbody tr {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 8px 0;
  }

  .responsive-table tbody tr:nth-of-type(even) {
    background-color: #ffffff;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    text-align: left;
    padding-right: 15px;
  }
}

/* KARTON */

/* --- Alap dobozmodell és konténer --- */
.card-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* --- Felső fejléc (Teljes szélesség) --- */
.card-header {
  border-bottom: 3px solid #A12C2F;
  padding-bottom: 15px;
  margin-bottom: 25px;
  position:relative;
}

.card-header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #A12C2F;
  letter-spacing: -0.5px;
  
}
.header_right_buttons {
	position:absolute;
	right:0px;
	top:0px;
}
.header_right_buttons a {
	height: 40px; 
	display:block;
	text-align:center;
	vertical-align:center;
	border-radius: 5px;
	border: 1px solid #ccc;
	min-width: 120px;
	height: 40px; 
	line-height:40px;
	background-color:#A12C2F;
	color:#fff;
	font-size:15px;
	border-radius:10px;
	border:1px solid #000;
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.28);

}
.header_right_buttons a:HOVER {
	text-decoration:none;
}
/* --- Grid elrendezés (PC / Monitor) --- */
.card-content {
 /* display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
  align-items: start; */
  column-count: 2;
  column-gap: 20px;
  
}


.section-main {
  /*grid-row: span 2;*/
}

/* --- Blokkok (Kártyák) stílusa --- */
.card-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  
  break-inside: avoid;
  margin-bottom: 20px; 
  
  
}

.card-section h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #A12C2F;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

/* --- Adatpérok (Címke : Érték) igazítása --- */
.data-list {
  display: grid;
  grid-template-columns: auto 1fr; /* Címke szorosan, érték kitölti a maradékot */
  gap: 10px 15px;
  margin: 0;
}

.data-list dt {
  font-weight: 600;
  color: #64748b;
  text-align: right; /* Címkék jobbra igazítva a kettősponthoz */
}

.data-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 500;
}

/* --- Alsó lábléc (Teljes szélesség) --- */
.card-footer {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* --- Responsive nézet (Mobilon 768px alatt) --- */
@media screen and (max-width: 768px) {
  .card-content {
    column-count: 1;
  }
}


@media screen and (max-width: 768px) {
  
  .data-list {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .data-list dt {
    text-align: left;
    font-size: 0.85rem;
    margin-top: 8px;
  }

  .data-list dd {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #f1f5f9;
  }
}

/* CSALÁDFA */

/* A kártya fő konténere */
.csaladfa_kartya {
    width: 180px;
    height: 68px;
    background-image: url('images/kartya_gray.png');
    background-size: cover;
    background-position: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    position: relative;
    user-select: none;
}

/* Kiemelt kártya (ha a kiválasztott személyről van szó) */
.csaladfa_kartya.kivalasztott {
    border: 2px solid #e67e22;
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.6);
}

/* A név stílusa (felül, középen) */
.kartya_nev {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Az alsó sáv (évszám balra, ikonok jobbra) */
.kartya_also_sav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Az 'elt' mező (évszámok) bal alsó sarok */
.kartya_evszamok {
    font-size: 11px;
    color: #444;
}

/* A jobb alsó ikonok konténere */
.kartya_ikonok {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Ikon hivatkozások stílusa */
.kartya_ikon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.kartya_ikon:hover {
    transform: scale(1.15);
}

/* Egyedi ikon háttérképek */
.kartya_ikon_karton {
    background-image: url('images/nagyito.png');
}

.kartya_ikon_fa {
    background-image: url('images/fa.gif');
}

#csaladfa_kontener {
    position: fixed;
    left: 0px;
    right: 0px;
    top: 80px;
    bottom: 0px;
    border: 1px solid #aaa;
    overflow: hidden;
    cursor: grab;
}

#csaladfa_kontener:active {
    cursor: grabbing;
}

#csaladfa_layer {
	position: absolute;
    left: 0px;
    top: 0px;
    width: 0px;
    height: 0px;
    border: 1px solid #0f0;
}
.csaladfa_kartya {
	margin-left:-90px;
	margin-top:-30px;
	position:absolute;
}
.csaladfa_vonalkapocs {
	position:absolute;
	/*border:3px solid #000;*/
	color:#f00;
	background-color:rgba(0,0,0,0.6);
	z-index:-1;
}
.csaladfa_vezérlok {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 100;
    display: flex;
    gap: 8px;
    pointer-events: auto; /* Biztosítja a kattinthatóságot */
}

/* Egyedi gomb stílus */
.csaladfa_gomb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    
    transition: all 0.15s ease-in-out;
}

/* Egérrámutatás effektek */
.csaladfa_gomb:hover {
    background-color: #f4f4f4;
    border-color: #999999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

.csaladfa_gomb:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Ikonok méretezése a gombokban */
.gomb_ikon {
    font-size: 14px;
    line-height: 1;
}

/* Mobilon vagy keskeny kijelzőn csak az ikonok látszódjanak, a szöveg rejtve legyen */
@media (max-width: 600px) {
    .gomb_szoveg {
        display: none;
    }
    .csaladfa_gomb {
        padding: 0 10px;
    }
}
