/*** html and body ***/

html, body {
	font-family: Arial;
	font-size: 17px;
	color: black;
	margin: 0;
	min-height: 600px;
	height: 100%;
	min-width: 260px;
	scroll-behavior: smooth;
}

/*** header ***/

#header {
	position: fixed;
	background: black;
	top: 0;
	height: 80px;
	width: 100%;
	z-index: 100;
}

#header .content {
	background: black;
	padding: 0;
}

#header-spacing {
	height: 100px;
	width: 100%;
}

.main-menu {
	color: #bfbfbf;
	text-align: center;
	line-height: 80px;
	height: 80px;
	min-width: 20%;
	max-width: 20%;
	float: left;
	cursor: pointer;
}

.main-menu img {
	height: 70px;
	margin: 5px;
}

a.main-menu:link, a.main-menu:visited {
	color: #bfbfbf;
	text-decoration: none;
}

a.main-menu:hover {
	color: white;
	text-decoration: none;
	font-weight: bold;
}

.main-menu-active {
	color: white !important;
	text-decoration: none !important;
	font-weight: bold !important;
}

/* mobile menu */

.main-menu-small {
	top: 80px;
	position: fixed;
	display: none;
	z-index: 100;
	min-width: 100%;
	max-width: 100%;
	max-height: calc(100% - 80px);
	overflow-y: auto;
	background: black;
}

.main-menu-small .main-menu {
	min-width: 100%;
	max-width: 100%;
}

@media only screen and (max-width: 800px) {
	#main-menu-full {
		display: none;
	}
}

#main-menu-icon {
	display: none;
	float: right;
}

@media only screen and (max-width: 800px) {
	#main-menu-icon {
		display: block;
		-webkit-transition: .5s ease-in-out;
		-moz-transition: .5s ease-in-out;
		-o-transition: .5s ease-in-out;
		transition: .5s ease-in-out;
	}
}

.main-menu-show {
	display: block;
}

#menu-icon {
	width: 40px;
	height: 35px;
	margin: auto;
	margin-top: 24px;
	position: relative;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: .5s ease-in-out;
	cursor: pointer;
}


#menu-icon span {
	display: block;
	position: absolute;
	height: 3px;
	width: 100%;
	background: #bfbfbf;
	;
	border-radius: 3px;
	opacity: 1;
	left: 0;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .25s ease-in-out;
	-moz-transition: .25s ease-in-out;
	-o-transition: .25s ease-in-out;
	transition: .25s ease-in-out;
}

#menu-icon span:nth-child(1) {
	top: 0px;
}

#menu-icon span:nth-child(2), #menu-icon span:nth-child(3) {
	top: 14px;
}

#menu-icon span:nth-child(4) {
	top: 28px;
}

#menu-icon.open span:nth-child(1) {
	top: 18px;
	width: 0%;
	left: 50%;
}

#menu-icon.open span:nth-child(2) {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}

#menu-icon.open span:nth-child(3) {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

#menu-icon.open span:nth-child(4) {
	top: 14px;
	width: 0%;
	left: 50%;
}

#menu-overlay {
	position: fixed;
	top: 0;
	min-width: 100%;
	min-height: 100%;
	background-color: black;
	opacity: 0.5;
	z-index: 99;
	display: none;
}

/*** content ***/

.content {
	position: relative;
	width: 95%;
	max-width: 1200px;
	margin: auto;
	z-index: 10;
}

.section {
	float: left;
	width: 100%;
	margin-bottom: 30px;
}

.section-bg {
	background: #e7e7e7;
}

#intro .section {
	margin-bottom: 0;
}

.subsection {
	float: left;
	width: 100%;
	position: relative;
	padding-top: 50px;
	padding-bottom: 50px;
}

.subsection-contrast {
	background: #e7e7e7;
}

.subsection-contrast .tile {
	background: white;
}

.anchor {
	position: absolute;
	display: block;
	height: 100px;
	margin-top: -100px;
	visibility: hidden;
	width: 1px;
}

h1 {
	display: block;
	padding-left: 13px;
	/* larger font -> larger white areas around actual chars */
	padding-right: 14px;
	margin-top: 15px;
	margin-bottom: 20px;
	line-height: 55px;
	font-weight: normal;
	font-size: 42px;
	word-break: break-all;
}

h1 a:link, h1 a:visited {
	text-decoration: none;
}

h1 a:hover {
	text-decoration: underline;
}

h2 {
	padding-left: 14px;
	padding-right: 14px;
	margin: 0;
	margin-top: 5px;
	margin-bottom: 3px;
	font-size: 18px;
	font-weight: bold;
	color: #3d3e40;
	line-height: 35px;
}

h3 {
	padding-left: 14px;
	padding-right: 14px;
	margin: 0;
	margin-top: 5px;
	margin-bottom: 3px;
	font-size: 16px;
	font-weight: bold;
	font-style: italic;
	color: #3d3e40;
	line-height: 35px;
}

p {
	padding-left: 14px;
	padding-right: 14px;
	margin-top: 10px;
	margin-bottom: 15px;
	line-height: 28px;
}

p.date {
	margin-top: -10px;
	margin-bottom: 5px;
	font-size: 16px;
	color: #3d3d3d;
}

p.hint {
	font-style: italic;
}

p.error {
	font-weight: bold;
	color: darkred;
}

a:link, a:visited {
	color: black;
	text-decoration: underline;
}

a:hover {
	color: black;
	text-decoration: none;
}

.text {
	display: block;
	text-align: justify;
	margin-left: 10px;
	margin-right: 10px;
	max-width: 1000px;
	padding-bottom: 2px;
	/* needed to include icons */
}

ul {
	padding-left: 28px;
	padding-right: 28px;
	margin-top: 10px;
	margin-bottom: 15px;
	line-height: 28px;
	list-style: disc;
}

ul.inner-list {
	padding-left: 28px;
	margin-top: 0;
	margin-bottom: 0;
	line-height: 28px;
	list-style: circle;
}

strong {
	font-weight: bold;
}

@media screen and (max-width: 700px) {
	h1 {
		font-size: 35px;
	}

	h2 {
		font-size: 16px;
	}
}

/*** tiles ***/

.tile, .entry {
	line-height: 60px;
	min-width: 100px;
	width: 100%;
	margin-top: 15px;
	margin-bottom: 15px;
	background: #e7e7e7;
}

/* .subsection .tile{
	background: rgba(240,240,240,0.8);
} */
.section-bg .tile {
	background: none;
}

.tile {
	float: left;
}

a.tile:link, a.tile:visited {
	color: #484848;
	text-decoration: none;
}

a.tile:hover {
	background: #a0a0a0;
	text-decoration: none;
	color: black;
}

a.tile:hover>.grid .image-overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	background-color: black;
	opacity: 0.2;
	border-radius: 3px;
}

a.tile:hover>.text h2 {
	color: black;
}

.section-title {
	font-size: 80px;
	line-height: 100px;
	color: #484848;
	padding: 0;
	margin: 0;
}

.section-title a {
	color: #484848;
}

.section-title a:hover {
	text-decoration: none;
	color: #a0a0a0;
}

@media screen and (max-width: 700px) {
	.section-title {
		font-size: 80px;
		line-height: 100px;
	}
}

.column {
	float: left;
	width: 48%;
}

.column-right {
	float: right;
	width: 35%;
}

@media only screen and (max-width: 800px) {
	.column {
		width: 100%;
	}

	.column-right {
		float: left;
		width: 100%;
	}
}

/*** intro ***/

#intro {
	position: relative;
	width: 100%;
	min-height: 770px;
	margin-top: 80px;
	margin-bottom: 30px;
}

#intro .tile {
	background-color: rgba(255, 255, 255, 0.8);
}

#intro-text {
	width: 70%;
	min-height: 250px;
}

#intro-photo {
	position: absolute;
	right: 5px;
	bottom: 0;
	width: 40%;
	height: 100%;
	background-image: url(../images/portrait_l.png);
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: contain;
}

@media screen and (max-width: 1200px) {
	#intro-text {
		width: 60%;
	}
}

@media screen and (max-width: 1000px) {
	#intro {
		min-height: 900px;
	}

	#intro-photo {
		left: 0;
		right: 0;
		margin: 0 auto;
		top: -105px;
		width: 180px;
		height: 180px;
		border-bottom-left-radius: 105px;
		border-bottom-right-radius: 105px;
	}

	#photo-circle {
		position: absolute;
		width: 180px;
		height: 105px;
		top: -105px;
		left: 0;
		right: 0;
		margin: 0 auto;
		border-top-left-radius: 105px;
		border-top-right-radius: 105px;
	}

	#intro-text {
		width: auto;
		padding-top: 60px;
	}
}

/*** icon elements ***/

.icon-container {
	margin: 0;
	padding: 0;
	display: block;
	width: 100%;
	text-align: center;
	margin-top: -5px;
}

.icon-element {
	display: inline-block;
	margin: auto;
	min-width: 40px;
}

.icon-element img {
	display: block;
	margin: 0 auto;
	padding: 0;
	width: 32px;
	height: 32px;
}

/* thumbnails */

.thumbnails, .thumbnails-third {
	display: inline-block;
	min-width: 150px;
	width: 49%;
	text-align: center;
	line-height: 0;
}

.thumbnails-third {
	width: 32%;
}

.thumbnails img, .thumbnails-third img {
	width: 100%;
	max-width: 200px;
}

.thumbnails-4, .thumbnails-3 {
	max-width: 1000px;
	margin: auto;
	text-align: center;
	line-height: 0;
}

.thumbnails-3 {
	max-width: 620px;
}

.thumbnails-2 {
	display: inline-block;
	margin: auto;
	min-width: 200px;
}

/*** grid ***/

.grid {
	float: left;
	position: relative;
	width: 100%;
}

.grid-margin {
	margin-bottom: 20px;
}

.column-fourth {
	float: left;
	max-width: 25%;
	box-sizing: border-box;
}

.column-third {
	float: left;
	max-width: 33.3333333%;
	box-sizing: border-box;
}

.column-half {
	float: left;
	max-width: 50%;
	box-sizing: border-box;
}

.column-full {
	float: left;
	max-width: 100%;
	box-sizing: border-box;
}

.grid img {
	vertical-align: top;
	width: 100%;
}

.gallery .grid div {
	padding: 5px;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
	.column-fourth {
		max-width: 50%;
	}

	.column-half {
		max-width: 100%;
	}
}

/*** video ***/

.video {
	float: none;
	clear: both;
	width: 100%;
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	margin-bottom: 20px;
}

.video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/*** blog entries ***/

.entry {
	display: inline-block;
	vertical-align: top;
	width: 49%;
	margin-left: 1%;
}

@media only screen and (max-width: 800px) {
	.entry {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

.entry img {
	width: 100%;
	margin-bottom: -20px;
}

/*** simple-lightbox ***/

.sl-overlay {
	opacity: 1;
}

.sl-wrapper .sl-close {
	font-size: 38px;
	color: #333333;
}

.sl-navigation, .sl-prev, .sl-next {
	overflow: visible;
	height: 50px !important;
	width: 50px !important;
}

.nav-button {
	background: rgba(255, 255, 255, 0.35);
	padding-bottom: 6px;
	width: 50px;
	height: 44px;
	font-size: 44px;
	border-radius: 50%;
}

/*** forms ***/

form {
	max-width: 720px;
}

.form {
	width: 95%;
	max-width: 550px;
	padding-left: 14px;
	padding-right: 14px;
}

.button, a.button {
	background: black;
	color: white;
	border: none;
	font-size: 19px;
	padding: 5px;
	margin-top: 10px;
	margin-bottom: 20px;
	text-align: center;
	width: 200px;
	height: 50px;
	text-decoration: none;
	display: block;
	border-bottom: 2px solid black;
	border-right: 2px solid black;
	cursor: pointer;
}

a.button, a.button:active {
	padding: 15px;
	width: 180px;
	height: 18px;
	line-height: 18px;
}

.button:hover {
	color: #bfbfbf;
	padding-left: 7px;
	padding-top: 7px;
}

a.button:hover {
	color: #bfbfbf;
	padding: 15px;
	padding-right: 11px;
	padding-bottom: 11px;
	width: 184px;
	height: 22px;
}

.button:active, a.button:active {
	background: grey;
	border-bottom: 2px solid grey;
	border-right: 2px solid grey;
}

.input {
	font-family: Arial;
	font-size: 19px;
	border: none;
	border-bottom: solid black 1px;
	font-size: 19px;
	color: black;
	width: 100%;
	max-width: 550px;
	min-width: 220px;
	margin-bottom: 10px;
	background: inherit;
}

textarea {
	resize: none;
	padding: 0px;
	background: inherit;
}

.input-description {
	margin: 0;
	padding: 0;
	margin-top: 8px;
	margin-bottom: 8px;
}

/*** fixed background images ***/
/*** (can't use background-attachment: fixed; because of iOS/iPad OS) ***/
.bg-wrap {
	clip: rect(0, auto, auto, 0);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.bg {
	position: fixed;
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-background-size: cover;
	/* For WebKit*/
	-moz-background-size: cover;
	/* Mozilla*/
	-o-background-size: cover;
	/* Opera*/
	background-size: cover;
	/* Generic*/
	-ms-behavior: url(../polyfill/backgroundsize.min.htc);
	behavior: url(../polyfill/backgroundsize.min.htc);
	background-position: 68% 20%;
	transform: translateZ(0);
	will-change: transform;
}