html, body {
    margin: 0;
    padding: 0;
}
.lottery_wrapper {
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
	top: 0;
	left: 0;
    background: rgba(0%,0%,0%,0.6);
	display:none;
}
#lottery {
    width: 508px;
    margin: 0 auto;
    z-index: 999;
    position: relative;
    font-family: Microsoft JhengHei, "微軟正黑體", Arial, Helvetica, sans-serif;
    padding: 20px;
    background: #FF6868;
    overflow: hidden;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;     
    background: url(../images/lottery_wrapper_bg.png) center top no-repeat;
    background-size: cover;  
}
.lottery_title {
    text-align: center;
    font-size: 2.5em;
    background: #FFF;
    color: #222;
    padding: 30px 10px;
    margin: 20px 0;
    font-weight: bold;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;   
}
.lottery_inner {
    float: left;
    width: 468px;
    height: 468px;
    margin: 0;
    padding: 30px;
    background: url(../images/lottery_bg.png) center center no-repeat #CC3B41;
    background-size: 97%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;     
}
#lottery ul {
    width: 100%;
    list-style: none;
    float: left;
    margin: 0;
    padding: 2%;
    background: #A52829;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;       
}
#lottery ul li {
    width: 118px;
    height: 118px;
    float: left;
    text-align: center;
    vertical-align: middle;
    font-size: 26px;
    color: #333;
    /*color: #84422d;*/
    font-weight: bold;
    margin: 1.5%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;  
    box-shadow: 0px 0px 8px #710001; 
    -webkit-box-shadow: 0px 0px 8px #710001; 
    -moz-box-shadow: 0px 0px 8px #710001; 
}
.lottery-unit-0, .lottery-unit-2,.lottery-unit-4,.lottery-unit-6 {
    background: url(../images/lottery-unit1.jpg);
}
.lottery-unit-1, .lottery-unit-3 ,.lottery-unit-5 ,.lottery-unit-7 {
    background: url(../images/lottery-unit2.jpg);
}
.lottery-start { 
    background: url(../images/star_bg.jpg) no-repeat;
    background-size: cover;
}
.lottery-start a { 
	color:#ff0;
	display: block;
	font-size: 1.2em;
    line-height: 40px;
	text-decoration: none;
	cursor: pointer;
}
.lottery-start a strong { 
	display: block;
}

#lottery ul li.active {
    color: red;
    background: yellow;
    box-shadow: 0px 0px 15px #ff0; 
    -webkit-box-shadow: 0px 0px 15px #ff0; 
    -moz-box-shadow: 0px 0px 15px #ff0; 
}
.lottery-discount {
    display: block;
    width: 100%;
    font-size: 1.3em;   
    font-weight: bold;
    line-height: 36px;
}
.lottery-msg {
    width: 100%;
    float: left;
    text-align: center;    
}
.lottery-btn {
    width: 100%;
    float: left;
    text-align: center;
}
.lottery-btn a {
    width: 70%;
    display: block;
    text-align: center;
    background: #fff;
    margin: 20px 15%;
    padding: 10px 0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px; 
    text-decoration: none;
    font-size: 20px;
}

#lottery .text {
    margin: 40px 0;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.2em;
}
.lottery-start .text {
     margin: 18px 0!important;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.2em;   
}

#lottery_twoline .text  {
    margin: 17px 0;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.2em;
} 


@media (max-width:640px) {
    #lottery {
        width: 444px;    
    }
    .lottery_inner {
        width: 405px;
        height: 405px;   
    }  
    #lottery ul li  {
        width: 100px;
        height: 100px;
    }  
	#lottery .text  {
        margin: 36px 0;
    	line-height: 29px;
    	font-weight: bold;
    	font-size: 1em;
	}  
    .lottery-start a {
	    color: #ff0;
	    display: block;
	    font-size: 1.3em;
	    line-height: 38px;
	    text-decoration: none;
	    cursor: pointer;
	    margin-top: -9px;
	}  
    .lottery_title {
	    text-align: center;
	    font-size: 2em;
	    background: #FFF;
	    color: #222;
	    padding: 20px 10px;
	    margin: 20px 0;
	    font-weight: bold;
	    -webkit-border-radius: 5px;
	    -moz-border-radius: 5px;
	    border-radius: 5px;
	}
}
@media (max-width:520px) {
    #lottery {
        width: 340px;     
    }  
    .lottery_inner {
        width: 301px;
        height: 301px;  
        background-size: 94%; 
    }       
    #lottery ul li  {
		width: 70px;
	    height: 70px;
	    font-size: 18px;
	    line-height: 11px;
    } 
    #lottery .text  {
        margin: 30px 0;
    	line-height: 10px;
    }  
    .lottery-start a {
	    font-size: 1.3em;
	    line-height: 26px;
	    margin-top: -9px;
	}
}
@media (max-width:416px) {
    #lottery {
        width: 300px;     
    } 
    .lottery_inner {
        width: 259px;
        height: 259px;  
        background-size: 95%; 
        padding: 21px;
    }  
    #lottery ul li {
        width: 63px;
        height: 63px;
        font-size: 16px;        
    }  
    .lottery_title {
	    font-size: 2em;
	}   
	 #lottery .text {
    	margin: 27px 0;
	}
	.lottery-discount {
	    font-size: 1.3em;
	    line-height: 26px;
	}	
	.lottery-start a {
	    font-size: 1.5em;
	    line-height: 25px;
	    margin-top: -10px;
	}	
    .lottery-start .text {
        margin: 16px 0 0 0!important;
    }
}
@media (max-width:375px) {
    #lottery {
        width: 260px;     
    }  
    .lottery_inner {
        width: 221px;
        height: 221px;
        padding: 17px;
    }
    #lottery ul li {
        width: 54px;
        height: 54px;        
    }  
	#lottery .text {
	    margin: 22px 0;
	}
	.lottery_title {
	    font-size: 1.4em;
	    padding: 10px 10px;
	}  	
	.lottery-start a {
	    font-size: 1.3em;
	    line-height: 22px;
	    margin-top: -7px;	    
	}	
    .lottery-start .text {
        margin: 12px 0 0 0!important;
    }
}
@media (max-width:320px) {
    #lottery {
        width: 274px;
    }  
    .lottery_inner {
        width: 235px;
        height: 235px;
    }  
    #lottery ul li {
        width: 57px;
        height: 57px; 
        font-size: 14px;
    } 
	.lottery_title {
	    font-size: 1.5em;
	    padding: 10px 10px;
	}   
	 #lottery .text {
	    margin: 24px 0;
	}
    .lottery-start .text {
        margin: 14px 0!important;
    }
}