:root {
  --footer-height: 50px;
}
html {
	border-top: 6px solid black;
}
body {
	margin: 0;
	padding: 0 0 var(--footer-height) 0;
	position: relative;
	min-height: calc(100vh - 6px);
	font-family: Arial;
	font-size: 16px;
	color: #333;
	box-sizing: border-box;
}
p, ul {
	line-height: 1.5;
}
li {
	padding: 10px 0;
}
a {
	color: rgb(255, 69, 0);
	text-decoration: none;
	font-weight: bold;
}
.top-line {
	height: 0px;
	border-top: 6px solid black;
	position: fixed;
	top: 0;
}

.background-images {
	position: fixed;
	z-index: -10000;
	display: block;
	width: 100vw;
	height: calc(100vh - 150px);
	bottom: 0;
	left: 0;
	box-sizing: border-box;
	background-image: url(../images/slide-1.jpg);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.3;
}

.background-video video {
	object-fit: cover;
	width: 100vw;
	height: calc(100vh - var(--footer-height));
	z-index: -1;
	position: fixed;
	top: 0;
	left: 0;
	box-sizing: border-box;
}
.block {
	padding: 0;
	margin: 0;
	width: 100vw;
}
.block.orange-bg {
	/*background-color: rgba(255, 69, 0, 0.6);*/
	color: white;
	padding: 30px 0;
	display:  block;
	position: relative;
	z-index: 1;
}
.block.orange-bg::after {
	content: "";
  /*background: url(../images/bg-orange.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.9;*/
  background-color: rgba(39,63,178,0.9);
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;
}
.block.transparent-bg {
	padding: 30px 0;
}
.twocol-img {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}
.twocol-img div {
	margin: 0 40px;
}
.twocol-img .img {
	flex-basis: 360px;
}
.twocol-img .img img {
	max-width: 100%;
	padding: 2px;
	line-height: 0;
	border: 1px solid #333;
}
.block.orange-bg .twocol-img .img img {
	border: 1px solid white;
}
.twocol-img ul {
	list-style: disclosure-closed;
	font-size: 18px;
	line-height: 2;
	padding-left: 10px;
	font-weight: bold;
}
.container {
	width: 100vw;
	max-width: 1200px;
	margin: auto;
	box-sizing: border-box;
	padding: 0 20px;
}
.container.content-holder {
	paddint-top: 30px;
	padding-bottom: 30px;
	//background-color: rgba(255,255,255,0.6);
}
.logo img {
	width: 280px;
	max-width: 70%;
}
.nav.block {
	/*background-color: rgba(0,107,159,0.9);*/
	background-color: rgba(39,63,178,0.9);
}
.nav ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	align-items: baseline;
}

.nav li {
	position: relative;
}

.nav a {
	position: relative;
	display: block;
	color: white;
	padding: 8px 20px;
	text-transform: uppercase;
	text-decoration: none;
	font-family: Arial;
	font-weight: bold;
	font-size: 16px;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.nav li:not(.logo-in-menu)::before {
	content: '';
	position: absolute;
	background-color: #39b6ba;
	top: 0;
	left: auto;
	right: 0;
	width: 0%;
	height: 100%;
	transition: all 0.3s
}

.nav li:hover::before {
	width: 100%;
	left: 0;
	right: auto;
}

.nav li:not(.logo-in-menu)::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: auto;
	left: 0;
	width: 0%;
	height: 3px;
	background-color: black;
	transition: all 0.3s
}
.nav li:hover::after {
	right: 0;
	left: auto;
	width: 100%;
}


.nav a:active {
	color: white;
}


.footer.block {
	height: var(--footer-height);
	//background-image: linear-gradient(#39b6ba, #006b9f);
	position: absolute;
	bottom: 0;
	color: black;
	padding-top: 20px;
	box-sizing: border-box;
}

.copy-text {
	text-align: center;
	position: absolute;
	bottom: 0;
	width: 100%;
	padding-bottom: 10px;
	font-size: 12px;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

.thumbnail {
	display: block;
	width: 250px;
	height: auto;
	margin: 20px;
	padding: 2px;
	transition: all 0.4s;
	cursor: pointer;
	font-size: 0;
	top: auto;
	left: auto;
	z-index: 0;
}
.thumbnail img {
	max-width: 100%;
	border: 1px solid black;
	box-sizing: border-box;
	padding: 2px;
}
.thumbnail.magnified {
	//width: max-content;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	background: rgba(255,255,255,0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	z-index: 100;
	margin: auto;
}
.thumbnail.magnified img {
	padding: 4px;
	border-width: 3px;
	max-width: 80%;
	max-height: 80%;
}
.thumbnail:not(.magnified):hover, .thumbnail:not(.magnified):active  {
	transform: scale(1.6);
	z-index: 100;
	background: rgba(255,255,255,1);
}

.contact.block {
	position: relative;
	overflow: hidden;
}
.contact.block::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	display: block;
	background-color: #999;
	background-image: url(../images/block-bg1.jpg);
	background-size: cover;
	background-position: center;
	filter: blur(4px);
    -webkit-filter: blur(4px);
    z-index: -1;
    transform: scale(1.1);
}

.contact form {
	display: block;
	margin: 20px auto;
	width: 554px;
	max-width: 90%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
::-webkit-input-placeholder {
	color: rgba(255,255,255,0.9);
}
::placeholder {
	color: rgba(255,255,255,0.9);
}
.contact input, .contact textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid white;
	border-radius: 0px;
	padding: 6px 15px;
	background: rgba(0,0,0,0.3);
	font-size: 18px;
	color: white;
}
.contact textarea {
	height: 150px;
}
.contact input[type=submit] {
	-webkit-appearance: none;
	width: 280px;
	max-width: 100%;
	margin: auto;
	display: block;
	border: 0;
	padding: 10px;
	text-transform: uppercase;
	font-weight: bold;
	background-color: rgb(254,94,19);
	color: white;
	cursor: pointer;
	transition: all 0.3s;
}
.contact input[type=submit]:hover {
    background-color: rgb(229,85,17);
}
.contact .form-half {
	box-sizing: border-box;
	max-width: 100%;
	width: 266px;
	padding: 10px 0;
}

.contact .form-full {
	box-sizing: border-box;
	max-width: 100%;
	width: 600px;
	padding: 10px 0;
}

.contact :not(form):invalid {
	border-top: 2px solid red;
	box-shadow: none;
}
.contact :focus {
	box-shadow: none;
	outline: none;
}


.contact .error {
	color: #cc0000;
	display: none;
	width: 554px;
	max-width: 100%;
	margin: 30px auto 20px auto;
	box-sizing: border-box;
	background: rgba(255,255,255,0.4);
	padding: 15px;
}
.home-highlighted {
	text-align: center;
	font-size: 18px;
}

.video-container {
	width: 500px;
	max-width: 100%;
	margin: 20px;
	padding: 2px;
	border: 1px solid white;
}
.video-container div {
	width: 100%;
	padding-bottom: 56.25%;
	position: relative;
}
.video-container iframe {
	width: 100%;
	height: 100%;
	position: absolute;
}

@media (max-width: 1023px) {
	.twocol-img {
		flex-direction: column;
	}
	.twocol-img .img {
		flex-basis: auto;
	}
	.transparent-bg .twocol-img {
		flex-flow: column-reverse;
	}
	.twocol-img div {
		margin: 0 10px;
	}
}
@media (max-width: 767px) {
	.nav ul {
		flex-direction: column;
		align-items: normal;
	}
	.nav li {
		border-top: 1px solid #333;
	}
	.nav li:first-child {
		border-top: 0;
	}
	.nav li::before {
		bottom: 0;
		top: auto;
		width: 100%;
		height: 0%;
		transition: all 0s;
	}

	.nav li:hover::before {
		height: 100%;
	}

	.nav li::after {
		width: 100%;
		height: 0px;
		transition: all 0s;
	}
	.nav li:hover::after {
		height: 3px;
	}
}
@media (max-width: 639px) {
	.logo.container {
		text-align: center;
	}
	.logo img {
		margin-left: 0;
	}
	.contact form {
		width: 90%;
		justify-content: space-between;
	}
	.contact .form-half {
		width: 100%;
	}
}