#gameCanvas {
	position: relative;
}

	  /*================*/
	 /* BOARD DISPLAYS */
	/*================*/

.player {
	margin: 0;
	background: url(../img/gridTextWhite.png) top left no-repeat #66CCFF;
}

.board {
	width: 550px;
	height:550px;
	padding: 50px 0 0 50px;
	background: url(../img/gridMapOcean.png) top left no-repeat;
}

#p1 { /* View opponent by default */
	display: block;
	position: relative;
	top: 0;
	left: 0;
	z-index: 500;
}

#p0 { /* ...and thus hide self */
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 650;
}

.space {
	width: 53px;
	height:53px;
	float: left;
	color: #FFF;
	display: flex;
	align-items: center;
}
.space p {
	width: 100%;
	text-align: center;
	font-size: 30px;
	visibility: hidden;
	/* These all help the UI accurately select spaces */
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	z-index: -200; 
}

#p1 .space.highlight { /* Opponent lights up red */
	background:rgba(255,0,0,0.5);
}
#p0 .space.highlight { /* Self lights up green */
	background:rgba(0,255,0,0.5);
}
.space.worm p {
	visibility: visible;
	width: 100%;
	text-align: center;
	font-size: 90px;
	color: #666;
}
.space.hit p {
	visibility: visible;
	width: 100%;
	text-align: center;
	font-size: 70px;
	color: #F00;
}
.space.miss p {
	visibility: visible;
	width: 100%;
	text-align: center;
	font-size: 40px;
	color: #FFF;
}
.space.hit.worm p {
	visibility: visible;
	width: 100%;
	text-align: center;
	font-size: 90px;
	color: #F00;
}

      /*====================*/
	 /* GRID STYLE OPTIONS */
	/*====================*/

/*grid classes are additional options for space borders*/
.gridGray {
	border: 1px inset #DDD;
}

	  /*===============*/
	 /* CONTROL PANEL */
	/*===============*/

.cPanel {
	width: 100%;
}

.controls {
	width: 550px;
	height: 65px;
	padding: 0 0 0 50px;
	background: #CCC;
}

.button {
	width: 53px;
	height: 53px;
	z-index: 760;
	float: left;
	margin: 5px 2px 5px 0;
	padding: 0px;
	background: #777;
	border: none;
	font-size: small;
    color: #222;
	text-align: center;
	vertical-align: middle;
/* These all help the UI accurately select buttons */
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.button:hover {
	background: #0FF;
	cursor: pointer;
}

.log {
	margin: 5px;
	padding: 5px;
	overflow-y: scroll;
	overflow-wrap: right;
	color: #900;
	font-family: Calibri, Tahoma, Verdana, sans-serif;
	font-weight: bold;
	border: 2px inset #CCC;
	width: 580px;
	height: 155px;
}

	  /*===================*/
	 /* SANDWORM DISPLAYS */
	/*===================*/

	  /* These have to come after .button defs so that dimensions override default button widths */

.D {
	width: 108px;
}
.K {
	width: 163px;
}
.A {
	width: 163px;
}
.G {
	width: 218px;
}
.B {
	width: 273px;
}
#resetSandworms, #confirmSandworms {
	width: 273px;
}

	  /*===== WORM SETUP SECTION =====*/

#setupSandwormsPanel {
	float: left;
	clear: left;
	height: 190px;
	display: none;
}
#setupSandworms {
    display: none;
}
#confirmSandworms.ready {
    background: #0A0;
}
#confirmSandworms.disabled {
    background: #777;
}
#confirmSandworms.disabled:hover {
    background: #777;
	cursor: not-allowed;
}
#cursorSandworm {
	position: absolute;
	border: 2px solid #777;
}
.active {
	z-index: 800;
}