body {
	color: #222;
	font-size: 17px;
	font-family: verdana;
	width: 1100px;
	margin: 0 auto;
	padding: 80px;
}

body:not(.darkb) {
	background: -webkit-linear-gradient(top left, white 16%, #CCC);
	background: -moz-linear-gradient(top left, white 16%, #CCC);
	background: -ms-linear-gradient(top left, white 16%, #CCC);
	background: -o-linear-gradient(top left, white 16%, #CCC);
}

body.darkb {
	background-color: #222;	color: #EEE;
}

#logo {
	width: 200px;
	height: 134px;
	background: url(/style/3jfx_logo.png);
	z-index: 10;
	display: block;
}

#title {
	font-size: 42px;
	text-shadow: 1px 1px 4px #000;
	margin-bottom: 36px;
}

.fixed {
	position: fixed;
}

.center-box {
	position: absolute;
	left: 50%;
	top: 50%;
}

.ui {
	background: url(/style/ui.png);
	width: 20px;
	height: 20px;
	display: inline-block;
	cursor: pointer;
}

.close {
	display: none;
	position: absolute;
	background-position: 0 0;
	right: 5px;
	top: 5px;
}

div:hover .close, #alert-box .close {
	display: block;
}

.close:hover{
	background-position: -22px 0;
}

.close:active{
	background-position: -45px 0;
}

.confirm {
	background-position: 0 -21px;
}

.confirm:hover {
	background-position: -22px -21px;
}

.confirm:active {
	background-position: -45px -21px;
}

.decline {
	background-position: 0 -42px;
}

.decline:hover {
	background-position: -22px -42px;
}

.decline:active {
	background-position: -45px -42px;
}

.prev {
	background-position: -2px -88px;
	width: 51px;
	height: 22px;
}

.next {
	background-position: -59px -88px;
	width: 51px;
	height: 22px;
}

.float-left: {
	float: left;
}

.float-right {
	float: right;
}

.big {
	font-weight: bold;
	font-size: 24px;
}


input[type=text]:hover,input[type=password]:hover,textarea:hover {
	border-color: #888;
}

input[type=text]:focus,input[type=password]:focus,textarea:focus {
	outline: none;
	border-color: #3AF;
}



.button,input[type=button],input[type=submit] {
	color: #222;
	text-decoration: none;
	background-color: #DDD;
	min-width: 75px;
	min-height: 22px;
	padding: 6px 7px;
	text-align: center;
	display: inline-block;
	cursor: pointer;
	border: 1px solid #BBB;
	border-radius: 4px;
	box-shadow: 0 2px 8px #000;
}

.button:hover,.button.filled,input[type=button]:hover,input[type=submit]:hover,.select:hover {
	border: 1px solid #777;
	background-image: -moz-linear-gradient(top, #FFF 0, #CCC 100%);
	background-image: -ms-linear-gradient(top, #FFF 0, #CCC 100%);
	background-image: -o-linear-gradient(top, #FFF 0, #CCC 100%);
	background-image: -webkit-linear-gradient(top, #FFF 0, #CCC 100%);
}

.button.dark:hover,.button.filled.dark {
	border-color: #000;
	background-image: -moz-linear-gradient(top, #666 0, #222 100%);
	background-image: -ms-linear-gradient(top, #666 0, #222 100%);
	background-image: -o-linear-gradient(top, #666 0, #222 100%);
	background-image: -webkit-linear-gradient(top, #666 0, #222 100%);
	box-shadow: 0px 2px 5px #000;
}

.button:active,.button.active,input[type=button]:active,input[type=submit]:active {
	border: 1px solid #777;
	box-shadow: inset 1px 2px 8px #999, 0 1px 5px #000;
	background-image: -moz-linear-gradient(top, #CCC 0, #FFF 100%);
	background-image: -ms-linear-gradient(top, #CCC 0, #FFF 100%);
	background-image: -o-linear-gradient(top, #CCC 0, #FFF 100%);
	background-image: -webkit-linear-gradient(top, #CCC 0, #FFF 100%);
}

.button.dark {
	box-shadow: 0 0 5px #444;
	background-image: -webkit-linear-gradient(top, #666 0, #000 100%);
}

.button.dark:active,.button.active.dark {
	border-color: #000;
	box-shadow: 0 2px 2px #000;
	background-image: -moz-linear-gradient(top, #000 0, #222 100%);
	background-image: -ms-linear-gradient(top, #000 0, #222 100%);
	background-image: -o-linear-gradient(top, #000 0, #222 100%);
	background-image: -webkit-linear-gradient(top, #000 0, #222 100%);
}

.button:focus,input[type=button]:focus,input[type=submit]:focus {
	outline: none;
	border-color: #777;
}

.no-box-shadow {
	box-shadow: none;
}

input[type=text],input[type=password],textarea {
	padding: 6px;
}

input,textarea,select {
	color: #222;
	font-size: 16px;
	font-family: verdana;
	margin: 5px 0;
	color: #222;
	font-size: 16px;
	font-family: verdana;
}

input:not([type=file]),textarea,select{
	border: 1px solid #AAA;
	border-radius: 5px;
}

form {
	padding: 0;
	margin: 0;
}

.tooltip {
	width: 250px;
	padding: 17px;
	background: #FFF;
	border: 1px solid #555;
	border-radius: 6px;
	box-shadow: 0 1px 1px #EEE;
	font-size: 16px;
	color: #333;
	z-index: 5;
}

.checkbox {
	width: 25px;
	height: 25px;
	display: inline-block;
	background-position: -66px -1px;
	position:relative;
	bottom: -6px;
	margin-right: 4px;
}

.checkbox:active {
	background-position: -92px -30px;
}

.checkbox.active {
	background-position: -66px -30px;
}

.checkbox.active:active {
	background-position: -92px -1px;
}

.loading {
	background:url(/style/loading.gif) center center no-repeat;
}

.select {
	border: 1px solid #BBB;
	border-radius: 4px;
	background-color: #DDD;
	box-shadow: 0 1px 1px #FFF;
	display: inline-block;
	height: 27px;
	overflow-y: visible;
}

.select>.header {
	height: 27px;
}

.select>.header>.info {
	width: 250px;
	display: inline-block;
	float: left;
	padding: 3px;
}

.select>.header>.open {
	width: 32px;
	height: 27px;
	background-position: -119px -1px;
	cursor: pointer;
	display: inline-block;
	float: right;
}

.select>.items{
	margin-top: 2px;
	font-size: 14px;
	background-color: #EEE;
	border: 1px solid #BBB;
}

.select>.items>.item {
	padding: 3px;
	border-bottom: 1px solid #BBB;
	cursor: pointer;
}

.select>.items>.item:last-child {
	margin-bottom: -1px;
}

.select>.items>.item:hover{
	background-color: #DDD;
}

.yes-no {
	height: 35px;
	border: 1px solid #BBB;
	border-radius: 4px;
	background-color: #DDD;
	box-shadow: 0 1px 1px #FFF;
	display: inline-block;
	position: relative;
	top: -9px;
	float: right;
}

.yes-no:hover {
	border: 1px solid #777;
	cursor: pointer;
}

.yes-no>.frame {
	width: 35px;
	height: 35px;
	display: inline-block;
}

.yes-no>.frame:hover {
	border-radius: 3px;
	background-image: -moz-linear-gradient(top, #FFF 0, #CCC 100%);
	background-image: -ms-linear-gradient(top, #FFF 0, #CCC 100%);
	background-image: -o-linear-gradient(top, #FFF 0, #CCC 100%);
	background-image: -webkit-linear-gradient(top, #FFF 0, #CCC 100%);
}

.yes-no>.frame>.box {
	width: 19px;
	height: 19px;
	margin: 8px;
}

.yes-no>.frame>.yes {
	background-position: -2px -64px;
}

.yes-no>.frame>.no {
	background-position: -24px -64px;
}

.yes-no>.frame:hover>.yes, .yes-no.y-a>.frame>.yes {
	background-position: -46px -64px;
}

.yes-no>.frame:hover>.no, .yes-no.n-a>.frame>.no {
	background-position: -68px -64px;
}

.closable:not(.fixed) {
	position: relative;
}

.overlay {
	z-index: 200;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	position: fixed;
	opacity: 0.7;
}

.overlay > .fade {
	width: 100%;
	height: 100%;
	background: url(/style/ovl_bg.png) repeat;
}

.content-box {
	background-color: #EEE;
	border: 1px solid #999;
	border-radius: 6px;
	box-shadow: 0 1px 1px #FFF;
	padding: 25px;
}

#alert-box {
	background-color: #FEE;
	border: 1px solid #F55;
	border-radius: 6px;
	box-shadow: 0 1px 1px #F77;
	padding: 20px;
	width: 480px;
	position: fixed;
	top: 35%;
	left: 50%;
	margin-left: -261px;
	margin-top: -25px;
	z-index: 300;
	font-size: 18px;
	max-height: 300px;
	overflow-x: hidden;
	overflow-y: auto;
	color: #E00;
	box-shadow: 0 4px 11px 5px rgba(255, 55, 55, 0.2), 0 2px 6px rgba(255, 0, 0, 0.5);
}

code {
	background: #FFF;
	border: 1px solid #DDD;
	border-left-width: 3px;
	color: #060;
	display: block;
	margin: 10px 0 20px;
	padding-top: 7px;
	padding-bottom: 7px;
	padding-left: 10px;
	overflow: auto;
	font-size: 13px;
	font-family: monospace;
	white-space: pre;
}

[draggable] {
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.drag-over {
	border-style:dotted;
}

.bottom-right-corner{
	position: absolute;
	bottom: 5px;
	right: 5px;
}

a, .a {
	cursor: pointer;
	color: #08F;
	text-decoration: none;
}

a:hover, .a:hover {
	color: #0AF;
}

a.red, .a.red {
	color: #F22;
}

a.red:hover, .a.red:hover {
	color: #F55;
}

.popup {
	width: 600px;
	height: 300px;
	position: fixed;
	left: 50%;
	top: 50%;
	margin-left:-326px;
	margin-top:-176px;
	z-index: 205;
	box-shadow: 0 4px 32px 5px rgba(55, 55, 55, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
	border-radius: 12px;
	color: #222;
}

.popup.scroll {
	overflow-y: scroll;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.dark {
	background-color: #222;
	color: #DDD;
	border-color: #000;
	box-shadow: 0 2px 25px #444, 0 5px 15px #000;
}

.editable {
	cursor: url(pencil.png), pointer;
}

input.small {
	margin: -3px;
	padding: 2px;
	display: none;
}

input[type=text].checking, input[type=password].checking {
	background: #FFF url(/style/input_load.gif) 99% 50% no-repeat;
}

input[type=text].wrong, input[type=password].wrong {
	border: 2px solid #E00;
	margin: 4px -1px;
	box-shadow: 0 3px 10px #F99;
}

input[type=text].ok, input[type=password].ok {
	border: 2px solid #0E0;
	margin: 4px -1px;
	box-shadow: 0 3px 10px #9F9;
}

#notification {
	z-index: 20;
	position: fixed;
	top: -55px;
	left: 50%;
	margin-left: -550px;
	width: 1100px;
	background-color: #222;
	color: #EEE;
	text-shadow: 0px 0px 4px #BBB;
	border-radius: 12px;
	box-shadow: inset 0 0 15px #444, 0 2px 12px #000, 0 3px 15px #333;
	background-image: -moz-linear-gradient(top, #333 25%, black 100%);
	background-image: -ms-linear-gradient(top, #333 25%, black 100%);
	background-image: -o-linear-gradient(top, #333 25%, black 100%);
	background-image: -webkit-linear-gradient(top, #333 25%, black 100%);
	cursor: pointer;
}

#notification>div {
	padding: 12px 35px;
}

.tt {
	background-color: #222;
	color: #FFF;
	padding: 5px 12px;
	border-radius: 3px;
	box-shadow: 0 0 5px #000;
	position: absolute;
	z-index: 20;
	opacity: 0;
	font-size: 16px;
}

.pages-wrap {
	width: 300px;
	text-align: center;
	background-color: #000;
	border-radius: 12px;
	padding: 15px;
	display: inline-block;
	box-shadow: 0 0 12px #000;
	vertical-align: top;
	cursor: pointer;
}

.pages-wrap>.head {
	font-size: 32px;
	color: #FFF;
	text-shadow: 0 0 3px #FFF;
}

.pages-wrap>.body {
	display: none;
	margin-top: 10px;
}

.pages-wrap:hover>.body {
	display: block;
}

.pages-wrap>.body>a {
	display: block;
	margin-top: 11px;
}

.backtoindex {
	background: url(/style/backtoindex.png);
	width: 80px;
	height: 55px;
	position: absolute;
}

.abs-top {
	position: absolute;
	top: 12px;
}

.abs-bottom {
	position: absolute;
	bottom: 12px;
}

.abs-left {
	left: 12px;
}

.abs-right {
	right: 12px;
}

.group {
	display: inline-block;
	margin-right: 9px;
}

#feedback {
	position: fixed;
	top: 50%;
	left: -27px;
	-moz-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	border: 2px solid #010;
	padding: 12px;
	background: #0E2;
	color: #010;
	border-radius: 12px;
	font-weight: bold;
	box-shadow: 0px 2px 14px #000;
	cursor: pointer;
	margin-top: -64px;
}

.start_title {
	width: 533px;
	height: 300px;
	position: relative;
	cursor: pointer;
	display: inline-block;
	border: 1px solid #000;
	box-shadow: 0px 2px 24px #000;
}

.start_title:hover {
	box-shadow: 0px 2px 24px #000, 0px 2px 14px #000;
}

#title_draw {
	background: url(/style/title_draw.png);
}

#title_games {
	background: url(/style/title_games.png);
}

.start_title > .start_title_btn {
	width: 100%;
	text-align: center;
	background-color: #444;
	padding: 15px 0px;
	display: inline-block;
	border-top: 1px dotted #FFF;
	opacity: 0.75;
	position: absolute;
	bottom: 0px;
	display: none;
	color: #FFF;
	text-shadow: 0px 0px 2px #EEE;
}

.start_title:hover > .start_title_btn {
	display: block;
}

.start_title_popup {
	width: 400px;
	margin-left: -226px;
	margin-top: -246px;
	display: none;
	height: auto;
}

.start_title_popup > a {
	display: block;
}

.h1 {
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 12px;
	text-align: center;
}

.small {
	font-size: 13px;
	padding: 5px;
	min-height: 0;
	margin: 2px;
}

.block {
	display: block;
}

.smallitem {
	max-width: 150px;
	overflow: hidden;
	padding: 3px;
	margin: 8px;
	display: inline-block;
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 0 5px #CCC;
}

.smallitem:hover {
	border: 1px solid #AAA;
	box-shadow: inset 0 1px 5px #AAA;
	margin: 7px;
	background-color: #EEE;
	color: #0AF;
}

.smallitem:active {
	border: 1px solid #777;
	box-shadow: inset 0 1px 5px #666;
	margin: 7px;
	background-color: #CCC;
}

.smallitem.dark {
	box-shadow: inset 0 0 13px #CCC, 0 0 3px #CCC;
}

.smallitem.dark:hover {
	box-shadow: inset 0 0 14px #CCC, 0 0 5px #CCC;
	background-color: #444;
}

.smallitem.dark:active {
	box-shadow: inset 0 0 16px #CCC, 0 0 6px #CCC;
	background-color: #666;
	border: 1px solid #BBB;
}

.info-box {
	-webkit-background-clip: padding;
	-moz-background-clip: padding; 
	border: 10px solid rgba(0, 0, 0, 0.5);
	width: 500px;
	height: auto;
	min-height: none;
	top: 35%;
}

.warning {
	border-radius: 6px;
	box-shadow: 0 1px 10px #A00, 0 0 4px #000;
	background-color: #FAA;
	color: #E00;
	font-weight: bold;
	overflow: hidden;
	padding: 15px 20px;
	text-overflow: ellipsis;
	text-shadow: 1px 1px 3px rgba(120, 0, 0, 0.2);
	white-space: nowrap;
}

.select-row>span {
	background-color: #FFF;
	border: 1px solid #555;
	border-radius: 5px;
	padding: 6px 12px;
	margin: 0 4px;
	cursor: pointer;
}

.select-row>span.selected {
	background-color: #222;
	color: #FFF;
	border-color: #000;
}

.select-row>span:hover {
	border-color: #3AF;
}