/* --- Color-Schemes --- */

:root {

	/* Main (Everywhere)*/
	--darkgrey: #161919;
	--background: #F5F5F5;
	--lightgrey: #7E7E7E;

	/* General, Board and Control */
	--red: #E22523;
	--red-accent: #B21917;
	
	/* Show */
	--yellow: #FAB511;
	--yellow-accent: #EC681C;
	
	/* Web */
	--green: #0C9F39;
	--green-accent: #D4D91E;
	
	/* Video */
	--blue: #3D949F;
	--blue-accent: #0095CB;
	
}

/* --- For Desktop-Devices and Tablets --- */

@media screen and (min-width : 750px) and (min-height : 701px) {
	.wrapper {
		width: 100%;
		height: 100%;
	}
	
	.right {
		float: left;
		height: 100vh;
		max-width: 100%;
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: center;
	}
	
	.left {
		width: 200px;
		background-color: var(--darkgrey);
		height: 100vh;
		display: flex;
		float: left;
		align-items: center;
		flex-direction: column;
		justify-content: center;
	}
	
	.form {
		padding-left: 120px;
		padding-right: 120px;
	}
	
	.headline {
		letter-spacing: 0.15em;
		font-size: 40px;
		text-transform: uppercase;
		position: absolute;
		left: 320px;
		top: 90px;
		text-align: right;
	}
	
	body {
		height: 100%;
		margin: 0;
		min-height: 100vh;
		background-color: var(--background);
	}
	
	.logo {
		width: 150px;
		margin-left: 160px;
	}
	
	.footer {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		color: var(--darkgrey);
		text-align: right;
	}
	
	.footer p {
		margin-right: 18px;
	}
	
	h1 {
		font-weight: 400;
		letter-spacing: 0.15em;
		text-transform: uppercase;
		margin-top: 0px;
		font-size: 28px;
	}
	
}

/* --- For Smartphones and small-sized heights --- */

@media screen and (max-width : 749px), screen and (max-height : 700px) {
	.wrapper {
		width: 100%;
	}
	
	.right {
		max-width: 100%;
		margin-top: 110px;
	}
	
	.left {
		width: 100%;
		background-color: var(--darkgrey);
		height: 120px;
	}
	
	.form {
		padding-left: 40px;
		padding-right: 40px;
	}
	
	.headline {
		letter-spacing: 0.15em;
		font-size: 30px;
		text-transform: uppercase;
		position: absolute;
		left: 40px;
		top: 170px;
	}
	
	body {
		margin: 0;
		background-color: var(--background);
	}
	
	.logo {
		width: 140px;
		margin-left: 40px;
		margin-top: 20px;
	}
	
	.footer {
		width: 100%;
		color: var(--darkgrey);
		text-align: left;
		background-color: var(--background);
	}
	
	.footer p {
		margin-top: 0;
		margin-bottom: 30px;
		font-size: 0.9em;
		padding: 0px 40px 0px 40px;
	}
	
	html,body {
		height:100%;
	}
	
	body {
		display:flex;
		flex-direction: column;
	}
	
	.wrapper {
		flex: 1 0 auto;
	}
	
	.footer {
		flex-shrink: 0;
	}
	
	h1 {
		font-weight: 400;
		letter-spacing: 0.15em;
		text-transform: uppercase;
		margin-top: 0px;
		font-size: 22px;
	}
}

/* --- Valid for all sizes --- */

html {
	box-sizing: border-box;
	height: 100%;
	font-family: 'Source Sans Pro', sans-serif;
}

input {
	box-sizing: border-box;
	width: 250px;
	max-width: 100%;
	height: calc(3em + 2px);
	margin: 0 0 1.5em;
	border-bottom: 1px solid var(--lightgrey);
	border-left: none;
	border-top: none;
	border-right: none;
	background: none;
	font-size: 16px;
	resize: none;
	outline: none;
	-webkit-appearance: none;
	border-radius: 0;
	font-family: 'Source Sans Pro', sans-serif;
	color: var(--darkgrey);
	padding-left: 0px !important;
}

input:focus {
	border-color: var(--darkgrey);
}

input:focus + label[placeholder]:before {
	color: var(--darkgrey);
	text-transform: uppercase;
}

input:focus + label[placeholder]:before,
input:valid + label[placeholder]:before {
	transition-duration: .2s;
	transform: translate(0, -1.6em) scale(0.9, 0.9);
	transform-origin: 0 0;
}

/*input[type="text"]:valid {
	border-color: green;
}
input[type="text"]:valid + label[placeholder]:before {
	color: green;
}*/

input:invalid + label[placeholder][alt]:before {
	content: attr(alt);
	text-transform: uppercase;
}

input + label[placeholder] {
	display: block;	
	pointer-events: none;
	margin-top: calc(-3.5em - 2px);
	margin-bottom: calc((3em - 1em) + 2px);
}

input + label[placeholder]:before {
	content: attr(placeholder);
	display: inline-block;
	color: var(--lightgrey);
	white-space: nowrap;
	text-transform: uppercase;
	transition: 0.3s ease-in-out;
}

a {
	color: var(--red);
	font-weight: 600;
	text-decoration: none;
}

.button_clear {
	-webkit-appearance: none;
	border: 1px solid var(--red);
	border-radius: 0.2rem;
	padding: 1rem;
	width: 250px;
	max-width: 100%;
	color: var(--red);
		font-family: 'Source Sans Pro', sans-serif;
	font-weight: 600;
	letter-spacing: 0.2rem;
	font-size: 1rem;
	background: none;
	cursor: pointer;
}

.button_clear span {
	cursor: pointer;
	display: inline-block;
	position: relative;
	transition: 0.5s;
}

.button_clear span:after {
	content: '\f2f6';
	font-size: 1rem;
	position: absolute;
	opacity: 0;
	top: 2px;
	right: -20px;
	transition: 0.5s;
	font-family: "Font Awesome 5 Free";
}

.button_clear:hover span {
	padding-right: 25px;
}

.button_clear:hover span:after {
	opacity: 1;
	right: 0;
}

.button_clear:focus {
	outline:none;
}
