html, body{ height:100%; min-width:600px; font-family:arial; }
*{ margin:0; padding:0; }
body{ font-family:arial; font-size:14px; }

.largesur{ text-align:center; overflow:hidden; padding:10px 0 15px; }
#mainpage{ height:110%; position:relative; margin:0 auto; width:800px;  margin-bottom: 20px;}
#gridcontent{ display:inline-block; width:50%; max-width:550px; min-width:490px; position:relative; padding-top: 10px}
#gridcontent::after{ padding-top:100%; display:block; content:''; }
.grid_surround{ position:absolute; top:20px; margin-top: 10px; bottom:0; right:0; left:0; text-align: center; padding: 20px 0px 20px 0px;}
.grid_surround > table{ width:100%; height:100%; border-color:#CCC; border-style:solid; border-width:3px 3px 3px 3px; border-radius: 10px;}
.wrap {position:relative; margin:0 auto; width:800px;}
#header, #footer {width:100%; float:left; margin-top: 10px;}
button { font:99% sans-serif; width:auto; overflow:visible; cursor:pointer; }
#menu{width:700px; float:left; font-size: larger: ; text-align: center; margin-top: 10px; }
ul li {margin-left: 8px; list-style-type: none; padding-top: 4px; width: 85%;}
h3 {padding-top: 4px; padding-bottom: 3px; font-style: oblique}
h2 {padding-top: 6px; padding-bottom: 5px; font-size: larger;}
h1 {padding-top: 6px; padding-bottom: 5px; font-size: x-large; text-align: center;}
.grid_surround > table > * > * > td{ width:11%; height:11%; font-size:2.0em; cursor:default; padding: 0; }
.clearing {clear:both; height:25px ; overflow:hidden; margin:-1px 0 0 0;}
.clear{overflow: hidden; width: 100%;}

/* TABLE SHADOW EFFECT */
.effect1{-webkit-box-shadow: -8px 10px 8px -6px #777; -moz-box-shadow: -8px 10px 8px -6px #777; box-shadow: -8px 10px 8px -6px #777; }

/* MINI TABLE */
.mini_grid_surround { width:100%; height:100%; font-size: small;}
.mini_grid_surround > * > * > td{ width:33%; height:33%; cursor:default; padding: 0; }

/* CELL ORIGINAL FORMATTING */
.orig {color: #17127d}

/* CELL HOVER EFFECTS */
.grid_surround > table > * > * > td:hover{ background-color: rgba(2,2,2,0.07);}
.r1.c1:hover{ border-top-left-radius: 8px; background-color: rgba(2,2,2,0.07); }
.r1.c9:hover{ border-top-right-radius: 8px; background-color: rgba(2,2,2,0.07); }
.r9.c1:hover{ border-bottom-left-radius: 8px; background-color: rgba(2,2,2,0.07); }
.r9.c9:hover{ border-bottom-right-radius: 8px; background-color: rgba(2,2,2,0.07); }

/* GAME GRID BORDERS */
.row > td {border-bottom: 1px dotted #CCC; border-right: 1px dotted #CCC;}
.row > td:nth-child(3n+0) { border-right: 3px solid #CCC;}
.row:nth-child(3n+0) > td { border-bottom: 3px solid #CCC;}
.row > td:nth-child(9) { border-right: none;}
.row:nth-child(9) > td { border-bottom: none;}

div[id^="mGridcell"] {height:100%; width:100%;}
.added  {height:auto !important }

.mini_grid_surround.num_select{ opacity:0; font-size:0.4em; height:100%; width:100%; margin:0; /* position:absolute; */ top:999px; left:0; z-index:1; background-color:#3ea859; padding:2px; border-radius:7px; box-shadow:0 0 12px rgba(79, 18, 18, 0.3); -webkit-transition:opacity 0.2s, height 0.2s, width 0.2s, margin 0.2s; -moz-transition:opacity 0.2s; -webkit-transform:translateZ(0); }
.mini_grid_surround.num_select.show{ opacity:1; height:130%; width:130%; margin:-15% 0 0 -15%; top:0; }
.mini_grid_surround.num_select td{ width:33%; height:33%; /* height:auto; width:auto; */ color:#FFF; font-weight:bold; border:none; line-height: normal; cursor:pointer; border-radius:6px; }
.mini_grid_surround.num_select td:hover:not(.empty){ background-color:#65b87d; }
.mini_grid_surround.num_select td.disabled{ opacity:0.4; cursor:default; }
.mini_grid_surround.num_select td.disabled:hover{ background:none; }
div[id^="mGridcell"] > * > * > * > td{width:33%; height:33%; }

/* ERROR CELL FORMATTING */
.error {font-weight: bold ; color: #eb2323}
.formerror {color: #eb2323;font-weight: bold; border:1px solid #df1414}

.login {float: right; display: block; margin-right: 15px;}

/* BUTTON BAR */
#optionbar {text-align: left; margin-bottom: 10px; margin-left: 3px; margin-right: 3px; height: 26px;}
#sellevel {left: 0px; margin-right: 30px; margin-left: -30px; margin-top: 3px; }
#optionbar2 {position: absolute; float: left; width: 100%; bottom: -20px ; clear: both; padding-top: 20px;}
#bar { width:460px; height: 24px; /* padding: 0% 0% 0% 10%; */ margin: auto; text-align: center;}
#bar a{display: inline-block ; margin: auto; text-align: center;}

#bar a.button {background: transparent url('../img/bg_button_a.gif') no-repeat scroll top right; color: #444; display: block; float: left; /* font: normal 12px arial, sans-serif; */; margin-right: 6px; height: 24px; padding-right: 18px; text-decoration: none; }
#bar a.button span {background: transparent url('../img/bg_button_span.gif') no-repeat; display:inline-block; line-height: 14px; padding: 5px 0 5px 18px;
}

#bar a.button:active { background-position: bottom right; color: #000; outline: none; /* hide dotted outline in Firefox */}

#bar a.button:active span {background-position: bottom left; padding: 6px 0 4px 18px; /* push text down 1px */}

select {float: left; padding-right: 30px; height: 24px; font: normal 12px arial, sans-serif;}


/* CSS3 BUTTON */
button.loginbutton {font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #0a53fc;padding: 3px 6px;background: -moz-linear-gradient(top,#ffffff 0%,#ffffff 50%,#d6d6d6);background: -webkit-gradient(linear, left top, left bottom, from(#ffffff),color-stop(0.50, #ffffff),to(#d7d7d7));-moz-border-radius: 6px;-webkit-border-radius: 6px;border-radius: 6px;border: 1px solid #0016ff;
}

#clock {position:absolute; margin:0px 0px 0px 0px; padding:2px 0px 6px 16px; font-size:1.4em; cursor:pointer; font-weight:bold; height: 24px; right: 0px}

.winlightbox {display: none;position: fixed;top: 0%;left: 0%;width: 100%;height: 100%;background-color: black;z-index:1001;-moz-opacity: 0.9;opacity:.90;filter: alpha(opacity=90);}
.wintextbox  {display: none;position: absolute;top: 25%;left: 25%;width: 65%;height: 50%;padding: 16px;border: 2px solid rgba(0,0,0,0.5);background: #fafafa;z-index:1002;overflow: auto; border-radius: 8px; text-align: center; font-size: x-large;}
/* .wintextcont { position:absolute; top:0; bottom:0; left:0; right:0; margin:auto; height:35%; width:90%; vertical-align: middle} */
.wintextbox p{display: table-cell; vertical-align: middle; text-align: center; padding: 20px}
