#game {
    font-family: Verdana,Geneva,sans-serif;
}
#menu * {
    box-sizing: border-box;
}
#menu, #game {
    width: 800px;
    height: 800px;
    border: none;
}
#tabs {
    width: 800px;
    height: 800px;
    border: none;
}
#tabs>div>table {
    width: 745px;
    border: 1px #000 solid;
}
#tabs>div>table th, #tabs>div>table td {
    height: 50px;
    text-align: center;
    border: 1px #000 solid;
}
#current_games {
    width: 600px !important;
}
td>div.red {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: red;
}
#current_games>tbody>tr.my_game {
    background-color: salmon;
}
.no-close .ui-dialog-titlebar-close {
    display: none;
}
#user_info {
    position: absolute;
    margin-top: 5px;
    margin-left: 600px;
    width: 195px;
    height: 45px;
    background-color: gainsboro;
    z-index: 1;
    opacity: 0.7;
    text-align: center;
}
#load_map_dialog {
    cursor: default;
}
#load_map_dialog tbody tr:nth-child(2n+1) {
    background-color: lightgray;
}
#load_map_dialog tbody tr:hover {
    background-color: yellow;
}
#load_map_dialog tbody tr.select {
    background-color: red;
}
#load_map_dialog td {
    text-align: center;
}
#save_map_dialog_name {
    text-align: center;
    width: 100%;
}

.gameState {
    position: absolute;
    display: none;
    width: 800px;
    height: 800px;
    border: none;
    background-image: url(/img/lobby/bg.png);
    z-index: 0;
}
.to_menu {
    position: absolute;
    left: 28px;
    top: 237px;
    width: 196px;
    height: 51px;
    background-image: url(/img/lobby/menu.png);
    background-position: 0 0;
    z-index: 2;
}
.to_menu:hover {
    background-image: url(/img/lobby/menu.png);
    background-position: 0 51px;
}
.to_menu:active {
    background-image: url(/img/lobby/menu.png);
    background-position: 0 102px;
}
#create_game {
    position: absolute;
    left: 594px;
    top: 237px;
    width: 196px;
    height: 51px;
    background-image: url(/img/lobby/make.png);
    background-position: 0 0;
    z-index: 2;
    margin: 0;
}
#create_game:hover {
    background-image: url(/img/lobby/make.png);
    background-position: 0 51px;
}
#create_game:active {
    background-image: url(/img/lobby/make.png);
    background-position: 0 102px;
}
.image_game {
    position: absolute;
    left: 236px;
    top: 158px;
}

.top_icon {
    position: absolute;
    top: 0px;
    width: 130px;
    height: 124px;
    background-image: url("/img/menu/menu.png");
}
.top_icon > div {
    width: 86px;
    height: 86px;
    border-radius: 43px;
    position: absolute;
    left: 28px;
    top: 18px;
    opacity: 0;
    cursor: pointer;
}

.top_icon_home {
    left: 270px;
    background-position: 0px 0px;
}
.top_icon_home.hover {
    background-position: -130px 0px;
}

.top_icon_rules {
    left: 370px;
    background-position: -130px -124px;
}
.top_icon_rules.hover {
    background-position: -130px -248px;
}
.top_icon_rules.active,top_icon_rules.active.hover {
    background-position: -390px -124px;
}

.top_icon_shop {
    left: 470px;
    background-position: 0px -124px;
}
.top_icon_shop.hover {
    background-position: 0px -248px;
}
.top_icon_shop.active,top_icon_shop.active.hover {
    background-position: -390px 0px;
}

.top_icon_achievements {
    left: 570px;
    background-position: 0px -372px;
}
.top_icon_achievements.hover {
    background-position: -130px -372px;
}
.top_icon_achievements.active,top_icon_achievements.active.hover {
    background-position: -260px -372px;
}

.top_icon_rating {
    left: 670px;
    background-position: -260px -124px;
}
.top_icon_rating.hover {
    background-position: -260px -248px;
}
.top_icon_rating.active,top_icon_rating.active.hover {
    background-position: -390px -248px;
}

.music {
    position: absolute;
    top: 121px;
    left: 350px;
    width: 61px;
    height: 61px;
    background-image: url("/img/game/music.png");
    background-position: 0px -122px;
}
.music:hover {
    background-position: 0px -183px;
}
.music.active {
    background-position: 0px 0px;
}
.music.active:hover {
    background-position: 0px -61px;
}
.music.pressed,.music.pressed:hover {
    background-position: 0px -244px;
}

.top_cell {
    position: absolute;
    top: 129px;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
.top_text {
    position: absolute;
    top: 142px;
    width: 50px;
    text-align: right;
    font-family: 'PT Sans Narrow';
    font-size: 14px;
    font-weight: bold;
    color: #FFF;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
.table_head {
    position: relative;
    left: 0px;
    top: 223px;
    width: 800px;
    height: 216px;
    background-image: url(/img/lobby/coockie_divider.png);
    z-index: -1;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
.table_head_cell {
    position: absolute;
    top: 159px;
    width: 50px;
    text-align: left;
    font-family: 'PT Sans Narrow';
    font-size: 24px;
    color: #7c491e;
    font-weight: bold;
}
.table_scroll {
    left: 0px;
    padding-top: 223px;
    max-height: 482px;
    height: 482px;
}
.table_scroll table {
    border: none;
    width: 800px;
    border-spacing: 0px 4px;
}
.table_scroll table > tbody {
    width: 800px;
    display: block;
}
.table_scroll table > tbody > tr {
    border: none;
    color: #fffdf0;
    font-family: HeliosCondBold;
    font-size: 18px;
    height: 56px;
    outline: medium none;
}
.table_scroll table > tbody > tr > td {
    border: none;
    padding: 0px;
    text-align: center;
}
.table_scroll table > tbody > tr > td:nth-child(2n) {
    background-color: rgba(38,115,129,0.56);
}
.table_scroll table > tbody > tr > td:nth-child(2n+1) {
    background-color: rgba(0,90,107,0.56);
}
.table_scroll table > tbody > tr:hover > td:nth-child(2n) {
  background-color: rgba(62,161,178,0.56);
}
.table_scroll table > tbody > tr:hover > td:nth-child(2n+1) {
  background-color: rgba(0,130,151,0.56);
}
.table_scroll table > tbody > tr.active > td:nth-child(2n) {
  background-color: rgba(129,115,38,0.56);
}
.table_scroll table > tbody > tr.active > td:nth-child(2n+1) {
  background-color: rgba(107,90,0,0.56);
}
#gameList > tbody > tr > td:nth-child(1) {
    width: 189px;
}
#gameList > tbody > tr > td:nth-child(2) {
    width: 187px;
}
#gameList > tbody > tr > td:nth-child(3) {
    width: 153px;
}
#gameList > tbody > tr > td:nth-child(4) {
    width: 137px;
}
#gameList > tbody > tr > td:nth-child(5) {
    width: 134px;
}
#ratingTable > tbody > tr > td:nth-child(1) {
    width: 87px;
}
#ratingTable > tbody > tr > td:nth-child(2) {
    width: 119px;
}
#ratingTable > tbody > tr > td:nth-child(3) {
    width: 119px;
}
#ratingTable > tbody > tr > td:nth-child(4) {
    width: 119px;
}
#ratingTable > tbody > tr > td:nth-child(5) {
    width: 119px;
}
#ratingTable > tbody > tr > td:nth-child(6) {
    width: 119px;
}
#ratingTable > tbody > tr > td:nth-child(7) {
    width: 118px;
}
.simple_divider {
    position:absolute;
    top:149px;
    background-image: url("../img/lobby/simple_divider.png");
    background-repeat: no-repeat;
    width: 4px; /*or your image's width*/
    height: 52px; /*or your image's height*/
    margin: 0;
    padding: 0;
}
.game_list_dialog {
    position: absolute;
    display: none;
    left: 200px;
    top: 200px;
    width: 400px;
    height: 400px;
    background-color: white;
    z-index: 10;
}
.game_list_dialog_close {
    background-color: red;
    width: 30px;
    height: 30px;
    top: 0px;
    right: 0px;
    position: absolute;
}
#map_size {
    position: absolute;
    top: 30px;
    left: 20px;
    width: 40px;
    height: 25px;
}
#map_name {
    position: absolute;
    top: 30px;
    left: 80px;
    width: 200px;
    height: 25px;
}
#map_create {
    position: absolute;
    top: 80px;
    left: 100px;
    width: 200px;
    height: 25px;
}

.rating_image {
    vertical-align: middle;
    float: right;
    width: 48px;
    border-radius: 10px;
}
.rating_position {
    float: left;
    height: 48px;
    line-height: 48px;
    width: 35px;
}
.modal_dialog {
    position: absolute;
    width: 800px;
    height: 800px;
    background-color: rgba(102, 102, 102, 0.6);
    top: 0;
    left: 0;
}
.modal_dialog > .background_image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../img/dialog/background2.png");
}
.modal_dialog > .background_image.noimage {
    background-image: none;
}
.modal_dialog > .background_image > .body {
    position: absolute;
    width: 462px;
    height: 317px;
    background-image: url("../img/dialog/body.png");
    left: 172px;
    top: 252px;
}
.modal_dialog > .background_image > .body.small {
    width: 335px;
    height: 171px;
    background-image: url("../img/dialog/small_body.png");
    left: 232px;
    top: 314px;
}
.modal_dialog > .background_image > .body > .header {
    position: absolute;
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    background-position: center center;
    left: 131px;
    top: -100px;
}
.modal_dialog > .background_image > .body > .header.achievement {
    background-image: url("../img/dialog/achievement_header.png");
}
.modal_dialog > .background_image > .body > .header.lose {
    background-image: url("../img/dialog/lose_header.png");
}
.modal_dialog > .background_image > .body > .header.win {
    background-image: url("../img/dialog/win_header.png");
}
.button {
    position: absolute;
    width: 178px;
    height: 51px;
    background-position: 0 0;
    text-align: center;
    line-height: 36px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 16px;
    cursor: default;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
.noselect {
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
.modal_dialog > .background_image > .body > .button.button_small {
    width: 118px;
}
.button:hover {
    background-position: 0 -102px;
}
.button:active {
    background-position: 0 -51px;
}
.modal_dialog > .background_image > .body > .button.button_continue {
    background-image: url("../img/dialog/button_continue.png");
}
.modal_dialog > .background_image > .body > .button.button_small.button_yes {
    background-image: url("../img/dialog/button_yes.png");
}
.modal_dialog > .background_image > .body > .button.button_small.button_no {
    background-image: url("../img/dialog/button_no.png");
}
.modal_dialog > .background_image > .body > .button.button_close {
    width: 34px;
    height: 34px;
    background-image: url("../img/dialog/button_close.png");
}
.modal_dialog > .background_image > .body > .button.button_close:hover {
    background-position: 0 -68px;
}
.modal_dialog > .background_image > .body > .button.button_close:active {
    background-position: 0 -34px;
}
.modal_dialog > .background_image > .body > .delimiter {
    width: 298px;
    height: 2px;
    position: absolute;
    left: 79px;
    top: 183px;
    background-image: url("../img/dialog/delimiter.png");
}
.modal_dialog > .background_image > .body > .text_area {
    width: 121px;
    height: 35px;
    line-height: 35px;
    position: absolute;
    left: 266px;
    top: 202px;
    background-image: url("../img/dialog/text_area_121.png");
    text-align: center;
    color: #FFF;
    font-size: 20px;
    font-weight: bold;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}
.modal_dialog > .background_image > .body > .text_area img {
    vertical-align: middle;
}
.modal_dialog > .background_image > .body > .text_area.width141 {
    width: 141px;
    background-image: url("../img/dialog/text_area_141.png");
}
.modal_dialog > .background_image > .body > .text_area.down {
    left: 266px;
    top: 202px;
}
.modal_dialog > .background_image > .body > .text_area.middle {
    left: 266px;
    top: 132px;
}
.modal_dialog > .background_image > .body > .text_area.up {
    left: 257px;
    top: 88px;
}
.modal_dialog > .background_image > .body > .text {
    position: absolute;
    height: 35px;
    line-height: 35px;
    color: #FFF;
    font-size: 20px;
    font-weight: bold;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
    text-align: center;
}
.modal_dialog > .background_image > .body > .text.confirm_text {
    display: flex;
    align-items: center;
    font-weight: normal;
    line-height: 24px;
    margin: 0;
}
.modal_dialog > .background_image > .body .select {
    position: absolute;
    height: 31px;
}
.modal_dialog > .background_image > .body .select > .small {
    position: absolute;
    background-color: #97cee6;
    border-color: #004360;
    border-radius: 9px;
    border-width: 1px;
    border-style: solid;
    width: 100%;
    height: 100%;
}
.modal_dialog > .background_image > .body .select > .full {
    position: absolute;
    background-color: #97cee6;
    border-color: #004360;
    border-radius: 9px;
    border-width: 1px;
    border-style: solid;
    width: 100%;
    height: 100%;
}
.modal_dialog > .background_image > .body .select > .full > .list_item {
    color: #004360;
    height: 31px;
    line-height: 31px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}
.modal_dialog > .background_image > .body .select > .full > .list_item:hover {
    background-color: #82b5e8;
}
.modal_dialog > .background_image > .body .select > .full > .list_item:last-child {
    border-radius: 0 0 9px 9px;
}
.modal_dialog > .background_image > .body .select > .full > .list_item:first-child {
    border-radius: 9px 9px 0 0;
}
.modal_dialog > .background_image > .body .select > .full > .list_item:first-child:last-child {
    border-radius: 9px 9px 9px 9px;
}
.modal_dialog > .background_image > .body .select > .small > .value {
    position: absolute;
    right: 25px;
    color: #004360;
    height: 20px;
    line-height: 31px;
    font-weight: bold;
    font-size: 16px;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
    text-align: center;
}
.modal_dialog > .background_image > .body .select > .small > .triangle {
    position:absolute;
    top: 10px;
    right: 10px;
    background-image: url('../img/dialog/triangle.png');
    width: 12px;
    height: 11px;
}
.modal_dialog > .background_image > .body > .button.button_create {
    background-image: url("../img/dialog/button_create.png");
}
.modal_dialog > .background_image > .body .text.small_text {
    font-weight: normal;
    line-height: 16px;
    height: 16px;
    font-size: 14px;
}
.newAchivka {
    position: absolute;
    left: 250px;
    top: 250px;
    width: 300px;
    height: 300px;
    background-color: white;
    background-position: center;
    background-size: 300px 300px;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
}
.newAchivka .header {
    position: absolute;
    width: 300px;
    height: 60px;
    top: 20px;
    left: 0px;
    text-align: center;
    font-size: 48px;
    background-color: pink;
    cursor: default;
}
.newAchivka .close {
    position: absolute;
    width: 200px;
    height: 60px;
    top: 230px;
    left: 50px;
    text-align: center;
    font-size: 48px;
    background-color: lightblue;
    border-radius: 20px;
    cursor: default;
    border-style: solid;
    border-width: 4px;
    border-color: black;
}
