* {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
	font-style: normal;
	line-height: 140%;
	color: var(--font-color);

	margin: 0rem;
	border: 0rem;
	padding: 0rem;
}

body {
	font-size: 0.9rem;
	background-color: var(--background-color);
}

footer {
	position: fixed;
    bottom: 0rem;
    height: 3rem;
    width: 100%;
	z-index: 1;
	background-color: white;
}

h1, h2, h3, h4 {
	line-height: 140%;
	margin: 0.6rem 0rem 0.3rem;
	white-space: nowrap;
	clear: both;
}

h1 {
	font-size: 1.2rem;
}

h2, h3, h4 {
	font-size: 1.0rem;
	font-weight: normal;
}

a {
	text-decoration: none;
}

ul {
	list-style-type: none;
	margin-bottom: 0.8rem;
}

table {
	width: 100%;
	border-collapse: collapse;
	empty-cells: show;
}

th {
	text-align: left;
	padding-right: 1.2rem;
	vertical-align: top;
}

td {
	padding-right: 1.2rem;
	vertical-align: top;
}

input, textarea, select {
	display: block;
	color: var(--font-color);
	background-color: var(--shaded-fill-color);
	padding: 0.15rem 0.5rem;
	margin: 0.3rem 0rem 0.3rem;
}

input, select {
	width: 20rem;
}

textarea {
	width: 40rem;
}

.normal {
	font-weight: normal;
}

.error {
	color: red;
}

/* Logo */
div#logo {
	position: absolute;
	right: 2rem;
	top: 1.2rem;
	max-width: calc(100% - 1.2rem - 5rem);
}

div#logo svg {
	width: 20rem;
	max-width: 100%;
}

div#logo svg *.fill, div#menu svg *.fill {
	fill: var(--font-color);
	fill-rule: evenodd;
}

div#logo svg *.outline {
	stroke: var(--stroke-color);
	stroke-width: 0.1rem
}

/* Languages and Social Media Links */
div#languages, div#socialmediaprofiles, div#socialmediashares {
	position: absolute;
}

div#socialmediaprofiles, div#languages {
	top: 4.6rem;
}

div#socialmediaprofiles, div#socialmediashares {
	left: 4rem;
}

div#languages {

	left: 12rem;
}

div#socialmediashares {
    top: 0.8rem;
}

div#languages li, div#socialmediaprofiles li, div#socialmediashares li {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-color: var(--stroke-color);
	border-style: solid;
	border-width: 0rem 0rem 0rem 0.1rem;
}

div#languages li:first-child, div#socialmediaprofiles li:first-child, div#socialmediashares li:first-child {
	border: none;
}

div#socialmediaprofiles svg, div#socialmediashares svg {
	width: 1.2rem;
	height: 1.2rem;
}

div#socialmediaprofiles svg *.fill, div#socialmediashares svg *.fill {
	fill: var(--font-color);
	fill-rule: evenodd;
}

/* Move languages and socialmedia profiles under logo */
@media (max-width: 48rem) {
	div#languages, div#socialmediaprofiles {
		top: 8rem;
	}
}

/* Navigation and Links */
nav {
	position: absolute;
	top: 8rem;
	height: 1.75rem;
	z-index: 1;
	border-color: var(--stroke-color);
	border-style: solid;
	border-width: 0rem 0rem 0.1rem;
}

nav#main {
	left: 4rem;
	right: 0rem;
}

nav#links {
	right: 0rem;
}

nav li {
	display: block;
}

/* Define first level list items as inline */
nav > ul > li {
	display: inline-block;
	vertical-align: top;
}

/* Hides all list items from second level */
nav li ul li {
	display: none;
}

/* Shows next child list items from hover list item */
nav li:hover > ul > li {
	display: block;
}

/* Formats paragraph items */
nav p {
	display: block;
	padding: 0.15rem 0.5rem;
	height: 1.5rem;
}

/* Assigns background color to paragraph items form second level */
nav li ul p {
	background-color: var(--background-color);
}

/* Assigns current background color to hover and current */
nav li:hover > a > p, nav li.current > p {
	background-color: var(--fill-color);
}

/* Shows current list item */
nav li.current {
	display: inline-block;
}

/* Menu toggle checkbox will always be hidden */
input#menutoggle {
	display: none;
}

/* Menu icon label */
label#menuicon {
	display: none;
	position: absolute;
	left: 1.25rem;
	top: 7.75rem;
	font-size: 1.6rem;
	cursor: pointer;
}

/* Show menu icon, transform and hide menu */
@media (max-width: 60rem) {
	label#menuicon {
		display: block;
	}
	
	/* Hide menu, remove height definition and border, set background color */
	nav {
		display: none;
		height: auto;
		border: none;
		background-color: var(--background-color);
	}

	/* Show all list items and set indentation */
	nav li {
		display: block !important;
		margin-left: 1rem;
	}

	/* Modify top position for main menu */
	nav#main {
		top: 11rem;
		left: 0rem;
	}

	/* Attach links to main menu */
	nav#links {
		top: auto;
		left: 0rem;
        margin-top: 1rem;
        transform: translateY(100%);
	}

	/* Show the menu when the checkbox is checked */
	input#menutoggle:checked ~ nav {
		display: block;
	}
}

/* Related elements */
li.tag {
	display: inline-block;
	margin: 0.15rem 0rem 0.15rem;
	padding: 0.15rem 0.5rem;
	background-color: var(--shaded-fill-color);
	border-radius: 2rem;
	max-width: 100%;
}

li.tag * {
	color: var(--background-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

li.tag.active {
	background-color: var(--fill-color);
}

/* Content */
div#content {
	margin: 12rem 4rem 4rem 4rem;
}

div#content > p {
	margin: 0.3rem 0rem 0.3rem;
}

div#content > img {
	max-width: 100%;
	max-height: 30rem;
	margin-bottom: 1.5rem;
}

div#content > img.left {
	float: left;
	margin-right: 1.5rem;
}

div#content > img.right {
	float: right;
	margin-left: 1.5rem;
}

div#content > div.gallery > img.full {
	float: left;
	max-width: 60%;
	max-height: none;
	margin-right: 2rem;
}

div#content > div.gallery > div.thumbnails > img {
	display: block;
    float: left;
    width: 10rem;
    height: 10rem;
    padding: 0rem 1.5rem 1.5rem 0rem;
    object-fit: cover;
}

/* Project Tiles */
div#projects {
	overflow: auto;
	padding: 4rem 4rem 2.5rem 4rem;
	background-color: var(--fill-color);
	clear: both;
}

div#projects li {
	display: block;
	float: left;
    padding: 0rem 1.5rem 1.5rem 0rem;
}

div#projects img {
	object-fit: cover;
	width: 10rem;
	height: 10rem;
}