html,
body {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-family: "PT Sans", sans-serif;
	overflow-x: hidden;
}

* {
	box-sizing: border-box;
}

.hidden {
	display: none;
}

a {
	text-decoration: none;
}

header {
	height: 80px;
	width: 100%;
	position: fixed;
	z-index: 50;
	background-color: #FFEB3B;
	padding: 10px 10px;
}

header img {
	float: left;
	height: 100%;
}

header div {
	font-weight: bold;
	float: left;
	height: 100%;
	font-size: x-large;
	line-height: 2.4;
	padding-left: 25px;
}

main {
	padding: 170px 10px;
	width: 100%;
	margin: 0 auto;
}

@media only screen and (min-width: 600px) {
	header {
		padding: 10px 18%;
	}

	main {
		width: 600px;
	}
}




/* ########## NAV ########## */


nav {
	width: 100%;
	height: 50px;
	position: fixed;
	top: 80px;
	z-index: 50;
}

div.nav_section {
	position: relative;
	height: 100%;
	width: 33.33%;
	float: left;
	text-align: center;
	font-size: 16px;
	font-weight: bold;
	line-height: 3;
	background-color: #fff;
}

div.nav_section::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 6px;
	width: 0;
	background: #002447;
	transition: width .25s;
}

div.nav_section:hover {
	cursor: pointer;
}

div.nav_section.active::before,
div.nav_section:hover::before {
	width: 100%;
}

div.nav_section span {
	background-color: red;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	margin-left: 0.5em;
	height: 1.8em;
	width: 1.8em;
	border-radius: 2em;
	color: #fff;
	text-align: center;
	line-height: 1.8em;
	font-size: 0.8em;
}




/* ########## SECTIONS ########## */


div.section_empty {
	font-size: 20px;
	color: #aaa;
	margin: 40px 0 60px 0;
	text-align: center;
}

h2.section_description {
	text-align: center;
	margin: 2.5em 0;
}

div.leiterlispiel_link,
div.monopoly_link {
	width: 100%;
	margin-bottom: 40px;
	padding: 0.7em 1em;
	border-radius: 3px;
	transition: .5s;
	cursor: pointer;
	background-position: 50% 2%;
	background-size: 103%;
	font-size: 2.4em;
	font-weight: bold;
	color: #fff;
	text-align: center;
	text-shadow: 0px 0px 15px #000;
	border: 12px solid #002447;
}

div.leiterlispiel_link:hover,
div.monopoly_link:hover {
	cursor: pointer;
	box-shadow: 0 0 29px 3px #999;
	background-size: 120%;
}

div.leiterlispiel_link:hover {
	background-size: 113%;
}

div.monopoly_link {
	background-image: url('/img/feld_monopoly.jpg');
}

div.leiterlispiel_link {
	background-image: url('/img/feld_leiterlispiel.jpg');
	background-position: 15% 1%;
	background-size: 100%;
	background-repeat: no-repeat;
}





/* ########## POST ########## */


div.post_wrapper {
	position: relative;
	margin: 40px 0;
	padding: 0.7em 1em 1.3em 1em;
	box-shadow: 0 0 29px 3px #999;
	border: 12px solid #002447;
	border-radius: 3px;
	transition: 1s;
}

div.post_wrapper.challenge {
	margin-top: 0;
	padding: 0.7em 1em;
	border-color: #FF4E50;
	overflow: hidden;
	height: 5.8em;
}

div.section_challenge_popup {
	position: fixed;
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
	width: calc(100% - 10px);
	max-height: calc(100% - 10px);
	overflow-y: auto;
	background-color: #ffffff;
	z-index: 99;
	box-shadow: 0 0 17px -3px #dddddd;
	padding: 0 1em 1em 1em;
	border: 12px solid #FF4E50;
	border-radius: 3px;
}

div.section_challenge_popup div#popup_close {
	height: 1em;
	width: 1em;
	position: absolute;
	top: 0.2em;
	right: 0.2em;
	font-size: 3em;
	line-height: 1em;
	text-align: center;
}

div.section_challenge_popup img,
div.section_challenge_popup video {
	max-width: 100%;
}

@media only screen and (min-width: 600px) {
	div.post_wrapper {
		padding: 1.3em 1.7em;
	}

	div.post_wrapper.challenge {
		height: 6.9em;
		padding: 1.3em 1.7em;
	}

	div.section_challenge_popup {
		width: 600px;
		left: 50%;
		transform: translateY(-50%) translateX(-50%);
	}
}

div.challenge_arrow {
	position: absolute;
	top: 0.6em;
	right: 0.2em;
	height: 1.6em;
	width: 1.6em;
	font-size: 1.6em;
	text-align: center;
	line-height: 1.6em;
	transition: .5s;
}

div.challenge_arrow img {
	height: 0.7em;
}

@media only screen and (min-width: 600px) {
	div.challenge_arrow {
		top: 0.6em;
		right: 0.4em;
		height: 2em;
		width: 2em;
		line-height: 2em;
	}

	div.challenge_arrow img {
		height: 0.7em;
	}
}

div.challenge_arrow:hover,
div.post_wrapper.challenge h1:hover {
	cursor: pointer;
}

div.post_wrapper.challenge.extended div.challenge_arrow {
	transform: rotateX(180deg);
}

div.post_wrapper.challenge h1 {
	margin-top: 0;
}

div.post_wrapper.challenge img {
	max-width: 100%;
	max-height: 100%;
}

div.post_header {
	overflow: hidden;
}

div.post_header_img {
	float: left;
	height: 40px;
	width: 40px;
	background-color: #002447;
	border-radius: 50px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 60%;
}

div.post_header_author {
	float: left;
	height: 100%;
	line-height: 2.9;
	padding-left: 13px;
	font-weight: bold;
}

div.post_timestamp {
	font-size: smaller;
	text-align: right;
}
div.post_header,
div.post_text,
div.post_media_wrapper {
	margin-bottom: 20px;
}

div.post_like {
	height: 25px;
	float: left;
	overflow: hidden;
}

div.post_like:hover {
	cursor: pointer;
}

div.post_like img {
	float: left;
	height: 100%;
}

div.post_like_count {
	float: left;
	padding: 3px 8px;
}




/* ########## MEDIA ########## */


div.post_media_wrapper {
	width: 100%;
	position: relative;
}

div.post_media_button_left,
div.post_media_button_right {
	position: absolute;
	top: calc(50% - 0.75em);
	height: 1.5em;
	width: 1.5em;
	z-index: 10;
	text-align: center;
	transition: .3s;
	color: #fff;
	background: #002447;
	border-radius: 10em;
	font-size: 2em;
	box-shadow: 0 0 17px 2px #fff;
}

div.post_media_button_left.hidden,
div.post_media_button_right.hidden {
	display: none;
}

div.post_media_button_left:hover,
div.post_media_button_right:hover {
	cursor: pointer;
	transform: scale(1.2);
}

div.post_media_button_left span,
div.post_media_button_right span {

}

div.post_media_button_left {
	left: -0.25em;
}

div.post_media_button_right {
	right: -0.25em;
}

div.post_media_slide {
	height:300px;
	width: 100%;
	overflow: hidden;
	position: relative;
}

div.post_media_slide img.post_image,
div.post_media_slide video {
	position: absolute;
	left: 50%;
	top: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

div.post_media_slide img {
	cursor: pointer;
}

img.post_image_fullscreen {
	position: absolute;
	top: 10px;
	right: 10px;
	height: 2.5em;
	width: 2.5em;
	transition: .5s;
	background-color: #fff;
	padding: 0.2em;
	box-shadow: 0 0 10px 3px #fff;
}

@media only screen and (min-width: 600px) {
	img.post_image_fullscreen {
		transform: translateX(200%);
	}

	img.post_image:hover ~ img.post_image_fullscreen {
		transform: initial;
	}
}


div.post_media_slide video {
	height: 100%;
	width: 100%;
}




/* ########## POPUP ########## */


div#overlay {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(0,0,0,0.7);
	z-index: 98;
}

div#button_new {
	position: fixed;
	z-index: 50;
	right: 0.7em;
	bottom: 0.7em;
	height: 1.4em;
	width: 1.4em;
	border-radius: 100px;
	background-color: #002447;
	color: #fff;
	font-size: 3em;
	text-align: center;
	line-height: 1.3em;
	transition: .3s;
}

div#button_new:hover {
	cursor: pointer;
	box-shadow: 0 0 17px -3px #8b8b8b;
	transform: scale(1.1) rotate(45deg);
}

@media only screen and (min-width: 600px) {
	div#button_new {
		right: 1.5em;
		bottom: 1em;
	}
}

div#popup {
	position: fixed;
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
	width: calc(100% - 10px);
	background-color: #ffffff;
	z-index: 99;
	padding: 2em 1.5em;
	box-shadow: 0 0 17px -3px #dddddd;
	border: 1px solid #cccccc;
	border-radius: 3px;
}

div#popup h2 {
	margin: 0 0 0.5em 0;
}

form#form_add_post div:nth-child(5) {
	margin-bottom: 0;
}

@media only screen and (min-width: 600px) {
	div#popup {
		left: calc(50% - 250px);
		width: 500px;
		padding: 3em;
	}

	div#popup h2 {
		margin: initial;
	}

	form#form_add_post div:nth-child(5) {
		margin-bottom: initial;
	}
}

div#popup div#popup_close {
	height: 35px;
	width: 35px;
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 35px;
	line-height: 0.9;
	text-align: center;
}

div#popup_close:hover {
	cursor: pointer;
}

button.button {
	border: none;
	border-radius: 4px;
	padding: 8px 30px;
	background-color: #002447;
	color: #fff;
	transition: .3s;
}

button.button:hover {
	cursor: pointer;
	box-shadow: 0 0 17px -3px #8b8b8b;
}

div#popup button {
	float: right;
}

div.popup_box_loading,
div.popup_box_success,
div.popup_box_error {
	text-align: center;
}

div.popup_box_success img,
div.popup_box_error img {
	height: 150px;
	margin: 0 auto;
	width: 100%;
	margin-bottom: 30px;
}

div.popup_box_loading img {
	width: 75%;
}




/* ########## MODAL ########## */


div#modal {
	position: fixed;
	z-index: 99;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
}

div#modal_close {
	position: fixed;
	z-index: 99;
	height: 0.8em;
	width: 0.8em;
	top: 0.1em;
	right: 0.1em;
	transition: .3s;
	font-size: 3em;
	line-height: 0.75em;
	text-align: center;
	color: #fff;
	background-color: #002447;
	border-radius: 10em;
	box-shadow: 0 0 20px -5px #fff;
}

div.modal_button_left,
div.modal_button_right {
	position: fixed;
	z-index: 99;
	top: 50%;
	transform: translateY(-50%);
	height: 1.5em;
	width: 1.5em;
	font-size: 2em;
	color: #fff;
	top: calc(50% - 0.75em);
	text-align: center;
	transition: .3s;
	color: #fff;
	background-color: #002447;
	border-radius: 10em;
	box-shadow: 0 0 20px -5px #fff;
	line-height: 1.5em;
}

div.modal_button_left {
	left: 0.2em;
}

div.modal_button_right {
	right: 0.2em;
}

@media only screen and (min-width: 600px) {
	div#modal_close {
		height: 1em;
		width: 1em;
		top: 0.5em;
		right: 0.5em;
		font-size: 4em;
		line-height: 0.95em;
	}

	div.modal_button_left,
	div.modal_button_right {
		height: 2em;
		width: 2em;
		line-height: 2em;
	}

	div#modal_close:hover,
	div.modal_button_left:hover,
	div.modal_button_right:hover {
		cursor: pointer;
		transform: scale(1.2);
	}

	div.modal_button_left:hover,
	div.modal_button_right:hover {
		transform: translateY(-50%) scale(1.2);
	}

	div.modal_button_left {
		left: 0.5em;
	}

	div.modal_button_right {
		right: 0.5em;
	}
}




/* ########## INPUT ########## */


div.form_group,
div.form_group_plain {
	position: relative;
	height: 60px;
	padding-top: 20px;
	margin-bottom: 20px;
}

div.form_group.large {
	height: initial;
}

div.form_group_plain {
	padding-top: 30px;
}

div.form_group input,
div.form_group textarea {
	width: 100%;
	padding: 10px;
	border: none;
	border-bottom: 3px #002447 solid;
	background-color: transparent;
}

div.form_group textarea {
	min-width: 100%;
	max-width: 100%;
	min-height: 50px;
	max-height: 250px;
}

div.form_group input {
	height: 40px;
}

div.form_group input:hover,
div.form_group input:focus,
div.form_group textarea:hover,
div.form_group textarea:focus {
	background-color: rgba(50,50,50,0.1);
	transition: background-color .5s, border-color .5s;
	border-color: #7c7c7c;
	outline: 0;
}


div.form_group input ~ label,
div.form_group textarea ~ label,
div.form_group_plain label {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	transition: .3s;
}

div.form_group input:not(.filled) ~ label,
div.form_group textarea:not(.filled) ~ label {
	top: 30px;
	left: 10px;
}

div.form_group input:focus ~ label,
div.form_group textarea:focus ~ label {
	top: 0;
	left: 0;
}