@charset "utf-8";
/* Copyright Kevin Wolff */
/* CSS Document */

:root {
	--headerfont: 'IM Fell Great Primer', serif;
	--bodyfont: 'Lustria', serif;
}

* {
	box-sizing: border-box;	
}

html {
	font-size: 100%;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

body {
	background-color: #000;
	background-image: url(/assets/dark-leather.png);
	font-family: var(--bodyfont);
	font-size: 100%;
	color: #FFF;
	padding: 0;
	margin: 0;
}

h1 {
	color: #FFF;
	font-size: 225%;
	font-family: var(--headerfont);
	font-weight: normal;
	margin: 20px 0;
	text-shadow: 0 0 8px #000000db;
}

h2 {
	font-size: 170%;
	font-family: var(--headerfont);
	font-weight: normal;
	margin: 15px 0;
}

h3 {
	font-size: 150%;
	font-family: var(--headerfont);
	font-weight: normal;
	margin: 10px 0;
}

h4 {
	font-size: 120%;
	font-family: var(--headerfont);
	font-weight: normal;
}

@media (min-width: 768px) {
	body {
		font-size: 105%;
	}
	
  h1 {
	  font-size: 300%;
	}
	
	h2 {
		font-size: 190%;
	}
	
	h3 {
		font-size: 150%;
	}
	
	h4 {
		font-size: 130%;
	}
}

a:link {
	border-bottom: 0.11em dashed #333;
	color: #333;
	font-weight: bold;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
}

a:visited {
	color: #333;
}

a:hover, a:focus, a:active {
	border-bottom: 0.11em solid #333;
}

a.icon-link {
	display: inline !important;
	font-size: 20px;
	border: none;
	margin: 0 5px;
}

a.icon-link:hover {
	color: #666;
}

hr {
	display: block;
	height: 2px;
	border: 0;
	border-top: 2px dashed #E6E3DA;
	margin: 20px 0;
	padding: 0;
}

blockquote {
  display: inline-block;
	max-width: 700px;
  text-align: left;
  background: #00000085;
  border-left: 10px solid #a5b18e;
  margin: 4.5em 0;
  padding: 1.2em 30px;
  quotes: "\201C""\201D""\2018""\2019";
}

blockquote::before {
	color: #ccc;
	content: open-quote;
	font-size: 4em;
	line-height: 0.1em;
	margin-right: 0.1em;
	vertical-align: -0.4em;
}

blockquote p {
  display: inline;
}

blockquote span {
	display: block;
	margin-top: 20px;
	font-style: italic;
	font-size: larger;
	text-align: right;
}

input:focus, textarea:focus, select:focus {
	outline: none;
}

fieldset {
	display: inline-block;
	border: none;
	padding: 0px;
	margin: 0px;
}

fieldset input, fieldset textarea, fieldset select {
	width: 100%;
	max-width: 600px;
	border: solid 1px #999;
	box-shadow: inset 0 0 3px #CCC;
	font-family:: var(--bodyfont);
	font-size: 100%;
	margin: 10px 0;
	padding: 10px;
	background-image: url(/assets/paper.png);
}

fieldset select {
	font-family: var(--bodyfont);
	font-size: 100%;
	max-width: 15em;
}

.button {
	border: solid 1px #a5b18e !important;
	border-radius: 3px;
	font-size: 100%;
	font-family: var(--headerfont);
	font-weight: normal !important;
	padding: 5px 10px;
	text-decoration: none;
	letter-spacing: 1px;
	margin: 20px 0;
	color: #fff !important;
	position: relative;
	display: inline-block;
	width: auto;
	background-color: #9fa68f;
	background-image: none;
	box-shadow: 0px 5px 0px 0px #79806b;
	text-shadow: 0 -1px 0 #494f3b;
	cursor: pointer;
}

.button:hover {
	background-color: #a6ac99;
	border: solid 1px #a5b18e !important;
	padding: 5px 10px;
}

.button:active, .button:focus, .button.active {
  transform: translate(0px, 5px);
  -webkit-transform: translate(0px, 5px);
  box-shadow: 0px 1px 0px 0px #d2d9c4;
}

.inactive {
	color: #ececec !important;
	background-color: #939393;
	box-shadow: none;
	border: solid 1px #737373 !important;
}

.inactive:hover {
	background-color: #999999;
	border: solid 1px #737373 !important;
}

.note {
	position: fixed;
	z-index: 105;
	top: 0;
	left: 0;
	right: 0;
	background-color: rgb(121, 128, 107);
	color: #fff;
	text-align: center;
	padding: 10px 30px;
	font-family: var(--headerfont);
	font-size: 150%;
	box-shadow: 0px 0px 10px #000;
	-webkit-transform: translateY(-150px);
	-webkit-animation: slideDown 4s 0.5s 1 ease forwards;
	transform: translateY(-150px);
	animation: slideDown 4s 0.5s 1 ease forwards;
	background-image: url(/assets/green-paper.png);
	text-shadow: 0px 0px 3px #333;
}

@-webkit-keyframes slideDown {
	0%, 100% { -webkit-transform: translateY(-150px); }
	10%, 90% { -webkit-transform: translateY(0px); }
}

@keyframes slideDown {
	0%, 100% { transform: translateY(-150px); }
	10%, 90% { transform: translateY(0px); }
}

.modal {
	position: fixed;
	z-index: 99;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	padding: 15px;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.4);
	transition: all ease .5;
}

#popupModal {
	display: block;
}

#requestModal {
	display: none;
}

.modal-content {
	display: block;
	position: relative;
	padding: 30px;
	color: #333;
	border-top: solid 1px #fffcf5;
	border-bottom: solid 1px #868378;
	background-color: #F3F3F3;
	background-image: url(/assets/warm-paper.png);
	border-radius: 5px;
	box-shadow: 0px 5px 10px rgba(0,0,0,0.5);
	margin: 0 auto;
	max-width: 500px;
	text-align: left;
	z-index: 100;
}

@media (min-width: 1280px) {
	.modal {
		padding: 0;
	}
	
	.modal-content {
		top: 20%;
	}
}

.close {
    color: #AAA;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.center {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 0 30px 50px 30px;
	text-align: center;
}

.center h1 {
	display: inline-block;
	border-bottom: dashed 2px #e6e3da;
}

@media (min-width: 1280px) {
	.center {
		padding: 0 60px;
	}
}

.paper-block {
  text-align: left;
	padding: 30px;
	color: #333;
	border-top: solid 1px #fffcf5;
	border-bottom: solid 1px #868378;
	background-color: #E1DFD6;
	background-image: url(/assets/warm-paper.png);
	border-radius: 5px;
	box-shadow: 0px 5px 10px rgba(0,0,0,0.5);
}

.cmsmap {
	width: 100%;
	height: 560px;
}

.cmsmap img {
	max-width: auto;
}

/*-----------------------------LAYOUT CHUNKS-------------------------------*/

#page-container {
	display: grid;
	height: 100dvh;
	grid-template-areas: 'header'
											 'content'
											 'footer';
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 100%;
	grid-gap: 30px;
}

header {
	display: grid;
	grid-area: header;
	grid-template-areas: 'logo right';
	grid-template-columns: 167px 1fr;
	grid-template-rows: 100px;
	padding: 30px 30px 0 30px;
	grid-gap: 20px;
	background: rgb(0,0,0);
	background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.53) 50%, rgba(0,0,0,1) 100%);
	z-index: 5;
}

@media (min-width: 1280px) {
	header {
		padding: 30px 60px 0 60px;
		grid-template-areas: 'logo nav right'
												 'logo . .';
		grid-template-columns: 200px 1fr 150px;
		grid-template-rows: 1fr 1fr;
		grid-gap: 35px;
	}
}

#logo {
	grid-area: logo;
}

#logo a, #logo a:hover, #login-logo a, #login-logo a:hover {
	border: none;
}

#logo img {
	max-height: 100%;
}

@media (min-width: 1280px) {
	#logo img {
		max-width: 200px;
	}
}

#navicon {
	display: block;
	position: relative;
	top: 20px;
}

nav#mobile {
	display: none;
}

nav#desktop {
	display: none;
	grid-area: nav;
	padding: 10px;
	text-align: center;
}

nav#desktop ul {
	display: none;
	margin: 0;
	padding: 0;
	font-family: var(--bodyfont);
	color: #FFF;
	list-style: none;
}

nav#desktop li {
	display: inline-block;
	font-size: 17px;
	letter-spacing: 2px;
	margin: 0 15px;
}

#right-menu {
	grid-area: right;
	text-align: right;
	font-size: 17px;
	letter-spacing: 2px;
}

nav#desktop a, nav#desktop a:visited, #right-menu a, #right-menu a:visited {
	position: relative;
	color: #FFF;
	padding: 10px;
	font-weight: normal;
	border: none;
	transition: all .3s cubic-bezier(.2, 0, 0, 1);
  z-index: 1;
}

nav#desktop a:after, #right-menu a:after {
	content: '';
	display: block;
	height: 2px;
	position: absolute;
	bottom: 0;
	background-color: rgba(255,255,255,.25);
	transition: all .3s cubic-bezier(.2, 0, 0, 1);
	transform-origin: bottom center;
	z-index: -1;
}

nav#desktop a:hover, #right-menu a:hover {
	color: #FFF;
	border: none;
}

nav#desktop a:hover::after, #right-menu a:hover::after {
	right: 0;
	left: 0;
	height: 100%;
}

#desktop-account {
	display: none;
	font-size: 25px;
	padding: 5px 10px !important;
	vertical-align: middle;
}

#desktop-logout {
	display: none;
}

@media (min-width: 1280px) {
	#navicon {
		display: none;
	}
	
	nav#desktop {
		display: block;
		border-bottom: solid 1px rgba(255,255,255,.6);
	}
	
	nav#desktop ul {
		display: inline-block;
	}
	
	#desktop-account, #desktop-logout {
		display: inline-block;
	}
}

#navicon button {
	background-color: transparent;
	border: none;
	transition: all ease .3s;
}

#navicon button:hover {
	cursor: pointer;
	transform-origin: center center;
	-webkit-transform: rotate(90deg); /* Safari */
	transform: rotate(90deg);
}

#navicon img {
	width: 40px;
}

#sidebar {
	height: 100%;
	top: 0px;
	right: 0px;
	background-color: #a5ab95;
	background-image: url(/assets/green-paper.png);
	box-shadow: inset 6px 0 5px -5px #525549;
	position: fixed;
	z-index: 80;
	animation: animateleft 0.5s;
	overflow-y: auto;
	border-left: solid 1px #444;
}

#sidebar ul {
	padding: 0px;
	margin: 0px;
}

@media (min-width: 800px) {
	#sidebar {
		min-width: 50%;
	}
}

@keyframes animateleft {
	from{right: -300px; opacity: 0}
	to{right: 0; opacity: 1}
}

#mobile-account {
	display: inline-block !important;
	font-size: 23px !important;
	padding: 5px 10px !important;
	vertical-align: top;
	margin: 20px 0 0 30px;
	border: none !important;
	background-image: url(/assets/natural-white.png) !important;
	background-color: #ebe7e7;
}

#mobile-logout {
	display: inline-block !important;
	font-size: 100% !important;
	vertical-align: top;
	margin: 20px;
	border: none !important;
	background-image: url(/assets/natural-white.png) !important;
	background-color: #ebe7e7;
}

#closebtn {
	display: inline-block;
	margin: 20px;
	padding: 0;
	font-size: 40px;
	color: #FFF !important;
	border: none;
	line-height: 1em;
	background-color: transparent;
	text-shadow: 1px 1px 3px #484a40;
	transition: all ease .3s;
}

#closebtn:hover {
	box-shadow: none;
	transform: scale(.8,.8);
}

#closebtn img {
	width: 40px;
}

#mobile ul {
	list-style: none;
}

#mobile li {
	display: block;
	margin: 0 30px 15px 30px;
	cursor: pointer;
	transition: all ease .5s;
}

#mobile a {
	display: inline-block;
	color: #333;
	padding: 10px 20px;
	font-size: 125%;
	font-family: var(--bodyfont);
	letter-spacing: 1px;
	transition: all ease .5s;
	border-left: solid 4px #756964;
	border-bottom: none;
	background-image: url(/assets/warm-paper.png);
	box-shadow: 1px 1px 3px #484a40;
}

#mobile a:hover {
	border-bottom: none;
}

.navaccordion {
	position: relative;
	display: inline-block;
	top: -2px;
	left: -4px;
	height: 46px;
	border: none;
	font-size: 1.3em;
	vertical-align: middle;
	background-image: url(/assets/warm-paper.png);
	box-shadow: 2px 2px 3px -1px #484a40;
	cursor: pointer;
	transition: 0.4s;
}

.navaccordion::after {
	content: "\f152";
	font-family: "Font Awesome 5 Free";
	font-weight: 900 !important;
	color: #756964 !important;
}

.navactive::after {
	content: "\f150";
	font-family: "Font Awesome 5 Free";
	font-weight: 900 !important;
	color: #756964 !important;
}

.navpanel {
	position: relative;
	top: -2px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease-out;
	padding-left: 20px !important;
}

.navpanel li {
	margin-left: -20px !important;
	margin-bottom: 0 !important;
}

.navpanel a {
	display: block !important;
	font-size: 110% !important;
	box-shadow: inset 0 4px 2px -3px #484a40ab, 0 3px 3px #484a40 !important;
}

.navpanel a::after {
	content: "";
}

.overlay {
	position: fixed;
	display: none;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.5);
	z-index: 70;
	animation: opac 0.8s;
}

@keyframes opac {
	from{opacity:0} 
	to{opacity:1}
}

li.dropdown {
	display: inline-block;
	transition: all ease .5s;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #434343;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	margin-top: 10px;
	transition: all ease .5s;
	z-index: 10;
	overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:focus .dropdown-content {
    display: block;
}

.dropdown-content a {
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
}

.dropdown-wide a {
	display: block;
}

main {
	grid-area: content;
}

footer {
	grid-area: footer;
	color: #CCC;
	padding: 20px;
	text-align: center;
	border-top: solid 1px #555;
	background-color: rgba(0,0,0,.75);
	z-index: 5;
}

/*-----------------------------PAGE BLOCKS-------------------------------*/
/* ===== Login Landing ===== */
#login-logo {
	grid-area: header;
	padding-top: 30px;
	text-align: center;
	background: rgb(0,0,0);
	background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.53) 50%, rgba(0,0,0,1) 100%);
	z-index: 5;
}

#login-logo img {
	width: 200px;
}

#login {
	padding: 0 20px;
	color: #FFF;
	text-align: center;
	z-index: 5;
}

#forgot-password {
	color: #FFF;
	font-size: 16px;
	display: inline-block;
	padding: 7px 10px;
	border: none;
	border-radius: 3px;
	background-color: rgb(104, 104, 104);
	box-shadow: 0 2px 3px #00000082;
	font-weight: normal;
	vertical-align: middle;
	text-shadow: 0 -1px 0 #333;
}

#forgot-password:hover, #forgot-password:focus {
	border: none;
}

@media (min-width: 1280px) {
	#login-logo {
		padding-left: 50px;
		text-align: left;
	}
}

figure {
	margin: 0;
	padding: 0;
}

@keyframes 
	imageAnimation {  0% {
	 animation-timing-function: ease-in;
	 opacity: 0;
	}
	 8% {
	 animation-timing-function: ease-out;
	 opacity: 1;
	}
	 17% {
	 opacity: 1
	}
	 25% {
	 opacity: 0
	}
	 100% {
	 opacity: 0
	}
}

/* ===== Site Search ===== */
#search-section {
	display: flex;
  padding: 20px;
  background-image: url(/assets/maps-hero.jpg);
  background-position: top;
  background-size: cover;
  min-height: 800px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#one {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0.0s;
    animation: dot 1.3s infinite;
    animation-delay: 0.0s;
}

#two {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0.2s;
    animation: dot 1.3s infinite;
    animation-delay: 0.2s;
}

#three {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0.3s;
    animation: dot 1.3s infinite;
    animation-delay: 0.3s;
}

@-webkit-keyframes dot {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes dot {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#form1_search {
	display: grid;
	grid-template-areas: 'input button';
	grid-template-columns: 1fr auto;
	width: 100%;
	border: solid 1px #999;
	box-shadow: inset 0 0 2px #00000075;
	background-image: url(/assets/paper.png);
}

.searchfield {
	grid-area: input;
	height: 50px;
	padding: 5px 15px;
	font-size: 1.2em;
	font-family: var(--bodyfont);
	border: none;
	background: transparent;
	color: #333;
}

.searchbutton {
	grid-area: button;
	width: 50px !important;
	height: 50px !important;
	background-color: transparent;
	background-image: url(/assets/search.svg);
	background-repeat: no-repeat;
	background-position: center center;
	color: transparent;
	border: none;
	outline: none;
	margin: 0px;
	padding: 0px;
	border-radius: 0px;
	vertical-align: top;
	-webkit-appearance: none;
	cursor: pointer;
	transition: ease .3s;
}

@media (min-width: 768px) {
	#form1_search {
		width: 500px;
	}
	
	.searchfield {
		font-size: 1.4em;
	}
}

@media (min-width: 1280px) {
	#search-section {
		height: 1000px;
	}
	
	#form1_search {
		width: 600px;
	}
}

.searchbutton:hover, .searchbutton:focus {
	transform: rotate(15deg);
}

#result-count {
	margin: 30px auto;
	text-align: left;
	font-size: 130%;
	font-family: var(--bodyfont);
}

.search-result {
	color: #333;
	text-align: left;
	background-color: #e8e5dd;
  background-image: url(/assets/warm-paper.png);
	margin: 30px 0;
	padding: 15px 30px 10px 30px;
	text-shadow: 0 1px 0 #F9F7EC;
  box-shadow:
    /* The top layer shadow */
    0 -1px 1px rgba(0,0,0,0.25),
    /* The second layer */
    0 -10px 0 -5px #e5e2da,
    /* The second layer shadow */
    0 -10px 1px -4px rgba(0,0,0,0.25),
     /* The third layer */
    0 -20px 0 -10px #e5e2da,
    /* The third layer shadow */
    0 -20px 1px -9px rgba(0,0,0,0.25);
}

@media (min-width: 1280px) {
	#result-count {
		max-width: 80%;
	}
	
	.search-result {
		max-width: 80%;
		margin: 30px auto;
	}
}

.search-result a {
	position: relative;
	left: -30px;
	display: inline-block;
	color: #FFF;
	padding: 0 10px 0 20px;
	border: solid 1px #818a6b;
	text-shadow: 0 0 3px #333;
	margin-bottom: 20px;
	box-shadow: 2px 2px 5px -2px #95938c;
	background-color: #a5ab95;
	background-image: url(/assets/green-paper.png);
	background-attachment: local;
	transition: all ease-in-out .3s;
}

.search-result a:hover, .search-result a:focus {
	padding-left: 40px;
	box-shadow: 5px 2px 5px -2px #95938c;
}

.search-result h2 {
	font-size: 170%;
	margin: 0;
	transition: all ease-in-out .3s;
}

.excerpt::before {
	color: #b5afaa;
	content: open-quote;
	font-size: 4em;
	line-height: 0.1em;
	margin-right: 0.1em;
	vertical-align: -0.4em;
}

.keyword {
	background-color: #c6c3bd;
	text-shadow: none;
	padding: 0 2px;
	text-align: center;
	font-style: normal;
}

.paging {
	display: grid;
	grid-gap: 20px;
	grid-template-areas: 'prev count next';
	grid-template-columns: auto 1fr auto;
	margin: 30px;
	padding: 10px 10px 13px 10px;	
	color: #FFF;
	background-color: #ffffff25;
	box-shadow: inset 0 1px 2px #000;
	letter-spacing: 1px;
	text-align: center;
}

@media (min-width: 768px) {
	.paging {
		grid-template-columns: 115px 1fr 115px;
	}
}

/* ===== Home Introduction ===== */
#intro-section {
	display: grid;
	grid-template-areas: 'header' 
											 'body';
	width: 100%;
	padding: 50px 10%;
	color: #333;
	background-color: #a5ab95;
	background-image: url(/assets/green-paper.png);
	background-repeat: repeat;
	box-shadow: inset 0 15px 10px -15px #363a2d, inset 0 -15px 10px -15px #363a2d;
}

#intro-left {
	grid-area: header;
	text-align: center;
}

#intro-right {
	grid-area: body;
	border-left: 0;
	padding-left: 0;
}

.paper-section {
	display: block;
	width: 100%;
	padding: 50px 5%;
	color: #333;
	background-color: #a5ab95;
	background-image: url(/assets/green-paper.png);
	background-repeat: repeat;
	box-shadow: inset 0 15px 10px -15px #333, inset 0 -15px 10px -15px #333;
}

/* ===== Coats of Arms ===== */
.leather-section {	
	display: block;
	color: #FFF;
	width: 100%;
	text-align: center;
	padding: 30px 5%;
	background-image: url(/assets/dark-leather.png);
}

#slide-text {
	color: #ccc;
	letter-spacing: 3px;
	margin: 5px 0;
	display: block;
	font-size: 1.2em;
}

#crest-blocks {
	overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
	box-shadow: inset 0 0 4px #000;
	background-color: #333;
	border: solid 1px #333;
}

@media (min-width: 1280px) {
	
	#intro-section {
		grid-template-areas: 'header body';
		grid-gap: 70px;
		grid-template-columns: .25fr .75fr;	
		padding: 100px 10%;
	}
	
	#intro-left {
		display: flex;
		align-items: center;
	}
	
	#intro-right {
		border-left: solid 4px #6B6F63;
		padding-left: 30px;
	}
	
	.paper-section {	
		padding: 100px 10%;
	}
	
	.leather-section {
		padding: 50px 10%;
	}
	
	#slide-text {
		display: none;
	}
}

/* ===== Account Page ===== */
#account-panel {
	display: grid;
	grid-template-areas: '. info .' 
											 '. password .';
	grid-template-columns: 1fr auto 1fr;
	grid-row-gap: 50px;
	padding-bottom: 50px;
	margin: 0 20px;
}

#account-info {
	grid-area: info;
}

#account-password {
	grid-area: password;
}

@media (min-width: 1280px) {
	#account-panel {
		grid-template-areas: '. info password .';
		grid-template-columns: 1fr auto auto 1fr;
		grid-gap: 100px;
	}
}

/* ===== Family Member Profiles ===== */
#family-profile {
	display: grid;
	grid-gap: 30px;
	margin: 0 30px 50px 30px;
	grid-template-areas: 'name'
											 'photo'
											 'info'
											 'content';
}

#family-name {
	grid-area: name;
	text-align: center;
	margin: 0 auto;
	display: inline-block;
	border-bottom: dashed 2px #e6e3da;
}

#family-headshot {
	grid-area: photo;
	max-width: 450px;
	margin: 0 auto;
	padding: 20px 13px 60px 13px;
	background-image: url(/assets/paper.png);
	background-color: #fefefe;
	box-shadow: 0 0 20px #000;
	border-top: solid 1px #FFF;
	border-bottom: solid 1px #777;
	transform: rotate(3deg);
}

#family-headshot img {
	width: 500px;
	max-width: 100%;
	border: solid 1px #777;
}

#family-info {
	grid-area: info;
	color: #333;
  background-image: url(/assets/warm-paper.png);
	padding: 10px 20px 20px 20px;
	text-shadow: 0 1px 0 #F9F7EC;
	border-top: solid 1px #fffcf5;
	border-bottom: solid 1px #868378;
  box-shadow:
		/* The top layer shadow */
		2px 2px 1px rgba(0,0,0,0.25),
		/* The second layer */
		15px 10px 0 -5px #e5e2da,
		/* The second layer shadow */
		5px -6px 1px -4px rgba(0,0,0,0.25),
		/* The third layer */
		3px -25px 0 -10px #e5e2da,
		/* The third layer shadow */
		5px 2px 1px -9px rgba(0,0,0,0.25);
}

#family-info .cmsmap {
	height: 200px;
	margin-top: 20px;
	border: solid 1px #333;
}

.people-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.people-list li {
	display: table;
	border: solid 1px #999;
	padding: 5px 8px 5px 5px;
	margin: 10px;
	background-image: url(/assets/paper.png);
	box-shadow: 1px 1px 2px #a8a2928f;
}

.people-list a {
	display: grid;
	grid-template-columns: 50px 1fr;
	grid-gap: 10px;
	height: 100%;
	width: 100%;
	border: none;
	color: #333;
	font-weight: bold;
	text-align: left;
}

.people-list a:hover {
	border: none;
}

.people-list span {
	margin-top: 5px;
}

.people-list small {
	color: #555;
	display: block;
}

.marriage-license {
	position: relative;
	float: right;
	margin-top: -26px !important;
}

.marriage-license .icon-link {
	margin: 0 2px;
}

.marriage-license i {
	font-size: 17px;
}

#family-content {
	grid-area: content;
}

.tabs .button {
	font-size: 20px;
	text-align: center;
	margin-right: 5px;
	width: 42px;
}

@media (max-width: 959px) {
	.tabs .button span {
		display: none;
	}
}

@media (min-width: 768px) {
	.tabs .button {
		font-size: 125%;
		margin-right: 10px;
	}	
}

@media (min-width: 960px) {
	.tabs .button {
		width: auto;
	}	
}

.tabcontent {
	color: #333;
	min-height: 75%;
  background-image: url(/assets/warm-paper.png);
	padding: 10px 20px 20px 20px;
	text-shadow: 0 1px 0 #F9F7EC;
	border-top: solid 1px #fffcf5;
	border-bottom: solid 1px #868378;
  box-shadow:
		/* The top layer shadow */
		0px 0px 1px 1px rgba(0,0,0,0.25),
		/* The second layer */
		-15px 15px 0 -5px #e5e2da,
		/* The second layer shadow */
		-22px 9px 1px 4px rgba(0,0,0,0.25),
		/* The third layer */
		18px -2px 0 -9px #e5e2da,
		/* The third layer shadow */
		5px 2px 1px -9px rgba(0,0,0,0.25);
}

#back-button {
	display: block; 
	text-align: center;
}

.gallery-list {
	margin: 0;
	padding: 0;
	text-align: center;
}

.gallery-list li, .hobby-picture {
	display: inline-block;
	list-style: none;
	margin: 5px;
	max-width: 112px;
	box-shadow: 0 1px 2px #333;
	transition: all ease .5s;
	vertical-align: top;
}

.gallery-list li:hover, .gallery-list li:focus, .hobby-picture:hover, .hobby-picture:focus {
	box-shadow: 0 1px 5px #333;
	transform: scale(1.1,1.1);
}

.thumbnail {
	display: block;
	padding: 5px 5px 10px 5px;
	border: solid 1px #CCC !important;
	background-color: #FFF;
	background-image: url(/assets/paper.png);
}

.thumbnail:hover, .thumbnail:focus {
	border: none !important;
}

.thumbnail img {
	width: 100px;
	height: 100px;
	border: solid 1px #777;
}

.caption {
	padding: 5px;
}

.caption span {
  display: block;
  font-size: .8rem;
	letter-spacing: 1px;
	text-align: center;
}

#album-desc {
	display: block;
	width: 80%;
	margin: 30px auto;
}

.story {
	background-color: #99969017;
	border-left: solid 5px #6f7366;
	padding: 5px 20px;
	box-shadow: inset 0 0 5px #ccc9c0;
	margin: 20px 0;
}

.button-list {
	list-style: none;
	padding: 0;
}

.button-list li, .hobby-button {
	display: inline-block;
	margin: 10px;
}

.button-list a, .hobby-button a {
	padding: 5px;
	background-color: #c2c0bc;
	border-radius: 4px;
	border: none;
	box-shadow: 0 2px 0 #868378;
	transition: ease .5s;
}

.button-list a:hover, .button-list a:focus, .hobby-button a:hover, .hobby-button a:focus {
	color: #333;
	box-shadow: 0 1px 0 #868378;
}

.hobby-accordion {
  background-color: #eee;
  color: #444;
	font-size: 1.2em;
	font-weight: 600;
	font-family: var(--bodyfont);
  cursor: pointer;
  padding: 15px;
  width: 100%;
  text-align: left;
  border: solid 1px #999;
	background-image: url(/assets/paper.png);
	box-shadow: 1px 1px 2px #a8a2928f;
  outline: none;
  transition: 0.4s;
}

.hobby-accordion:after {
  content: '\f07b';
	font-family: "Font Awesome 5 Free";
  float: right;
  margin-left: 5px;
}

.hobby-active, .hobby-accordion:hover {
  box-shadow: 1px 1px 3px #a8a2928f;
}

.hobby-active:after {
  content: '\f07c';
	font-family: "Font Awesome 5 Free";
}

.hobby-panel {
  max-height: 0;
	padding: 0 20px;
  overflow: hidden;
	background-color: #99969017;
	box-shadow: inset 0 0 5px #ccc9c0;
  transition: max-height 0.2s ease-out;
}

#hobby-list {
	text-align: center;
	padding: 0 30px;
}

#document-archive {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.doc-block {
	display: flex;
  flex-direction: column;
	gap: .5rem;
	background-color: #eee;
	text-align: center;
	border: solid 1px #999;
	background-image: url(/assets/paper.png);
	box-shadow: 1px 1px 2px #a8a2928f;
	outline: none;
	width: 120px;
	min-height: 120px;
	align-items: center;
	justify-content: center;
	font-size: .9rem;
	font-weight: 600;
	margin: 1rem;
	line-height: 1rem;
}

.doc-block i {
  font-size: 2.5rem;
}

.folder, .file {
  display: flex;
  flex-direction: column;
	gap: .5rem;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-decoration: none;
  border: none !important;
  cursor: pointer;
}

.folder-list {
  list-style: none;
  padding-left: 1rem;
  margin: 2rem 0 0 0;
  max-height: 600px;
  overflow: scroll;
}

.folder-list a {
  display: inline-block;
  font-size: .9rem;
  margin: .5rem 0;
  padding: .5rem;
  border: solid 1px #999;
	background-image: url(/assets/paper.png);
	box-shadow: 1px 1px 2px #a8a2928f;
	outline: none;
}

.folder-list i {
  font-size: 1.2rem;
  margin-right: .5rem;
}

@media (min-width: 768px) {
	.tabcontent {
		padding: 10px 30px 30px 30px;
	}
	
	#hobby-list {
		text-align: left;
	}
	
	.gallery-list li, .hobby-picture {
		max-width: 182px;
		margin: 10px;
	}
	
	.thumbnail {
		padding: 10px 10px 20px 10px;
	}

	.thumbnail img {
		width: 160px;
		height: 160px;
	}
	
	.caption {
		padding: 10px 10px 5px 10px;
	}
}

@media (min-width: 1280px) {
	#family-profile {
		grid-gap: 50px;
		margin: 0 5% 50px 5%;
		grid-template-areas: 'name name'
												 'photo content'
												 'info content'
												 '. content';
		grid-template-columns: 1fr 3fr;
	}
	
	#back-button {
		text-align: left;
	}
	
	.gallery-list {
		text-align: left;
	}
}

.nothing {
	display: block;
	margin: 50px auto;
	text-align: center;
}

.nothing img {
	display: inline-block;
	max-width: 100%;
	max-height: 500px;
	margin: 25px auto;
	opacity: 25%;
}

/* ===== Family Tree ===== */
.tree {
	display: flex;
  flex-direction: column;
  align-items: center;
	white-space: nowrap;
	min-width: 2500px;
	overflow: scroll;
}

.tree ul {
	position: relative;
	padding-top: 20px;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.tree li {
	float: left;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	z-index: 1;
}

/*Draw the connectors*/
.tree li::before, .tree li::after {
	content: '';
	position: absolute; 
	top: 0; 
	right: 50%;
	border-top: solid 2px #FFF;
	width: 50%; 
	height: 20px;
	z-index: -1;
}

.tree li::after {
	right: auto; 
	left: 50%;
	border-left: solid 2px #FFF;
}

/*Remove left and right connectors from elements without any siblings*/
.tree li:only-child::after, .tree li:only-child::before {
	display: none;
}

/*Remove space from the top of single children*/
.tree li:only-child { 
	padding-top: 0;
}

/*Remove left connector from first child and right connector from last child*/
.tree li:first-child::before, .tree li:last-child::after {
	border: 0 none;
}

/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before {
	border-right: 1px solid #FFF;
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
	border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0;
}

/*Add connectors from parents*/
.tree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	border-left: solid 2px #FFF;
	width: 0;
	height: 20px;
	z-index: -1;
}

.tree li div {
	display: inline-block;
	min-width: 80px;
	min-height: 30px;
	color: #333;
	font-weight: bold;
	text-align: left;
	border: solid 2px #FFF;
	padding: 5px;
	background-image: url(/assets/paper.png);
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.tree li div+div {
	margin-left: 20px;
	position: relative;
}

.tree li div+div::before {
	content: '';
	position: absolute;
	border-top: solid 2px #FFF;
	top: 50%; 
	left: -31px; 
	width: 30px;
}

.tree li div .spacer {
	display: inline-block;
	width: 10px;
}

/*Apply hover effects*/
.tree li div:hover, .tree li div:hover + ul li div {
	border: solid 2px #72912B;
}

/*Connector styles on hover*/
.tree li div:hover + ul li::after,
.tree li div:hover + ul li::before,
.tree li div:hover + ul::before,
.tree li div:hover + ul ul::before {
	border-color: #72912B;
}

.tree li a {
	display: inline-block;
	margin-bottom: 5px;
}

.tree li div small {
	color: #555;
}

.tree-leaf {
	float: right;
	border: none !important;
	color: #778c3c !important;
	margin: 0 5px;
}

/* ===== Family History ===== */
#no-families {
	opacity: 20%;
	margin-top: 50px;
	max-width: 100%;
}

#family-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#family-list li {
	display: inline-block;
	color: #333;
	width: 320px;
	height: 500px;
	padding: 15px;
	margin: 20px;
	vertical-align: top;
	border: solid 1px #f5ead8;
	background-image: url(/assets/warm-paper.png);
	box-shadow: 0 3px 10px #000;
	transition: 0.2s;
}

#family-list li:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow: 0 5px 20px #000;
	border-bottom: 0;
}

#family-list div {
	display: block;
	height: 100%;
	border: dashed 2px #aca7a3;
}

#family-list img {
	width: 250px;
	max-width: 100%;
	margin-top: 20px;
}

#history-container {
	padding: 30px;
	margin: 100px auto 50px auto;
	color: #333;
	background-color: #a5ab95;
	background-image: url(/assets/green-paper.png);
	background-repeat: repeat;
}

#family-crest {
	display: block;
	margin: -170px auto 30px auto;
	width: 225px;
	padding: 20px;
	background-color: #FFF;
	box-shadow: 0 8px 15px #474b3eb5;
}

nav#history-tabs {
	position: fixed;
	width: 50px;
	margin-top: 55px;
	padding-bottom: 10px;
	border-top: solid 1px #fffcf5;
	border-bottom: solid 1px #868378;
	background-color: #E1DFD6;
	background-image: url(/assets/warm-paper.png);
	border-radius: 0 5px 5px 0;
	box-shadow: 0px 5px 10px rgba(0,0,0,0.5);
	z-index: 1;
}

#history-tabs button, #history-tabs a {
	margin: 5px 0;
}

#history-content, #history-map, #history-chart, #history-photos {
	text-align: left;
}

.embed-container { 
	position: relative; 
	padding-bottom: 56.25%; 
	height: 0; 
	overflow: hidden; 
	max-width: 100%; 
} 

.embed-container iframe, .embed-container object, .embed-container embed { 
	position: absolute; 
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 100%; 
}

@media (min-width: 960px) {
	#history-container {
		width: 90%;
		padding: 30px 50px;
	}
	
	nav#history-tabs {
		width: 65px;
		padding-right: 10px;
	}
	
	#history-tabs button, #history-tabs a {
		width: 100%;
		font-size: 2em;
	}
	
	#history-tabs span {
		display: none;
	}
}

@media (min-width: 1280px) {
	#family-list li {
		width: 400px;
	}
	
	nav#history-tabs {
		width: 160px;
	}
	
	#history-tabs button, #history-tabs a {
		font-size: 125%;
		text-align: left;
		margin: 20px 0;
	}
	
	#history-tabs span {
		display: inline-block;
		margin-left: 5px;
	}
}

/* ===== Family Recipes ===== */
#no-recipes {
	opacity: 20%;
	margin-top: 50px;
	max-width: 100%;
}

#recipe-list {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	margin-top: 30px;
}

#recipe-list li {
	display: inline-block;
	max-width: 322px;
	margin: 20px;
	text-align: left;
	vertical-align: top;
	padding: 10px 10px 0 10px;
	border: solid 1px #cbd0bb;
	background-color: #a5ab95;
	background-image: url(/assets/green-paper.png);
	box-shadow: 0 3px 10px #000;
	transition: 0.2s;
}

#recipe-list li:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow: 0 5px 20px #000;
}

#recipe-list a {
	border: none;
}

.recipe-thumb {
	max-width: 100%;
	margin-bottom: 10px;
	border: solid 3px #FFF;
	box-shadow: 0 3px 3px #5e6252;
}

.recipe-list-author {
	color: #46483d;
	display: block;
	font-style: italic;
	font-variant: small-caps;
	text-transform: lowercase;
	border-bottom: dashed 1px #cdd3bd;
}

.recipe-list-title {
	margin: 3px 0 0 0;
}

#recipe-container {
	max-width: 800px;
	text-align: left;
	margin: 0 auto;
	padding-bottom: 50px;
}

.recipe-img {
	max-width: 100%;
	border: solid 5px #FFF;
	box-shadow: 0 5px 15px #3c3c3c;
}

.info-container {
	display: grid;
	grid-template-areas: 'category stats' 'author stats';
	grid-template-columns: 1fr auto;
	grid-gap: 5px 30px;
	padding: 20px;
	margin-top: -5px;
	margin-bottom: 50px;
	background-color: #4d4947;
	text-shadow: 0 2px 0 #333;
	border: solid 1px #625e5c;
}

.recipe-category {
	grid-area: category;
	font-variant: small-caps;
	font-size: 130%;
	letter-spacing: 2px;
	margin: 0;
}

.recipe-stats {
	grid-area: stats;
	display: grid;
	grid-template-areas: 'time' 
											 'servings';
	border: solid 1px #ccc;
	font-variant: small-caps;
}

.recipe-stats .fas {
	color: #9ba585;
	margin-right: 5px;
}

#recipe-time {
	grid-area: time;
	padding: 2px 10px;
	border-bottom: solid 1px #FFF;
}

#recipe-servings {
	grid-area: servings;
	padding: 2px 10px;
}

@media (min-width: 768px) {
	.info-container {
		grid-template-areas: 'category stats' 'author author';
	}
	
	.recipe-stats {
		grid-template-areas: 'time servings';
	}
	
	.recipe-stats span {
		padding: 0 10px;
	}

	#recipe-time {
		padding: 2px 10px;
		border-right: solid 1px #FFF;
		border-bottom: none;
	}
	
	#recipe-servings {
		padding: 2px 10px;
	}
}

.recipe-author, .recipe-author a {
	grid-area: author;
	color: #FFF;
	font-style: italic;
	font-variant: small-caps;
	text-transform: lowercase;
	font-weight: normal;
}

#recipe-container .paper-block {
	margin: 25px 0;
}

#recipe-container ul {
	list-style: none;
	padding-left: 35px;
}

#recipe-container ul li {
	text-transform: capitalize;
}

#recipe-container ul li::before {
	content: "✓";
	font-weight: 900;
	font-size: 145%;
	color: #5d6a4a;
	margin: 0 17px 0 -35px;
}

#recipe-container ol {
	list-style: none;
	padding-left: 25px;
  counter-reset: instructions;
}

#recipe-container ol li {
	counter-increment: instructions;
}

#recipe-container ol li::before {
	position: absolute;
	margin: 4px 0 0 -25px;
	content: counter(instructions) ". ";
	color: #5d6a4a;
	font-size: 160%;
	font-weight: bold;
}

#recipe-container ol li p {
	margin-left: 10px;
}

#recipe-container h2 {
	margin-top: 0;
	margin-bottom: 25px;
}

#recipe-container h4 {
	display: inline-block;
	margin: 10px;
	text-transform: capitalize;
}

#recipe-container p {
	margin-left: 35px;
}