@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

/* Overrides */
body, html {
	display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: #EFEFEF;
	scroll-behavior: smooth;
}
* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
	font-family: 'Poppins', 'Roboto', sans-serif;
}
main, #safeAreaWrapper {
    display: inherit;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    align-self: center;
}

.button {
	display: inline-flex;
	align-items: center;
	height: 37px;
	border-radius: 18.5px;
	padding: 0.5rem 2rem;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	border: none;
	text-decoration: none;
	background: #442D7B;
	background: linear-gradient(135deg, rgba(92,74,147,1) 0%, rgba(44,16,100,1) 100%);
	transition: all 0.2s ease;
}
.button:hover {
	color: #fff!important;
    box-shadow: 0 2px 6px 0 rgb(0 0 0 / 50%);
}
.mobile {
	display: block;
}
.desktop {
	display: none;
}

/* Navigation */
#navContainer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 1000;
	width: 100%;
	max-width: 1080px;
	height: 68px;
	margin: 0 auto;
	padding: 1rem;
	background-color: #000;
}
#navContainer a {
	color: #fff;
	text-decoration: none;
}
#navContainer > a {
	z-index: 100;
	display: inline-flex;
	align-items: center;
}
#navContainer a:hover {
	color: #E1D4FA;
}
#navBG {
	position: absolute;
    left: 0;
    top: 0;
	width: 100%;
    height: 100%;
	z-index: 99;
    background-color: #000;
}
#menuButton {
	position: relative;
	display: flex;
	z-index: 101;
	height: 36px;
	width: 36px;
	border: none;
	outline: none;
	background: transparent;
}
#menuButton:before, #menuButton:after {
	content: "";
	position: absolute;
	top: 18px;
	left: 4px;
	width: 28px;
	height: 2px;
	background: #fff;
	transition: all 0.3s ease;
	will-change: transform;
}
#menuButton:before {
	transform: translateY(-4px);
}
#menuButton:after {
	transform: translateY(4px);
}
.open#menuButton {
	position: fixed;
	right: 1rem;
}
.open#menuButton:before {
	transform: translateY(0) rotate(135deg);
}
.open#menuButton:after {
	transform: translateY(0) rotate(225deg);
}
#sideNav {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 100%;
	padding-top: 60px;
	text-align: center;
	background: #000;
	transform: translateY(-100%);
	transition: transform 0.3s ease;
}
#navContainer.open #sideNav {
	transition: transform 0.3s ease;
	transform: translateY(0);
}
#sideNav a {
	display: block;
	margin: 0.5rem 0;
	padding: 0.5rem;
}
#sideNav .button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 150px;
	margin: 1.25rem auto 0 auto;
}
#sideNav hr {
	width: calc(100% - 3rem);
	margin: 0 auto;
	border-color: #262626;
}

/* Header */
header {
	padding: 1rem 1rem;
    text-align: center;
}
header h1, header p {
	max-width: 680px;
	margin: 0 auto 3.5rem auto;
}

/* Main */
main {
	margin: 0 auto;
	padding: 0 1rem;
	width: 100%;
	max-width: 880px;
}
#games {
	scroll-margin-top: 2rem;
	margin-bottom: 5rem;
	padding: 2rem 1.5rem 3rem 1.5rem;
	text-align: center;
	background-color: #fff;
}
#games > div + div {
	margin-top: 3rem;
}
.game-graphic {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	overflow: hidden;
	width: 100%;
	max-width: 652.8px;
	height: 180px;
	margin: 1rem auto;
	padding: 1rem;
	text-shadow: 0 0 8px #fff;
	background-color: #EFEFEF;
}
.game-graphic h2 {
	padding-bottom: 0.5rem;
	font-size: 32px;
}
.game-graphic p {
	font-size: 14px;
	font-weight: bold;
}
.game-graphic#wordvoyance {
	background: url("/_res/img/preview_wordvoyance.png");
}
.game-graphic#brailliance {
	background: url("/_res/img/preview_brailliance.png");
	background-position: center right;
}
.game-graphic#hangduels {
	background: url("/_res/img/preview_hangduels.png");
	background-position: center left;
}
.game-graphic#braille-concept {
	background: url("/_res/img/preview_braille_concept.png");
	background-position: center left;
}
.beta-marker {
	font-size: x-small;
}
#games a {
	display: inline-block;
	padding: 0.5rem 4rem;
	color: #2C1064;
	cursor: pointer;
	border: none;
	font-weight: bold;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	background-color: #E1D4FA;
	transition: all 0.2s ease;
}
#games a:hover {
    box-shadow: 0 2px 6px 0 rgb(0 0 0 / 30%);
}

/* About / Who We Are */
#about {
	padding-top: 1rem;
	overflow-x: hidden;
}
#about h2 {
	position: relative;
	display: inline-block;
	font-size: 42px;
}
#about h2 span {
	position: relative;
	z-index: 2;
	margin-left: 1rem;
}
#about h2:before {
	content: "";
	position: absolute;
	top: -1rem;
    left: 0;
	z-index: 0;
	width: 100%;
	height: 63px;
	padding: 1rem 2rem 2rem 1rem;
	background-color: #e7dff5;
}
#about p {
	position: relative;
	z-index: 1;
	width: 90%;
	margin: 0 0 0 auto;
	padding: 1rem 2rem;
	background-color: #fff;
}
#about p:first-of-type {
	margin-top: -1.35rem;
	padding: 2rem 2rem 0 2rem;
}
#about p:last-of-type {
	padding: 0 2rem 2rem 2rem;
}

/* Footer */
footer {
	width: 100%;
	margin-top: 4rem;
	padding: 3rem 1rem;
	text-align: center;
	background-color: #E4E4E4;
}

footer a {
	margin-bottom: 1rem;
}

/* Login */
#login {
	display: flex;
    flex-direction: column;
    flex-grow: 1;
	max-width: 480px;
}
#login h1 {
	margin: 3rem 0 1rem 0;
	font-size: 2rem;
	text-align: center;
}
#login > div {
	padding: 2rem;
	background-color: #fff;
}
.text-box {
	position: relative;
	margin-bottom: 2rem;
	font-size: 16px;
}
.text-box input {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-bottom: 2px;
	font-size: inherit;
	font-family: inherit;
	border: none;
	outline: none;
	border-radius: 0;
	border-bottom: 1px solid #E4E4E4;
	background: none;
}
.text-box label {
	position: absolute;
	top: 2px;
	left: 0;
	z-index: 2;
	color: #585858;
	pointer-events: none;
	transition: 0.2s ease;
}
.text-box label.focus-label {
	top: -18px;
	font-size: 12px;
	transition: 0.2s ease;
}
.form-buttons {
	display: flex;
	/*grid-gap: 1.5rem 1rem;*/
	flex-flow: row wrap;
	justify-content: space-between;
}
/* Safari hack til grid-gap is normalized for flex */
.form-buttons button {
	margin: 0 0.5rem 1.5rem 0;
}
.form-buttons > div > a:first-child {
	margin-bottom: 1rem;
}
.form-buttons > div {
	display: flex;
	flex-flow: column;
}
#login > div {
	padding-bottom: 0.5rem;
}
.forgot-password-header {
    padding: 6rem 0 0;
}
.reset-password-form {
	display: flex;
    flex-flow: column;
    margin: 1rem auto;
	padding: 3rem 3rem 1.5rem;
	background: white;
}
.reset-password-form > p {
	margin-bottom: 2rem;
}
.reset-password-form > button {
	width: fit-content;
	margin: auto;
}
#forgot-password-output {
	text-align: center;
}
#password-reset-confirm-form {
	margin: 0 auto;
}


/* Media Breakpoints --------------------- */
@media (min-width: 500px) {
	.reset-password-form {
		width: 500px;
	}
}
@media (min-width: 1024px) {
	.mobile {
		display: none;
	}
	.desktop {
		display: block;
	}
	#navContainer {
		height: 100px;
		padding: 2rem 3rem;
	}
	#navContainer.open > a {
		display: inline-block;
	}
	.open#menuButton {
		position: relative;
		display: inline-flex;
		right: 0;
	}
	#sideNav {
		position: absolute;
		right: 0;
		left: auto;
		width: 250px;
		height: auto;
		padding-top: 0;
		z-index: 98;
		padding-bottom: 3rem;
		transform: translateY(calc(-100% + 100px));
	}
	#navContainer.open #sideNav {
		transform: translateY(100px);
	}
	#sideNav hr {
		width: calc(100% - 6rem);
	}
	header {
/*		padding: 6rem 0;*/
	}
	#games {
		margin-bottom: 6rem;
	}
	.game-graphic {
		padding: 1rem 2rem;
	}
	#about h2 {
		font-size: 48px;
	}
	#about p:first-of-type {
		margin-top: -1.5rem;
		padding: 3rem 3rem 0 3rem;
	}
	#about p {
		margin: 0 0 0 auto;
		padding: 1.5rem 3rem 0 3rem;
	}
	#about p:last-of-type {
		padding: 1.5rem 3rem 3rem 3rem;
	}
	#login > div {
		padding: 3rem 3rem 1.5rem 3rem;
	}
}