/*@font-face {
  font-family: 'DS-Digital';
  src: url('fonts/DS-Digital.ttf');
}*/
    html, body {
    	height: 100%;
	}
        div
        {
            display: block;
        }
        .inline {display:inline}
body {
    font: 13px/1.4 'Helvetica Neue', 'Helvetica','Arial', sans-serif;
    color: #333;
    background: #ddd9cf;
    margin-top: 1em;
}
.container {
    width: 520px;
    margin: auto;
}
h1 {
    border-bottom: 1px solid #d9d9d9;
}
h2{
  position: relative;
  font-size: 16px;
  font-weight: normal;
  text-transform: uppercase;
}
h2:before{
  content: '\2192';
  position: absolute;
  left: -20px;
  font-size: 0.9em;
}
a {
    color: #be2221;
    text-decoration: none;
}
form{
    position: absolute;
    top: 20%;
    left: 40%;
}

#main-page,#select-chapter,#game,#leftbox{
margin-right: auto;
margin-left: auto;
    max-width: 1024px;
    /*max-height: 768px;*/
    position: relative;
}
 .slide{
margin-right: auto;
margin-left: auto;
 }


#timer_0 {
   /* font-family: 'DS-Digital';*/
    font-size: 36px;
    padding-left: 20px;
    padding-top: 10px;
    background: url('images/timer-box-big.png') no-repeat;
    width: 100px;
    height: 100px;
    color: red;
    -webkit-transition: background 0.5s ease-out;
    transition: background 0.5s ease-out;
}
.callback{
  cursor: pointer;
}
.ended {
  background: #c0392b;
}
.styled{
  margin-bottom: 50px;
}
.styled div {
  display: inline-block;
  margin-left: 10px;
  font-size: 30px;
  font-weight: 100;
  line-height: 1;
  text-align: right;
}
/* IE7 inline-block hack */
*+html .styled div{
  display: inline;
  zoom: 1;
}
.styled div:first-child {
  margin-left: 0;
}
.styled div span {
  display: block;
  border-top: 1px solid #cecece;
  padding-top: 3px;
  font-size: 12px;
  font-weight: normal;
  text-transform: uppercase;
  text-align: left;
}
.dropArea{
	position:absolute;
	top:100px;
	left:300px;
	width:200px;
	height:200px;
	background:#eee;
	border:#777 dashed 3px;
	text-align:center;
}
.evenday-man{
	position:absolute;
	height: 70px;
	width: 200px;
	top: 4%;
	left: 5%;
}
.oddday-man{
	position:absolute;
	height: 70px;
	width: 200px;
	top: 10%;
	right: 20%;
    
}
.evenday-man-bottom{
	position:absolute;
	height: 70px;
	width: 200px;
	top: 30%;
	left: 5%;
    
}
.oddday-man-bottom{
	position:absolute;
	height: 70px;
	width: 200px;
	top: 30%;
	right: 10%;
    
}
 #draggable {
    width: 35;
    height: 32;
    padding: 0.5em;
    float: left;
    margin: 10px 10px 10px 0;
    z-index: 11;
    /* border: dotted;*/
     color: red;
}
#droppable {
   width: 80px;
    height: 80px; 
    /*width: 100%;
    height: auto;*/
    padding: 0.5em;
    float: left;
    margin: 10px;
   /* border: dotted;*/
    z-index: 10;
}
.tick{
    /*max-height: 90px; */
    margin-left: 0.5em;
}
#day-1, #day-8{
    display: inline-block;
    background: url('images/sun-en.png') no-repeat;
    background-size: 100%;
    width: 10%;
    height: 0;
    padding-bottom: 11%;
   
}

#day-2{
    background: url('images/mon-en.png') no-repeat;
    display: inline-block;
    background-size: 100%;
    width: 10%;
    height: 0;
    padding-bottom: 11%;
}
#day-3{
    background: url('images/tue-en.png') no-repeat;
    display: inline-block;
    background-size: 100%;
    width: 10%;
    height: 0;
    padding-bottom: 11%;
}
#day-4{
    background: url('images/wed-en.png') no-repeat;
    display: inline-block;
    background-size: 100%;
    width: 10%;
    height: 0;
    padding-bottom: 11%;
}
#day-5{
    background: url('images/thu-en.png') no-repeat;
    display: inline-block;
    background-size: 100%;
    width: 10%;
    height: 0;
    padding-bottom: 11%;
}
#day-6{
    background: url('images/fri-en.png') no-repeat;
    display: inline-block;
    background-size: 100%;
    width: 10%;
    height: 0;
    padding-bottom: 11%;
}
#day-7{
    background: url('images/sat-en.png') no-repeat;
    display: inline-block;
    background-size: 100%;
    width: 10%;
    height: 0;
    padding-bottom: 11%;
}
#day-8{
    top: 0;
    left: 250;
}


.tick img{
    top: 46%;
    left: 0;right: 0;
    margin: 0 auto;
    width: 50%;
    height: auto;
    position: absolute;

}
#calendar{
    position: absolute;
    bottom: 18%;
}
#liver{
    position: absolute;
    bottom: 15%;
}
 #timer_0{
    display: inline-block;
    height: 120px;
    position: absolute;
    top: 12%;
    right: 2%;
}
#calendar{
    /*height: 120px;*/
    right: 0.1%;
}
#liver{
    width: 25%;
    left: 2%;
}
#liver img{
    width: 75%;
    height: auto;
}
#hard{
    background: url('images/en-hard.png') no-repeat;
    background-position: 0 0;
    background-size: 100%;
    border: none;
    outline: none;
    position: absolute;
    width: 30%;
    height: 0;
    padding-bottom: 30%;
}
#medium{
    background: url('images/en-medium.png') no-repeat;
    width: 269px;
    height: 112px;
    border: none;
}
#easy{
    background: url('images/en-easy.png') no-repeat;
    width: 269px;
    height: 112px;
    border: none;
}

#result{
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    margin: 0 auto;
}
#play-again{
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border: none;
    outline: none;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* Main Menu page */
.main{
    margin-left: auto;
    margin-right: auto;
    background: url("images/home.png") no-repeat;
    width: 100%;
    height: auto;
    position: relative;
}

#leftbox{
   /* z-index: -9999;*/
}
.game-bg{
    width: 100%;
    height: auto;
}
.en-diff{
    background: url("images/en-bg-game.png") no-repeat;
}
.yol-diff{
    background: url("images/yol-bg-game.png") no-repeat;
}
#select-chapter{
margin-left: auto;
margin-right: auto;
width: 100%;
height: auto;
position: relative;
}
#menu-group1{
    position: relative;
    width: 25%;
    top: 28%;
    left: 3%;
    height: 0;
}
#menu-group2{
    position: relative;
    width: 25%;
    top: 50%;
    left: 3%;
    height: 0;
}
.menu-button{
    color: transparent;
}

.en{
    background: url('images/btn-eng.png') no-repeat;
    background-position: 0 0;
    background-size: 100%;
    border: none;
    outline: none;
    width: 28%;
    height: 0;
    padding-bottom: 12%;
    position: absolute;
    left: 5%;
    top: 34%;
}

.yol{
    background: url('images/btn-yol.png') no-repeat;
    background-position: 0 0;
    background-size: 100%;
    border: none;
    outline: none;
    position: absolute;
    width: 28%;
    height: 0;
    padding-bottom: 12%;
    left: 35%;
    top: 34%;
}
.sc{
    background: url('images/btn-sc.png') no-repeat;
    background-position: 0 0;
    background-size: 100%;
    border: none;
    outline: none;
    position: absolute;
    width: 28%;
    height: 0;
    padding-bottom: 12%;
    left: 5%;
    top: 52%;
}
.wb{
    background: url('images/btn-wb.png') no-repeat;
    background-position: 0 0;
    background-size: 100%;
    border: none;
    outline: none;
    position: absolute;
    width: 28%;
    height: 0;
    padding-bottom: 12%;
    left: 35%;
    top: 52%;
}

/*Slides*/
/*
.slide{
    margin-left: auto;
    margin-right: auto;
    background: url("images/en/en-slide-1.png") no-repeat;
    width: 1024px;
    height: 768px;
    position: relative;
}*/
#previous{
    background: url('images/prev-button.png') no-repeat;
    position: absolute;
    left: 3%;
    bottom: 0;
    border: none;
    outline:none;
    background-position: 0 0;
    background-size: 100%;
    width: 7%;
    height: 0;
    padding-bottom: 5%;
    }
.chap-title{
    width: 100%;
    height: auto;
    padding-bottom: 5%;
}
#select{
    background: url('images/select-chapter-btn.png') no-repeat;
    position: absolute;
    left: 40%;
    bottom: 0;
    border: none;
    outline:none;
    background-position: 0 0;
    background-size: 100%;
    width: 20%;
    height: 0;
    padding-bottom: 5%;
    }
#next{
    background: url('images/next-button.png') no-repeat;
    position: absolute;
    right: 3%;
    bottom: 0;
    border: none;
    outline:none;
    background-position: 0 0;
    background-size: 100%;
    width: 7%;
    height: 0;
    padding-bottom: 5%;
    }



/* VIDEO PLAYER*/

#jquery_jplayer_video,
#jp_container_video{
    margin-left: auto;
    margin-right: auto;
}

.jp-playlist ul li{
    display: none;
}
#jquery_jplayer_video{
    position: absolute;
    top: 15%;
    left: 25%;
    width: 50%;
    height: 0;
    padding-bottom: 50%;  
}
#jquery_jplayer_video.video12{
    left: 5%;
}
a.jp-play img, a.jp-pause img{
    border: none;
    outline: none;
    position: absolute;
    width: 6%;
    padding-bottom: 6%;
    top: 50%;
    left: 2%;
}
.jp_container4 a.jp-play img,
.jp_container4 a.jp-pause img{
    width: 4%;
}
/* Chapter SELECT */
#chapter-en{
    background: url(images/en/chapter/chapter-1.png) no-repeat;
    background-position: 0 0;
    background-size: 100%;
    border: none;
    outline: none;
    width: 20%;
    height: 0;
    padding-bottom: 4%;
}
input#chapter-en{
    margin-left: 0.5em;
}
input#chapter-yol{
/*margin-bottom: 0.5em; */
    margin-left: 1em;
}
.row.row-1{
    width: 100%;
    position: absolute;
    top: 10%;
    left: 1.33%;
}
.row.row-2{
    width: 100%;
    position: absolute;
    top: 53%;
    left: 1.33%;
}
.col-md-3{
    margin-top: 8%;
    text-align: center;
}

.back-button{
    background: url('images/en/chapter/back.png') no-repeat;
    background-size: 100%;
    width: 87%;
    height: 0;
    padding-bottom: 40%;
    outline: none;
    border: none;
    position: absolute;
top: 53%;
}
# chapter-yol.chapter-button-2{
height: 64px;
}
/* WB */
#wb-main{
  /*  position: absolute;
    top: 45%;
    left: 5%; */

}

/* DEMO*/
#demo{
position: absolute;
top: 400px;
left: 20px;
}
#game-interface{
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 55%;
    /*border: dotted;*/
}

/*
------------
768 MAX
------------
*/

@media all and (min-width: 641px) and (max-width: 768px){
    #jquery_jplayer_video {
        position: absolute;
        top: 45%;
        left: 13%;
        padding-bottom: 50%;
    }
    .en{
        left: 14%;
        top: 31%;
    }
    .yol{
        left: 14%;
        top: 42%;
    }
    .sc{
        left: 14%;
        top: 53%;
    }
    .wb{
        left: 14%;
        top: 64%;
    }
    .row.row-1{
        top: 15%;
    }
    .row.row-2{
        top: 50%;
    }
    #timer_0{
        top: 3%;
    }
    #liver{
        bottom: 22%;
        left: 4%;
    }
    #calendar{
        bottom: 25%;
    }
    #wb-main{
        position: absolute;
        top:0;
        left: 0;
    }
}


/*******************
640 MAX
*******************/



@media (max-width: 640px){
    #main-page,#select-chapter,#game,#leftbox {
        margin-right: auto;
        margin-left: auto;
        max-width: 640px;
        /*max-height: 1136px;*/
        position: relative;
    }
    .main{
        margin-left: auto;
        margin-right: auto;
        
        /*background-position: center top;
        background-size: 100% auto; */
        max-width: 640px;
        height: auto;
        /*position: relative; */
    }
    .select-img{
        background: url('images/select-chapter-btn-640.png') no-repeat;
        width: 104px;
        height: 21px;
        outline: none;
        border: none;
    }
        #wb-main{
        position: absolute;
        top:0;
        left: 0;
    }
    .menu-button{
        width: 40%;
        height: 0;
        padding-bottom: 40%;
    }
    .en{
        left: 8%;
        top: 35%;
    }
    .yol{
        left: 8%;
        top: 45%;
    }
    .sc{
        left: 8%;
        top: 55%;
    }
    .wb{
        left: 8%;
        top: 65%;
    }
    #timer_0{
        top: 3%;
    }
    #timer_0 {
        /*font-family: 'DS-Digital';*/
        font-size: 28px;
        text-align: center;
        line-height: 2;
        background: url('images/timer-box-big.png') no-repeat;
        background-size: 100%;
        width: 12%;
        height: 0;
        padding-bottom: 11%;
        padding-left: 0;
        padding-top: 0;
        color: red;
        -webkit-transition: background 0.5s ease-out;
        transition: background 0.5s ease-out;
    }
    #previous{
        background: url('images/prev-button-640.png') no-repeat;
        position: absolute;
        left: 3%;
        bottom: 0;
        border: none;
        outline:none;
        background-position: 0 0;
        background-size: 100%;
        width: 10%;
        height: 0;
        padding-bottom: 10%;
    }
    #select{
        background: url('images/select-chapter-btn.png') no-repeat;
        position: absolute;
        left: 35%;
        bottom: 0;
        border: none;
        outline:none;
        background-position: 0 0;
        background-size: 100%;
        width: 30%;
        height: 0;
        padding-bottom: 9%;
    }
    #next{
        background: url('images/next-button-640.png') no-repeat;
        position: absolute;
        right: 3%;
        bottom: 0;
        border: none;
        outline:none;
        background-position: 0 0;
        background-size: 100%;
        width: 10%;
        height: 0;
        padding-bottom: 10%;
    }
    
    #jquery_jplayer_video{
        position: absolute;
        /*top: 20%;*/
        left: 10%;
        width: 80%;
        height: 0;
        padding-bottom: 80%;
    }
    a.jp-play img, a.jp-pause img{
        border: none;
        outline: none;
        position: absolute;
        width: 10%;
        padding-bottom: 10%;
        top: 50%;
        left: 2%;
    }
    #jquery_jplayer_video.video12{
    top: 20%;
    }
    .col-xs-3{
        background-color: #d2cab6;
        width: 100%;
    }
    .first-640{
        position: static;
        max-width: 200px;
        margin: 0 auto;
    }
    .select-title{
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
        display: block;
    }
    input#chapter-en {
        margin-bottom: 1em;
    }
    .back-button{
         position: static; 
    }
    #day-1,
    #day-2,
    #day-3,
    #day-4,
    #day-5,
    #day-6,
    #day-7,
    #day-8{
    background-size: 100%;
    width: 18.8%;
    height: 0;
    padding-bottom: 21%;
    }
    #liver{
        bottom: 17%;
    }
    #liver img{
        width:  100%;
    }
    #calendar{
        bottom: 14%;
        left: 30%;
    }
    #droppable{
        width: 50px;
        height: 60px;
        padding: 0.5em;
        float: left;
        margin: 10px;
        z-index: 10;
    }


}
@media (max-width: 400px){
     #timer_0 {
        font-size: 21px;
     }
}