.tborder {
	background: var(--box-postcont);
	display: table;
}

.ftab {
	width: 100%;
	padding: 5px;
}

.hfamily_act {
	text-align: center;
	margin: auto;
}


.hfams .tcat {
	background: var(--box-body);
	text-align: center;
}


/* FLEX STUFF */
.hfamily {
	display: flex;
	flex-flow: row wrap;
	flex: 1;
	width: 100%;
	justify-content: stretch;
	gap: 10px;
	margin-bottom: 20px;
}

.hfamily .thead {
	text-align: center;
    flex: 1;
    font-size: 23px;
    color: var(--headings-header);
}

.hfamily_generation {
	display: flex;
	flex-flow: row wrap;
	flex-grow: 1;
	justify-content: space-evenly;
	margin-bottom: 30px;
	text-align: center;
	width: 95%;
	justify-content: space-evenly;
	margin: auto;
	/* background: var(--box-postcont); */
}

.hfamily_generation:last-of-type {
	margin-bottom: 0px;
}

.hfamily_generation_heading {
	flex-basis: 95%;
	display: flex;
	justify-content: center;
	flex-grow: 1;
	font-size: 18px;
	color: var(--headings-body);
}

.hfamily_generation_heading > .tcat {
	border-bottom: 1px solid var(--dunkeltext);
    flex: 1;
    text-align: right;
    max-width: 95%;
}

.hfamily_bpb {
	display: flex;
	flex-flow: row nowrap;
	align-content: stretch;
	justify-self: stretch;
	align-self: stretch;
	justify-content: stretch;
	/* flex: 1; */
	flex-basis: 100%;
	gap: 10px;
}

.hfamily_bpb_p {
	background-color: var(--box-postcont);
	color: var(--helltext);
	padding: 8px;
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
}

.hfamily_member{
	background: var(--box-postcont);
	display: flex;
	flex-flow: column wrap;
	align-items: center;
	margin: 30px 15px 0px 15px;
	padding: 15px;
	flex: 0;
}

.hfamily_member img {
	padding-top: 15px;
	padding-bottom: 15px;
	width: 200px;
	height: auto;
}

.hfamily_npc {
	background-image: var(--defaultava);
    display: block;
    width: 200px;
    height: 160px;
    margin-top: 15px;
    margin-bottom: 15px;
	background-size: 200px 160px;
    background-position: right;
}

.hfamily_name {
	color: var(--headings-body);
	font-size: 14px;
}

.hfamily_descr {
	background: var(--box-postcont);
	padding: 15px;
	text-align: justify;
	flex-basis: 55%;
	height: 100px;
	overflow: auto;
	display: flex;
	flex-flow: column nowrap;
	justify-items: stretch;
	color: var(--helltext);
	flex: 2;
}

.hfamily_scroll {

	overflow: auto;
}

/* FAMILY STATISTICS */

.family_numbers {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 3px;
	margin: 2px auto;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 1px;
}

/* FORMATE FAMILY MEMBERS PICTURE */

.family-picture {

	width: 96px;
	height: 85px;
	margin: 3px auto;
}

.taken-img {
}

.taken-img img {
	opacity: 1;
}

.free-img img {
	opacity: 1;
	-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
	filter: grayscale(100%);
}

/* TEXTAREAS */ 

.family-fullname {
	box-sizing: border-box;
	width: 100px;
	margin: 0px auto;
	padding: 4px;
	text-align: center;
	letter-spacing: 1px;
	font-size: 8px;
	text-transform: uppercase;
	line-height: 1.1em;
}

.edit-fammember {
	box-sizing: border-box;
	width: 100px;
	margin: 0px auto;
	margin-bottom: 3px;
	padding: 3px;
}

.claim-fammember {
	padding: 3px;
	text-align: center;
	line-height: 1.1em;
	margin-top: 5px;
	letter-spacing: 1px;
	font-size: 10px;
}

/* FAMILY DESCRIPTION POPUP */
.family-pop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.75);
z-index: 3;
opacity:0;
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
transition: .5s ease-in-out;
pointer-events: none;
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
}

.family-pop:target {
	opacity:1; 
	pointer-events: auto;
}

.family-pop > .pop {
width: 30vw;
padding: 25px;
z-index: 4;
background: var(--box-body);
	box-shadow: 0 0 10px #000;
}

.family-pop > .pop > .description {
	max-height: 130px;
	overflow: auto;
	text-align: justify;
	margin-top: 5px;
}

.family-pop > .pop > .tcat {
	color: var(--headings-side);
	font-size: 16px;
}

.closepop {
	position: absolute; 
	right: -5px; 
	top:-5px; 
	width: 100%; 
	height: 100%; 
	z-index: 2;
}