/* CORE */

* {
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
	font-family: "Estrangelo Edessa", sans-serif;
	-webkit-font-smoothing: antialiased;
}

main {
	display: none; /*will fade in*/
}


/* CONTACT */

footer#contact {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 101;
}

footer#contact a {
	display: inline-block;
	padding: 4px 12px 4px 0;
	-webkit-transition: 0.2s linear;
	transition: 0.2s linear;
}

footer#contact a:hover {
	opacity: 0.7; 
}



/* NAV */

nav.main {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	border-bottom: 1px solid white;
	background: rgba(255,255,255,0.8);
	font-size: 0;
}

nav.main ul {
	display: table;
	height: 40px;
	margin-right: 100px;
}

nav.main li {
	display: inline-block;
	position: relative;
	list-style-type: none;
	text-align: center;
	font-size: 18px;
}

nav.main li.current {
	float: left;
}

nav.main a {
	display: inline-block;
	position: relative;
	box-sizing: border-box;
	padding: 10px 30px;
	/*border-radius: calc(0.5em + 10px);*/
	color: inherit;
	text-decoration: none;
	-webkit-transition: 0.3s linear;
	transition: 0.3s linear;
	overflow: visible !important;
}

nav.main li.current a {
	background-color: #a11111;
	/*border-radius: 0 calc(0.5em + 10px) calc(0.5em + 10px) 0;*/
	color: white;
}

nav.main li:not(.current) a:hover {
	background-color: #8894a6;
}

nav.main li.current a:hover {
	opacity: 0.8;
}

nav.main li a img {
	display: none;
	position: absolute;
	height: 1em;
	top: 50%;
	left: 11px;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	margin-top: -1px;
}

nav.main .navtitle {
	-webkit-transition: 0.3s linear;
	transition: 0.3s linear;
	opacity: 1;
}

.inner nav.main li.current a {
	padding-left: 40px;
}

.inner nav.main li.current a img {
	display: block;
}

nav.main a.notready .popup {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	margin: 0;
	opacity: 0;
	-webkit-transition: 0.3s linear;
	transition: 0.3s linear;
}

nav.main a.notready:hover .popup {
	opacity: 1;
}

nav.main a.notready:hover .navtitle {
	opacity: 0;
}



/* FONTS */

@font-face {
    font-family: 'Estrangelo Edessa';
    src: url('/fonts/estre.eot');
	src: local('☺'), url('/fonts/estre.woff') format('woff'), url('/fonts/estre.ttf') format('truetype'), url('/fonts/estre.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}