body {
	width: 700px;
	margin: 0px auto;
}

#input {
	/*border: 1px solid #DDD;*/
	margin: 10px;
	width: 680px;
	text-align: left;
}
#input > div.cards {
	display: inline-block;
	border: 2px solid #DDD;
	border-radius: 8px;
	vertical-align: top;
	margin: 10px;
}
#input > div.cards + div.cards {
	margin-left: 0px;
}
#input > div.cards#hole {
	width: 90px;
}
#input > div.cards#table {
	width: 209px;
}
#input > div.cards#dead {
	width: 326px;
}
#input > div.cards:hover {
	border-color: black;
}
#input > div.selected, #input > div.selected #against {
	border-color: #AAA;
}
#input > div.cards > div {
	height: 60px;
	text-align: center;
}
#input > div.cards > div > img {
	width: 40px;
}
#input > div.cards > h5 {
	margin: 4px;
	text-align: center;
}
#input > div.range {
	display: block;
	width: 655px;
	margin: 0px 10px 10px 10px;
	border: none;
}
#input > div.range > h5 {
	float: left;
	display: inline-block;
	margin: 6px 10px 0px 10px;
	padding: 3px 0px;
}
#input #against {
	display: block;
	border: 2px solid #DDD;
	border-radius: 8px;
	min-height: 30px;
	margin: 0px;
}
#input #against:hover {
	border-color: black;
}
#input #against > b {
	min-width: 30px;
	padding: 2px 3px 1px 3px;
	border: 1px solid #BBB;
	display: inline-block;
	margin: 2px;
	text-align: center;
	cursor: pointer;
	font-family: Courier, sans-serif;
}
#input #against > b:hover {
	background: #EEE;
}
#input #against > b + b { margin-left: 3px }
#input button {
	float: right;
	padding: 5px 10px;
	border: 1px solid #BBB;
	text-align: center;
	font-weight: bold;
	height: 34px;
	line-height: 25px;
	font-size: 14px;
	width: 80px;
	color: black;
}
#input button[disabled] {
	color: #888;
}
#input button#run {
	margin: 0px 0px 0px 0px;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	background: #B0EEB0;
	border-left: none;
}
#input button#run:hover {
	background: #80FF80;
}
#input button#clr {
	margin: 0px 0px 0px 5px;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
	background: #EEB0B0;
}
#input button#clr:hover {
	background: #FF8080;
}

#input > div.selected > h5, #input > div.selected > #against > h5 {
	/*color: #FF8080;*/
	color: #CE1010;
}

#cards {
	/*border: 1px solid black;*/
	width: 680px;
	margin: 10px;
	padding: 10px 0px;
}
#cards > div {
	margin: 0px;
	text-align: center;
}
#cards > div > span {
	display: inline-block;
	width: 47px;
	height: 61px;
	margin: 0px;
}
#cards > div > span + span {
	margin-left: 4px;
}

#ranges {
	/*border: 1px solid black;*/
	width: 680px;
	margin: 10px;
	padding: 10px 0px;
	display: none;
}
#ranges table {
	display: table;
	margin: 10px auto;
}
#ranges table td.r { padding-right: 10px }
#ranges table td.c { padding-bottom: 9px }
#ranges table td.R { padding-left: 10px }
#ranges table td.C { padding-top: 9px }
#ranges table td.z { padding-left: 10px; padding-bottom: 9px; width: auto }
#ranges table td  {
	padding: 1px 2px;
}
#ranges table td > b {
	display: inline-block;
	width: 30px;
	text-align: center;
	border: 1px solid #BBB;
	padding: 2px 0px 1px 0px;
	cursor: pointer;
	font-family: Courier, sans-serif;
}
#ranges table td.r > b, #against b.r, #results .bar b.r { background: #F8F8F8 }
#ranges table td.c > b, #against b.c, #results .bar b.c { background: #F8F8F8 }
#ranges table td.o > b, #against b.o, #results .bar b.o { background: #FFEEAA }
#ranges table td.s > b, #against b.s, #results .bar b.s { background: #EEFFAA }
#ranges table td.d > b, #against b.d, #results .bar b.d { background: #FFCCAA }
#ranges table td.C > b, #against b.C, #results .bar b.C { background: #DDEEFF }
#ranges table td.R > b, #against b.R, #results .bar b.R { background: #DDEEFF }
#ranges table td > b:hover {
	background: #EEE;
}
#ranges table td > b.selected { color: #CCC; background: transparent; }
#ranges table td > b.disabled { color: #EEE; background: transparent; }
#ranges table td > b.selected:hover { background: #EEE; }

#ranges table td.q > span {
	display: inline-block;
	width: 20px;
	height: 20px;
	position: relative;
	overflow: visible;
}
#ranges table td.q > span > img {
	position: absolute;
	width: 24px;
}
#ranges table td.q.o > span > img:nth-child(1) { top: -12px; left:  0px; }
#ranges table td.q.o > span > img:nth-child(2) { top:  -8px; left: 10px; }

#ranges table td.q.s > span > img:nth-child(1) { top:  0px; left:  5px; }
#ranges table td.q.s > span > img:nth-child(2) { top:  5px; left: 15px; }


#message {
	min-width: 400px;
	max-width: 500px;
	text-align: center;
	background: #FFEEAA;
	border: 1px solid #DDD;
	margin: 20px auto 10px auto;
	display: none;
	font-size: 12px;
	padding: 3px 0px;
	display: none;
}

#results {
	width: 680px;
	margin: 10px;
	padding: 10px 0px;
	text-align: center;
	display: none;
}
#results > pre {
	margin: 10px;
}
#results .template { display: none }

#results .bar {
	display: block;
	text-align: center;
	position: relative;
	overflow: visible;
	width: 530px;
	margin: 0px auto;
	left: 15px;
}
#results .bar > p {
	display: inline-block;
	width: 500px;
	border: 1px solid #444444;
	border-radius: 4px;
	padding: 0px;
	overflow: hidden;
	margin: 0px;
	height: 20px;
}
#results .bar > p > i {
	display: inline-block;
	margin: 0px;
	height: 20px;
	width: 0px;
	vertical-align: top;
	text-align: center;
	font-size: 10px;
	line-height: 20px;
	color: black;
	font-style: normal;
	cursor: pointer;
}
#results .bar > p > i.w { background: #44DD44 }
#results .bar > p > i.t { background: #444444; color: white }
#results .bar > p > i.l { background: #DD4444 }
#results .bar > b {
	position: absolute; 
	min-width: 25px;
	height: 20px;
	left: -25px;
	border: 1px solid #DDD;
	top: 0px;
	line-height: 20px;
	font-size: 12px;
	padding: 0px 2px;
}

#results #overall .bar {
	width: 550px;
	left: 0px;
}
#results #overall .bar > p {
	margin-left: 0px;
	width: 550px;
	border-width: 2px;
	height: 25px;
}
#results #overall .bar > p > i {
	height: 25px;
	font-size: 12px;
	line-height: 25px;
	font-weight: bold;
}

#results h5 {
	display: block;
	margin: 4px;
	text-align: center;
	font-weight: bold;	
	font-size: 12px;
}
#results > div + div {
	margin-top: 20px;
}
#results #forum textarea {
	width: 530px;
	height: 80px;
	background: white;
	border: 1px solid #444;
	border-radius: 4px;
	padding: 10px;
}
#results #forum div {
	width: 550px;
	margin: 0px auto 3px auto;
	text-align: left;
	font-size: 12px;
}
#results #rawdata {
	text-align: left;
	display: none;
}
