@charset "UTF-8";

body {
	font-family: Verdana, Geneva, sans-serif;
	font-size: small;
	line-height: 1.2em;
	color: #333333;
}

#header, #main, #footer {
	max-width: 860px;
	margin: 0px auto;
	padding: 20px 10px;
	/*border-bottom: solid 1px #CCCCCC;*/
}

body.canvas-active #header,
body.canvas-active #main,
body.canvas-active #footer {
	width: auto;
}

html.canvas-active {
	background-color: #000;
}

html.canvas-active #main {
	padding: 0;
	margin: 0;
}

html.canvas-active #main #game {
	margin: 0 auto;
}

#header #title {
	/*float: right;*/
	text-align: right;
	font-size: 80%;
}

#main {
	min-height: 380px;
}

#main #sideBar {
	float: right;
}

#main #sideBar .sideBarControls {
	padding: 3px;
}

@media screen and (max-width: 871px) {
	#main #sideBar {
		width: 100%!important;
	}
	#main #sideBar .jqx-expander {
		width: 100%!important;	
	}
	#main #sideBar #roomList {
		width: 100%!important;	
	}
	#main #chatbox {
		margin-top: 30px;
		width: 100%!important;
		box-sizing: border-box;
	}
	#main #chatbox #publicChatAreaPn {
		width: 100%!important;
	}
	body .gamePopup {
	    top: 20%!important;
	}
}

.viewStack {
	margin: 0 auto;
	min-height: 270px;
}

#login {
	min-height: 0;
	margin-top: 100px;
	max-width: 400px;
	background-color: #cd9a65;
	border-radius: 10px;
	padding: 10px;
}
@media screen and (max-width: 720px) {
	#header-img {
		width: 100%;
	}
}
@media screen and (max-width: 600px) {
	#login {
		margin-top: 30px;
		width:  auto;
	}
}

#footer {
	font-size: 80%;
	padding: 5px 0;
	text-align: center;
	border-bottom: none;
}

/* Floats self-clearing */

.group:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

/* for IE6 */
* html .group {
	height: 1%;
}

/* for IE7 */
*:first-child+html .group {
	min-height: 1px;
}


/* BASIC STYLES */

a:link, a:visited {
	color: #3399FF;
	font-weight: normal;
	text-decoration: none;
}

a:hover {
	color: #3366FF;
}

a img {
	border: none;
}

img[type=button] {
	cursor: pointer;
}

h1 {
	font-weight: normal;
	font-size: 150%;
	color: #CC0000;
	padding-bottom: 20px;
	line-height: 0.8em;
}

h2 {
	font-weight: bold;
	font-size: 120%;
	color: #666666;
	padding: 0px 0 10px 0;
}

#login h2 {
	padding-bottom: 3px;
	color: white;
}

#login img.jqx-button,
#login img.jqx-fill-state-normal,
#login img.jqx-fill-state-normal-summer {
	background-color: #cd9a65;
	padding: 0;
	outline: 0;
	border: none;
}

#login .group {
	display: flex;
	column-gap: 5px;
}

label {
	font-weight: bold;
}

.smallNote {
	font-size: 80%;
	color: #999999;
	margin-right:5px;
	margin-left:5px;
}

input.textInput {
	font-size: 100%;
	border: 1px solid #AAAAAA;
	border-radius: 3px;
	background-color: #FCFCFC;
	height: 20px;
	padding-left: 4px;
}

input.small {
	width: 140px;
}

input.smaller {
	width: 110px;
}

input.textInput[disabled] {
	border-color: #DCDCDC;
	background-color: #F9F9F9;
	color: #CCCCCC;
}

.floatItems * {
	float: left;
}

.floatItems label,
.floatItems p {
	margin-right: 5px;
	line-height: 24px;
}

.hidden {
	opacity: 0;
}

.invisible {
	display: none;
}

.vSeparateTop {
	padding-top: 5px;
}

.vSeparateTop10 {
	padding-top: 10px;
}

.vSep10 {
	margin-bottom: 10px;
}

.vSep20 {
	margin-bottom: 20px;
}

.error {
	color: #CC0000;
	padding-top: 10px;
}

/*
	Lobby View
*/

#lobby .leftBox {
	width: 580px;
	float: left;
	background-color: #fe5815;
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 10px;
}

#lobby #chatbox .chatControls {
	padding-top: 10px;
}

#lobby .listControls {
	margin: 10px 9px 10px 9px;
}

#lobby .listControls > *:not(:first-child) {
	margin-top: 10px;
}

#lobby h2 {
	color: white;
}

#lobby img.jqx-button,
#lobby img.jqx-fill-state-normal,
#lobby img.jqx-fill-state-normal-summer {
	padding: 0;
	outline: 0;
	border: none;
}

#lobby .listControls img.jqx-button,
#lobby .sideBarControls img.jqx-button {
	background-color: white;
}

#lobby .chatControls img.jqx-button {
	background-color: #fe5815;
}

#lobby .sideBarControls.vSeparateTop10,
#lobby .chatControls .row {
	display: flex;
	gap: 5px;
	align-items: center;
}

.chatAreaElement {
	padding: 3px;
	font-size: 90%;
}

.chatAreaElement em {
	color: #BBBBBB;
}

/*
	Game View
*/

#game #gameBar {
	float: right;
}

#game #gameBar .gameBarControls {
	padding: 5px;
}

#game .leftBox {
	width: 580px;
	float: left;
	background-color: #EEEEEE;
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 10px;
}

#game #gamebox #gameContainer {
	padding-bottom:5px;
	float:left;
}

#game #gamebox #gameControls {
	float:left;
}

/* POPUPS */

#createGameWinTabs {
	margin: 10px;
}

#createGameWinTabs * {
	float: left;
}

#createGameWinTabs .item {
	padding-bottom: 5px;
	width: 100%;
}

#createGameWinTabs .item label {
	width: 140px;
	padding-top: 4px;
	font-weight: normal;
}

#createGameWinTabs .item input {
	width: 200px;
}

#createGameWinTabs .item input:invalid {
  background-image: linear-gradient(pink, lightgreen);
}

/*#createGameWinTabs .item input:invalid:focus {
  background-image: linear-gradient(pink, lightgreen);
}*/

.gamePopup .content {
	display: table;
}

.gamePopup .gameMessage {
	display: table-cell; 
	vertical-align: middle;
	color: #D01010;
	font-weight: bold;
	text-align: center;
	font-size: 14px;
}

.gamePopup #secondRow hr {
	border: 0;
	border-top: 1px solid #CCCCCC;
	height: 1px;
}

.popupWinControls {
	float: left;
	padding-top: 15px;
	width: 100%;
}

.popupWinControls .leftButton {
	float: left;
}

.popupWinControls .rightButton {
	float: right;
}
~
.popupWinControls .centerButton {
	margin-right: auto;
	margin-left: auto;
	vertical-align:middle;
}

/* OVERRIDE JQWIDGETS BASIC STYLES */

#roomList.jqx-listbox,
#userList.jqx-listbox {
	font-size: 90%;
	border-left: none;
	border-right: none;
	border-radius: 0;
}

.jqx-listitem-state-normal .itemTitle {
	color: #FE4200;
}

.jqx-listitem-state-hover .itemTitle {
	color: #FFFFFF;
}

.jqx-listitem-state-selected .itemTitle {
	color: #FFFFFF;
}

.jqx-listbox .game:before {
	content: url('../images/icon.png');
}

.jqx-listbox .itemSub {
	font-size: 90%;
}

.jqx-listbox .toRead {
	color: #CC0000;
}

.jqx-tabs-content {
	padding: 5px;
}