body {
    /*	font-family: 'Lora', serif; */
    font-family: "open sans", sans serif;
}

#osd {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

#osd span {
    display: inline-block;
    vertical-align: middle;
}

#osd table {
    margin: 0.2em;
    padding: 0.2em;
    border-left: 0.1em solid #fff;
    border-right: 0.1em solid #fff;
    display: inline-block;
    vertical-align: middle;
}

#osd table td {
    text-align: center;
    min-width: 3em;
    padding-left: 0.5em;
    font-size: 0.8em;
}

#logwrap {
    color: #fff;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 1em;
}

#logwrap .btn {
    padding-left: 0.3em;
    padding-right: 0.3em;
    display: inline-block;
    cursor: pointer;
    background: darkorange;
    color: black;
    font-weight: bold;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -khtml-border-radius: 10px;
}

#rerunbtn.btn {
    background: #77ff77;
    position: absolute;
    right: 0;
}

#log {
    background: rgba(0, 0, 0, 0.5);
    min-width: 20em;
    display: inline-block;
    max-height: 98%;
    overflow: auto;
}

#params {
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;

}

#params input {
    width: 2em;
}

#players {
    display: table;
    width: 100%;
    background: #000;
    /* next 3 lines are to move the game board up */
    position: absolute;
    z-index: 100;
    top: 0px;
}

#players div {
    display: table-cell;
    font-size: 3em;
    text-align: center;
    color: #ffffff;
    padding: 0;
    margin: 0;
    font-family: "Lora", serif;
    font-weight: normal;
    text-shadow: 2px 2px 1px #000;
}

#player1 {
    /* green */
    background: #2364AA;
}

.nplayers.color1 {
    background: #2364AA;
    /* rgba(0, 51, 0, 1.0);	 */
}

#player2 {
    /* gold */
    background: #F75C03;
    /*background: rgba(51, 0, 18, 1.0);*/
}

.nplayers.color2 {
    background: #F75C03;
    /* rgba(127, 102, 0, 1.0);	 */
}

#player3 {
    /* violet */
    background: #D72638;
    /*	background: rgba(0, 39, 64, 1.0);*/
}

.nplayers.color3 {
    background: #D72638;
    /*  rgba(72, 4, 93, 1.0);	 */
}

#player4 {
    /* rose */
    background: #662E9B;
    /*	background: rgba(127, 102, 0, 1.0);*/
}

.nplayers.color4 {
    background: #662E9B;
    /*  rgba(102, 0, 50, 1.0);	 */
}

#player5 {
    /* blue */
    background: #306B34;
    /*	background: rgba(0, 51, 51, 1.0);*/
}

.nplayers.color5 {
    background: #306B34;
    /* rgba(0, 39, 64, 1.0);*/
}

#player6 {
    /* orange */
    background: #EC71E4;
    /*	background: rgba(102, 0, 51, 1.0);*/
}

.nplayers.color6 {
    background: #EC71E4;
    /* rgba(121, 47, 15, 1.0); */
}

#player7 {
    background: rgba(38, 0, 51, 1.0);
}

#player8 {
    background: rgba(102, 102, 102, 1.0);
}

#pooltable {
    display: block;
    height: 100%;
    width: 100%;
    background: rgba(102, 0, 51, 1.0);
}

#c {
    display: block;
    width: 100%;
    /* next 3 lines are to move the gameboard up */
    height: 110%;
    /* 100% */
    top: -40px;
    position: absolute;
}

#grid {
    position: absolute;
    vertical-align: middle;
    margin: 3em 1em 1em 1em;
    /* this keeps changing, was 4em top */
    font-size: 8px;
    /* june 23 was 10px */
    padding: 1em;
    padding-left: 2em;
    color: #fff;
    min-width: 10em;
    right: -10px;
    top: 4.3em;
    /* 5.8em; */
    background: rgba(0, 0, 0, 0.2);
    height: 110%;
}

#grid h1 {
    margin: 0 .3em .3em 1em;
    font-size: 3.5em;
    width: 90%;
    /* 50% */
    float: left;
    text-align: left;
    font-family: "Lora", serif;
    font-weight: normal;
    letter-spacing: .1em;
}

#grid h1#gpname:after {
    content: " Combo Choices ";
    font-size: .9em;
    font-weight: 300;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: .05em;
}

#grid h2 {
    margin: 0;
    -webkit-margin: 0;
}

#grid .num,
#grid h3 {
    margin: 0;
    font-weight: normal;
    font-size: 4em;
    /* july 7, was 5em*/
    line-height: 1.3em;
    /* july 7, was 1em, changed it to give a little vertical space between Bonus and Total */
    text-align: left;
}

#grid h3 {
    min-width: 1.3em;
    /* 1.5em;  */
    color: yellow;
    text-shadow: 1px 1px #444;
}

#grid h3.fixed {
    color: #fff;
}

#grid h3.fixed.score {
    margin-left: 2em;
    margin-top: -10px;
}

#grid .title {
    font-size: 1.5em;
}

#grid h3.fixed.subtotal {
    font-size: 2em;
    margin: 1em 0;
}

#grid .scoreRight {
    float: right;
    margin-right: 2.0em;
    /* was 2.5, 2 gives better space between Bonus and a 3 digit value */
}

#grid .valueRight {
    text-align: right;
    margin-right: 10px;
    /* .5em */
    margin-left: -0.3em;
}

#usubval {
    font-size: 2em;
    /*	margin-left:.8em;   .4em */
    text-align: right;
    margin-right: 10px;
    float: right;
}

#hand {
    position: absolute;
    vertical-align: middle;
    font-size: 10px;
    padding: 1em;
    padding-left: 2em;
    color: #fff;
    bottom: 0;
    /*    background: linear-gradient(to right, #01691d 0%,#018c2b 50%,#01691d 100%);*/
    background: rgba(0, 0, 0, 0.4);
    width: 670px;
    /*    border: 4px solid black;*/
    /*	background: rgba(0, 0, 0, 0.2); july 7 removed so there won't be as much overlapping the scorecard (just a button instead of a gray box that is behind the dice and the button    */
    left: 0;
    /* july 7, was 10% */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#upper,
#lower {
    float: left;
}

#lower {}

#rollbtn {
    display: block;
    vertical-align: top;
    font-size: 4em;
    /* july 7, was 6 em */
    /*	border-radius: 0.5em;*/
    /*	background: rgba(0,0,0, 0.7);*/
    margin: .1em 0px 0 0px;
    /* July 7  added margin to align the button better */
    width: 230px;
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
    float: right;
    border: 3px solid #777777;
    text-shadow: 2px 2px #000;
    background: #242424;
}

#pquitbtn {
    float: right;
    margin: .5em;
    font-size: 3em;
    /* have to set font-size here as the js changes it based on screen size, so it doesn't match the size of other buttons */
    /*	
	display: inline-block;
	vertical-align: top;
	font-size: 4em; 
	font-size:.8em; 
	border-radius: 0.5em;
	background: black;
	padding-left: 0.4em;
	padding-right: 0.4em;
	padding:.2em .5em;	
*/
}

/*#legendbtn {
	float:left;
	margin:.5em;
	font-size:3em;  /* have to set font-size here as the js changes it based on screen size, so it doesn't match the size of other buttons 		
}*/

#legendbtn:hover,
#rollbtn:hover {
    /*	background: #fff;
	color: #000;*/
}

#pquitbtn {
    /*	font-size: 1em; */
}

#pquitbtn:hover {
    /*	background: #f00;
	color: #ff0;
*/
}

.closebtn {
    position: fixed;
    /*	top: 10%;
	right: 11%;
*/
    top: 12%;
    right: 13%;
    height: 80px;
    width: 160px;
    font-size: 30px !important;
    line-height: 2.5;
    /*
	color: #fff;
	font-size: 3em;
	padding: 0.5em;
	border: 1px solid #555;	
	*/
}

.closebtn:hover {
    /*	background: #fff;
	color: #000;
*/
}

#gameoverbtn {
    position: fixed;
    bottom: 10%;
    right: 15%;
}

#legend,
#help {
    display: none;
    position: absolute;
    /* background: rgba(0, 0, 0, .3);  */
    background-color: #ffffff;
    color: #000000;
    /* fff */
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    z-index: 10;
    padding: 3em 1.5em;
    overflow: auto;
    box-shadow: 2px 2px 3px #333;
    z-index: 101;
}

#legendBack {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: none;
}

#help {
    display: none;
    /* june 21, turn off help to start game */
    background-color: #ffffff;
    color: #000000;
    padding: 1em 7em;
}

#help .helpInner {
    margin: 2em;
    background-color: #ffffff;
    padding: 1em 7em;
    color: #000000;
}

#help p {
    font-size: 1.3em;
    margin: 0 2em 1em 0;
    letter-spacing: .04em;
    line-height: 1.3em;
    font-family: 'Open Sans', sans-serif;
}

#help h2 {
    font-size: 1.6em;
    margin: 1em 0 .1em 0;
}

#help img.large {
    margin: -1em 0 1em 3em;
    padding: 0;
    width: 500px;
}

#help img.medium {
    margin: 0;
    padding: 0;
    width: 250px;
}

#help .scorecardSub {
    margin: 0 3em;
    clear: both;
}

#help h1 {
    font-size: 2.5em;
    margin-top: 0;
}

#help h3 {
    font-size: 1.5em;
    margin: 0;
    padding: 0;
}

#help ul {
    margin: -.5em 1em 1em 2em;
    padding: 0;
}

#help ul li {
    font-size: 1.2em;
    margin: 0;
    padding: 0;
}

/*#help img#players {
	margin:-1em 0 1em 3em;
	padding:0;
}
#help img#rollDice {
	margin:-1em 0 1em 3em;
	padding:0;
}
*/

#legend h1 {
    font-size: 2.5em;
    margin: -1em 0 0 0
}

#legend h3,
#legend h4 {
    margin: 0;
    padding: 0;
    clear: both;
}

#legend h3 + p,
#legend h4 + p {
    margin-top: -.1em;
}

#legend .column {
    clear: both;
    margin: 1em 0 4em 0;
    overflow: hidden;
}

#legend .descr {
    display: inline-block;
    max-width: 60%;
    vertical-align: top;
    padding-top: 1em;
}

#legend small {
    /*	font-size: 0.6em; */
}

#legend ul li {
    list-style-type: none;
}

#legend p.example {
    float: left;
    margin: 0 1em 1em 1em;
    padding: 0;
    width: 20%;
}

#legend .leftColExample {
    float: left;
    font-size: .6em;
    margin: 0 0 0 0;
    padding: 0;
}

#legend .example {
    clear: both;
    margin: .5em 0 2em 0;
    overflow: hidden;
}

#legend .scoreExample {
    font-size: .8em;
    margin: 1em;
}

#legend .scoreExample small {
    float: left;
    width: 20%;
    margin: 0;
    padding: 0;
}

#legend .scoreExample.right {
    margin: -1em 1em 1em 1em;
}

#legend .scoreExample.right .hand {
    font-size: 1.2em;
    font-style: italic;
    margin: 1em 0 0 25px;
    /* 1em */
    padding: 0;
    line-height: .9em;
}

#legend .scoreExample p {
    float: left;
    width: 70%;
    margin: .5em 0 0 25px;
    /* 1.7em; */
    padding: 0;
    font-size: 1.1em;
}

#legend .scoreExample .desc {
    font-size: .8em;
    font-style: normal;
    margin: .3em 0 0 25px;
    /* 1.5em;  */
}

#legend .scoreExample .score {
    font-size: 1.4em;
}

#legend .scoreExample.right .score {
    margin-top: -.1em;
}

#legend .scoreExample.right .score .note {
    font-size: .6em;
}

#legend .scoreExample.right .dice {
    float: left;
    width: 20%;
}

#legend .scoreExample.right .text {
    float: left;
    width: 75%;
}

.diceList {
    font-size: .7em;
}

.btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    /* moved styling from individual buttons here so they're all the same */
    background: #000000;
    /* 540b6f; */
    color: #fff;
    font-size: 1em;
    text-align: center;
    padding: .2em .5em;
    border-radius: 10px;
}

#menubtn,
#helpbtn,
#legendbtn {
    position: absolute;
    left: .5em;
    top: 3em;
    font-size: 1.5em;
    /* july 13  2em; */
    margin-top: .5em;
    height: 1.65em;
    padding-top: .3em;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    width: 85px;
    /*	left: 0.2em;
	top: 1.5em;
	width: 3em;
	height: 2em;
	background: #666;
	color: #fff;
	font-size: 3em;
	text-align: center;
	padding: 0.5em 0em 0em 0em;
*/
}

#legendbtn {
    top: 5.5em;
}

#helpbtn {
    top: 7.3em;
}

#menubtn:hover,
#helpbtn:hover {
    /*	background: #3f0;
	color: #000;
*/
}

#mainmenu {
    font-family: 'Open Sans', sans-serif;
    position: absolute;
    left: 10em;
    top: 4em;
    /*	min-width: 20em;
	min-height: 10em;
*/
    background: rgba(0, 0, 0, 0.9);
    /* july 13 was .7, changed it to be darker so you don't see the scoreboard behind it which inteferes */
    color: #ffffff;
    /*0f0; */
    padding: 1em;
}

#mainmenu h1 {
    font-weight: normal;
    margin: 0;
    padding: 0;
}

#mainmenu p {
    font-weight: normal;
    font-size: 1.5em;
    margin: 0;
    padding: 0 1em 1em 0;
}

.nplayers {
    font-family: 'Lora', serif;
    background-color: #fff;
    display: inline-block;
    color: #fff;
    width: 2.0em;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    /*	margin: 0.2em;
	margin-bottom: 0;
	*/
    margin: .2em;
    font-size: 4em;
    font-weight: bold;
    /*	border-radius: 50%;  when they're round it's not as apparent that they are buttons */
    border-radius: 10px;
    text-shadow: 2px 2px 1px #000;
}

.nplayers:hover {
    /*	background: #00f;
	color: #fff;
*/
    background-color: #FFD500;
}

.pblock {
    display: inline-block;
    font-family: 'Lora', serif;
    font-size: .7em;
    /* june 23 new */
}

.pbody {
    font-family: 'Lora', serif;
    background-color: #fff;
    display: inline-block;
    color: #000;
    width: 2.0em;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    /*	margin: 0.2em;
	margin-top: 0;
*/
    margin: .2em .5em;
    padding: .2em .2em;
    font-size: 4em;
    /* font-weight: bold; */
    font-weight: normal;
    font-size: 4em;
}

#player1 {
    /* green */
    background: #2364AA;
}


#pbody0 {
    border: 5px solid #2364AA;
}

#pbody1 {
    border: 5px solid #F75C03;
}

#pbody2 {
    border: 5px solid #D72638;
}

#pbody3 {
    border: 5px solid #662E9B;
}

#pbody4 {
    border: 5px solid #306B34;
}

#pbody5 {
    border: 5px solid magenta;
}

#gameover {
    position: absolute;
    width: 70%;
    left: 12%;
    top: 15%;
    height: 70%;
    background: #fff;
    text-align: center;
    font-size: 2em;
    padding: 0 1em 2em 1em;
    background-image: url(gameOverBackground.jpg);
    background-size: 100% 100%;
}

#gameover h1 {
    font-size: 1.5em;
    margin: 2em 0 0 0;
    padding: 0;
    display: none;
}

#gameover p {
    font-size: 1.3em;
    margin: 315px 0 0 0;
    padding: 0;
    z-index: 1;
}

#movehint {
    display: none;
    position: absolute;
    top: 3em;
    /*right: 10em; */
    width 40em;
    font-size: 3em;
    background: #ffff99;
    left: .2em;
    padding: 1em;
}

/* Jonathan Sampson's pure css dice: */

.die.val1 .dot {
    /*	box-shadow: 0 .2em 0 #FFF;*/
    background-color: black;
}

.die.val2 .dot {
    background: transparent;
    box-shadow: -2.3em -2.3em 0 #000,
        2.3em 2.3em 0 #000,
        -2.3em -2.3em 0 #FFF,
        2.3em 2.4em 0 #FFF
}

.die.val3 .dot {
    box-shadow: -2.3em -2.3em 0 #000,
        2.3em 2.3em 0 #000,
        -2.3em -2.3em 0 #FFF,
        2.3em 2.4em 0 #FFF,
        0 .2em 0 #FFF
}

.die.val4 .dot {
    background: transparent;
    box-shadow: -2.3em -2.3em 0 #000,
        2.3em 2.3em 0 #000,
        -2.3em 2.3em 0 #000,
        2.3em -2.3em 0 #000,
        -2.3em -2.3em 0 #FFF,
        2.3em 2.4em 0 #FFF,
        -2.3em 2.4em 0 #FFF,
        2.3em -2.3em 0 #FFF
}

.die.val5 .dot {
    box-shadow: -2.3em -2.3em 0 #000,
        2.3em 2.3em 0 #000,
        -2.3em 2.3em 0 #000,
        2.3em -2.3em 0 #000,
        -2.3em -2.2em 0 #FFF,
        2.3em -2.2em 0 #FFF,
        2.3em 2.4em 0 #FFF,
        -2.3em 2.4em 0 #FFF,
        0 .2em 0 #FFF
}

.die.val6 .dot {
    background: transparent;
    box-shadow: -2.3em -2.3em 0 #000,
        -2.3em 0 0 #000,
        -2.3em 2.3em 0 #000,
        2.3em -2.3em 0 #000,
        2.3em 0 0 #000,
        2.3em 2.3em 0 #000,
        -2.3em -2.1em 0 #FFF,
        -2.3em .2em 0 #FFF,
        -2.3em 2.4em 0 #FFF,
        2.3em 2.4em 0 #FFF,
        2.3em .2em 0 #FFF,
        2.3em -2.1em 0 #FFF
}

.die {
    border-top: 1px solid #f1f1f1;
    width: 5em;
    height: 5em;
    border-radius: 1em;
    position: relative;
    margin: 1em;
    display: inline-block;
    box-shadow: 0px 0.5em 0 #CCC, 0 0.6em 0.3em #444;
    background-image: linear-gradient(top, #fefefe, #f1f1f1 80%);
    background-color: #fff;
    text-align: center;

}



.dot {
    font-size: 0.6em;
    width: 20%;
    height: 20%;
    left: 50%;
    top: 50%;
    margin: -10%;
    background: #000;
    border-radius: 50%;
    display: block;
    position: absolute;
}

.die .txt {
    vertical-align: bottom;
    font-size: 3.5em;
    font-weight: bold;
    line-height: 1.5em;
    color: #000;
}

.die.fixed {
    background: #777;
    box-shadow: none;
}

#signal-strength {
    /*  height: 1.4em;*/
    list-style: none;
    overflow: hidden;
    /* margin: .2em 0;  added margin to keep strength lines centered  */
    padding: 0 .5em .5em .5em
}

#signal-strength div {
    /*	replaced these with strengthBar
	margin: 0 0 0 -.1em;
	width: 0.1em;
	padding: 0;
	background-color: #000;*/

    /*	display: inline-block;  */
    /*	margin: 0 0.1em 0 0; */

    /*	margin-right: 0.1em; */
    /*	float:left; */
}

#signal-strength div.level1 {
    padding-top: 1em;
}

#signal-strength div.level2 {
    padding-top: .8em;
}

#signal-strength div.level3 {
    padding-top: .6em;
}

#signal-strength div.level4 {
    padding-top: .4em;
}

#signal-strength div.level5 {
    padding-top: .2em;
}

#signal-strength div.blank {
    padding-top: .2em;
    background-color: #ffffff;
}

#signal-strength-leg-large {
    padding: .2em .6em;
}

#signal-strength-leg-small {
    padding: .2em 1em;
}

/*#signal-strength-leg-large div.strengthBar, #signal-strength-leg-small  */
div.strengthBar {
    width: .35em;
    margin: 0 .4em 10% 0;
    padding: 2em 4em;
    padding: 0;
    background-color: #000000;
    overflow: hidden;
    float: left;
    vertical-align: bottom;
}

div.strengthBar.one {
    margin-top: 5px;
    /*10%; */
    height: 30px;
    /* 80%; */
}

div.strengthBar.two {
    margin-top: 10px;
    /*25%; */
    height: 25px;
    /* 70%;		 */
}

div.strengthBar.three {
    margin-top: 15px;
    /* 40%; */
    height: 20px;
    /* 50%; */
}

div.strengthBar.four {
    margin-top: 20px;
    /*55%;	*/
    height: 15px;
    /* 35%;	 */
}

div.strengthBar.five {
    margin-top: 25px;
    /* 70%;	 */
    height: 10px;
    /* 25%; */
}

.scoreboard {}

.scoreboard.leftCol {
    border-right: 0.3em solid #999;
}

.scoreboard.rightCol {}

.scoreboard td {
    padding: 0 1em;
}

.activePlayer {
    border: 3px solid #fff;
    animation: border-pulsate 2s infinite;
}

#diceHolder {
    width: 420px;
    position: absolute;
    /*    background-color: rgba(0,0,0,0.7);*/
    background-color: #333;
    border: 3px solid #777777;
    bottom: 5px;
    box-shadow: inset 0 0 10px #000000;
    border-radius: 10px;
}

#hbtn0 {}

#closeBtn {
    width: 160px;
    height: 80px;
    background-color: #30324B;
    border-radius: 0px;
    bottom: 30px !important;
    right: 140px !important;
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0px 0px 5px #111;
}

@keyframes border-pulsate {
    0% {
        border-color: rgba(255, 255, 255, 1);
    }

    50% {
        border-color: rgba(255, 255, 255, 0);
    }

    100% {
        border-color: rgba(255, 255, 255, 1);
    }
}
