.wobble_class {
	animation-name: wobble_class;
	animation-duration: 0.1s;
}

@keyframes wobble_class {
	0%		{-webkit-transform: scale(1); -moz-transform: scale(1); transform: scale(1);}
	25%		{-webkit-transform: scale(0.95); -moz-transform: scale(0.95); transform: scale(0.95);}
	50%		{-webkit-transform: scale(0.9); -moz-transform: scale(0.9); transform: scale(0.9);}
	75%		{-webkit-transform: scale(0.95); -moz-transform: scale(0.95); transform: scale(0.95);}
	100%	{-webkit-transform: scale(1); -moz-transform: scale(1); transform: scale(1);}
}

.letter {
	border: 2px solid black;
	display: inline-block;
	vertical-align: middle;
	line-height: 0;
	padding: 0;
	text-transform: uppercase;
	margin: 4px 2px 4px 2px;
	border-radius: 8px;
}

.letter_0_hide{display: none;}
.letter_0_show{display: inline;}
.letter4 {width: 40px; height: 40px; font-size: 33px;}
.letter5 {width: 40px; height: 40px; font-size: 33px;}
.letter6 {width: 40px; height: 40px; font-size: 31px;}
.letter7 {width: 35px; height: 40px; font-size: 28px;}
.letter8 {width: 30px; height: 40px; font-size: 25px;}

/* for safari first */
.keyboard_button {
	width: 32px; height: 50px; margin: 1px; font-size: 16px;
}

.keyboard_button {
	display:inline-block;
	vertical-align:middle;
	border: 1px solid black;
	line-height: 0;
	margin: 0.5vmin;
	padding: 0rem;
	font-size: 1.1rem;
	font-weight: bold;
	width: 8vw;
	height: 8vh;
	max-width: 3.5rem;
	min-height: 1.5rem;
	max-height: 3.0rem;
}

/* halve the width items to step the middle row out*/
.middle_row_spacer {
	float: left;
	margin: 0.25vmin;
	padding: 0;
	width: 4vw;
	height: 1px;
	max-width: 1.75rem;
}

.highlight {
	text-align: center;
}

.highlight_active {
	background-color: #dddddd;
}

.highlight_complete {
	background-color: #e5ffe5;
}

.white {
	background-color: white;
	color: black;
}

.grey_word {
	background-color: white;
	color: black;
}

.grey_keyboard {
	background-color: white;
	color: #cccccc;
}

.yellow {
	background-color: #f4eb71;
	color: black;
}

.green {
	background-color: #66ff66;
	color: black;
}

.yellow_CB {
	background-color: #FFC20A;
	color: black;
}

.green_CB {
	background-color: #559BD8;
	color: black;
}

.active_game_style {
	background-color: black;
	color: white;
}

.bbwordsred {
	background-color: #ee0000;
	color: white;
}

.keyboard {
	position: fixed;
	left: 50%;
	transform: translate(-50%, 0);
	-moz-transform: translate(-50%, 0);
	-webkit-transform: translate(-50%, 0);
	bottom: 0;
	text-align: center;
	width: auto;
	border: 3px solid black;
	border-bottom: 0;
	display: none;
	z-index: 900;
}

.popup_box {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);

	overflow-y: auto;
	overflow-x: hidden;

	width: 250px;
	height: auto;
	background-color: white;
	border: 6px double black;
	padding: 0.5rem;
	z-index: 901;
}

.keyboard_color {background-color: #dddddd;}
.enter_smaller {font-size: 11px;}

/* put px first for Safari */
@media only screen and (min-width: 400px) {
	.keyboard_button {width: 32px; height: 50px; margin: 2px; font-size: 18px;}
	.keyboard_button {width: 8.5vw; height: 8vh; margin: 0.5vmin; font-size: 1.2rem;}
	.letter4 {width: 50px; height: 50px; font-size: 35px;}
	.letter5 {width: 50px; height: 50px; font-size: 35px;}
	.letter6 {width: 50px; height: 50px; font-size: 35px;}
	.letter7 {width: 42px; height: 50px; font-size: 30px;}
	.letter8 {width: 40px; height: 50px; font-size: 30px;}
	.popup_box {width: 360px;}
	.enter_smaller {font-size: 14px;}
}

@media only screen and (min-width: 500px) {
	.keyboard_button {width: 40px; height: 50px; margin: 3px; font-size: 20px;}
	.keyboard_button {width: 8.5vw; height: 8vh; margin: 0.5vmin; font-size: 1.4rem;}
	.letter4 {width: 50px; height: 50px; font-size: 35px;}
	.letter5 {width: 50px; height: 50px; font-size: 35px;}
	.letter6 {width: 50px; height: 50px; font-size: 35px;}
	.letter7 {width: 50px; height: 50px; font-size: 35px;}
	.letter8 {width: 50px; height: 50px; font-size: 35px;}
	.popup_box {width: 460px;}
	.enter_smaller {font-size: 18px;}
}

@media only screen and (min-width: 600px) {
	.keyboard_button {width: 48px; height: 50px; margin: 4px; font-size: 24px;}
	.keyboard_button {width: 8.5vw; height: 8vh; margin: 0.5vmin; font-size: 1.6rem;}
	.letter_0_hide{display: inline;}
	.popup_box {width: 560px;}
	.enter_smaller {font-size: 20px;}
}

@media only screen and (min-width: 700px) {
	.keyboard_button {width: 56px; height: 50px; margin: 5px; font-size: 28px;}
	.keyboard_button {width: 8.5vw; height: 8vh; margin: 0.5vmin; font-size: 1.8rem}
	.enter_smaller {font-size: 22px;}
}