@font-face {
	font-family: 'gotham_htfbook';
	src: url('../fonts/gothamhtf-book-webfont.woff2') format('woff2'),
	     url('../fonts/gothamhtf-book-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'gotham_htfbold';
	src: url('../fonts/gothamhtf-bold-webfont.woff2') format('woff2'),
	     url('../fonts/gothamhtf-bold-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'gotham_htfbold_condensed';
	src: url('../fonts/gothamhtf-boldcondensed-webfont.woff2') format('woff2'),
	     url('../fonts/gothamhtf-boldcondensed-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@keyframes shake {
	10%, 90% {
		transform: translate3d(-0.1rem, 0, 0);
	}

	20%, 80% {
		transform: translate3d(0.2rem, 0, 0);
	}

	30%, 50%, 70% {
		transform: translate3d(-0.4rem, 0, 0);
	}

	40%, 60% {
		transform: translate3d(0.4rem, 0, 0);
	}
}

* {
	box-sizing: border-box;
}
html {
	font-size: 18px;
	font-size: calc( 18px + (20 - 18) * ( (100vw - 300px) / ( 768 - 300) ));
	background-color: #EBEBEB;
}
body {
	margin: 0;
	padding: 0;
	font-family: 'gotham_htfbook', Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
	font-family: 'gotham_htfbold_condensed', Helvetica, Arial, sans-serif;
	line-height: 1;
}
h1 {
	font-size: 1.7rem;
}
h2 {
	font-size: 1.3rem;
}
h3 {
	font-size: 1.1rem;
}
h4 {
	font-size: 1rem;
}
h5 {
	font-size: 0.83rem;
}
h6 {
	font-size: 0.67rem;
}
p, a, span, button, input, select, option, textarea, label, li, td, small, strong {
	font-family: inherit;
}
small {
	font-size: 75%;
}
strong {
	font-weight: 700;
}
input, select, option, textarea, .button {
	-moz-appearance: none;
	-webkit-appearance: none;
	border-radius: 0.25rem;
	font-size: 1rem;
	line-height: 1;
	padding: 0.2rem 0.3rem;
}
input, select, textarea {
	background: transparent;
	border: 0.1rem solid #dedede;
}
input.error, select.error, textarea.error {
	border-color: #f83c3c;
}
select {
	cursor: pointer;
}
input::placeholder {
	color: #c7c7c7;
}
a {
	text-decoration: none;
	color: inherit;
}
.button {
	display: inline-block;
	cursor: pointer;
	color: white;
	font-family: 'gotham_htfbold_condensed', Helvetica, Arial, sans-serif;
	font-weight: 600;
	text-align: center;
	text-shadow: 0 -0.03rem 0 rgba(0, 0, 0, 0.15), 0 0.03rem 0 rgba(255, 255, 255, 0.3);
	padding: 0.4rem 2rem;
	border: none;
}
.button.small {
	color: #7e7e7e;
	font-family: 'gotham_htfbook', Helvetica, Arial, sans-serif;
	font-weight: 400;
	text-shadow: none;
	font-size: 0.6rem;
	padding: 0.4rem 0.6rem;
	background-color: #dedede;
}
.green {
	background-color: #39b54a;
}
.blue {
	background-color: #4bafef;
}
.grey {
	background-color: #7e7e7e;
}
.error {
	color: #f83c3c;
}
.flex {
	display: flex;
}
#title_block {
	margin: 2rem 0;
}
#title_block img {
	display: block;
	margin: 0 auto;
	width: 20rem;
	max-width: 90%;
}
#container {
	overflow: hidden;
}
#form_wrapper {
	opacity: 1;
	transition: 0.3s ease-in-out;
}
#form_wrapper.out {
	opacity: 0;
	transform: translateY(150vh);
}
.user_form {
	display: block;
	width: 90%;
	margin: 2rem auto;
	border-radius: 0.4rem;
	background-color: white;
	box-shadow: 0.3rem 0.3rem 3rem rgba(0,0,0,0.1);
}
.user_form.error {
	animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}
.user_form header {
	border-radius: 0.4rem 0.4rem 0 0;
}
.user_form.error header {
	background-color: #f83c3c;
}
.user_form header h1 {
	margin: 0;
	padding: 0.5rem;
	color: white;
	text-align: center;
}
.user_form section {
	padding: 1rem;
}
.user_form .inputs {
	width: 90%;
	margin: 2rem auto 3rem;
}
.user_form .input_wrapper {
	margin: 0.5rem 0;
}
.user_form .input_wrapper.buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-top: 1rem;
}
.user_form .input_wrapper.buttons .button {
	margin: 0.5rem 0;
	width: 100%;
	padding: 0.4rem;
	border: none;
}
.user_form .input_wrapper.buttons .button.full {
	width: 100%;
}
.user_form .input_wrapper.select {
	position: relative;
}
.user_form .input_wrapper.select:after {
	display: block;
	pointer-events: none;
	position: absolute;
	right: 0.4rem;
	bottom: 0.3rem;
	content: '\f107';
	font-family: 'FontAwesome';
	color: #c7c7c7;
}
.user_form .input_wrapper.buttons input {
	display: inline-block;
	width: auto;
}
.user_form .input_wrapper label {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 80%;
	color: #769fbe;
}
.user_form .input_wrapper input, .user_form .input_wrapper select, .user_form .input_wrapper textarea {
	display: block;
	width: 100%;
}
.user_form input[type='text'], .user_form input[type='email'], .user_form input[type='password'], .user_form select, .user_form textarea {
	color: #7e7e7e;
}
.user_form select:required:invalid {
	color: #c7c7c7;
}
.user_form option[value=""][disabled] {
	display: none;
}
.user_form option {
	color: #7e7e7e;
}
.user_form span.error {
	display: block;
	font-size: 60%;
	line-height: 1.2;
	margin-bottom: 1rem;
}
.user_form span.error.inside {
	margin-top: 0.2rem;
	margin-bottom: 0;
}
.user_form .message {
	font-size: 90%;
	line-height: 1.2;
	color: #7e7e7e;
}

/**** desktop ****/

@media (min-width: 768px) {
	html {
		font-size: calc( 18px + (20 - 18) * ( (100vw - 768px) / ( 1440 - 768) ));
	}
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.5rem;
	}
	h3 {
		font-size: 1.17rem;
	}
	.button {
		transition: 0.2s ease-in-out;
	}
	.button.green:hover {
		background-color: #019930;
	}
	.button.blue:hover {
		background-color: #2395d3;
	}
	.button.grey:hover {
		background-color: #666666;
	}
	.button.small:hover {
		background-color: #c7c7c7;
	}
	.user_form {
		width: 25rem;
	}
	.user_form .inputs {
		width: 70%;
		margin: 2rem auto 3rem;
	}
	.user_form .input_wrapper.buttons .button {
		width: 45%;
	}
	.user_form .input_wrapper.buttons .button.small {
		margin-top: 0;
	}
}

/**** desktop large ****/

@media (min-width: 1440px) {
	html {
		font-size: 1.4vw;
	}
}