html {
	min-width: 624px;
	min-height: 700px;
	overflow: hidden;
}
body {
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.2) 100%);
	/*background-image: radial-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 100%);*/
	background-color: black;
	transition: background-color 1s;
	-webkit-transition: background-color 1s;
	-moz-transition: background-color 1s;
	-o-transition: background-color 1s;
	font-size: 10px;
	overflow: hidden;
}

#menu-wrapper {
	position: absolute;
	left: 0px;
	top: 50%;
	width: 100%;
	height: 0px;
	animation: fade-in 1s;
	-webkit-animation: fade-in 1s;
	-moz-animation: fade-in 1s;
	-o-animation: fade-in 1s;
	transition: opacity 1s, color 1s;
	-webkit-transition: opacity 1s, color 1s;
	-moz-transition: opacity 1s, color 1s;
	-o-transition: opacity 1s, color 1s;
}
#menu {
	position: absolute;
	left: 0px;
	top: -90px;
	width: 100%;
	height: 180px;
	font-family: "Open Sans", Arial;
	font-weight: 100;
	text-align: center;
	color: white;
	background: linear-gradient(to right, transparent 10%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.3) 70%, transparent 90%);
	cursor: default;
}

body.mobile #menu {
	height: auto;
	background: rgba(0, 0, 0, 0.3);
}

#menu::after {
	position: absolute;
	left: calc(75% - 20px);
	bottom: -0.5em;
	display: block;
	font-family: FontAwesome;
	font-size: 6.4em;
	text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	content: "\f245";
}

body.mobile #menu::after {
	/*content: "\f192";*/
	content: "\f058";
}

#menu .title {
	font-size: 7.2em;
	line-height: 68px;
	padding-bottom: 12px;
}

#menu .subtitle {
	font-size: 3.2em;
	line-height: 28px;
	padding-bottom: 12px;
}

body.mobile #menu .subtitle {
	font-size: 2.4em;
	line-height: 1.25em;
}

#menu .tagline {
	font-size: 2.0em;
	line-height: 18px;
}

body.mobile #menu .tagline {
	padding-bottom: 8px;
}

#menu .tagline::before {
	content: "click";
}

body.mobile #menu .tagline::before {
	content: "tap";
}

#community {
	position: fixed;
	top: 2.4em;
	left: 0;
	width: 100%;
	overflow: visible;
	text-align: center;
}

#player {
	position: fixed;
	bottom: 5.2em; /* fallback */
	bottom: calc(2.4em + 28px);
	left: 0;
	width: 100%;
	overflow: visible;
	text-align: center;
}

#pot {
	position: fixed;
	top: 50%;
	left: 50%;
}
#pot-total {
	position: absolute;
	left: 0px;
	top: 50%;
	text-align: center;
	width: 100%;
	font-family: Arial;
	text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.5), 0px 1px 1px rgba(255, 255, 255, 0.2);
	transition: color 1s;
	-webkit-transition: color 1s;
	-moz-transition: color 1s;
	-o-transition: color 1s;
	animation: fade-in 1s;
	-webkit-animation: fade-in 1s;
	-moz-animation: fade-in 1s;
	-o-animation: fade-in 1s;
}
#pot-total > span {
	display: block;
	position: absolute;
	top: -24px;
	width: 100%;
	line-height: 48px;
	font-size: 4.8em;
	z-index: 8;
	cursor: default;
	animation: fade-in 1s;
	-webkit-animation: fade-in 1s;
	-moz-animation: fade-in 1s;
	-o-animation: fade-in 1s;
}
#card-results {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0px;
	height: 0px;
	z-index: 18;
}
#results {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	position: absolute;
	left: 0px;
	top: 14.4em; /* fallback */
	top: calc(9.6em + 48px);
	width: 100%;
	height: 0px;
	text-align: center;
	z-index: 18;
}
#results > div.text {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	/*position: absolute;*/
	/*left: 10%;*/
	margin: 0 auto;
	/*top: -16px;*/
	width: 80%;
	line-height: 32px;
	font-family: Arial;
	font-size: 2em;
	border-radius: 4px;
	background-color: rgba(0, 0, 0, 0.5);
	background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
	color: white;
	text-align: left;
	padding-left: 8px;
	cursor: default;
	z-index: 15;
	animation: fade-in 1s;
	-webkit-animation: fade-in 1s;
	-moz-animation: fade-in 1s;
	-o-animation: fade-in 1s;
}

#results > div.text > * {
	display: inline-block;
	padding-left: 0.6em;
}

#results > div.text > strong {
	padding: 0 0.5em;
	margin: 0 0.1em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

#results > div.text > strong + * {
	padding-left: 0;
}

#results > div.text > span {
	opacity: 0.4;
}

#results > div.hand {
	height: 9.6em;
	padding: 12px 0;
	text-align: center;
}

#results > div.hand > .card {
	display: inline-block;
	position: relative;
}

#results > div.hand > .card:not(:first-child) {
	margin-left: 0.25em;
}

#rankings {
	position: absolute;
	left: 0px;
	bottom: 0px;
	width: 100%;
	height: 28px;
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	font-family: "Open Sans", Arial;
	font-weight: 100;
	font-size: 2.0em;
	z-index: 40;
	cursor: default;
}

#rankings > div {
	display: inline-block;
	width: 33%;
	text-align: center;
	background: linear-gradient(to right, transparent 20%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.5) 60%, transparent 80%);
	animation: fade-in 0.2s;
	-webkit-animation: fade-in 0.2s;
	-moz-animation: fade-in 0.2s;
	-o-animation: fade-in 0.2s;
}
#rankings strong {
	font-weight: 600;
	padding: 0px 6px;
}
#rankings span {
	padding-left: 6px;
	color: gray;
}

.placeholder, .bid-button, .card, #pot, #pot-total, #text-results, #rankings, #menu-wrapper {
	-moz-user-select: -moz-none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.placeholder {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	position: relative;
	display: inline-block;
	/*position: absolute;*/
	width: 1em;
	height: 1em;
	font-size: 9.6em;
	font-family: Arial;
	border-radius: 0.0833em;
	/*border: 1px solid rgba(0, 0, 0, 0.5);*/
	background-color: rgba(0, 0, 0, 0.2);
	overflow: visible;
	box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.2), inset 0px 0px 8px 0px rgba(0, 0, 0, 0.5);
	animation: fade-in 1s;
	-webkit-animation: fade-in 1s;
	-moz-animation: fade-in 1s;
	-o-animation: fade-in 1s;
}

.placeholder:not(:first-child) {
	margin-left: 0.25em;
}

body.round-end #player > :nth-child(2) {
	display: none;
}

.bid-button {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	display: inline-block;
	/*position: absolute;*/
	overflow: hidden;
	width: 1em;
	height: 1em;
	font-size: 9.6em;
	font-family: Arial;
	border-radius: 0.0833em;
	/*padding: 0.0416em;*/
	padding: 4px;
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.2), inset 0px 0px 8px 0px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: color 1s, background-color 0.15s, box-shadow 0.15s;
	-webkit-transition: color 1s, background-color 0.15s, box-shadow 0.15s;
	-moz-transition: color 1s, background-color 0.15s, box-shadow 0.15s;
	-o-transition: color 1s, background-color 0.15s, box-shadow 0.15s;
	animation: fade-in 1s ease-in;
	-webkit-animation: fade-in 1s ease-in;
	-moz-animation: fade-in 1s ease-in;
	-o-animation: fade-in 1s ease-in;
}

.bid-button:not(:first-child) {
	margin-left: 0.25em;
}

.bid-button:hover:not(.show-none):not(:active) {
	/*border-color: rgba(255, 255, 255, 0.7);*/
	/*box-shadow: inset 0px 0px 2px 0px rgba(255, 255, 255, 0.3);*/
	background-color: rgba(0, 0, 0, 0);
	box-shadow: 0px 0px 2px 0px rgba(255, 255, 255, 0.2), inset 0px 0px 0px 1px rgba(0, 0, 0, 0.5);
}
.bid-button > .inner {
	/*width: 0.9583em;*/
	/*height: 0.9583em;*/
	width: calc(1em - 8px);
	height: calc(1em - 8px);
	position: relative;
	left: 0px;
	top: 0px;
	transition: top 0.5s;
	-webkit-transition: top 0.5s;
	-moz-transition: top 0.5s;
	-o-transition: top 0.5s;
}
.bid-button.right > .inner {
	/*top: calc(-1em + 8px);*/
	top: -1em;
}
.bid-button.show-none {
	cursor: default;
}
.bid-button.show-none > .inner {
	/*top: calc(1em - 8px);*/
	top: 1em;
}
.bid-button.right.show-none > .inner {
	top: -176px;
}
.bid-button > .inner > * {
	width: calc(1em - 8px);
	height: calc(1em - 8px);
	margin: 0 0 8px;
}
.bid-button > .inner > * > * {
	text-align: center;
	vertical-align: middle;
	text-transform: uppercase;
	/*color: white;*/
}
.bid-button .letter {
	line-height: 1em;
	font-size: 0.5833em;
	text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}
.bid-button .text {
	line-height: calc(1em + 8px);
	font-size: 0.25em;
	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5);
}
@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@-webkit-keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@-moz-keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@-o-keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.card {
	display: block;
	position: absolute;
	/*left: -48px;
	top: -48px;*/
	width: 1em;
	height: 1em;
	font-size: 9.6em;
	font-family: Arial;
	transition: left 1s, top 1s, bottom 1s, right 1s;
	-webkit-transition: left 1s, top 1s, bottom 1s, right 1s;
	-moz-transition: left 1s, top 1s, bottom 1s, right 1s;
	-o-transition: left 1s, top 1s, bottom 1s, right 1s;
}

.placeholder .card {
	font-size: 1em;
}

.card .front, .card .back {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	position: absolute;
	left: 0px;
	top: 0px;
	width: 1em;
	height: 1em;
	border-radius: 0.0833em;
	background-color: white;
}
.card:not(.flipped) > * {
	box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.5);
}
.card.flipped > * {
	box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.5);
}
.card .front {
	transition: opacity 0s linear 0.25s;
	-webkit-transition: box-shadow 1s, opacity 0s linear 0.25s;
	-moz-transition: opacity 0s linear 0.25s;
	-o-transition: opacity 0s linear 0.25s;
}
.card .front {
	text-align: center;
}
.card .front > * {
	vertical-align: middle;
}
.card .front .rank {
	padding-top: 0.1666em;
	font-size: 0.75em;
	line-height: 0.7777em;
	height: 0.7777em;
}
/*.card .front .suit {
	font-size: 0.25em;
	line-height: 1em;
}*/
.card .front .suit {
	width: 14.5px;
	height: 20px;
	font-size: 0.25em;
	line-height: 1em;
	margin: 0 auto;
	background-image: url(suits.svg);
	background-size: 32.5px 42px;
	background-repeat: no-repeat;
	background-position: -1.5px 0;
}
body.webkit .card .front .suit {
	width: 15px;
}
.card .front .suit.spades {
	background-position: -16px -19px;
}
.card .front .suit.hearts {
	background-position: -1.5px -19px;
}
.card .front .suit.diamonds {
	background-position: -16px 0;
}
.card .front .red {
	color: red;
}
.card .front.suit-words .rank {
	padding-top: 12px;
	font-size: 7.2em;
	line-height: 60px;
}
.card .front.suit-words .suit {
	font-size: 1.2em;
	line-height: 24px;
	padding-bottom: 0px;
}
.card .back {
	transition: opacity 0s linear 0.25s;
	-webkit-transition: opacity 0s linear 0.25s;
	-moz-transition: opacity 0s linear 0.25s;
	-o-transition: opacity 0s linear 0.25s;
	background-color: black;
	border: 0.25em solid white;
}
@keyframes card-front-flip {
	from { transform: perspective(500px) rotateY(180deg); }
	to { transform: perspective(500px) rotateY(0deg); }
}
@keyframes card-back-flip {
	from { transform: perspective(500px) rotateY(0deg); }
	to { transform: perspective(500px) rotateY(-180deg); }
}
@-webkit-keyframes card-front-flip {
	from { -webkit-transform: perspective(500px) rotateY(180deg); }
	to { -webkit-transform: perspective(500px) rotateY(0deg); }
}
@-webkit-keyframes card-back-flip {
	from { -webkit-transform: perspective(500px) rotateY(0deg); }
	to { -webkit-transform: perspective(500px) rotateY(-180deg); }
}
@-moz-keyframes card-front-flip {
	from { -moz-transform: perspective(500px) rotateY(180deg); }
	to { -moz-transform: perspective(500px) rotateY(0deg); }
}
@-moz-keyframes card-back-flip {
	from { -moz-transform: perspective(500px) rotateY(0deg); }
	to { -moz-transform: perspective(500px) rotateY(-180deg); }
}
@-o-keyframes card-front-flip {
	from { -o-transform: perspective(500px) rotateY(180deg); }
	to { -o-transform: perspective(500px) rotateY(0deg); }
}
@-o-keyframes card-back-flip {
	from { -o-transform: perspective(500px) rotateY(0deg); }
	to { -o-transform: perspective(500px) rotateY(-180deg); }
}
.card:not(.flipped) .front {
	opacity: 0;
}
.card:not(.flipped) .back {
	opacity: 1;
}
.card.flipped .front {
	animation: card-front-flip 0.5s linear 0s;
	-webkit-animation: card-front-flip 0.5s linear 0s;
	-moz-animation: card-front-flip 0.5s linear 0s;
	-o-animation: card-front-flip 0.5s linear 0s;
	opacity: 1;
}
.card.flipped .back {
	animation: card-back-flip 0.5s linear 0s;
	-webkit-animation: card-back-flip 0.5s linear 0s;
	-moz-animation: card-back-flip 0.5s linear 0s;
	-o-animation: card-back-flip 0.5s linear 0s;
	opacity: 0;
}

.chip {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	position: absolute;
	width: 4.8em;
	height: 4.8em;
	border-radius: 50%;
	/*background-color: rgba(255, 255, 255, 0.1);*/
	background-color: white;
	z-index: 10;
	transition: left 1s, top 1s, bottom 1s, right 1s, transform 1s ease-out;
	-webkit-transition: left 1s, top 1s, bottom 1s, right 1s, -webkit-transform 1s ease-out;
	-moz-transition: left 1s, top 1s, bottom 1s, right 1s, -moz-transform 1s ease-out;
	-o-transition: left 1s, top 1s, bottom 1s, right 1s, -o-transform 1s ease-out;
}
body.webkit .chip {
	border: 0.4em dashed black;
	box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5);
	padding: 0.2em;
}
body.webkit .chip::after {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	display: block;
	content: "";
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 0.1em dashed black;
}
body:not(.webkit) .chip {
	/*border: 2px solid black;*/
	box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5);
	/*, inset 2px 2px 3px 0px rgba(0, 0, 0, 0.4);*/
	padding: 0.4em;
	background-color: white;
}
body:not(.webkit) .chip::after {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	display: block;
	content: "";
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 0.2em inset rgba(0, 0, 0, 0.5);
	background-color: whitesmoke;
}

.modal {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	width: 3.6923em;
	min-height: 1.8461em;
	position: absolute;
	left: calc(50% - 1.8461em);
	top: calc(50% - 0.9230em);
	padding: 0.3076em;
	border-radius: 0.1538em;
	background-color: white;
	font-family: Arial;
	font-size: 5.2em;
	text-align: center;
	box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.5);
	opacity: 1;
	z-index: 20;
	animation: fade-in 0.5s;
	-webkit-animation: fade-in 0.5s;
	-moz-animation: fade-in 0.5s;
	-o-animation: fade-in 0.5s;
	transition: left 2s, top 2s, opacity 0.5s ease 1s;
	-webkit-transition: left 2s, top 2s, opacity 0.5s ease 1s;
	-moz-transition: left 2s, top 2s, opacity 0.5s ease 1s;
	-o-transition: left 2s, top 2s, opacity 0.5s ease 1s;
}

.modal.from-left {
	left: calc(25% - 1.8461em);
}

.modal.from-right {
	left: calc(75% - 1.8461em);
}

#speech-input {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	display: block;
	position: absolute;
	bottom: 8px;
	right: 8px;
	background-color: white;
	color: transparent;
	border: none;
	font-size: 3.2em;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	padding: 6px 0px 6px 6px;
	outline: none;
	box-shadow: inset 0px 2px 4px 0px black;
}

#mic-toggle {
	position: fixed;
	right: 0px;
	bottom: 0px;
	display: block;
	width: 28px;
	height: 28px;
	/*background-color: white;*/
	z-index: 100;
}

@media (max-width: 600px) {

	#rankings > div {
		background: none;
		line-height: 28px;
	}
}

@media (max-width: 600px),
@media (max-height: 748px) {

	.card .front .suit {
		width: 0.6041em;
		height: 0.8333em;
		background-size: 1.3541em 1.75em;
		background-position: -0.0625em 0;
	}
	body.webkit .card .front .suit {
		width: 0.625em;
	}
	.card .front .suit.spades {
		background-position: -0.6666em -0.7916em;
	}
	.card .front .suit.hearts {
		background-position: -0.0625em -0.7916em;
	}
	.card .front .suit.diamonds {
		background-position: -0.6666em 0;
	}

	#results > div.text {
		background: black;
	}
}

@media (max-width: 400px) {

	#menu-wrapper > #menu .subtitle {
		font-size: 3.2em;
		line-height: 1.25em;
	}

	#menu-wrapper > #menu .tagline {
		font-size: 2.8em;
		padding-bottom: 12px;
	}
}