/*** GLOBAL STYLES ***/

body {
	background-image: url( "../img/Tree.jpg" );
	/*background-image: url( "/img/Tree.jpg" );*/
	min-height: 700px;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 100%;
	margin: 0px;
	font-size: 0.8em;
}

pre {
	font-size: 8pt;
	padding: 10px;
	margin: 10px 0px 10px 0px;
}

article ul {
	font-size: 12pt;
}


.bg-wrapper {
	/*background-color: rgba( 255, 255, 255, 0.95 );*/
	background-image: linear-gradient( rgba( 255, 255, 255, 0.9 ), rgba( 245, 245, 220, 0.99 ) );
	display: flex;
	flex-flow: column;
	height: 100%;
}

a:link, a:hover {
	color: #66AA66;
}

a:active {
	color: #FF0000;
	background: transparent;
}

a:visited {
	color: #990099;
}

li a:hover {
	color: #F5F5DC;
	background-color: #225522;
}

.login-error {
	color: red;
	background-color: #FFEEEE;
	padding: 10px;
	margin: 10px 0px 10px 0px;
}

.clear:after {
	content: "";
	display: block;
	clear: both;
}

header {
	background-image: linear-gradient( rgba( 255, 255, 255, 1 ), rgba( 255, 255, 255, 0.75 ) );
	z-index: 0;
	min-height: 175px;
	width: 100%;
	margin-left: 0px;
	border-bottom: 1px solid #EEEEEE;
}

.header-content {
	flex: 0 1 auto;
	padding: 0px 0px 10px 0px;
	height: 150px;
}

.header-poem {
	float: left;
	text-align: center;
	font-family: "Bradley Hand ITC", cursive;
	font-style: italic;
	font-weight: bold;
	font-size: 24pt;
	margin-left: 20px;
}

header nav {
	float: right;
	margin-right: 20px;
}

.header-login {
	height: 100px;
}

main {
	flex: 1 1 700px;
}

footer {
	/*
	border-top: 1px solid #111111;
	background-color: #543a26;
	color: white;
	*/
	border-top: 1px solid #225522;
	margin: 20px 0px 0px 0px;
}

.footer-content {
	padding: 10px 0px 0px 0px;
	flex: 1 1 100px;
}

.footer-img {
	
}

.footer-img img {
	float: left;
	border-radius: 15px;
	height: 75px;
}

.footer-copy {
	float: left;
	margin: 20px 0px 0px 25px;
	height: 75px;
}

.footer-login {
	height: 200px;
}

/*** GALLERY STYLES ***/

.ng-gallery-annotation {
	display: block;
	position: fixed;
	padding: 10px;
	bottom: 1%;
	left: 25%;
	z-index: 99999;
	width: 50%;
	min-height: 75px;
	font-size: 10pt;
	text-align: left;
	color: white;
	background-color: rgba( 25, 25, 25, 0.75 );
}

.nGY2Icon-ngy2_toggleAnnotation:before { content: '\e81e'; } /* '?' */

/*** FAMILY STYLES ***/

.person-breadcrumb {
	font-size: 10pt;
	margin: 0px 0px 15px 0px;
}

.person {
	display: flex;
	flex-wrap: wrap;
	font-size: 11pt;
	margin-bottom: 25px;
}

.person-left {
	display: grid;
	grid-template-rows: auto auto;
	width: 400px;
}

.person-right {
	display: grid;
	grid-template-columns: 150px 1fr;
	grid-auto-rows: minmax( min-content, max-content );
	width: 600px;
	/*
	grid-template-rows: 40% 15% 15% 15% 15%;
	height: 500px;
	flex-grow: 1;
	*/
}

.person-title {
	font-weight: bold;
	margin-bottom: 10px;
	/*min-height: 175px;*/
}

.person-grid-item {
	margin-bottom: 10px;
	text-wrap: pretty;
	/*min-height: 175px;*/
}

.person-ancestry {
	
}

.person-alts {
	width: 300px;
	margin-bottom: 20px;
}

.person-alts a {
	border: 1px solid #777;
}

.person-nav-title {
	font-size: 16pt;
	font-weight: bold;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #AAA;
}

.person-nav-text {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #AAA;
}

.person-nav {
	text-align: center;
	width: 100%;
}

.person-nav-btn {
	font-size: 10pt;
}

.person-nav-family-title {
	font-size: 14pt;
	font-weight: bold;
	margin: 0px 0px 10px 0px;
}

/*** PAGE SPECIFIC STYLES ***/

/* william brewster */
.wb-intro {
	display: flex;
	margin-bottom: 20px;
}

.wb-portrait {
	display: grid;
	text-align: center;
	flex-shrink: 0;
	margin-right: 15px;
}

.wb-intro-text {
	display: grid;
	flex-grow: 1;
}

/* anne green service */
.ags-opening-notes {
	font-weight: bold;
	margin-bottom: 20px;
}

.ags-title {
	text-align: center;
}

.ags-intro {
	display: flex;
	margin-bottom: 20px;
}

.ags-portrait {
	display: grid;
	text-align: center;
	flex-shrink: 0;
	margin-right: 15px;
}

.ags-intro-text {
	display: grid;
	flex-grow: 1;
}

/* harriet smith family tree */
.ft-block {
	display: flex;
}

.ft-portrait {
	display: grid;
	flex-shrink: 0;
	margin-right: 15px;
}

.ft-text {
	display: grid;
	flex-grow: 1;
}

/* tyrol */
.tyrol-table {
	font-family: courier !important;
	font-size: 11pt !important;
}

/*** NANO OVERRIDES ***/
.nGY2GThumbnail, .nGY2GThumbnail_l1, .nGY2TnImgBack {
	text-align: center !important;
	border: 0px solid #FFF !important;
	background: #FFF !important;
}

/*** MEDIA SPECIFIC OVERRIDES ***/
@media ( max-width: 1200px ) {
	.person-right {
		grid-template-columns: 100px auto;
		height: 600px;
		width: 400px;
	}
}

@media ( max-width: 1000px ) {
	header {
		min-height: 225px;
	}
	
	.header-poem {
		padding: 10px;
		margin: 0px;
		float: none;
	}
	
	header nav  {
		float: none;
		padding: 0px;
		margin: 0px;
		justify-content: space-evenly;
	}
	
	.ng-gallery-annotation {
		bottom: 1%;
		left: 5%;
		width: 90%;
	}
	
	.ft-portrait {
		width: 100%;
		margin: 0px 0px 20px 0px;
	}
	
	.ft-block, .wb-intro, .ags-intro {
		flex-wrap: wrap;
	}
	
	.wb-portrait, .ags-portrait {
		margin: 0px auto 20px auto;
	}
	
	.person-right {
		width: 100%;
	}
}

@media ( max-width: 600px ) {
	header {
		min-height: 175px;
	}
	
	.header-poem {
		font-size: 16pt;
	}
}

@media ( max-height: 750px ) {
	body {
		min-height: 425px;
	}
	
	main {
		flex: 1 1 425px;
	}
}

@media ( min-height: 1080px ) {
	body {
		min-height: 900px;
	}
	
	main {
		flex: 1 1 900px;
	}
}

@media ( min-height: 1200px ) {
	body {
		min-height: 1050px;
	}
	
	main {
		flex: 1 1 1050px;
	}
}