@-webkit-keyframes overlay_fade {
  from {opacity: 1;}
  to {opacity: 0;}
}

*{
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
	color: inherit;
}

body{
	overflow-y: scroll;
	overflow-x: hidden;
	background: #231f20;
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
}

a{
	transition: color 120ms;
	color: #DDD;
	font-weight: 400;
}

.central{
	max-width: 1024px;
	margin: 0px auto;
	width: 100%;
	height: 100%;
}

.central.narrow{
	max-width: 600px;
	padding: 0px 30px;
}

.central img{
	max-width: 100%;
}


#background{
	position: fixed;
	top: 0px; left: 0px; right: 0px; bottom: 0px;
	overflow: hidden;
	z-index: -1;
	
	background: url('images/background.jpg');
	background-size: auto 100vh;
	background-position: top center;
	background-repeat: no-repeat;
}

#title{
	position: relative;
	height: 60px;
	background-image: url('images/burger.png');
	background-size: auto 100%;
	background-position: right center;
	background-repeat: no-repeat;
}

#nav{	
	position: fixed;
	top: 0px; left: 0px; right: 0px;
	z-index: 10;
	background-color: white;
	background-image: url('images/background.jpg');
	background-size: auto 100vh;
	background-position: top center;
	background-repeat: no-repeat;
	box-shadow: 0px 0px 2px rgba(0,0,0,0.3), 0px 0px 8px rgba(0,0,0,0.3);
}

#menu{
	position: absolute;
	top: 100%; left: 0px; right: 0px;
	height: 0px;
	font-family: 'Lexend Exa', sans-serif;
	background: rgba(200,200,200,0.95);
	height: 0px;
	transition: all 200ms ease 300ms;
	overflow: hidden;
}

#logo:focus ~ #menu{
	transition-delay: 0ms;
	height: 100vh;
}

#menu > div:last-child{
	display: block;
	position: relative;
	font-size: 13pt;
	text-align: left;
	
	padding: 12px;
	font-family: 'Lexend Exa', sans-serif;
	border-top: 2px solid rgba(255,255,255,0.5);
}

#menu > div:last-child a{
	color: black;
	display: block;
	text-decoration: none;
	vertical-align: middle;
	line-height: 24pt;
}

#menu > div:last-child a i{
	display: none;
}

#menu > div:last-child a:hover{color: #777;}
#menu > div:last-child a:hover i:before{font-size: 18pt; width: 30px; margin-right: 0px;}
#menu > div:last-child a:nth-child(1):hover i:before{color: tomato;}
#menu > div:last-child a:nth-child(2):hover i:before{color: blue;}

#logo{
	display: inline-block;
	text-align: left;
	position: absolute;
	left: 0px;	bottom: 0px; top: 0px;
	padding: 12px;
	height: 100%;
	width: 100%;
	outline: none;
	border: none;
	background: none;
	background-image: url('images/logo.png');
	background-position: 5px center;
	background-repeat: no-repeat;
	background-size: auto 80%;
}

	.nav_item{
		display: block;
		padding: 0px 16px;
		color: black;
		line-height: 50px;
		font-size: 14pt;
		text-decoration: none;
		transition: all 240ms ease 30ms;
	}
	
	.nav_item:target{
		background: #9d9c99;
		font-weight: bold;
		color: #e2e7e9;
	}	
	
	.nav_item:hover{
		transition-duration: 70ms;
		color: #e2e7e9;
		background: #807f7c;
	}



.central:after{
	position: relative;
	content: " ";
	clear: both;
	display: table;
}

#contact{
	position: fixed;
	bottom: 20px;
	right: 20px;
	border-radius: 0px 50% 0px 50%;
	box-shadow: 0px 1px 4px rgba(35,31,32,0.4), 0px 1px 14px rgba(35,31,32,0.2);
	background: #357;
	width: 60px;
	height: 60px;
	overflow: hidden;
	cursor: pointer;
	transition: width 230ms cubic-bezier(.6,.1,.4,.9) 120ms, height 250ms cubic-bezier(.6,.1,.4,.9), border-radius 160ms linear 220ms;
	z-index: 2;
}

#contact[active="true"]{
	width: 333px;
	height: 530px;
	max-width: calc(100% - 40px);
	max-height: calc(100% - 116px);
	border-radius: 2pt;
	cursor: default;
	transition: width 230ms cubic-bezier(.6,.1,.4,.9), height 250ms cubic-bezier(.6,.1,.4,.9) 120ms, border-radius 160ms linear;
	vertical-align: top;
}
#contact > h1{
	font-size: 20px;
	cursor: pointer;
	line-height: 60px;
	color: white;
}

#contact[active="true"] > h1{
	line-height: 40px;
}

#contact > h1 > i{
	text-align: center;
	transition: all 240ms;
	display: inline-block;
	line-height: inherit;
	min-width: 60px;
	font-size: 24px;
	vertical-align: top;
}

#contact[active="true"] > h1 > i{	
	min-width: 40px;
	font-size: 20px;
}

#contact_form{
	width: 100%;
	height: calc(100% - 40px);
	background: white;
	padding: 12pt;
}


	#contact p{
		margin-bottom: 10px;
	}
	
	.contact_column{
		display: inline-block;
		position: relative;
		height: 100%;
		width: 50%;
		overflow: hidden;
	}
	.contact_column:first-child{float: left;}
	.contact_column:last-child{float: right; padding: 12pt;}

	#google_maps{
		display:block;
		position: relative;
		width: 100%;	
		height: 100%;	
		line-height: 400px;
		background: url('images/map.jpg');
		background-position: center;
		background-size: cover;
		font-size: 16pt;
		color: white;
		padding: 24pt;
		text-decoration: none;
		text-shadow: 0px 2px 3px black, 0px 1px 7px rgba(0,0,0,0.2);
		text-align: center;
	}
	
#footer{
	position: fixed;
	bottom: 0px; left: 0px; right: 0px;
	min-height: 160px;
	z-index: 1;
	text-align: center;
	line-height: 140%;
	font-size: 10pt;
}	
	
	#footer a{
		text-decoration: none;
		cursor: pointer;
		transition: all 240ms ease 60ms;
		font-size: inherit;
	}
	
	#footer a:hover{
		transition-duration: 120ms;
		transition-delay: none;
		color: #807f7c;
	}

.folder{
	position: relative;
	height: 60px;
	padding-top: 60px;
	overflow: hidden;
	border-bottom: 2px solid black;
}

	.folder:last-child{
		border-bottom: none;
	}

	.folder[active="true"]{
		position: static;
		padding-top: 0px;
		height: auto;
		border-bottom: none;
	}

	.folder > div > *:first-child{
		position: relative;
		white-space: nowrap
	}

	.folder > div > *:first-child:before{
		content: "\f107";
		width: 60px;
		text-align: center;
		font-family: Font Awesome\ 5 Free;
		-webkit-font-smoothing: antialiased;
		display: inline-block;
		font-style: normal;
		font-variant: normal;
		text-rendering: auto;
		line-height: 1;
	}

	.folder[active="true"] > div > *:first-child:before{
		content: "\f106";
	}

	.folder[active="false"] > div > *:first-child{
		line-height: 60px;
		font-size: 20pt;
		position: absolute;
		top: 0px;	left: 0px;	right: 0px;
		cursor: pointer;
	}


#page_container{
	position: relative;
	color: black;
	text-shadow: 0px 0px 5px black 0px 0px 2px black;
	min-height: 100vh;
	padding-top: 60px;
	z-index: 2;
	margin-bottom: 160px;
	box-shadow: 0px 2px 3px rgba(0,0,0,0.2);
	background-image: url('images/background.jpg');
	background-size: 100% 100%;
	background-position: top center;
	background-repeat: no-repeat;
}
#page_container h1{font-size: 17pt;}
#page_container h2{font-size: 15pt;}
#page_container h4,#page_container h5,#page_container h6{font-size: 11pt;}
#page_container li, #page_container p{font-size: 11pt;}
	
section{padding: 48px 12px; color: black;}
section.dark_gray{background: #231f20; color: white;}
section.light_gray{background: #807f7c; color: white;}

section > .central h1:first-child{
	line-height: 140%;
	font-size: 24pt;	
	text-align: center;
	margin-bottom: 32px;
}

section p{
	line-height: 140%;
	font-size: 14pt;
}

.hero{
	display: block;
	width: 100%;
	height: calc(90vh - 240px);
	background-color: #757677;
	background-image: url('images/hero.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: white;
}

#ticker {
	display: block;
	padding: 0px;
	position: relative;
	font-family: 'Lexend Exa', sans-serif;
}

#ticker li{
	display: table;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0px; bottom: 0px; left: 0px; right: 0px;
	opacity: 0;
	transform: scale(0.9,0);
	transition: all 320ms ease;
}
#ticker li[tick="true"]{
	transition-delay: 160ms;
	transform: scale(1,1);
	opacity: 1;
}

#ticker li > span{
	display: table-cell;
	vertical-align: middle;
	font-size: 24pt;
	text-align: center;
	text-shadow: 0px 0px 3px rgba(0,0,0,0.4), 0px 3px 14px rgba(0,0,0,0.4);
	letter-spacing: 1pt;
}

#map_container{
	height: 60vh;
	position: relative;
}

#map_container:after{
	content: "Loading...";
	line-height: 200px;
	text-align: center;
	font-size: 40pt;
	color: black;
	text-shadow: 0px 0px 3px white;
	display: block; 
	position: absolute;
	top: 0px; left: 0px; right: 0px; bottom: 0px;
	background-image: url('images/map.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation-name: overlay_fade;
  	animation-delay: 2s;
  	animation-duration: 2s;
	animation-fill-mode: forwards;
	pointer-events: none;
}

#gallery_container ul{
	display: block;
	max-width: 280px;
	margin: 0px auto;
}

#gallery_container li{
	display: inline-block;
	position: relative;
	vertical-align: top;
}

.gallery_thumb{
	margin: 10px;
	width: 120px;
	height: 120px;
	transform: scale(1);
	transition: all 160ms ease;
	cursor: pointer;
	background-size: cover;
	background-repeat: no-repeat;
}

.gallery_thumb:hover{
	transform: scale(1.1);
}

.services > li{
	text-align: center;
}

.services > li > div{
	display: inline-block;
	background: rgba(127,127,127,0.4);
	vertical-align: top;
	background-size: cover;
	background-repeat: none;
	background-position: center;
	width: 100%;
	max-width: 420px;
	list-style-type: none;
	overflow: hidden;
	transition: all 240ms ease;
}

.services > li > div > h3{
	display: block;
	box-sizing: border-box;
	line-height: 100px;
	font-size: 22pt;
	font-family: 'Lexend Exa', sans-serif;
	font-weight: 300;
	background: rgba(100,100,100,0.6);
}

.affiliates li{
	vertical-align: middle;
	text-align: center;
	display: inline-block;
}

.flip_container{
	position: relative;
}

.flip_card{
	min-height: 180px;
	max-width: 500px;
	text-align: center;
	font-size: 18pt;
	font-weight: 500;
	position: relative;
	-webkit-perspective: 1000px; /* Safari 4-8 */
	perspective: 1000px;
	cursor: pointer;
	width: 100%;
}

.flip_card > div{
	display: block;
	position: absolute;
	height: 180px;
	width: 100%;
	top: 0px; left: 0px; right: 0px; bottom: 0px;
	backface-visibility: hidden;
	transition: all 420ms cubic-bezier(.6,.15,.65,1.4);
	transform-style: preserve-3d;
	color: white;
}

.flip_card > div:first-child{
	transform:rotateX(0deg); 
	opacity: 1;
	background-color: #757677;
	background-size: cover;
	background-repeat: no-repeat;
	box-shadow: 0px 2px 3px rgba(30,30,30,0.2), 0px 2px 8px rgba(30,30,30,0.2);
}

.flip_card > div:first-child > h3{
	position: absolute;
	bottom: 14px;
	border: 3px solid white;
	border-left: none;
	padding: 8pt;
    font-size: 14pt;
    font-family: 'Lexend Exa', sans-serif;
	font-weight: 300;
    background: rgba(100,100,100,0.4);
}

.flip_card > div:last-child{
	transform:rotateX(180deg); 
	opacity: 0;
	background: #757677;
	font-weight: 100;
	text-align: left;
	font-size:12pt;
	padding: 10px;
	box-shadow: 0px 2px 3px rgba(30,30,30,0.3), 0px 2px 18px rgba(30,30,30,0.3);
}

.flip_card > div:last-child > h3{
	border-bottom: 2px solid white;
	font-size:13pt;
	
	padding-bottom: 6px;
	margin-bottom: 6px;
}

.flip_container:not(:hover) .flip_card[tick="true"] > div:first-child,
.flip_card:hover > div:first-child{
	transform:rotateX(-180deg); opacity: 0;
}
.flip_container:not(:hover) .flip_card[tick="true"] > div:last-child,
.flip_card:hover > div:last-child{
	transform:rotateX(0deg); opacity: 1;
}

.testimonial{
	position: relative;
	padding: 0px 0px 0px 16px;
	margin-bottom: 80px;
	background-position: bottom right;
	background-repeat: no-repeat;
	background-size: 50px auto;
}

.testimonial:before{
	position: absolute;
	top: 0px; left: 0px;
	font-family: Font Awesome\ 5 Free;
	font-weight: 900;
    content: "\f10d";
	font-size: 12px;
}

.testimonial h4{ font-size: 15pt; line-height: 140%; margin-top: 14pt;}
.testimonial h3{ font-size: 12pt; line-height: 150%;}

.big_list{
	padding-left: 30px;
}

.big_list li{
	font-size: 15pt;
	margin: 20px auto;
	line-height: 100%;
	list-style-type: none;
	list-style-image: url(images/big_list_black.png);
	vertical-align: middle;
}

.light_gray .big_list li,
.dark_gray .big_list li{
	list-style-image: url(images/big_list_white.png);
}

.center_list{
	margin: 10px auto;
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

.center_list td{
	border: none;
	padding: 5px 0px;
	margin: 10px 0px;
	font-size: 14pt;
	color: white;
	font-size: 12pt;
	vertical-align: top;
}
.center_list td:first-child{text-align: right; border-right: 2px solid white; padding-right: 10px;}
.center_list td:last-child{text-align: left; padding-left: 10px;}

.center_list > * > li{
	padding: 6px;
}

.table{
	display: block;
	width: 100%;
	vertical-align: top;
	border-spacing: 10px;
	box-sizing: border-box;
}

.table li{
	display: block;	
	position: relative;
	list-style-type: none;
	margin: 10px auto;
	box-sizing: border-box;
}

/*larger than (X)px in width*/
@media screen and (min-width: 320px) {
	#logo{
		background-image: url('images/logo_mobile.png');
	}
@media screen and (min-width: 480px) {
	#gallery_container ul{
		max-width: 420px;
	}
}

/*larger than (X)px in width*/
@media screen and (min-width: 900px) {
	#title{height: 140px; background: none;}
	#page_container{padding-top: 140px;}
	#page_container h1{font-size: 25pt;}
	#page_container li,
	#page_container p{font-size: 15pt;}
	
	#logo{
		background-image: url('images/logo.png');
		background-position: 14px center;
	}		
	
	.gallery_thumb{
		max-height: 160px; 
		max-width: 160px;
	}

	section{padding: 96px 0px;}

	#menu{
		position: relative;
		top: auto; right: auto; left: auto; bottom: auto;
		height: 140px;
		text-align: right;	
		font-size: 0px;
		background: none;
		overflow: visible;
		transition: none;
	}
		
	#menu > div:first-child{
		background: #e2e7e9;
		display: inline-block;
		position: absolute;
		bottom: 0px; right: 0px;
	}
	
	#menu > div:first-child:after{
		display: block;
		content: " ";
		z-index: -1;
		position: absolute;
		left: -25px; top: 0px; right: 0px;
		width: 60px;	
		height: 50px;
		background: #e2e7e9;
		transform: skew(-45deg);
	}

	#menu > div:last-child{
		display: block;
		position: absolute;
		top: 0px; right: 0px;
		text-align: right;
	}
	
	#menu > div:last-child a i{
		display: inline-block;
	}
	
	#menu > div:last-child a i:before{
		transition: all 120ms ease;
		display: inline-block;
		vertical-align: bottom;
		margin-left: 12px;
		margin-right: 5px;
		width: 20px;
		text-align: center;
	}

	#logo:focus ~ #menu{
		height: 100%;
	}
	
	.nav_item{
		display: inline-block;
	}

	
	#ticker li > span{
		text-align: left;
		font-size: 85pt;
		letter-spacing: -5px;		
	}
	
	.hero{
		height: calc(100vh - 240px);
	}
			
	.table{
		display: table;
		table-layout: fixed;		
	}

	.table li{
		display: table-cell;
		margin: none;
	}
	
	.flip_container{
		height: 180px;
	}
	
	.flip_card{
		display: table-cell;
	}
	
	.testimonial{
		padding: 0px 100px 80px 56px;
		background-size: 80px auto;
		background-position: top right;
	}
	
	.testimonial:before{
		font-size: 40px;
	}
	
	#gallery_container ul{
		max-width: 840px;
	}
	
	#footer{
		background-image: url('images/send_us.png');
		background-size: auto;
		background-position: bottom right;
		background-repeat: no-repeat;
		font-size: inherit;
	}
}