html, body{
    /*background: none;*/
    background-image:url(../img/body-bg.png);
    background-repeat: repeat;
    border: 0 none;
    margin: 0;
    outline: 0 none;
    padding: 0;
    vertical-align: baseline;
    color: #9A9A9A;
    font-family: 'Open Sans',sans-serif;
}

/* Portrait */
/*@media screen and (orientation:portrait) {
  #checkScreen{ 
    display: none;
  };
}*/
/* Landscape */
/*@media screen and (min-width: 400px) {
  #checkScreen{ 
    display: block;
  };
}*/
#checkScreen{
  display: none;
  min-height: 400px;
  height: 100%;
  width:100%;
  background-image:url(../img/body-bg.png);
  /*left: 15%;*/
  position: absolute;
  /*top: 30%;*/
  z-index:1000
}

@font-face {
    font-family: "backslash";
    src: url(font/Backslash.ttf) format("truetype");
}
@font-face {
    font-family: "csco";
    src: url(font/Cisco.ttf) format("truetype");
}
@font-face {
    font-family: "NFS";
    src: url(font/NFS.ttf) format("truetype");
}


.app{
  /*background-color:#00ff00;*/
}

/* Portrait layout (default) */
.page {
    /*background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
/*    position:absolute;            
    left:50%;
    height:50px; */                 
    width:100%;                  
    text-align:center;
/*    padding:180px 0px 0px 0px;    
    margin:-115px 0px 0px -112px;  */
}

.header-bar{
    height: 5px;
    margin-bottom: 20px;
    width: 100%;
    /*box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);*/
    z-index: 99
}

.page-header{
  font-family: fantasy;
  height: 30px;
  line-height: 30px;
  margin: 20px 5px 0 0;
  font-size: 30px;
  color: #000;
  float: right;
}

.infoViewBtn{
  display: none;
    border-radius: 0 10px 10px 0;
    color: #FFFFFF;
    height: 50px;
    width:50px;
    left: 0;
    /*line-height: 80px;*/
    position: absolute;
    top: 20px;
    /*padding-left: 15px;*/
    /*padding-right: 15px;*/
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
    background-image: url(../img/config.png);
    background-position: center center;
    background-repeat: no-repeat;
}

.infoViewBtn:active{
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25) inset;
  /*top: 21px;*/
}

.infoViewBtn.activeShow{
  width: 60px;
  border-radius: 0;
}
/*.infoViewBtn.activeShow:active{
   top: 20px;
   box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
}*/

.infoViewLayer{
    padding: 10px;
    background-image: url("../img/body-bg.png");
    background: none repeat scroll 0 0 #FFFFFF;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
    border-radius: 0 10px 10px;
    height: 70px;
    left: 100px;
    position: absolute;
    top: 20px;
    width: 220px;
    z-index: 100;
    display:  none;
    transition: left 0.15s ease-in-out;
    -webkit-transition: left 0.15s ease-in-out; /* Safari */ 
}
.infoViewLayer.activeShow{
  left: 60px;
}

.configOption{
  padding-bottom: 5px;
}

.configOption .name{
  font-weight: bold;
  /*padding-right: 10px;*/
}

.configOption .data{
  float: right;
  padding-right: 20px;
}

.main-title{
 font-family: backslash;
/*   height: 30px;
  line-height: 30px;
  margin: 40px auto;
  width: 250px;
  font-size: 30px;*/
  margin: -15px auto;  
  color: #000;
}

.logo{
    margin: 0px auto;
    width: 200px;
    height: 80px;

}

.main-logo{
  font-size: 60px;
  position: relative;
  text-shadow: 1px 1px 2px #999999;
}

.sub-logo{
  font-size: 20px;
  left: -19px; /*19px*/
  position: relative;
  text-shadow: 1px 1px 2px #999999;
  top: -25px;
}

.sub-title{
    border-radius: 15px;
    color: #FFFFFF;
    font-family: 'csco';
    font-size: 15px;
    margin: 0 auto;
    position: relative;
    top: 15px;
    width: 250px;
    height: 20px;
    line-height: 20px;
    font-weight: bold;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25) inset;
}

.menu-btn{
  cursor: pointer;
  border-radius: 100px 100px 100px 100px;
  display: inline-block;
  height: 100px;
  margin: 0 auto;
  position: relative;
  width: 100px;
  margin: 30px 20px auto;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}

.menu-btn:active{
  top: 1px;
  left: 1px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25) inset;
}

.menu-area{
    position: absolute;
    /*padding-top: 5%;*/
    top: 22%;
}

.menu-btn-txt-area{
  position: relative;
  top: 33%;
}

.menu-start{
  left: 15px;
}

.menu-read{
  left: 20px;
}

.menu-setting{
  left: 13px;
}

.menu-btn-b-txt{
  color: #FFFFFF;
  font-size: 32px;
  /*left: 18px;*/
  position: absolute;
  /*top: 24px;*/
}

.menu-btn-s-txt{
  color: #FFFFFF;
  font-size: 15px;
  left: 25px;
  letter-spacing: 1px;
  position: absolute;
  top: 4px;
}

.menu-btn-u-txt{
  color: #FFFFFF;
  font-size: 10px;
  left: 25px;
  letter-spacing: 1px;
  position: absolute;
  top: 19px;
}

.menu-btn-sup-txt{
  color: #FFFFFF;
  font-size: 10px;
  text-align: center;
  position: absolute;
  top: 65px;
  width: 100%;
}

.share-icon{
  line-height: 35px;
  text-align: center;
  border-radius: 30px;
  height: 30px;
  width: 30px;
  color:#fff;
  font-size:20px;
  float: left;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25) inset;
}


.footer{
  bottom: 5%;
  height: 50px;
  left: 20%;
  margin: 0 auto;
  position: absolute;
  width: 60%;
}

.facebook-txt{
  font-family: fantasy;
  color: #000;
  line-height: 35px;
}

/*Global page */
.play-menu{
  position: absolute;
  top: 30%;
  width: 100%;
}
.play-menu-btn{
  cursor: pointer;
  color: #FFFFFF;
  height: 30px;
  line-height: 30px;
  /*padding: 0 15px 0 5px;*/
  position: absolute;
  text-align: center;
  /*top: 20%;*/
  width: 110px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.play-menu-btn:active{
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
}

.play-menu-btn:nth-of-type(1){
  border-radius: 0 15px 15px 0;
}

.play-menu-btn:nth-of-type(2){
  right: 0;
  border-radius: 15px 0 0 15px;
}

.play-menu-btn:nth-of-type(3){
  top: 60%;
  height:50px;
  line-height: 50px;
  border-radius: 0 15px 15px 0;
}

.setting-detail{
  position: absolute;
  top: 60%;
  width: 58%;
  height: 50px;
  padding-left: 15px;
  text-align: left;
  line-height: 25px;
  float: left;
  color: #fff;
  font-size: 12px;
  /*font-weight: bold;*/
  /*margin-left: 10px;*/
  /*font-family: fantasy;*/
  border-radius: 15px 0 0 15px;
  right: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
}


/*random page css*/
#timeLimitBar{
  height:10px;
  border: 0px;
  border-radius: 0px;
  width:100%;
  position: absolute;
  /*box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);*/
}

#timeLimitBar div{

}

/*read capture page*/
.read-menu{
  top: 20%;
}

.read-btn{
  width: 200px;
}

#loadImageArea{
    left: 25%;
    margin: 0 auto;
    overflow: hidden;
    position: absolute;
    top: 30%;
    /*width: 160px;*/
}

#image_input{
  width: 160px;
}

.submit-btn{
    bottom: 2%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    cursor: pointer;
    height: 30px;
    line-height: 30px;
    position: absolute;
    text-align: center;
    width: 100%;
    display: none;
}


/* custom page*/
#page_4 .play-menu{
  height: 20%;
  top: 18%;
}

#page_4 .setting-detail span{
  padding-right: 10px;
}
#page_4 .setting-detail strong{
  padding-right: 5px;
}

/*#page_4 .play-menu{
  top: 20%;
}
#page_4 .play-menu-btn:nth-of-type(3){
  border-radius: 0 15px 15px 0;
  margin-top: 60px;
}

#page_4 .play-menu-btn:nth-of-type(4){
  right: 0;
  border-radius: 15px 0 0 15px;
  margin-top: 60px;
}*/

/* config setting page*/
.setting-main{
  position: absolute;
  top: 20%;
  width: 100%;
  /*overflow-y:  auto;*/
  height: 80%;
}

.setting-line{
  clear: both;
  height: 80px;
}

.setting-option{
  height: 30px;
  width: 200px;
  padding-right: 20px;
  text-align: right;
  line-height: 30px;
  /*float: left;*/
  color: #fff;
  /*margin-left: 10px;*/
  /*font-family: fantasy;*/
  position: relative;
  /*top: 10px;*/
  border-radius: 0 15px 15px 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.setting-data{
  height: 30px;
  width: 180px;
  padding-left: 20px;
  text-align: left;
  line-height: 35px;
  float: left;
  color: #fff;
  /*margin-left: 10px;*/
  /*font-family: fantasy;*/
  position: relative;
  top: -5px;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

#secSelector{
    position: relative;
    top: 20px;
    width: 75%;
}

/*#secSelector a{
  border: 0px;
}
*/

#settingShow{
    border-radius: 5px 5px 5px 5px;
    color: #FFFFFF;
    height: 20px;
    line-height: 20px;
    position: relative;
    text-align: center;
    top: 5px;
    width: 75%;
}

.setting-dialog-page-content{
  left: 5%;
  position: relative;
}

.setting-dialog-page-content .set-btn{
  top: 0px;
  right: -5px;
}

.setting-dialog-page-content .set-btn:active{
  top: 1px;
  /*right: -5px;*/
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
}


.setting-dialog-page-content .set-btn span{
  left: 12px;
}

.set-btn{
  border-radius: 50px 50px 50px 50px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  float: right;
  height: 50px;
  position: relative;
  right: 10px;
  top: -25px;
  width: 50px;
}

.set-btn:active{
  top: -24px;
  /*left: 1px;*/
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
}

.set-btn span{
    color: #FFFFFF;
    left: 10px;
    position: relative;
    top: 15px;
}

.setting-dialog{
  box-shadow: 1px 1px 5px #000000;
    background-image: url("../img/body-bg.png");
    display: none;
    left: 10%;
    min-height: 50px;
    height: 60px;
    padding: 10px 0;
    position: absolute;
    top: 40%;
    width: 80%;
    z-index: 9999;
    border-radius: 5px;
}

.setting-dialog-page{
  display: none;
}

#fallingSetting, #themeSetting, #allowTypeSetting, #styleSetting{
  position: relative;
  top: 15px;
  font-size: 10px;
}

#themeSetting{
  font-size: 7px;
}

#styleSetting{
  width: 90%;
  height: 130px;
  /*border: 1px solid;*/
}

.style-setting-icon{
    float: left;
    height: 55px;
    position: relative;
    width: 55px;
    margin-right: 15px;
    margin-top: 10px;
    cursor: pointer;
}

.game_icon{
    border-radius: 10px 10px 10px 10px;
    box-shadow: 1px 1px 5px #000000;
    height: 50px;
}

/*.game_icon_mask{
    background: url("../img/game_icon_mask.png") no-repeat scroll 0 0 / 50px 50px rgba(0, 0, 0, 0);
    display: block;
    height: 52px;
    left: 0;
    position: relative;
    top: -53px;
    width: 52px;
    z-index: 1;
    cursor: pointer;
}*/

/*.menu-btn{
  margin: 0 auto;;
  width: 200px;
  height: 200px;
  display: inline-block;
  position: relative;
  line-height: 64px;
  background-color: #eaeaea;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#eaeaea));
  background-image: -webkit-linear-gradient(top, #f6f6f6, #eaeaea);
  background-image: -moz-linear-gradient(top, #f6f6f6, #eaeaea); 
  background-image: -ms-linear-gradient(top, #f6f6f6, #eaeaea); 
  background-image: -o-linear-gradient(top, #f6f6f6, #eaeaea);
  background-image: linear-gradient(top, #f6f6f6, #eaeaea);;
  border-radius: 200px;
  -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .1);
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .1);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .1);
}
.menu-btn:active {
  top: 1px;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#eaeaea), to(#f6f6f6));
  background-image: -webkit-linear-gradient(top, #eaeaea, #f6f6f6);
  background-image: -moz-linear-gradient(top, #eaeaea, #f6f6f6); 
  background-image: -ms-linear-gradient(top, #eaeaea, #f6f6f6); 
  background-image: -o-linear-gradient(top, #eaeaea, #f6f6f6);
  background-image: linear-gradient(top, #eaeaea, #f6f6f6);
}*/

.ball-red { 
	background-position: 0px 0px;
}

.ball-blue{ 
  background-position: -54px 0;
	/*background-position:-78px 0px;*/
}

.ball-green{ 
  background-position:-108px 0px;
	/*background-position:-156px 0px;*/
}

.ball-yellow{ 
	/*background-position:-234px 0px;*/
  background-position:-162px 0;
}

.ball-purple{ 
	/*background-position:-311px 0px;*/
  background-position:-216px 0;
}

.ball-pink{ 
	background-position:-269px 0;
 	/*background-position: -850px -5px;*/
}


#detail { 
	height:100px;
/*	position: absolute;
	top:200px;*/
}

#load-image{
	position: relative;
	top:100px;
}

#display-ground{
    bottom: 0;
    height: 350px;
    overflow: hidden;
    position: absolute;
    width: 100%;
    display: none;
}

#play-ground { 
    background-color: #2D2D2D;
    background-repeat: repeat;
    bottom: 0;
    
    height: 275px;
    position: absolute;
    width: 100%;

}

#drag-area {
  position: relative;
  width: 100%;
  height: 100%;
  /*right: 10px;*/
}

.detect {
	border: 0px solid;
	width: 0px; 
	height:0px; 
	margin: 30px auto;
}

.ball-style-a{
  background-image:url(../img/puzzle_ball/01.png);
}

.ball-style-b{
  background-image:url(../img/puzzle_ball/02.png);
}

.ball-style-c{
  background-image:url(../img/puzzle_ball/03.png);
}

.ball-style-d{
  background-image:url(../img/puzzle_ball/04.png);
}

.ball-style-e{
  background-image:url(../img/puzzle_ball/05.png);
}

.draggable { 
	position:absolute;
	/*width: 55px; height: 55px; */
  width: 35px; height: 35px; 
	padding: 0.5em;
/*	margin-left: 10px;*/
	margin-top: 5px;
	/*box-shadow: 0 0 2px rgba(1, 1, 1, 0.8);*/
	/*box-shadow: 2px 2px 2px rgba(1, 1, 1, 0.8);*/
	background-repeat:  no-repeat;
  cursor: pointer;


}

.animate-start{
  transition: top 0.5s;
  -webkit-transition: top 0.5s; /* Safari */ 
}

.normalType{
	/*border-radius: 100px ;*/
	background-size:320px auto;
}


.drop{
  transition: top 0.1s ease-in-out;
  -webkit-transition: top 0.1s ease-in-out; 
}

/*.for-drop-fall{
  transition: top 1s ease-in-out;
  -webkit-transition: top 1s ease-in-out;
}*/

.for-empty-fall{
  transition: top 0.1s ease-in-out;
  -webkit-transition: top 0.1s ease-in-out; /* Safari */ 
}
/*.specialType {
	background-size:460px auto;
}*/

/*border: 3px outset #FFFAFA*/
.scale { -moz-transition: all .2s ease-in-out;
	    -webkit-transition: all .2s ease-in-out;
	    transition: all .2s ease-in-out;
	    -moz-transform: scale(0.0);
	    -webkit-transform: scale(0.0); 
}

.scale-s{
      -moz-transition: all .3s ease-in-out;
      -webkit-transition: all .3s ease-in-out;
      transition: all .3s ease-in-out;
      -moz-transform: scale(0.5);
      -webkit-transform: scale(0.5); 
}

.comboText{
  display: none;
    bottom: -5px;
    color: #FFFFFF;
    font-family: backslash;
    font-size: 45px;
    font-weight: bold;
    position: absolute;
    left: 10px;
    text-shadow: 5px 5px 5px #FFD700;
    z-index: 100;

    /*text-shadow: 0 0 4px #FFFFFF, 0 -5px 4px #FFFF33, 2px -10px 6px #FFDD33, -2px -15px 11px #FF8800, 2px -25px 18px #FF2200;*/
  
    animation-name: blinker;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

    -webkit-animation-name: blinker;
    -webkit-animation-duration: 2s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
}
.comboText div{
    bottom: -80px;
    position: relative;
 } 

.comboText span{
    bottom: 20px;
    font-size: 70px;
    position: relative;
    /*right: -125px;*/
}

@-moz-keyframes blinker {  
    0% { opacity: 1.0; }
    50% { opacity: 0.5; }
    100% { opacity: 1.0; }
}

@-webkit-keyframes blinker {  
    0% { opacity: 1.0; }
    50% { opacity: 0.5; }
    100% { opacity: 1.0; }
}

@keyframes blinker {  
    0% { opacity: 1.0; }
    50% { opacity: 0.5; }
    100% { opacity: 1.0; }
}

.float-left{
	float:left;
}

.canvas-margin-bot{
	margin-bottom: 20px;
}

.big-btn{
  width: 150px;
  text-align: center;
  color: #08233e;
  font-size: 18pt;
  padding: 12px;
  background:-webkit-gradient(linear,left top,left bottom,color-stop(0.0, #F9F9F9),color-stop(1.0, #CBCBCB));
  /*background: -webkit-gradient(center bottom , #CBCBCB 0%, #F9F9F9 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);*/
  /*background: -webkit-linear-gradient(center bottom , #CBCBCB 0%, #F9F9F9 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);*/
  background: -moz-linear-gradient(center bottom , #CBCBCB 0%, #F9F9F9 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
/*  background: -ms-linear-gradient(center bottom , #CBCBCB 0%, #F9F9F9 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
  background: -o-linear-gradient(center bottom , #CBCBCB 0%, #F9F9F9 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
  background: linear-gradient(center bottom , #CBCBCB 0%, #F9F9F9 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);*/
  background-color: #CBCBCB;
  border: 1px solid #CBCBCB;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -o-border-radius: 10px;
  -ms-border-radius: 10px;
  border-radius: 10px;
  border-bottom: 1px solid #9f9f9f;
  -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  -o-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  -ms-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  cursor: pointer;
  text-shadow: 0 1px #fff;
}

/*#fileSelect:hover {
  background: -webkit-gradient(linear, left top, left bottom,
                               color-stop(0, #fff), color-stop(0.7, #ffcc00),
                               to(#ffcc00));
  background: -webkit-linear-gradient(top, #fff, #ffcc00 70%, #ffcc00);
  background: -moz-linear-gradient(top, #fff, #ffcc00 70%, #ffcc00);
  background: -o-linear-gradient(top, #fff, #ffcc00 70%, #ffcc00);
  background: -ms-linear-gradient(top, #fff, #ffcc00 70%, #ffcc00);
  background: linear-gradient(top, #fff, #ffcc00 70%, #ffcc00);
}*/
.big-btn:active {
  position: relative;
  top: 2px;

  background:-webkit-gradient(linear,left top,left bottom,color-stop(0.0, #CBCBCB),color-stop(1.0, #F9F9F9));
  background: -moz-linear-gradient(center bottom , #F9F9F9 0%, #CBCBCB 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
/*  background: -o-linear-gradient(center bottom , #F9F9F9 0%, #CBCBCB 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
  background: -ms-linear-gradient(center bottom , #F9F9F9 0%, #CBCBCB 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
  background: linear-gradient(center bottom , #F9F9F9 0%, #CBCBCB 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);*/
}

.combo-style{
  color: #FFFFFF;
  height: 30px;
  line-height: 30px;
  padding: 0 15px 0 5px;
  position: absolute;
  /*text-align: center;*/
  top: 20%;
  width: 130px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25) inset;
}

#totalComboTxt{
  border-radius: 0 15px 15px 0;
}

#highComboTxt{
  right: 0;
  padding-left: 10px;
  border-radius: 15px 0 0 15px;
}


.title {
  color: #fff;
  /*font-family: 'Comic Sans MS';*/
  font-size: 25px;
  font-weight: bold;
  padding-bottom: 100px;
}


.theme-a{
  background-color: #63AC99;
}

.theme-a-light{
  background-color: #98D6C6;
}

.theme-b{
  background-color: #BA419A;
}

.theme-b-light{
  background-color: #E388CB;
}

.theme-c{
  background-color: #3474CF;
}

.theme-c-light{
  background-color: #75A4E6;
}

.theme-d{
  background-color: #C92629;
}

.theme-d-light{
  background-color: #ED7476;
}

.theme-e{
  background-color: #4D494C;
}

.theme-e-light{
  background-color: #878487;
}





/* ball position: */

[data-x='0']{
  top:0px;
}
[data-x='1']{
  top:53.5px;
}
[data-x='2']{
  top:107px;
}
[data-x='3']{
  top:160.5px;
}
[data-x='4']{
  top:214px;
}
  
[data-y='0']{
  left:0px;
}
[data-y='1']{
  left:53.5px;
}
[data-y='2']{
  left:107px;
}
[data-y='3']{
  left:160.5px;
}
[data-y='4']{
  left:214px;
}
[data-y='5']{
  left:267.5px;
}