body {
	padding: 0;
	margin: 0;
}

/** layout **/
.row {
	clear: both;
}

/** Modal Styles **/
.hide {
	display: none;
}
img.header {
	margin:1em 0 0 1em;
	padding:0;	
}
.settingsBlock input {
	width:90%;
	margin:1em 2em 1em 0;
	float:left;
	height:2em;
	padding:.5em;
}
/**/.modal-overlay {
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
}

.new-game-modal {
	width: 400px;
	background: white;
	margin: auto;
}
.modal-active {
    overflow: hidden;
}
.modal {
	width:80%;  
	position: absolute;
	margin: auto;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border: 1px solid #337AB7;
	background-color: #FFF;
}
.modal-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: #87CEEA none repeat scroll 0% 0%;
    z-index: 9999;
}

.modal-header {
	padding: 6px 10px;
	border-bottom: 1px solid grey;
}

.modal-header h1 {
	margin: 0;
}

.modal-body {
	padding: 15px;
	overflow: hidden;
}

.modal-body ul {
	width: 100%;
	margin: 0;
	padding: 0;
}

.modal-body li {
	list-style-type: none;
	margin-bottom: 10px;
	width: 100%;
}

select {
	width: 100%;
	height: 30px;
}
.modal-footer {
	text-align: right;
	display: block;
	padding: 6px 10px;
	border-top: 1px solid grey;
	overflow: hidden;
}

/**How to play modal**/
.how-to-modal {
/*	background: white;
	top:48%;
*/	height:90%;
}

/** Winner Modal **/
.winner-modal {
/*	z-index: 3;
	width: 80%;  
	background: white;
*/
	height: 90%;
}

.winner-modal .modal-body h1 {
	position: absolute;
	top: 15%;
	width: 100%;
	margin: 50px -15px;
	font-size: 82px;
	text-align: center;
	color: black;
	text-shadow: 3px 3px 5px teal;
}

.winner-modal.p1 .modal-body h1 {
	color: red;
	text-shadow: 3px 3px 5px orange;
}

.winner-modal.p2 .modal-body h1 {
	color: blue;
	text-shadow: 3px 3px 5px teal;
}

/** Game Canvas Styles **/
#game {
	height: 100%;
	width: 90%;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}

/** score board **/
.score-btn {
	position: absolute;
	width: 125px;
	padding: 5px;
	z-index: 1;
	top: 10px;
}

.reset-button {
	left: 50%;
}

.undo-button {
	right: 50%;
}

.scoreboard {
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}

.player {
	width: 20%;
	float: left;
	padding: 0;  
	box-sizing: border-box;
	color: black;
	position:absolute;
	top:70px;
	text-align:center;
	position:absolute;
	top:0;
	z-index:=10;
}
.player.p1 {
	left:0;
	border:1px solid red;
}
.player.p2 {
	right:0;
	border:1px solid blue;	
}
.player1-active .p1 {
	background: red;
	color: white;
}
.player h2 {
	margin: .4em 1em;
}
.player2-active .p2 {
	background: blue;
	color: white;
}
.player div.character {
	background-color:#ffffff;	
	padding:0;
	margin:0;
}
.score {
	font-size: 1.5em;
	padding: 0.2em;
	margin: 0 1em 1em 0;
}
.score:before {
	content:"Score: "	
}
.player.largeGame h2 {
	margin: 0.1em 1em;	
}
.player.largeGame .score {
	padding: 0;
	margin:0;	
}
.player.largeGame div.character {
	display:none;
}

/**custom css for checkbox**/
.onoffswitch {
    position: relative; width: 70px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999999; 
    border-radius: 25px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 25px; padding: 0; line-height: 25px;
    font-size: 12px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "YES";
    padding-left: 21px;
    background-color: #34A7C1; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "NO";
    padding-right: 25px;
    background-color: #EEEEEE; color: #999999;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 30px; margin: -2.5px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 41px;
    border: 2px solid #999999; border-radius: 25px;
    transition: all 0.3s ease-in 0s; 
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
}

/**button styling**/
button {
	border: 2px solid #999;
	border-radius: 25px;
	background: #34A7C1;
	color: white;
}