input {
  display: block;
  cursor: text;
  background: #ECE5B6;
  color: #111;
  padding: .1em .3em 0 .3em;
  border-radius: 5px;
  border: 1px solid #555;
  font-weight: bold;
  height: 1.8em;
  width: 95%;
  font-size: 18px;
}

input:hover {
  border: 1px solid #157DEC;
  box-shadow: 0px 0px 5px #F7F7E3 inset;
}

input:-moz-placeholder {  
    color: #aaa;  
}

#panel {
	float: left;
	background: #555;
	background: -webkit-gradient( linear, left bottom, left top, color-stop(0,rgba(255,255,255,0)), color-stop(1, rgba(100,100,100,100)) );
	background: -moz-linear-gradient( center bottom, rgba(255,255,255,0) 0%, rgba(100,100,100,100) 100% );
	border-radius: 0px 20px 0px 0px;
	border-top: 2px solid #555;
	padding: 10px;
	width: 17em;
	height: 35.5em;
}

#panel.startTurn {
  background: -webkit-gradient( linear, left bottom, left top, color-stop(0,rgba(255,255,255,0)), color-stop(1, rgba(0,200,0,100)) );
  background: -moz-linear-gradient( center bottom, rgba(255,255,255,0) 0%, rgba(0,200,0,100) 100% );
}

#panel.endTurn {
  background: -webkit-gradient( linear, left bottom, left top, color-stop(0,rgba(255,255,255,0)), color-stop(1, rgba(200,0,0,100)) );
  background: -moz-linear-gradient( center bottom, rgba(255,255,255,0) 0%, rgba(200,0,0,100) 100% );
  
}

#panel button span{
   padding: 0em .7em .2em .7em;
}

#panel span#remainingTiles {
  background-color: #F7F7E3;
  /*min-width: 24px;
  height: 24px;*/
  padding: 4px;
  color: #333;
  /*margin-top: 4px;*/
  border-radius: 5px;
}

#panel table#players {
  margin: 0 auto;
  margin-bottom: 8px;

  border-collapse: collapse;
}

#panel #players tr {
  margin: 0; padding: 0;
}

#panel #players td {
  padding: .2em .3em .2em .3em;
  border-left: 1px solid #ddd;
}

#panel #players td:first-child {
  border: 0; 
}

#panel #players h3 {
  display: inline-block; 
  margin: 0; padding: 0;
  white-space: nowrap;
  overflow: hidden; 
  width: 3.6em;
  opacity: .3;
}

#panel #players div {
    border-radius: 12px;
    background: rgba(200,200,200,200);
    color: black;
}

#panel button#checkWord {
  float: right;
  margin-top: -44px;
  height: 1.95em;
}

#panel button#checkWord span {
  margin: 0;
  padding: 0 .15em 0 .2em;
}

#panel button#checkWord img {
   width: 28px;
   height: 28px;
}

#panel input#word {
  text-align: center;
  margin: .5em 0 .5em 0;
  padding-left: 32px;
  width: 10.8em;
}

#panel #checkedWord {
  display: none;
  float: left;
  margin-top: -39px;
  margin-left: 5px;
  height: 24px;
  width: 24px;
}


#panel button#settings {
  margin-top: .4em; 
}

#panel button#leaveRoom {
  margin-top: .4em; 
}

#panel #message {
	position: relative;
	text-align: center;
	margin: 0;
	font-size: 16px;
}


#panel #chat {
	padding-top: .1em;
	border-radius: 5px;
	background: rgba(0,0,0,.5);
}

#panel #chat p {
	padding: .5em;
	font-size: 14px;
	line-height: 130%;
	height: 115px;	
	text-align: left;
	overflow-y: auto;
	
}

#panel #chat input {
	text-align: left;	
	width: 14.5em;
	margin-bottom: .5em;
}

#panel #logs {
	padding: 0;	
	border-radius: 5px;
	background: rgba(0,0,0,.5)
}

#panel #logs p {
	padding: .5em;
	font-size: 14px;
	line-height: 130%;	
	height: 140px;	
	text-align: left;
  overflow-y: auto;
}


.tile {
	/*	display: inline;*/
	float: left;
	background-color: #F7F7E3; /* ECE5B6; */
	border-radius: 5px;
	border: 1px solid #333;
	cursor: move;
	padding: 3px 0px 1px 0px;
	width: 34px;
	height: 30px;
	color: #111;
	font-size: 30px;
	font-family: Monaco, "DejaVu Sans Mono", "Lucida Console", monospace;
	-webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.tile:hover {
	box-shadow: 0px 0px 10px #777 inset;
	color: #111;
	background: #ECE5B6;
}

.tile.selected {
	color: #fff;
	background: #555;
	background-image: -moz-radial-gradient(#BDDFB3, #167F39);
	background-image: -webkit-radial-gradient(#BDDFB3, #167F39);
}

.tile.selected:hover {
	box-shadow: 0px 0px 10px #777 inset;
	color: #111;
	background: #A8A172;
}

.tile span.value {
	font-size: 12px;
	color: #500;
}

.tile.dragBorder {
	border: 1px solid #157DEC;	
}


#rack {
	border: 2px solid #555;
	box-shadow: 0px -5px 10px #777 inset;
  display: inline-block;
	margin-bottom: .5em;
	margin-top: .5em;
	width: 15.8em;
	height: 2.2em;
	margin-left: -.15em;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

#rack ul {
	text-align: center;
	list-style: none;
	margin: 0;
	width: 15.8em;
  height: 2.2em;
}

#rack ul li {
	float: left
	/*	box-shadow: 0px 0px 10px #777 inset;*/
	/*	background: #BEB9A6;*/
	/*width: 36px;
	height: 36px;
	*//*	border: 1px solid #AAA38E;*/
}

#rack ul li.dragBorder {
	box-shadow: 0px 0px 10px #eee inset;
}

#board {
	text-align: center;
	background: #AAA38E;
	float: left;
	border: 2px solid #555;
	margin: 0;
	padding: 10px;
	-webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

#board ul {
	list-style: none;
}

#board ul li {
	float: left;
	width: 36px;
	height: 36px;
	border: 1px solid #AAA38E;
	background-color: #BEB9A6;
}

#board ul li span.value {
	font-size: 12px;
}

#board ul li.CenterRect {
	font-size: 28px;
	background: #F75D59 url('../images/star.png') no-repeat;
	background-size: 36px 36px;
	border: 1px dotted;
}

#board ul li.DoubleLetter {
	background-color: #157DEC;
	border: 1px dotted #157DEC;
}

#board ul li.TripleLetter {
	background-color: #000080;
	border: 1px dotted #000080;
}

#board ul li.DoubleWord {
	background-color: #F75D59;
	border: 1px dotted #F75D59;
}

#board ul li.TripleWord {
	background-color: #8B0000;
	border: 1px dotted #8B0000;
}

#board ul li:hover {
	box-shadow: 0px 0px 10px #777 inset;
}

#board ul li.selected {
	color: #fff;
	background: #000;
}

#board ul li.dragBorder {
	border: 1px solid #777;
	box-shadow: 0px 0px 10px #eee inset;
}

#letterDialog ul li {
	display: inline;
	text-align: center;
}

#swapDialog {
  display: hidden;
} 

#swapDialog ul li {
	display: inline;
	text-align: center;
}

#endGame {
	position: absolute;
	top: .7em;
	left: .7em;
	width: 572px;
	height: 572px;
	opacity: .6;
	background: #111;
	display: none;
}


#settingsDialog {
   display: none;
}

#settingsDialog img {
   float: left;
}

#settingsDialog span {
   float: left;
   margin: 6px 0 0 8px;
}

#settingsDialog #volSlider {
   margin-top: .7em; 
}
