
/* General style and layout */

html, body {
	margin: 0px;
	padding: 0px;
	width:100%;
	height:100%;
	background-color: lightgrey;
	color: #333;
}
html, body, textarea {
	font-family:Meiryo,Tahoma,Arial,sans-serif;
	font-size:11px;
}
.content {
	width: 410px;
	min-height: 100%;
	margin-left: auto;
	margin-right: auto;
	background-color: white;
	border-left: 1px solid grey;
	border-right: 1px solid grey;
}
.padder {
	margin-top: 5px;
	padding: 5px;
}
.footer {
	width: 100%;
	color: #EEE;
	text-align: center;
}
a {
	color: black;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
h2 {
	color: black;
	margin: 0px;
	font-size: 1.0em;
	width:400px;
	text-align: left;
	border-bottom: 1px dashed lightgrey;
}
h2 a {
	font-weight: normal;
	text-decoration: underline;
}
input {
	font-size: 10px;
}
.p {
	/* Simulate <p> style on forms, etc. */
	border: 0px;
	margin: 11px 0px;
	padding: 0px;
}

/* Top bar */

.logo {
	float:left;
	font-weight: bold;
}
.menu {
	text-align: right;
	border-bottom: 1px solid grey;
	padding: 2px 5px;
}

/* Info bar */

.info {
	background-color: yellow;
	padding: 3px 5px;
}
.closer {
	display:block;
	float:right;
	width:14px;
	height:14px;
	background: url('closer.gif') no-repeat 0px bottom;
}
.info h2 {
	border-bottom: none;
	display: inline;
}

/* Options */

th {
	text-align: left;
	font-weight: normal;
	text-decoration: underline;
}

/* Chessboard */

.board {
	width: 100%;
	text-align: center;
	color: black;
	border-spacing: 0px;
	/*border-collapse: */
	/*border-collapse: collapse; old cellspacing=0 */
}
.board td {
	padding: 0px; /* old cellpadding */
}
tr .bb, .bw{	
	cursor: pointer;
	font-size:24px;
	width: 44px;
	height: 38px;
	max-height: 38px;
	padding: 0px;
	margin: 0px;
}
tr .bb {
	border: 1px solid #CCC;
	background-color: #CCC;
}
tr .bw {
	border: 1px solid #EEE;
	background-color: #EEE;
}
tr .bb:hover, .bw:hover {
	border: 1px solid black;
}

/* Chat area */

textarea {
	width: 390px;
	max-width:390px;
	height: 60px;
	
}

.hist_1, .hist_2 {
	margin-bottom: 3px;
	padding: 3px;	
}

.hist_1 {
	text-align: left;
	background-color: #F4F4F4;
	border-bottom: 1px solid lightgrey;
	border-right: 1px solid lightgrey;
}

.hist_2 {
	text-align: right;
	background-color: #DDD;
	border-bottom: 1px solid grey;
	border-right: 1px solid grey;
}

.hist_author {
	color: grey;
	font-style: italic;
	font-size: 0.7em;
}

/* Fixed layouts */

.td-left {
	text-align: left;
	vertical-align: top;
}
.td-right {
	text-align: right;
	vertical-align: top;
}

/* Graphical piece themes */

.piece_p, .piece_r, .piece_n, .piece_b, .piece_q, .piece_k,
.piece_P, .piece_R, .piece_N, .piece_B, .piece_Q, .piece_K 
{
	width: 24px;
	height: 24px;
	display: block;
	margin-left: auto;
	margin-right: auto;
	
	background-repeat: no-repeat;
	background-position: 0px 0px;
}
.thmA {
	background-image: url('piece_themeA.png');
}
.thmB {
	background-image: url('piece_themeB.png');
}
.thmC {
	background-image: url('piece_themeC.png');
}

.piece_p {	background-position: 0px 0px;	}
.piece_r {	background-position: 0px -24px;	}
.piece_n {	background-position: 0px -48px;	}
.piece_b {	background-position: 0px -72px;	}
.piece_q {	background-position: 0px -96px;	}
.piece_k {	background-position: 0px -120px;}
.piece_P {	background-position: 0px -144px;}
.piece_R {	background-position: 0px -168px;}
.piece_N {	background-position: 0px -192px;}
.piece_B {	background-position: 0px -216px;}
.piece_Q {	background-position: 0px -240px;}
.piece_K {	background-position: 0px -264px;}
