:root {
	--blue: #03b;
	--green: #005102;
	--red: #a20;
	--darkgray: #222232;
	--inbetweengray: #666;
	--lightgray: #888;
	--fadedout: #ccc;
	--transparentish: #ddd;
}

html, body {
	height: 100%;
	padding: 0;
	margin: 0;
	text-transform: lowercase;
	color: var(--darkgray);
	line-height: 1.0em;
	box-sizing: border-box;
}

html, body, input, p, h1, h2, #sizer {
	font-family: courier-std, Courier, 'Courier New', monospace;
	font-size: 22px;
	font-weight: normal;
}

html {
	-webkit-tap-highlight-color: transparent;
}

main {
	max-width: 625px;
	margin: auto;
}

h1 {
	margin: 0;
	padding: 0;
	display: inline-block;
}

h2 {
	color: var(--lightgray);
	padding-bottom: 2px;
	margin-bottom: 0px;
	margin-top: 0;
	word-spacing: -4px;
	/* text-decoration: underline; */
}

p {
	padding-top: 0px;
	margin-top: 0px;
	margin-bottom: 1em;
}

body {
	padding: 12px;
}

a {
	text-decoration: none;
	color: var(--blue);
}

blockquote {
	font-size: 0.8em;
	line-height: 1.2em;
}

/* ****************** Header ****************** */

#header {
	margin: 0;
	color: var(--lightgray);
	overflow: hidden;
}

#hamburger {
	font-weight: bold;
	float: left;
	width: 0;
	opacity: 0;
	transition: opacity .6s ease-in-out, width .6s ease-in-out;
}

#hamburger.game {
	opacity: 1;
	width: 18px;
}

#logo {
	float: left;
	cursor: pointer;
}

#title {
	margin-left: 0;
	opacity: 1;
	transition: opacity 1.2s ease-in-out, margin-left 1.2s ease-in-out;
}

#title.intro {
	margin-left: -160px;
	opacity: 1;
}

#scoreboard {
	float: right;
	opacity: 0;
	margin-right: -150px;
	transition: opacity .6s ease-in-out, margin-right .6s ease-in-out;
}

#scoreboard.game {
	margin-right: 0;
	opacity: 1;
}

#scoreboard_plus {
	color: var(--blue);
}

/* ****************** Main ****************** */

#main {
	min-height: 100%;
	margin: 12px 6px;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
	/*transition-delay: 0.6s;	*/
}

#main.ready {
	opacity: 1;
}

/* ****************** Menu ****************** */

#menu {
	max-height: 1800px;
	overflow: hidden;
	opacity: 1;
	transition: max-height .6s ease-in-out, opacity .6s ease-in-out;
}

#menu_slow {
	margin-bottom: 38px;
}

#menu_slow, #menu_fast {
	cursor: pointer;
	transition: height .8s ease-in-out;
	min-height: 3.5em;
}

#menu_slow.hide, #menu_fast.hide {
	display: none;
}

#menu.hide {
	opacity: 0;
	max-height: 0px;
	margin: 0;
}

#menu.quickhide {
	transition: max-height 0s ease-in-out, opacity .6s ease-in-out;
}

#menu_slow_instructions, #menu_fast_instructions {
	transition: opacity 1.8s ease-in-out;
}
#menu_slow_instructions.hide, #menu_fast_instructions.hide {
	opacity: 0;
}

#main_menu {
	z-index: 1000;
	margin-top: 0px;
	transition: margin-top 1.2s ease-in-out, opacity 1.2s ease-in-out;
}

#main_menu.hide {
	opacity: 0;
	max-height: 0px;
	margin-top: 2000px;
}

#onboarding {
	transition: opacity 3.2s ease-in-out;
}

#onboarding.hide {
	pointer-events: none;
	opacity: 0;
	max-height: 0px;
	margin: 0;
	float: left;
	transition: opacity 1.2s ease-in-out;
}

#onboarding_slogan {
	padding-top: 40px;
}

#menu p, #support_page p {
	font-size: 0.8em;
}

#how_to_play p {
	font-size: 0.75em;
}

.link {
	color: var(--blue);
	cursor: pointer;
}

.play_cue {
	font-size: .9em;
	margin-left: 20px;
	float: right;
}

#share_slow_button, #share_fast_button {
	color: var(--green);
}

#welcome_to_game {
	/* font-size: 0.9em; */
	line-height: 1em;
	/* text-align: center; */
	/* color: var(--lightgray); */
	margin: 24px 0 30px;
	/* opacity: 0.9; */
	text-align: center;
	padding-bottom: 12px;
}
#welcome_to_game.hide {
	transition: opacity 1.8s ease-in-out;
	opacity: 0;
}

#share_area, #support_us_area {
	height: 0px;
	color: var(--green);
	opacity: 0.7;
	cursor: pointer;
	overflow: hidden;
	transition: height 0.8s ease-in-out;
}
#share_area.reveal, #support_us_area.reveal {
	height: 1.8em;
}
#share_area {
	margin: 38px 0 26px;
}
#support_us_area {
	color: var(--blue);
	margin: 0 0 64px;
}

#copied_to_clipboard {
	font-size: 0.9em;
	color: var(--lightgray);
	transition: opacity 2.8s ease-in-out;
	opacity: 0;
}
#copied_to_clipboard.show {
	transition-duration: 0s;
	opacity: 1;
}

.copyright {
	display: inline-block;
	float: left;
	font-size: 1.1em;
	font-family: Courier, 'Courier New', monospace;
	margin-top: 2px;
	padding-right: 6px;
}

/* ****************** How to Play ****************** */

#how_to_play h2 {
	padding-bottom: 20px;
	text-decoration: none;
}

#ios_appstore_badge {
	display: block;
	margin: 0 auto;
	margin-top: 0px;
	margin-bottom: 40px;
}

/* ****************** Support ****************** */

#support_page {
	max-height: 1000px;
	margin-top: 38px;
	overflow: hidden;
	opacity: 1;
	transition: opacity 1.2s ease-in-out;
}

#support_page.hide {
	opacity: 0;
	max-height: 0px;
}


#scroll_to_badge_space {
	height: 0px;
	overflow: hidden;
}

#scroll_to_badge_space.space {
	height: 100vh;
}

/* ****************** Play ****************** */

.clear_transitions {
	transition: 0s !important;
}

#game_area {
	max-height: 400px;
	overflow: hidden;
	opacity: 1;
	transition: opacity 0.8s ease-in-out;
}

#game_area.hide {
	opacity: 0;
	max-height: 0px;
}

#clock {
	clear: both;
	text-align: center;
	padding-top: 0;
	color: var(--inbetweengray);
}

#clock.hide {
	opacity: 0;
	transition: opacity 0.7s ease-in-out;
}

#clock.again {
	transition: opacity 2.2s ease-in-out, color 2.2s ease-in-out;
	opacity: 1;
	color: var(--blue);
	cursor: pointer;
}

#word_area {
	padding-top: 30px;
	padding-bottom: 12px;
	text-align: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	color: var(--fadedout);
	cursor: default;
}

#word_area.fadein {
	transition: color 2s ease-in-out;
	color: var(--darkgray);
}

#word_area.inactive {
	opacity: 0.5;
	pointer-events: none;
}

#play_area {
	position: relative;
	margin-top: 22px;
	min-height: 34px;
	height: 34px;
	text-align: center;
	overflow: hidden;
	border-bottom: 2px solid #333;
}

#play_input, #play_input_error, #play_input_scores {
	position: absolute;
	left: 0;
	bottom: 0;
	text-transform: lowercase;
	text-align: center;
	box-sizing: border-box;
	background-color: rgba(0, 0, 0, 0.0);
	min-height: 24px;
	width: 100%;
	border: 0;
	border-radius: 0;
	padding: 0 0 3px 0;
}

#play_input.inactive {
	opacity: 0.5;
	pointer-events: none;
}

#play_input_error, #play_input_scores {
	background-color: rgba(0, 0, 0, 0.0);
	color: var(--red);
	pointer-events: none;
	z-index: -1;
}

#play_input_scores {
	color: var(--blue);
}

#play_input.shrunken, #play_input_error.shrunken, #play_input_scores.shrunken {
	/* margin-top: 18px; */
	padding-bottom: 0;
}

#play_input:focus {
	outline: 0;
}

#play_input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: var(--transparentish);
}
#play_input::-moz-placeholder { /* Firefox 19+ */
  color: var(--transparentish);
}
#play_input:-ms-input-placeholder { /* IE 10+ */
  color: var(--transparentish);
}
#play_input:-moz-placeholder { /* Firefox 18- */
  color: var(--transparentish);
}

#error_area {
	font-size: 16px;
	margin-top: 15px;
	text-align: center;
	color: var(--red);
}
#error_area.hint {
	color: var(--green);
}

#submit_area {
	margin-top: 12px;
	text-align: center;
}

#submit_button {
	padding: 10px;
	text-align: center;
	cursor: pointer;
	opacity: 1;
	transition: opacity .2s ease-out .2s;
}

#submit_button.inactive {
	opacity: 0.5;
	pointer-events: none;
}

.used_letter {
	color: var(--fadedout);
}

.error {
	color: var(--red);
}

#continue_slow, #continue_fast {
	transition: opacity 1.8s ease-in-out;
}
.fadeout {
	transition: opacity 1.8s ease-in-out;
	opacity: 0;
}

#sizer {
    height: auto;
    width: auto;
    white-space: nowrap;
}

.small {
	font-size: 0.8em;
}

/* ****************** Media Queries ****************** */

@media only screen and (max-width: 440px)  {
	html, body, input, p, h1, h2, #sizer {
		font-size: 21px;
	}

	#menu {
		transition: max-height 0s ease-in-out, opacity .6s ease-in-out;
	}

	#menu.mobiletomenu {
		transition: max-height .8s ease-in-out, opacity .6s ease-in-out;
	}

	#menu.mobiletosupport {
		transition: max-height .8s ease-in-out, opacity 0s  ease-in-out;
	}

	#play_input.shrunken, #play_input_error.shrunken, #play_input_scores.shrunken {
		font-size: 0.85em;
	}
}

@media only screen and (max-width: 375px)  {
	html, body, input, p, h1, h2, #sizer {
		font-size: 20px;
	}

	#onboarding_slogan {
		padding-top: 16px;
	}
}

@media only screen and (max-width: 320px)  {
	#play_input.shrunken, #play_input_error.shrunken, #play_input_scores.shrunken {
		font-size: 0.8em;
	}
}

/* ****************** Add to Homescreen Overrides ****************** */

.ath-application-icon {
	width: 57px;
	height: 57px;
}

.ath-container {
	text-transform: none;
	box-shadow: 0 0 0 #d1d1d1;
}

.ath-container p {
	font-size: 1.3em;
	line-height: 1.6em;
}

.ath-ios.ath-phone:after {
    box-shadow: 0 0 0 #d1d1d1;
}

.ath-container small {
	font-size: 1em;
	line-height: 1.2em;
}

.ath-container:before {
	content: 'x';
	color: var(--darkgray);
	font-family: courier-std, Courier, 'Courier New', monospace;
	font-size: 1.4em;
	background-color: rgba(255,255,255,0.0);
	width: 1.1em;
	height: 1.1em;
	background-image: none;
}