html {
        overflow-x: hidden;
}

body {
	overflow-x: hidden;
}

.mobile {
	display: none;
}

#readmode {
	border: none;
	font-family: "Tiny5", sans-serif;
	color: white;
	position: fixed;
	right: 0;
	z-index: 99999;
	background: #222;
	margin: 0;
	padding: 0 1em;
	border-radius: 0;
	height: 3rem;
  	top: 0.5rem;
  	line-height: 3rem;
}

#readmode:hover {
	cursor: url(/img/pointer.png), default;
	color: #d32e2e;
}

body.readable * {
	font-family: "Helvetica", "Open Sans", "Arial", sans-serif !important;
}

* {
	font-family: "Pixelify Sans", sans-serif;
	color: #222;
	image-rendering: pixelated;
}

*:hover {
    cursor: url(/img/default.png), default;
}

strong {
	font-weight: inherit;
    font-family: inherit;
    background: #222;
    color: white;
}

.num {
	font-family: "Tiny5", sans-serif;
}

a {
	color: #2e84d3;
	font-family: "Tiny5", sans-serif;
	text-transform: uppercase;
}

a:hover {
	cursor: url(/img/pointer.png), default !important;
	color: #d32e2e;
}

a.doc,
a.link,
a.mail {
	color: inherit;
    text-decoration: none;
    position: relative;
    font-family: inherit;
}

a.doc:hover, a.doc:hover span, a.doc:hover strong, 
a.link:hover, a.link:hover span, a.link:hover strong,
a.mail:hover, a.mail:hover span, a.mail:hover strong {
	cursor: url(/img/pointer.png), default;
    background: #d32e2e;
    color: white;
}

a.doc:after,
a.link:after,
a.mail:after {
	font-family: "Tiny5", sans-serif;
    font-size: 0.75em;
    display: inline-block;
    position: relative;
    top: -0.25em;
    padding-left: 0.25em;
    padding-right: 0.25em;
    color: #d32e2e;
}

a.doc:hover:after,
a.link:hover:after,
a.mail:hover:after {
	color: white;
}

a.doc:after {
	content: "[doc]";
}

a.link:after {
	content: "[link]";
}

a.mail:after {
	content: "[mail]";
}

.button {
	height: auto;
    padding: 0;
    display: inline-block;
    color: #d32e2e;
    text-align: center;
    font-size: inherit;
    font-weight: normal;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: lowercase;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border-radius: 0;
    border: none;
    cursor: inherit;
    box-sizing: border-box;
}

.button:hover {
	cursor: url(/img/pointer.png), default;
	background: #d32e2e;
	color: white;
}

h1, h2, h3 {
	font-family: "Silkscreen", sans-serif;
}

h2 {
	font-size: 3rem;
	margin-bottom: 0.25em;
	position: relative;
    background: white;
    display: inline-block;
    padding: 0 5px;
}

h2:after {
	content: "";
    width: 200vw;
    display: block;
    height: 3rem;
    position: absolute;
    background: #222;
    top: 0.5rem;
    left: -100vw;
    z-index: -1;

}

h3 {
	font-size: inherit;
	margin: 0;
}

p {
	font-family: "Pixelify Sans", sans-serif;
	line-height: 1em;
	margin-bottom: 1em;
}

ul {
	list-style: "> ";
	padding-left: 1em;
	margin-bottom: 1em;
}

ul ::marker {
    font-family: "Tiny5", sans-serif;
}

ul li {
	margin: 0;
}

ul.sparse li {
	margin-bottom: 1em;
}

.main-container {
	display: flex;
}

@keyframes main-section-opens {
	0% {
	  	left: 150px; /* start just off screen */
	}
	100% {
	  	left: 100vw; /* move out of screen to the right */
	}
}

.main-section {
	padding: 0px 50px;
	margin-left: 150px;
}

.loader {
    width: 100vw;
    height: 11vh;
    background: #222;
    left: 150px;
    position: fixed;
    z-index: 999;
    animation: main-section-opens 1s cubic-bezier(0.7, 0, 0.84, 0) 0s forwards;
}

.loader:nth-of-type(1) {
	top: 0;
	animation-delay: 0.1s;
}

.loader:nth-of-type(2) {
	top: 10vh;
	animation-delay: 0.2s;
}

.loader:nth-of-type(3) {
	top: 20vh;
	animation-delay: 0.3s;
}

.loader:nth-of-type(4) {
	top: 30vh;
	animation-delay: 0.4s;
}

.loader:nth-of-type(5) {
	top: 40vh;
	animation-delay: 0.5s;
}

.loader:nth-of-type(6) {
	top: 50vh;
	animation-delay: 0.6s;
}

.loader:nth-of-type(7) {
	top: 60vh;
	animation-delay: 0.5s;
}

.loader:nth-of-type(8) {
	top: 70vh;
	animation-delay: 0.4s;
}

.loader:nth-of-type(9) {
	top: 80vh;
	animation-delay: 0.3s;
}

.loader:nth-of-type(10) {
	top: 90vh;
	animation-delay: 0.2s;
}

nav {
	position: fixed;
	width: 150px;
	min-width: 150px;
	height: 100vh;
	background: #222;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

nav ul {
	list-style: none;
	text-align: center;
	background: white;
	padding-left: 0;
}

nav ul a {
	text-decoration: none;
}

nav ul li {
	font-family: "Tiny5", sans-serif;
	margin: 0;
	line-height: 18px;
    min-height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li:hover, nav ul li.open:hover {
	cursor: url(/img/pointer.png), default;
	background: #222;
	color: #d32e2e;
}

nav ul li.open {
	background: #222;
	color: white;
}

nav ul.social {
	position: absolute;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0;
}

nav ul.social a {
	flex-grow: 1;
}

nav ul.social li {
	color: white;
	background: #222;
}

nav ul.social li:hover, nav ul.social li.open:hover {
	cursor: url(/img/pointer.png), default;
	background: white;
	color: #d32e2e;
}

.logo {
	text-align: center;
	background: #222;
	color: white;
}

.logo h1, .logo h2, .logo h3 {
	padding: 0;
	margin: 0;
}

.logo h1 {	
	padding: 7px 0 3px;
	line-height: 32px;
	background: #222;
    color: white;    
}

.logo h1 a {
	text-decoration: none;	
}

.logo h1 a:hover span {
	cursor: url(/img/pointer.png), default;
}

.logo h1 span {
	font-family: "Tiny5", sans-serif;
	color: white;
}

.logo h1 a:hover span {
	color: #d32e2e;
}

.logo h2 {
	display: block;
    line-height: 18px;
    padding: 4px 0 2px;
    background: white;
    color: #222;
}

.logo h2:after {
	content: none;
}

.logo h2 span {
	text-transform: uppercase;
	font-family: "Tiny5", sans-serif;
}

.logo h3 {
    line-height: 20px;
    background: #222;
    color: white;
}

.logo h3 a {
	text-decoration: none;
	color: white;
}

.logo h3 a:hover {
	color: #d32e2e;
}

#david {
    font-size: 48px;
}

#melhart {
	font-size: 30px;
}

#assistant {
    font-size: 26px;
}

#prof {
    font-size: 23px;
}

#sdu {
    font-size: 16px;
}

.david-avatar {
	width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin-bottom: 3em;
}

.david-avatar.mobile {
	display: none;
}

.current {
	position: relative;
}

.current:before {
	content: ">";
	position: absolute;
	display: block;
	margin-left: 4px;
	animation: blink 1s step-start infinite;
	top: 0;
	left: -1em;
	line-height: inherit;
}

@keyframes blink {
	50% { opacity: 0; }
}

.project {
    background: #222;
    color: white !important;
    padding: 1em;
    position: relative;
    margin-bottom: 2.5rem;
}

.project:after {
    content: "";
    display: block;
    width: 100vw;
    height: 100%;
    position: absolute;
    left: 99%;
    top: 0;
    background: #222;
}

.project h3 {
	color: white;
    margin-bottom: 1em;
}

.project>div{
	display: flex;
    width: 100%;
    position: relative;
    justify-content: flex-start;
    align-items: stretch;
}

.project img {
	border: 5px solid white;
	max-width: 300px;
	align-self: flex-start;
}

.project p {
    color: white;
    margin: 0;
    margin-left: 1em;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
}

.project .button, .button {
	margin-top: 1em;
	margin-bottom: 0;
}

.project .button, .project span {
	align-self: flex-end;
}

hr {
	margin-top: 0;
    margin-bottom: 1em;
    background: #222;
    border: none;
    height: 10px;
    width: 200vw;
    position: relative;
    left: -200px;
    z-index: -1;
}