*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Roboto, -apple-system, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif !important;
	background: #3b4465 !important;
}

#full_modal_close:hover {
	background-color: #a51b1b;
}

#full_modal_close {
	transition: all .3s ease-in-out;
	text-align: center;
    font-size: 2em;
    font-weight: bold;
    padding: 20px;
    background-color: #ff6565;
    color: white;
    cursor: pointer;
}

#full_modal.show {
	display: block;
}

#full_modal {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: white;
	z-index: 10000;
}

#full_modal_content .controls {
	position: fixed;
	left: 50%;
	bottom: 50px;
	transform: translate(-50%);
}

#flipBtn {
	font-size: 2em;
}

.kahuut_body button:focus, .kahuut_body button:active {
	outline: unset;
}

.language_selector button {
	color: white;
    background: unset;
    border: 0;
    cursor: pointer;
    margin: 5px;
}

.language_selector a:hover {
	background-color: #d7e7f1;
}

.language_selector a {
	color: white;
}

.language_selector {
	position: absolute;
    right: 6px;
    top: 6px;
}

.language_selector .dropdown-menu {
	right: 0 !important;
	left: unset;
	background: transparent;
    border: unset;
	border: 1px solid #505c88;
}

.forms-section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: calc(100vh);
}

.section-title {
	font-size: 32px;
	letter-spacing: 1px;
	color: #fff;
}

.forms {
	display: flex;
	align-items: flex-start;
	margin-top: 30px;
}

.form-wrapper {
	animation: hideLayer .3s ease-out forwards;
}

.form-wrapper.is-active {
	animation: showLayer .3s ease-in forwards;
}

@keyframes showLayer {
	50% {
		z-index: 1;
	}
	100% {
		z-index: 1;
	}
}

@keyframes hideLayer {
	0% {
		z-index: 1;
	}
	49.999% {
		z-index: 1;
	}
}

.switcher {
	position: relative;
	cursor: pointer;
	display: block;
	margin-right: auto;
	margin-left: auto;
	padding: 0;
	text-transform: uppercase;
	font-family: inherit;
	font-size: 16px;
	letter-spacing: .5px;
	color: #999;
	background-color: transparent;
	border: none;
	outline: none;
	transform: translateX(0);
	transition: all .3s ease-out;
}

.form-wrapper.is-active .switcher-player {
	color: #fff;
	transform: translateX(90px);
}

.form-wrapper.is-active .switcher-host {
	color: #fff;
	transform: translateX(-90px);
}

.underline {
	position: absolute;
	bottom: -5px;
	left: 0;
	overflow: hidden;
	pointer-events: none;
	width: 100%;
	height: 2px;
}

.underline::before {
	content: '';
	position: absolute;
	top: 0;
	left: inherit;
	display: block;
	width: inherit;
	height: inherit;
	background-color: currentColor;
	transition: transform .2s ease-out;
}

.switcher-player .underline::before {
	transform: translateX(101%);
}

.switcher-host .underline::before {
	transform: translateX(-101%);
}

.form-wrapper.is-active .underline::before {
	transform: translateX(0);
}

.form {
	overflow: hidden;
	min-width: 260px;
	margin-top: 50px;
	padding: 30px 25px;
  border-radius: 5px;
	transform-origin: top;
}

.form-player {
	animation: hideLogin .3s ease-out forwards;
}

.form-wrapper.is-active .form-player {
	animation: showLogin .3s ease-in forwards;
}

@keyframes showLogin {
	0% {
		background: #d7e7f1;
		transform: translate(40%, 10px);
	}
	50% {
		transform: translate(0, 0);
	}
	100% {
		background-color: #fff;
		transform: translate(35%, -20px);
	}
}

@keyframes hideLogin {
	0% {
		background-color: #fff;
		transform: translate(35%, -20px);
	}
	50% {
		transform: translate(0, 0);
	}
	100% {
		background: #d7e7f1;
		transform: translate(40%, 10px);
	}
}

.form-host {
	animation: hideSignup .3s ease-out forwards;
}

.form-wrapper.is-active .form-host {
	animation: showSignup .3s ease-in forwards;
}

@keyframes showSignup {
	0% {
		background: #d7e7f1;
		transform: translate(-40%, 10px) scaleY(.8);
	}
	50% {
		transform: translate(0, 0) scaleY(.8);
	}
	100% {
		background-color: #fff;
		transform: translate(-35%, -20px) scaleY(1);
	}
}

@keyframes hideSignup {
	0% {
		background-color: #fff;
		transform: translate(-35%, -20px) scaleY(1);
	}
	50% {
		transform: translate(0, 0) scaleY(.8);
	}
	100% {
		background: #d7e7f1;
		transform: translate(-40%, 10px) scaleY(.8);
	}
}

.form fieldset {
	position: relative;
	opacity: 0;
	margin: 0;
	padding: 0;
	border: 0;
	transition: all .3s ease-out;
}

.form-player fieldset {
	transform: translateX(-50%);
}

.form-player i {
	position: absolute;
    right: 5px;
    top: 48px;
    font-size: 1.6em;
    cursor: pointer;
	transition: all .3s ease-in-out;
}

.form-player i:hover {
	color: #a7e245;
}

.form-host fieldset {
	transform: translateX(50%);
}

.form-wrapper.is-active fieldset {
	opacity: 1;
	transform: translateX(0);
	transition: opacity .4s ease-in, transform .35s ease-in;
}

.form legend {
	position: absolute;
	overflow: hidden;
	width: 1px;
	height: 1px;
	clip: rect(0 0 0 0);
}

.input-block {
	margin-bottom: 20px;
}

.input-block label {
	font-size: 14px;
  color: #a1b4b4;
}

.input-block input {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding-right: 15px;
	padding-left: 15px;
	font-size: 16px;
	line-height: 40px;
	color: #3b4465;
  background: #eef9fe;
  border: 1px solid #cddbef;
  border-radius: 2px;
}

.form input {
	font-size: 18px;
    text-align: center;
}

.form.form-player input {
    letter-spacing: 6px;
    font-weight: bold;
}

.form [type='button'] {
	opacity: 0;
	display: block;
	min-width: 120px;
	margin: 30px auto 10px;
	font-size: 18px;
	line-height: 40px;
	border-radius: 25px;
	border: none;
	transition: all .3s ease-out;
}

.form-wrapper.is-active .form [type='button'] {
	opacity: 1;
	cursor: pointer;
	transform: translateX(0);
	transition: all .4s ease-in;
}

.btn-player {
	color: #fbfdff;
	background: #a7e245;
	transform: translateX(-30%);
}

.btn-host {
	color: #a7e245;
	background: #fbfdff;
	box-shadow: inset 0 0 0 2px #a7e245;
	transform: translateX(30%);
}
