* {
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	outline: none;
}
a {
	white-space: nowrap;
}
input {
	user-select: auto;
	-webkit-user-select: auto;
}

.scoreAdd {
	animation-name: scoreAdd;
	animation-delay: .2s;
	animation-duration: .3s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}
@keyframes scoreAdd{
	0%{transform:color:#000}
	40%{transform:translateY(-15%);color:#3D3}
	100%{transform:translateY(0);color:#3D3}
}

.goodWord {
	animation-name: goodWord;
	animation-duration: .3s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}
@keyframes goodWord{
	0%{transform:scale(1);color:#000}
	40%{transform:scale(1.2) translateY(5%);color:#3D3}
	100%{transform:scale(.5) translateY(-55%);color:#6F6;opacity:0}
}

.badWord {
	animation-name: badWord;
	animation-duration: .3s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}
@keyframes badWord{
	0%{transform:translateX(0);color:#000}
	33%{transform:translateX(2%);color:#C33}
	66%{transform:translateX(-2%);color:#C33}
	100%{transform:translateX(0);color:#C33}
}

.didWord {
	animation-name: didWord;
	animation-duration: .3s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}
@keyframes didWord{
	0%{transform:translateX(0);color:#000}
	33%{transform:translateX(1%);color:#888}
	66%{transform:translateX(-1%);color:#888}
	100%{transform:translateX(0);color:#888}
}

.shake {
	animation-name: shake;
	animation-duration: .4s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
	background:#F55;
	transition:all .2s ease;
}
@keyframes shake{
	0%{transform:translateX(0)}
	33%{transform:translateX(2%)}
	66%{transform:translateX(-2%)}
	100%{transform:translateX(0)}
}

.bob {
	animation-name: bob;
	animation-duration: 1s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}
@keyframes bob{
	0%{transform:translateY(0)}
	50%{transform:translateY(-6%)}
	100%{transform:translateY(0)}
}

.tilt {
	animation-name: tilt;
	animation-duration: 1.1s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}
@keyframes tilt{
	0%{transform:rotate(10deg)}
	50%{transform:rotate(-10deg)}
	100%{transform:rotate(10deg)}
}

.swipe {
	animation-name: swipe;
	animation-duration: 1.5s;
	animation-timing-function: ease;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}
@keyframes swipe{
	0%{transform:translateX(-.7rem)}
	50%{transform:translateX(.7rem)}
	100%{transform:translateX(-.7rem)}
}

.flip {
	animation-name: flip;
	animation-duration: 4s;
	animation-timing-function: ease;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
	perspective-origin: center;
}
@keyframes flip{
	0%{transform:rotateY(0)}
	25%{transform:rotateY(0)}
	50%{transform:rotateY(180deg)}
	75%{transform:rotateY(180deg)}
	100%{transform:rotateY(0)}
}

.pulse {
	animation-name: pulse;
	animation-duration: 1.5s;
	animation-timing-function: ease-out;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}
@keyframes pulse{
	0%{opacity:0}
	50%{opacity:1}
	100%{opacity:0}
}

.bright {
	animation-name: bright;
	animation-duration: 1.6s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}
@keyframes bright{
	0%{filter:contrast(1)}
	15%{filter:contrast(1)}
	50%{filter:contrast(1.7)}
	85%{filter:contrast(1)}
	100%{filter:contrast(1)}
}

.glow {
	animation-name: glow;
	animation-duration: 1s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}
@keyframes glow{
	0%{opacity:1}
	50%{opacity:.8}
	100%{opacity:1}
}

@keyframes blink{
	0%{opacity:1}
	10%{opacity:0}
	50%{opacity:0}
	60%{opacity:1}
	100%{opacity:1}
}
.tileOuter {transition:all 1s linear}

.tile{overflow:hidden;z-index:1;background:linear-gradient(0deg, #B7B 50%, #FCE 100%);color:#FFF;position:relative;font-size:18rem;font-weight:bold;cursor:pointer;width:100%;height:100%;border-radius:3rem;display:flex;align-items:center;justify-content:center;border-bottom:.5rem solid #111;}
.tile.down{background:linear-gradient(0deg, #5DD 50%, #FFE 100%)}
.tile.did{animation:.8s ease 0s 1 normal forwards running goGrey}
.tile.bad{animation:.8s ease 0s 1 normal forwards running goRed}
.tileBg{position:absolute;top:0;left:0;bottom:0;right:0}
.tileGoodBg{position:absolute;top:0;left:0;bottom:0;right:0;opacity:0;background:linear-gradient(0deg, #0D5 50%, #EFE 100%)}
.tile.good .tileGoodBg{animation:.4s ease 0s 1 normal forwards running fadeInBlink}
.tile.goodDemo .tileGoodBg{animation:.7s ease 0s 1 normal forwards running fadeInBlinkDemo}


@keyframes goRed{
	0%{filter:brightness(.8) hue-rotate(55deg)}
	100%{filter:brightness(1) hue-rotate(0deg)}
}
@keyframes goGrey{
	0%{filter:brightness(.8) grayscale(1)}
	100%{filter:brightness(1) grayscale(0)}
}
@keyframes fadeInBlink{
	0%{opacity:0}
	5%{opacity:1;filter:brightness(1)}
	25%{opacity:1;filter:brightness(1.5)}
	45%{opacity:1;filter:brightness(1)}
	100%{opacity:0}
}
@keyframes fadeInBlinkDemo{
	0%{opacity:.5;filter:brightness(1)}
	0%{opacity:.7;filter:brightness(1.2)}
	100%{opacity:0}
}

.goGreenEmoji{animation:.4s ease 0s 1 normal forwards running goGreenEmoji}
@keyframes goGreenEmoji{
	0%{color:#000}
	50%{color:#0F0;filter:sepia(100%) hue-rotate(64deg) saturate(4)}
	100%{color:#000}
}

.fadeOutUp{animation:.4s ease 0s 1 normal forwards running fadeOutUp}
@keyframes fadeOutUp{
	0%{top:10rem;opacity:0}
	10%{top:9rem;opacity:1}
	100%{top:4rem;opacity:0}
}

.button, .emojiButton:not(.emojiOnlyButton){
	background-color:#79E;
	box-shadow:0 .5rem .4rem rgba(0,0,0,.3), 0 0.5rem 1rem rgba(255,255,255,.5) inset;
	cursor:pointer;
	color:#FFF;
	text-decoration:none;
	text-align:center;
	border-radius:2rem;
	border:none;
	border-bottom:2px solid #349;
	background-clip:padding-box !important;
}
.button{
	font-size:8rem;
	padding:4rem 6rem;
}
.button:active{
	background-color:#8AF !important;
	box-shadow:none;
	transform:translateY(2px);
	border-bottom-color:transparent;
}
.button:disabled{
	background-color:#888 !important;
	cursor: auto !important;
}

.emojiAvatar{
	width:1.66em;
	display:inline-block;
	text-align:center;
}

.emoji, .emojiButton, .emojiAvatar, .tilt{
	font-family:segoe ui emoji;
}

.emojiOnlyButton{
	text-shadow:0 2px 2px #000;
}
.emojiButton{
}
.emojiButton:not(a):active{
	transform:translateY(2px);
	text-shadow:none;
}
.emojiOnlyButton:active{
	transform:translateY(2px);
}
.emojiButton:not(.emojiOnlyButton):active{
	transform:translateY(2px);
	background-color:#79F !important;
	box-shadow:none;
}
.emojiButton:active{
	filter: brightness(0.85);
	border-bottom-color:transparent;
}


a:not(.button):not(.emojiButton){
	text-decoration:none;
	text-shadow:0 2px 0 #000;
}

a:not(.button):not(.emojiButton):active{
	position:relative;top:2px;
	filter: brightness(0.8);
	text-shadow:none;
}

.playing,.loading{
	font-style:italic;
	font-size:50%;
	text-align:center;
	animation-name: glow;
	animation-duration: .7s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}
.playing:after,.loading:after{
	content:'.';
	animation-name: blink;
	animation-duration: .7s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}

.totalRed{
	width:4.5rem;height:4.5rem;background:#E11;border-radius:100%;position:absolute;right:-.7rem;top:-1rem;font-size:4rem;line-height:4rem;text-align:center;text-shadow:none;box-shadow:0 0 .5rem #333
}

.score{font-family:courier;font-weight:bold}
.word{
	cursor:pointer;
	color:inherit;
	text-decoration:none;
	text-shadow:0 2px 0 #000;
	font-size:inherit;
	background:none;
	border:none;
}
.word:active{
	position:relative;top:2px;
	filter: brightness(0.8);
	text-shadow:none;
}
