/*!
 * Scrolling using Bootstrap - Scrolling Nav(http://startbootstrap.com/)
 * Copyright 2013-2016 Start Bootstrap
 * Licensed under MIT(https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
 */

@font-face {
  font-family: 'icomoon';
  src:  url('../fonts/icomoon.eot?dzsd0r');
  src:  url('../fonts/icomoon.eot?dzsd0r#iefix') format('embedded-opentype'),
        url('../fonts/icomoon.ttf?dzsd0r') format('truetype'),
        url('../fonts/icomoon.woff?dzsd0r') format('woff'),
        url('../fonts/icomoon.svg?dzsd0r#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

html {
	width: 100%;
	height: 100%;
}

body {
	width: 100%;
	height: 100%;
	background-color: grey;
	font-family: 'Open Sans', sans-serif;
}

h1 {
	font-family: 'Lora', serif;
}

h1, h2 {
	text-shadow: 0 0 0.3em black;
}

a sup {
	text-decoration: none;
	display: inline-block;
}

@media(min-width: 767px) {
	.navbar {
		padding: 10px 0;
		transition: background .5s ease-in-out, padding .5s ease-in-out;
	}
	.top-nav-collapse {
		padding: 0;
	}
}

nav.navbar-fixed-top {
	background-color: rgba(250,250,250,1);
}

.navbar-nav a {
	transition: background-color 0.5s;
}

nav {
	box-shadow: 0 0 8px 0 black;
}

.glyphicon {
	font-family: 'icomoon' !important;
}

section {
	min-height: 100%;
	padding-top: 100px;
	text-align: center;
	position: relative;
	padding-bottom: 100px;
	background-size: cover;
	background-attachment: fixed;
	display: -ms-flexbox;      /* IE 10 */
	display: -webkit-flex;     /* Safari */
	display: flex;
	align-items: center;
}

section:not(:last-of-type) {
	box-shadow: inset 0 -10px 10px -10px black;
}

section {
	color: black;
}

section h1 {
	color: white;
}

#start {
	background-image: linear-gradient( rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../media/back-start.jpg");
	background-position: center top;
	color: white;
}
#life {
	background-image: linear-gradient( rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../media/back-life.jpg");
	background-position: center;
}
#work {
	background-image: linear-gradient( rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../media/back-work.jpg");
	background-position: center;
}
#contact {
	background-image: linear-gradient( rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../media/back-contact.jpg");
	background-position: center bottom;
	color: white;
}

/* Fix overflow */
.row {
	margin-left: 0;
	margin-right: 0;
}

.nbr {
	display: inline-block;
}

a:hover span.unl, a:active span.unl {
	text-decoration: underline;
}

.prep {
	display: none !important;
}

#portrait {
	width: 18em;
	max-width: 90%;
	margin: 0 auto;
	overflow: hidden;
}


div.circle-avatar {
	max-width: 100%;
	width: 100%;
	height: auto;
	display: block;
	padding-top: 100%; /* sets div height to be same as width*/
	border-radius: 50%;
	box-shadow: 0 0 0.3em rgba( 0, 0, 0, 0.5);

	background: url('../media/portrait.jpg');
	background-position: center 10%;
	background-repeat: no-repeat;
	background-size: 125%;
	animation: zoom 1.3s ease-in-out;
}

@keyframes zoom {
	0% {
		background-size: 120%;
	}
	50% {
		background-size: 120%;
	}
	100% {
		background-size: 125%;
	}
}

section#start a.page-scroll .glyphicon {
	position: relative;
	animation: bounce 8s ease-in-out infinite;
}

@keyframes bounce {
	0% {
		top: 0px;
	}
	76% {
		top: 0px;
	}
	80% {
		top: -3px;
	}
	92% {
		top: 6px;
	}
	100% {
		top: 0px;
	}
}

#button-home {
	background-color: transparent;
}

ul.ul-dl-box dl {
	margin-bottom: 0
}
dl.dl-inverted > dt {
	font-weight: normal;
}
dl.dl-inverted > dd {
	font-weight: bold;
}

abbr {
	text-decoration: none;
}

.flag:after, .flag-center:after {
	display: inline-block;
	content: "";
	width: 10px;
	height: 10px;
	margin: 0 3px;
	background: transparent url('../media/flags.svg') no-repeat;
	background-size: 100% auto;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}
.flag-center {
	margin-right: -16px; /* flag width + 2*margin */
}
[title="Switzerland"]:after {
	background-position: 0 0;
}
[title="The Netherlands"]:after {
	background-position: 0 -10px;
}

.next {
	position: absolute;
	bottom: 2em;
	left: 50%;
	margin: 0;
}

.next>.row {
	float: left;
	position: relative;
	left: -50%;
}

a.icon-link {
	text-decoration: none;
	border: 1px solid lightgrey;
	border-radius: 0.3em;
	overflow: hidden;
	vertical-align: middle;
	margin: 0.2em 0.2em 0.2em 0;
	padding: 0.1em 0.5em 0.1em 0;
}
.icon-link-icon {
	font-family: 'icomoon';
	vertical-align: middle;
	padding: 0.5em;
	color: black;
	transition: background 0.2s, color 0.2s;
	margin-right: 0.5em;
}
.icon-link-text {
	vertical-align: middle;
}
.icon-link:hover .icon-link-icon {
	color: white;
}

.icon-link:hover .icon-gs {
	background-color: #4285f4;
}
.icon-link:hover .icon-rg {
	background-color: #00ccbb;
}
.icon-link:hover .icon-oi {
	background-color: #a6ce39;
}

.iconbar {
	margin-top: 1em;
}
.iconbar > div {
	margin-top: 1em;
}
.iconbar a {
	color: white;
	display: block;
	padding: 1em;
	min-width: 8em;
	transition: background 0.2s, color 0.2s, text-shadow 0.2s;
	text-decoration: none;
	text-shadow: 0 0 0.3em black;
}
.iconbar a:hover {
	background: white;
	text-shadow: none;
}
.iconbar span {
	font-family: 'icomoon';
	font-size: 30px;
	display: block;
	margin-bottom: 5px;}

.icon-fa:hover {
	color: #3b5998;
}
.icon-rg:hover {
	color: #00ccbb;
}
.icon-li:hover {
	color: #0077b5;
}
.icon-em:hover {
	color: #ea4335;
}
.icon-tg:hover {
	color: #0088cc;
}
.icon-gs:hover {
	color: #4285f4;
}

#sources {
	position: absolute;
	bottom: 50px;
	right: 0;
}
#slidein {
	color: black;
	background-color: white;
	border-radius: 4px 0 0 0;
	border-style: solid;
	border-color: #ccc;
	border-width: 0;
	padding: 0em 1em;
	margin-bottom: -55px;
	max-height: 0px;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.8s, padding 0.5s, opacity 0.6s;
	transition-delay: 0.2s;
}
#sources:hover #slidein {
	border-width: 1px 0 0 1px;
	max-height: 200vh;
	padding: 1em 1em;
	opacity: 1;
}
#slidein dd:not(:last-child) {
	margin-bottom: 0.5em;
}
#info {
	float: right;
	margin-bottom: -50px;
	color: white;
	font-size: 1.5em;
	background: transparent;
	border: none;
	box-shadow: none;
}
