/*********************
BASICS
*********************/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
	display: block;
}

audio,
canvas,
video {
	display: inline-block;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden] {
	display: none;
}

html {
	font-family: sans-serif;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

nav{
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

nav h4 {
	padding: 5px;;
}

a:focus {
	outline: thin dotted;
}

a:active,
a:hover {
	outline: 0;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

abbr[title] {
	border-bottom: 1px dotted;
}

b,
strong {
	font-weight: bold;
}

dfn {
	font-style: italic;
}

hr {
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	height: 0;
}

p {
	margin-block-start: 0;
}

mark {
	background: #ff0;
	color: #000;
}

code,
kbd,
pre,
samp {
	font-family: monospace, serif;
	font-size: 1em;
}

pre {
	white-space: pre-wrap;
}

q {
	quotes: "\201C" "\201D" "\2018" "\2019";
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

img {
	border: 0;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 0;
}

fieldset {
	border: 1px solid #c0c0c0;
	margin: 0 2px;
	padding: 0.35em 0.625em 0.75em;
}

legend {
	border: 0;
	padding: 0;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
}

button,
input {
	line-height: normal;
}

button,
select {
	text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="search"] {
	-webkit-appearance: textfield;
	-moz-box-sizing: content-box;
	-webkit-box-sizing: content-box;
	box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
	vertical-align: top;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

*,
*::after,
*::before {
	box-sizing: border-box;
}

body {
	--color-text: #000000;
	--color-bg: #e8e8e8;
	--color-link: #353535;
	--color-link-hover: #707070;
	--color-info: #272526;
	--grid-item-bg: #f1f1f1;
	--color-close: #ec1752;
	font-family: Futura, "futura-pt", sans-serif;
	min-height: 100vh;
	color: #57585c;
	color: var(--color-text);
	background-color: #fff;
	background-color: var(--color-bg);
}

#contact {
	display: flex;
	flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.contacticons{
	display: flex;
    align-content: center;
    flex-direction: column;
    align-items: center;
	text-align: center;
	margin-bottom: 40px;
}


/*********************
PAGE LOADER
*********************/

.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	pointer-events: none;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5, 0.5, 1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
}

.link{
	text-decoration:underline;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}


/*********************
ICONS
*********************/

.icon {
	display: block;
	fill: currentColor;
	padding: 0 10px 0 10px;
}

main {
	position: relative;
}

.frame {
	position: relative;
	padding: 1.5rem 2.5rem;
}

.frame a:hover {
	color: #8a8a8a;
}

/*********************
HEADER
*********************/

.codrops-header {
	position: relative;
	z-index: 100;
	text-align: center;
	font-size: 1rem;
}

.codrops-header__title {
	font-size: 1rem;
	font-weight: normal;
	margin: 0;
	padding: 0;
}

.info {
	color: var(--color-info);
	text-align: justify;
    max-width: 800px;
	margin: 0 auto;
	padding-top: 20px;
	padding-bottom: 30px;
}
.info button{
	margin-top: 20px;
	width: 100%;
}

#marker {
	display: flex;
    flex-direction: row;
	padding: 50px 0 30px 0;
}

#marker p {
	padding-left: 20px;
}

#marker img{
	width:30%;
}
.github {
	display: block;
	margin: 0.15em 0.15em 0.15em 0.5em;
	padding: 0.25em;
}

.title {
	text-align: center;
	padding-bottom: 30px;
}

.title__name {
	font-weight: normal;
	margin: 0;
	font-size: 1.5rem;
}
.title__sub {
	font-weight: normal;
	margin: 0;
	font-size: 1rem;
}
.title__sub-works {
	display: block;
}
.title__sub {
	position: relative;
	margin: 0;
}
.links__sub-works {
	display: block;
}

/*********************
GRID
*********************/

.codrops-links {
	position: relative;
	display: flex;
	justify-content: space-evenly;
	text-align: center;
	white-space: nowrap;
	padding-top: 30px;
}

.codrops-icon {
	display: inline-block;
	margin: 0.15em;
	padding: 0.25em;
}

.grid-wrap {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1rem 0;
}

.grid-wrap--hidden {
	height: 0;
	overflow: hidden;
}

.grid {
	margin: 0 auto;
	position: relative;
	display: none;
}

.js .grid {
	display: block;
}

.grid__item {
	width: 260px;
	position: relative;
	padding: 1.5rem;
	margin-bottom: 5rem;
}

.grid__item-wrap {
	position: relative;
}

.grid__item-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--grid-item-bg);
}

.grid__item-img {
	pointer-events: none;
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	display: block;
	outline: 1px solid transparent;
}

.grid__item:nth-child(even) .grid__item-img {
	transform: rotate3d(0, 0, 1, 4deg);
}

.grid__item:nth-child(odd) .grid__item-img {
	transform: rotate3d(0, 0, 1, -4deg);
}

.grid__item-title {
	font-weight: normal;
	position: absolute;
	left: 0;
	top: 0;
	margin: 0 0 0 1rem;
	-webkit-writing-mode: vertical-rl;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	transform-origin: 0 50%;
}

.grid__item-title i {
	padding-right: 10px;
    padding-top: 10px;
}

.grid__item-number {
	font-weight: bold;
	position: absolute;
	right: 0;
	bottom: 0;
	font-size: 2.65rem;
	margin: 0 0 0.15rem;
}

.grid__item-number>span {
	display: inline-block;
}

#morevideos{
	text-align: center;
	margin-bottom: 60px;
}

#latestvideo{
	text-align: center;
	margin-bottom: 0px;
}

.imprint {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.imprint p {
	padding: 5px;
}

/*********************
SHOWREEL
*********************/

.yt_box {
    position: relative;
    max-width: 950px;
    top: 3vh;
    margin: 0 auto 60px auto;
}

.yt_box:before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.yt_box iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/*********************
CONTENT
*********************/
.facts{
	display: flex;
	flex-direction: row;
	align-items: center;
}

.facts-icons{
	display: flex;
	flex-direction: column;
	align-items: center;	
	padding-right: 20px;
}

.facts-icons i{
	padding: 0;
}
.facts-icons p{
	margin: 5px 0 0 0;
}

.iconcontainer {
	display: inline-block;
}

.content {
	margin: 0 auto;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	align-items: center;
	pointer-events: none;
}

.js .content {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.content__item {
	padding: 10rem 5vw 10rem;
	grid-area: 1 / 1 / 1 / 1;
}

.js .content__item {
	height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0;
	pointer-events: none;
}

.js .content__item--current {
	height: auto;
	opacity: 1;
	padding: 3rem 5vw 10rem;
	pointer-events: auto;
}

.content__item-intro {
	position: relative;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	align-items: center;
}

.content__item-img {
	position: relative;
	height: auto;
	max-width: 100%;
	display: block;
	margin: 0 auto;
	grid-area: 5 / 1 / 1 / 1;
}

.js .content__item-img {
	visibility: hidden;
}

.content__item-title {
	position: relative;
	font-size: 4rem;
	line-height: 1;
	text-align: center;
	margin: 30px 0 0 0;
	padding: 0 5vw;
	white-space: normal;
	grid-area: 1 / 1 / 1 / 1;
}

.content__item-title>span {
	white-space: pre;
	display: inline-block;
}

.content__item-subtitle {
	text-align: center;
	font-size: 1.7rem;
	font-weight: normal;
	margin: 2rem auto;
}

.content__item-text {
	text-align: justify;
	max-width: 800px;
	margin: 0 auto;
}

.content__item-text p {
	margin: 0;
}

.content__close {
	position: absolute;
	top: 0.75rem;
	left: 50%;
	z-index: 10000;
	transform: translateX(-50%);
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
	color: var(--color-text);
}

.content__close:focus {
	outline: none;
}

.content__item--current~.content__close {
	pointer-events: auto;
}

.content__indicator {
	position: absolute;
	top: calc(100vh - 6rem);
	left: calc(50% - 0.75rem);
	display: none;
}

.js .content__item-title>span,
.js .content__item-subtitle,
.js .content__item-text,
.content__close,
.content__indicator {
	opacity: 0;
}

.content_img{
	max-width: 950px;
	margin: auto;
}
.content_img img{
	width: 100%;
	padding: 0 0 20px 0;
}
.content_img_2{
	display: flex;
	flex-direction: row;
	width: 100%;
}
.content_img_2 img{
	width: 50%;
	height: auto;
	padding: 0 20px 20px 20px;
}
#about{
	display: flex;
	flex-direction: column;
	max-width: 1040px;
	margin: auto;
}
#about .container{
	display: flex;
	align-items: center;
	flex-direction: column;
}

.section-title{
	text-align: center;
}
#abouttext{
	padding: 0 20px 0 20px;
}
#benjamin_pic {
    display: flex;
    justify-content: center;
	margin-bottom: 25px;
}
#pic {
    width: 50%;
    height: auto;
}
#buttons{
	display: flex;
    flex-direction: column;
}
#cv-container{
	display: flex;
	justify-content: space-around;
	padding: 15px 0 15px 0;
}
#cv-container a{
	width: 45%;
}
#cv-container button{
	width: 100%;
}
#socials-container{
	display: flex;
	justify-content: space-around;
	padding-bottom: 25px;
}
#socials-container button{
	width: 45%;
}


/*********************
SCROLL TO TOP BUTTON
*********************/
#toTopBtn {
    display: none;
	background-color: #353535;
	border-color: #353535;
    color: white;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 1000;
    /* Make sure it does not overlap */
    /* Text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 5px 10px 5px 10px;
    /* Some padding */
    border-radius: 3px;
    /* Rounded corners */
    font-size: 15px;
    /* Increase font size */
}

#toTopBtn:hover {
    display: none;
	background-color: #707070;
	border-color: #707070;
}

@media screen and (min-width: 55em) {
	.frame {
		display: grid;
		align-items: start;
		justify-items: start;
		grid-template-columns: 40% 60%;
		grid-template-areas: 'title header';
	}
	#contact {
		flex-direction: row;
	}
	#about .container{
		display: flex;
		align-items: flex-start;
		flex-direction: row;
	}
	#abouttext{
		padding-left: 40px;
	}
	#benjamin_pic {
		margin: 0px 0px 25px 0px;
	}
	#pic {
		width: 100%;
		height: auto;
	}
	#buttons{
		display: flex;
		flex-direction: row;
	}
	#cv-container{
		padding: 0;
	}
	#cv-container a{
		width: auto;
		margin-right: 15px;
	}
	#socials-container{
		display: flex;
		justify-content: space-around;
		padding-bottom: 25px;
	}
	#socials-container button{
		width: auto;
		margin-right: 15px;
	}
	.codrops-header {
		grid-area: header;
		justify-self: end;
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		align-items: center;
		text-align: right;
	}
	.codrops-links {
		margin: 0 0 0 1rem;
		padding-top: 0;
		justify-content: center;
	}
	.title {
		grid-area: title;
		display: flex;
		text-align: left;
	}
	.title__name {
		font-size: 1rem;
	}
	.title__sub {
		position: relative;
		padding: 0 0 0 5rem;
		margin: 0 0 0 1rem;
	}
	.title__sub::before {
		content: '';
		height: 1px;
		width: 4rem;
		background: currentColor;
		position: absolute;
		top: 0.65rem;
		left: 0;
	}
	.title__sub-works {
		display: block;
	}
	.links__sub-works {
		display: none;
	}
	.grid__item-number {
		right: -2.45rem;
	}
	.grid__item-title {
		margin-left: -0.25rem;
	}
	.content__item-subtitle {
		font-size: 1.7rem;
	}
	.content__item-text {
		column-count: 2;
		column-gap: 20px;
	}
	.content__item-img {
		max-width: none;
		height: calc(100vh - 11rem);
	}
	.content__item-subtitle {
		max-width: 50%;
	}
	.content__indicator {
		display: block;
	}
}