body {
    background-image: url(../bgTest.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    /* 080401;	 */
}

.clear {
    clear: both;
}

/******************GENERIC CLASSES*******************/
/*
.ani_hack {
    -webkit-perspective: 1000;
    -webkit-backface-visibility: hidden;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
     mobile webkit

    image-rendering: optimizeSpeed;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
    -ms-touch-action: none;
    background-color: #080401;
}

* {
    user-select: none;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
*/

::selection {
    background: transparent;
    color: inherit;
}

::-moz-selection {
    background: transparent;
    color: inherit;
}

.text_class {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

#score_title {
    margin: 0;
    padding: 0;
}

.button_class {
    /* ca change aug 17
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
	background-color:#4c9726;
    */

    font-family: 'Open Sans', sans-serif;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* border: 1px solid #aaa; ca change aug 18 */
    color: #ffffff;
    /* background: #fff none; ca change aug 18 */
    letter-spacing: .1em;
    line-height: 2em;
    border-radius: 5px;
    margin: .5em 1em .5em 0;
    padding: 0 1.5em .1em 1.5em;
    width: auto;
    font-weight: 300;
    font-size: 1.1em;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    /* ca change aug 18, was 50, 50, 50, .55 */
    -webkit-box-shadow: 2px 2px 3px 1px rgba(10, 10, 10, 0.75);
    -moz-box-shadow: 2px 2px 3px 1px rgba(10, 10, 10, 0.75);
    box-shadow: 2px 2px 3px 1px rgba(10, 10, 10, 0.75);
}

/**********************APP**************************/
#main_game_container {
    /* position: absolute;  ca change aug 18 */
    width: 100%;
    /* ca change aug 17 800px;, aug 18 was 1024 */
    /*height: 700px;    ca change aug 17 600px;, aug 18 commented out line */
    /*    background-color: #ffffff;*/
    overflow: hidden;
    height: 100%;
}

#preloader_text {
    position: absolute;

    width: 800px;
    top: 300px;
    text-align: center;
    color: white;
    font-size: 24px;
    display: none;
}

#msg_box {
    position: absolute;
    width: 1024px;
    /* ca change aug 17 800px; */
    height: 700px;
    /* ca change aug 17 600px; */
    display: none;
}

.msg_box_text {
    position: absolute;
}

.msg_box_but {
    position: absolute;
    text-align: center;
}

#block_panel {
    background-image: url(../assets/block.png);
    position: absolute;
    width: 100%;
    /* ca change aug 17 800px;, aug 18 changed from 1024px */
    height: 700px;
    /* ca change aug 17 600px; */
    display: none;
}

/***********************************************/


/*********************MENU*********************/

#menu_container {
    /* width: 1024px;  /* ca change aug 17 800px; aug 18 commented out */
    /* height: 700px;  ca change aug 17 600px; aug 18 commented out */
    /* position: absolute; ca change aug 18 commented out */
    height: 686px;
    /*654px;  /* 718px; */
    background-size: 100% auto;
    background-repeat: no-repeat;
    overflow: hidden;
    height: 85% !important;
    width: 75% !important;

}

#menu_layout {
    /* width: 1024px;    ca change aug 17 800px;, aug 18 commented out */
    /* height: 700px;    ca change aug 17 600px;, aug 18 commented out */
    /* position: absolute;  aug 18 commented out */
    /*    display: none; */
    display: block;
    /* height: 100%; */
    overflow: hidden;
    background-size: 100% auto;
    background-repeat: no-repeat;
    padding: 1em 5%;
}

#menu_layout img.header {
    margin: 0 35%;
}

.mahjong_layout {
    /* ca change aug 17
    width: 203px;
    height: 229px;
    position: absolute;
    background-repeat:no-repeat;
    background-position:center;
    top : 360px;
*/

    /*width:5em;   ca change aug 18 200px;  */
    /*height:229px;  change aug 18 */
    float: left;
    margin: 1em;
    padding: .2em .5em 0;
    cursor: pointer;
    background-color: #faface;
    overflow: hidden;
    border-radius: 10px;
    -webkit-box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.75);
    border: 1px solid #cccccc;
    height: 6em;
}

.mahjong_layout.active {
    background-color: #e8e80b;
}

.mahjong_layout:hover {
    background-color: #e8e80b;
}

.mahjong_layout h1 {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.mahjong_layout h2 {
    /* ca change aug 17
	position: absolute;
	*/

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

.mahjong_layout h3 {
    /* ca change aug 17
	position: absolute;
	*/

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 1em 0 0;
    text-align: center;
}

.layout_preview {
    /* ca change aug 17
    position: absolute;
    width: 160px;
    height: 120px;
    top: 54px;
    left: 22px;
	*/
    /* ca change aug 18, trying to make it responsive, so image will having margins, this class doesn't need them
	float: left;
	margin: 1em 1em;
	*/
}

.layout_preview img {
    margin: 0 10%;
    width: 80%;
}

.layout_preview h3 {
    border: none;
}

#mahjong_layout_0 {
    /*    left : 80px;  ca change aug 17 */
    /*	margin-left:13%; */
}

#mahjong_layout_1 {
    /*    left : 310px;    ca change aug 17 */
}

#mahjong_layout_2 {
    /*    left : 520px;   ca change aug 17 */
}

.layout_lock {
    position: absolute;
}

.coin_text {
    position: absolute;
    left: 34px;
    top: 5px;
}

.arrow_button {
    position: absolute;
    cursor: pointer;
}

img.start_page_header {
    float: left;
    width: 250px;
    margin: 0;
    padding: 0;
}

img.logo {
    float: right;
    margin: .3em 1em;
}

#choose_layouts_row {
    float: left;
    width: 100%;
    margin: 2em 0 0 0;
    padding: 0;
}

.layout_level {
    float: left;
    border: 1px solid #cccccc;
    border-radius: 10px;
    margin: .5em 1em .5em 0;
    padding: 0 .5em;
}

.layout_level h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3em;
    font-weight: 300;
    text-align: center;
    margin: 0;
    padding: .2em .5em;
    /*-    border-bottom: 1px solid #aaaaaa;	 */
}

#layouts_easy {
    width: 30%;
    border: 1px solid #18b108;
}

#layouts_easy .mahjong_layout {
    width: 40%;
    margin: .5em 1% .5em 2%;
}

#layouts_easy h2 {
    /*    border-bottom: 1px solid #5fe118;			 */
}

#layouts_easy h2 + .mahjong_layout {
    /*	margin:.5em 3% .5em 1%; */
    margin: .5em 2% .5em 1%;
}

#layouts_medium {
    width: 45%;
    border: 1px solid #eccd00;
}

#layouts_medium .mahjong_layout {
    width: 25%;
    /*	margin:.5em 2%;	 */
    /*	margin:.5em 1% .5em 2%;	 */
    margin: .5em 1% .5em 2.5%;
}

#layouts_medium .mahjong_layout + #layouts_medium .mahjong_layout + #layouts_medium .mahjong_layout {
    margin: .5em 1% .5em 1%;
}

#layouts_medium h2 {
    /*    border-bottom: 1px solid #dfe118;			 */
}

#layouts_hard {
    width: 15%;
    margin-right: 0;
    border: 1px solid #f74848;
}

#layouts_hard .mahjong_layout {
    width: 75%;
    margin: .5em 5%;
}

#layouts_hard h2 {
    /*    border-bottom: 1px solid #f74848;	 */
}


#text_choose_layout {

    /* left:80px; ca change aug 17 */
    /*	left:0;
    top:280px;
	width:100%;
    position: absolute;
*/
    /*    height:62px;  ca change aug 17 */
    /*    width:664px; ca change aug 17 */
    width: 100%;
    float: left;
    overflow: hidden;
}

#text_choose_layout h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    text-align: left;
    margin: 0;
    padding: 0;
}

#choose_theme_row {
    float: left;
    width: 100%;
    margin: 2em 0 0 0;
    padding: 0;
}

.choose_theme_row h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.0em;
    text-align: left;
    margin: 0;
    padding: 0;
}

.theme_box {
    width: 15%;
    float: left;
    border: 1px solid #222222;
    border-radius: 10px;
    margin: .5em 1.5em .5em 0;
    padding: 0;
    background-color: #faface;
    -webkit-box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.75);
}

.theme_box.active {
    background-color: #e8e80b;
}

.theme_box:hover {
    background-color: #e8e80b;
}

.theme_box img {
    margin: .5em 2%;
    width: 95%;
    padding: 0;
}

.theme_box h3 {
    margin: .5em 1em;
    font-size: 1em;
    text-align: center;
    letter-spacing: .05em;
}

button#play_game {
    float: right;
    margin: 2em 7em 1em;
    vertical-align: bottom;
}

/*************CREDITS***************/

#credits_container {
    width: 800px;
    height: 600px;
    position: absolute;
    display: none;
}

#credits_text {
    position: absolute;
}

#credits_button_exit {
    width: 450px;
    top: 530px;
    left: 344px;
    position: absolute;
}

/**************HELP****************/

#help_container {
    width: 800px;
    height: 600px;
    position: absolute;
    display: none;
}

#help_tile_container {
    position: absolute;
    width: 25%;
    /* 400px; */
    /* height: 300px; */
    top: 10%;
    /* 32px; */
    left: 70%;
    /* 408px; */
}

#help_text1 {
    width: 60%;
    /* 400px; */
    /* height: 260px; */
    top: 10%;
    /* 60px; */
    left: 0px;
    position: absolute;
}

#help_text2 {
    width: 50%;
    /* 800px; */
    /*height: 176px; */
    top: 50%;
    /* 340px; */
    left: 0px;
    position: absolute;
    text-align: left;
}

#help_button_exit {
    width: 100px;
    /* 360px; */
    top: 80%;
    /* 540px; */
    left: 45%;
    /* 430px; */
    position: absolute;
    border-radius: 5px;

}

/******************GAME*************************/

.mahjong_tile {
    width: 61px;
    height: 78px;
    position: absolute;
}

.selection_tile {
    width: 61px;
    /* ca 9/28 44px */
    height: 78px;
    /* ca 9/28 60px */
    left: 0px;
    top: 0px;
    position: absolute;
    display: none;
}

#match_game_container {
    /*width: 100%;    ca change aug 17 800px;, aug 18 change from 1024px */
    /*height: 669px;   /* ca change aug 17 700px;, aug 18 changed from 700px aug 22 removed */
    /* position: absolute;  ca change aug 18 commented out */
    /*    background-color: #000;*/
    display: none;
    /* ca change aug 17, moving background image here instead of CGame.js #161 */
    /*    background-image: url(skins/deluxe/game_bg.jpg);*/
    background-size: 100% auto;
    background-repeat: no-repeat;
    height: 100% !important;
}
}

/* ca change aug 17 new class */
#match_game_container img {
    width: 100%;
    height: 100%;
}

#board_container {
    width: 1024px;
    /* ca change aug 17 800px; */
    height: 700px;
    /* ca change aug 17 600px; */
    position: absolute;
}

/******************INTERFACE**********************/

#interface_container {
    width: 1024px;
    /* ca change aug 17 800px; */
    height: 700px;
    /* ca change aug 17 600px; */
    position: absolute;
}

.menu_button {
    /* ca change aug 17
    background-image: url(../css/skins/deluxe/but_menu.png);
    background-size: contain;
    width: 284px;
    height: 92px;
    position: absolute;
    text-align: center;
	*/
    width: auto;
    position: absolute;
    text-align: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-color: #4C9726;
    background-size: 100%;
}

.menu_button p {
    /* margin-top: 20px; */
    margin-top: 8px;
    letter-spacing: 2px;
}


.game_button {
    /*    position: absolute;  */
    text-align: center;
    background-color: #4C9726;
    float: left;
    width: 170px;
    text-shadow: 1px 1px 2px #000;
    padding: 0px;
    height: 40px;
    line-height: 2.5;
}

.game_text {}

#buttonRow {
    display: block;
    /*	clear:both;
	float:left;
	margin:0;
	padding:0;
	width:100%;
*/
    position: absolute;
    top: 0px;
    padding: 0px;
    right: 0px;
}

#buttonRow img {
    float: right;
    width: 150px;
    margin: -.2em 4em 0 1em;
    padding: 0;
    display: none;
}

#button_game_shuffle {
    top: 10px;
    /* 75px,  48px; */
    /*    left: 5px; */
    left: 0px;
    /* .1em .3em .2em */
    border-radius: 5px;
    text-align: center;
}

#button_undo {
    top: 60px;
    left: 0;
    border-radius: 5px;
    position: absolute;
    text-align: center;
}

#button_game_restart {
    top: 120px;
    /* 40 when it's below exit/new game 26px; */
    left: 0px;
    border-radius: 5px;
    position: absolute;
    text-align: center;
}

/* This is the new game button */
#button_game_new_game {
    top: 180px;
    /* 75px,  48px; */
    /*    left: 5px; */
    left: 0px;
    /* .1em .3em .2em */
    border-radius: 5px;
    position: absolute;
}

#button_game_settings {
    top: 240px;
    /* 75px,  48px; */
    /*    left: 5px; */
    left: 0px;
    /* .1em .3em .2em */
    border-radius: 5px;
    position: absolute;
}

#help_row {
    width: 100%;
    float: left;
    margin: 0;
    padding: 1em 0;
    border-top: 1px solid #222222;
    /*	border-bottom:1px solid #222222;	 */
}

#help_row button {
    margin: 0 40%;
}

#scoreRow {
    display: none;
    /*	clear:both;
	float:left;
	margin:0;
	padding:0;
	width:100%;
*/
    position: absolute;
    bottom: 0px;
    margin: 0 32em;
}

#button_game_hint {
    /*    bottom: 10px;
    left: 5px;
*/
    margin: 0 .5em .5em .5em;
    padding: .1em 1em .2em;
    border-radius: 5px;
}

#button_exit {
    top: 5px;
    /* 5 when it's above exit/new game */
    right: 5px;
    margin: 0 .5em;
    padding: .1em .5em .2em;
    border-radius: 5px;
    display: none;
}

#tile_container {
    margin-top: -7%;
    margin-left: 12%;
}

.bonus_score_anim {
    top: -30px;
    left: 0px;
    position: absolute;
}

#text_score {
    /* ca change aug 17
    position: absolute;
    top: 2px;
    left: 120px;  /* 160px;
	bottom:10px;
	float:right;
	margin:.2em 34% 1em;   /* ca change aug 18, .5em 5em 1em
	padding:0;
	*/
    position: absolute;
    top: 310px;
    color: white;
    text-shadow: 2px 2px 3px #000;
}

#bonus_time {
    /* ca change aug 17
	position: absolute;
    top: 2px;
    left: 260px;  /* 290px;
	*/
    float: left;
    margin: 60% 3em 1em;
    /* ca change aug 18, .5em 2em 1em */
    padding: 0;
    display: none;
}

#hint_text {
    position: absolute;
    top: 360px;
    color: #eee;
    padding-left: 33px;
    padding-right: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
    box-shadow: 2px 2px 3px 1px rgba(10, 10, 10, 0.75);
    display: block;
    right: 0px;
    text-shadow: 2px 2px 3px #000;
    background-color: #4C9726;
    font-size: 1.1em !important;
    z-index: 1;
}

#button_exit {
    position: absolute;
    cursor: pointer;
}

.game_over_panel_location {
    /*	float:left;
	height:50%;
*/
    width: 85%;
    overflow: hidden;
    margin: 20% 10%;
    padding: .5em 1em 2em;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 10px;
    position: absolute;
    box-shadow: 2px 2px 3px #333;
    z-index: 5;
}

.game_over_panel_shadow {
    height: 100%;
    width: 200%;
    background-color: #000;
    z-index: 4;
    opacity: 0.7;
    position: absolute;
    top: 0px;
    left: -120px;
}

.game_over_panel_location h3 {
    font-size: 1.4em;
    margin: 0;
    padding: .5em;
    text-align: center;
}

.game_over_panel_location p {
    font-size: 1.6em;
    margin: 0;
    padding: 0;
    text-align: center;
}

.game_over_panel_location .coreBtn {
    float: left;
    width: 21.5%;
    margin-left: 10px;
    margin-top: 40px;
}


.panel_button {
    position: absolute;
    text-align: center;
    width: 150px;
    /* 110px */
}

#win_coin_img {
    position: absolute;
    background-image: url(../assets/coin.png);
    width: 27px;
    height: 27px;
    top: 170px;
    left: 236px;
}

#game_over_coin_img {
    position: absolute;
    background-image: url(../assets/coin.png);
    width: 27px;
    height: 27px;
    top: 170px;
    left: 236px;
}

#win_panel {
    /*    position: absolute;
    width: 500px;
    height: 290px;
    top: -350px;
    left: 149px;
	*/
    display: none;
    width: 60%;
    left: 10%;
    z-index: 10;
    /*    float: left;
    display: none;
    margin: 8em 20%;
    height: 50%;
    width: 50%;
    position: relative;
	background-color:#ffffff;
*/
}

#win_panel .coreBtn {
    width: 40%;
    margin-left: 30px;
}

#game_over_panel {
    /*    position: absolute;
    width: 500px;
    height: 290px;
    top: -350px;
    left: 149px;
	*/
    display: none;
    z-index: 10;
    /*    float: left;
    display: none;
    margin: -15em 20%;
    height: 50%;
    width: 50%;
    position: relative;
	background-color:#ffffff;
*/
}


.btn-disabled {
    background-color: gray;
}

#container {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
}

.page_content {
    width: 1024px;
    height: 686px;
    -ms-transform-origin: top left;
    -webkit-transform-origin: top left;
    transform-origin: top left;
    -webkit-transition: all 500ms ease-in-out !important;
    transition: all 500ms ease-in-out !important;
    position: absolute;
}

.warnColor {
    background-color: #ff0000 !important;
}


@media (min-width: 1200px) {
    #hint_text {
        padding-left: 27px;
        padding-right: 27px;
    }
        #hint_text {
        top: 410px;
        padding-left: 27px;
        padding-right: 27px;
        font-size: 1.1em !important;
    }
    #win_panel {
    display: none;
    width: 60%;
    left: -2%;
    z-index: 10;
    }
}

@media (min-width: 1600px) {
    #tile_container {
        margin-top: -6%;
        margin-left: 12% !important;
    }

    #buttonRow {
        right: -100px;
    }

    #hint_text {
        top: 410px;
        padding-left: 27px;
        padding-right: 27px;
        box-shadow: 2px 2px 3px 1px rgba(10, 10, 10, 0.75);
        right: -100px;
        text-shadow: 2px 2px 3px #000;
        font-size: 1.1em !important;
    }
}

@media (min-width: 1800px) {
    #match_game_container {
        margin-top: -0px;
    }

    #tile_container {
        margin-top: -6%;
        margin-left: 18%;
        -webkit-transform: scale(1.1) !important;
    }

    #buttonRow {
        right: -220px;
    }

    #hint_text {
        right: -220px;
    }
}
