*{
	margin: 0;
	padding: 0;
	list-style:none;
	text-decoration: none;
	box-sizing: border-box;
	/* font-family: 'Open Sans','微軟正黑體'; */
	font-family: 'Karla', ;
}
html{
	position: relative;
	height: 100%;
	width: 100%;
	/* border: 1px solid #000; */
	font-size: 12px;
}
body{
	position: relative;
	margin: 0 auto;
	width: 100%;
	height: 100%;
	/* border: 1px solid #f00; */
	max-width: 1920px;
    min-width: 1280px;
    min-height: 658px;
    background-color: #000;
}
p{
	margin: 0;
}
.share-line{
	position: absolute;
	display: block;
	z-index: 1;
	opacity: 0;
}
.loading{
	position: absolute;
	display: none;
	z-index: 8;
	width: 100%;
	height: 100%;
	top: 0;
	background-color: #fff;
}
.index_loading_gif{
	position: absolute;
    display: block;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 5%;
    height: 0%;
    height: 10%;
}
.page1{
	position: relative;
	z-index: 3;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	/* border: 1px solid #00f; */
	/* filter: blur(4px); */
}
.logo{
	position: absolute;
	display: block;
	z-index: 2;
  left: 2%;
  top: 4%;
  width: 10%;
  height: 0;
  padding-bottom: 10%;
  background: url('../img/logo.png') center center no-repeat;
	background-size: contain;
	/* border: 1px solid #f00; */
}
.startgame_area{
	position: absolute;
	display: block;
	z-index: 8;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 1);
	color: #fff;
	text-align: center;
}
.startgame_area::before{
	content:'';
	display: inline-block;
	height: 100%;
	width: 0;
	vertical-align: middle;
}
.countdown_area{
	position: absolute;
	display: none;
	z-index: 8;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 1);
	color: #fff;
	text-align: center;
}
.countdown_area::before{
	content:'';
	display: inline-block;
	height: 100%;
	width: 0;
	vertical-align: middle;
}
.countdown_area h1{
	display: inline-block;
	vertical-align: middle;
}
.page1_content{
	position: absolute;
	display: block;
	z-index: 3;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	/* border: 1px solid #f00; */
}
.item_area{
	text-align: center;
}
.item{
	position: relative;
	display: inline-block;
	top: 0;
	z-index: 1;
	width: 17%;
	height: 0;
	padding-bottom: 17%;
	/* border: 1px solid #00f; */
	margin-right: 13%;
	margin-bottom: 4%;
	/* overflow: hidden; */
}
.item:nth-child(3n){
	margin-right: 0;
}
.item:hover{
	cursor: pointer;
}
.box{
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	/* border: 1px solid #f00; */
	text-align: center;
}
.box1{
	z-index: 3;
}
.box2{
	z-index: 2;
	overflow: hidden;
}
.hammer{
	position: absolute;
	display: block;
	z-index: 1;
	width: 50%;
	height: 50%;
	left: 35%;
	right: 0;
	margin: -5% auto 0 auto;
	/* border: 1px solid #f00; */
	background: url('../img/hammer.png') center center no-repeat;
	background-size: contain;
	pointer-events: none;
}
.hammer.active{
	animation: hammer_ni 0.2s 0s ease-in forwards;
	-webkit-animation: hammer_ni 0.2s 0s ease-in forwards;
}
@-webkit-keyframes hammer_ni{
	0%{
		transform: rotate(0deg);
	}
	50%{
		transform: rotate(-55deg);
	}
	100%{
		transform: rotate(0deg);
	}
}
@-moz-keyframes hammer_ni{
	0%{
		transform: rotate(0deg);
	}
	50%{
		transform: rotate(-55deg);
	}
	100%{
		transform: rotate(0deg);
	}
}
@-o-keyframes hammer_ni{
	0%{
		transform: rotate(0deg);
	}
	50%{
		transform: rotate(-55deg);
	}
	100%{
		transform: rotate(0deg);
	}
}
@-ms-keyframes hammer_ni{
	0%{
		transform: rotate(0deg);
	}
	50%{
		transform: rotate(-55deg);
	}
	100%{
		transform: rotate(0deg);
	}
}
@keyframes hammer_ni{
	0%{
		transform: rotate(0deg);
	}
	50%{
		transform: rotate(-55deg);
	}
	100%{
		transform: rotate(0deg);
	}
}
.gopher{
	position: absolute;
	display: block;
	z-index: 1;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 65%;
	height: 75%;
	/* border: 1px solid #0f0; */
	background: url('../img/gopher.png') center center no-repeat;
	background-size: contain;
	animation: gopher_ni 0.5s 0s ease-in forwards;
	-webkit-animation: gopher_ni 0.5s 0s ease-in forwards;
}
@-webkit-keyframes gopher_ni{
	0%{
		bottom: -100%;
	}
	100%{
		bottom: 0%;
	}
}
@-moz-keyframes gopher_ni{
	0%{
		bottom: -100%;
	}
	100%{
		bottom: 0%;
	}
}
@-o-keyframes gopher_ni{
	0%{
		bottom: -100%;
	}
	100%{
		bottom: 0%;
	}
}
@-ms-keyframes gopher_ni{
	0%{
		bottom: -100%;
	}
	100%{
		bottom: 0%;
	}
}
@keyframes gopher_ni{
	0%{
		bottom: -100%;
	}
	100%{
		bottom: 0%;
	}
}
.gopher.active{
	background: url('../img/gopher_active.png') center center no-repeat;
	background-size: contain;
}
.gopher.back{
	animation: gopher_back_ni 0.5s 0s ease-in forwards;
	-webkit-animation: gopher_back_ni 0.5s 0s ease-in forwards;
}
@-webkit-keyframes gopher_back_ni{
	0%{
		bottom: 0%;
	}
	100%{
		bottom: -100%;
	}
}
@-moz-keyframes gopher_back_ni{
	0%{
		bottom: 0%;
	}
	100%{
		bottom: -100%;
	}
}
@-o-keyframes gopher_back_ni{
	0%{
		bottom: -100%;
	}
	100%{
		bottom: 0%;
	}
}
@-ms-keyframes gopher_back_ni{
	0%{
		bottom: 0%;
	}
	100%{
		bottom: -100%;
	}
}
@keyframes gopher_back_ni{
	0%{
		bottom: 0%;
	}
	100%{
		bottom: -100%;
	}
}
.hole{
	position: absolute;
	display: block;
	z-index: 1;
	bottom: -13%;
	left: -10%;
	width: 120%;
	height: 0%;
	padding-bottom: 40%;
	/* border: 1px solid #fa0; */
	background: url('../img/hole.png') center center no-repeat;
	background-size: contain;
	pointer-events: none;
}
.score_area{
	position: absolute;
	display: block;
	left: 2%;
	top: -10%;
	font-weight: bold;
	font-size: 32px;
}
.time_area{
	position: absolute;
	display: block;
	right: 2%;
	top: -10%;
	font-weight: bold;
	font-size: 32px;
}
.grass{
	position: absolute;
	display: block;
	z-index: 2;
	width: 14%;
	height: 0;
	padding-bottom: 5%;
	background: url('../img/grass.png') center center no-repeat;
	background-size: contain;
	/* border: 1px solid #f00; */
}
.grass1{
	top: 32%;
	left: 5%;
}
.grass2{
	bottom: 12%;
	left: 10%;
}
.grass3{
	top: 10%;
	right: 5%;
}
.grass4{
	bottom: 20%;
	right: 11%;
}

.bg{
	position: absolute;
	display: block;
	z-index: 1;
	width: 100%;
	height: 100%;
	background: url('../img/bg.png') center center no-repeat;
	background-size: cover;
}
.footer{
	position: absolute;
	display: block;
	bottom: 0;
	width: 100%;
	z-index: 2;
	height: 5%;
	background-color: #000;
	text-align: center;
	color: #fff;
}
.footer::before{
  content:'';
  display: inline-block;
  height: 100%;
  width: 0;
  vertical-align: middle;
}
.footer-Copyright{
	display: inline-block;
	vertical-align: middle;
	font-size: 1.3rem;
}

.page2{
	position: fixed;
	display: none;
	z-index: 2000;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	text-align: center;
	background-color: #000;
}
.page2::before{
	content:'';
	display: inline-block;
	height: 100%;
	width: 0;
	vertical-align: middle;
}
.page2 h2{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	color: #fff;
	font-weight: bold;
}

.page3{
	position: fixed;
	display: none;
	z-index: 2001;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	text-align: center;
	background-color: #000;
}
.page3::before{
	content:'';
	display: inline-block;
	height: 100%;
	width: 0;
	vertical-align: middle;
}
.page3 h1{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	color: #fff;
	font-weight: bold;
}


@media (min-width: 768px){
	
}
@media screen and (max-width:768px){
	body{
			max-width: 100%;
	    min-width: 100%;
	    min-height: 100%;
	}

	.index_loading_gif{
	    width: 20%;
	    height: 12%;
	}

	.logo{
		display: none;
	}

	.page1_content{
		width: 95%;
		height: 0%;
		padding-bottom: 140%;
	}

	.item{
		width: 27%;
    padding-bottom: 28%;
    margin-bottom: 8%;
    margin-right: 5%;
	}

	.item:nth-child(1),.item:nth-child(2),.item:nth-child(3){
		margin-top: 13%;
	}

	.score_area{
		left: 0%;
		top: 0%;
		font-size: 25px;
	}
	.time_area{
		right: 0%;
		top: 0%;
		font-size: 25px;
	}

	.grass{
	    width: 30%;
	    padding-bottom: 10%;
	}

	.play{
	    bottom: -4%;
	    width: 45%;
	    height: 13%;
	}

	.footer-Copyright{
		font-size: 1rem;
	}

	.jackie_close {
	    top: 73%;
	    width: 34%;
	}
}
@media screen and (orientation: landscape) and (max-width:846px) {/*阿頡*/
	.page2{
		display: block;
	}
}