@charset 'utf-8';

@font-face {
	font-family: 'Rix밝은굴림';
	font-style: normal;
	font-weight: bold;
	src: url('/tms_asset/fonts/RixBGulimB.woff');
}
@font-face {
	font-family: 'Rix밝은굴림';
	font-style: normal;
	font-weight: normal;
	src: url('/tms_asset/fonts/RixBGulimB.woff');
}
/*초 숫자 폰트*/

@font-face {
	font-family: 'YaB';
	font-weight: normal;
	font-style: normal;
	src: url('/tms_asset/fonts/fonts/YaB.ttf');
}

html,
body,
.container {
	width: 1280px;
	height: 800px;
	overflow: hidden;
	margin: 0px;
	padding: 0px;
}

div,
img {
	position: absolute;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.container {
	position: relative;
}

.objects,
.buttons {
	width: 100%;
	height: 100%;
}

.button {
	cursor: pointer;
}

#btn_pause {
	top: 16px;
	left: 40px;
	z-index:10;
}

#btn_help {
	top: 16px;
	left: 1160px;
	z-index:10;
}
#title01 {
	z-index:10;
}
#stage {
	padding: 0 20px;
	right: 140px; top: 16px; min-width: 0px; height: 84px;
	text-align: center;
	z-index:10;
}
.stage_bg {
	position: absolute;
	height: 84px;
	min-width: 33px;
}
#stage_bg_l {
	left:0;
	background: url('/tms_asset/images/stage_bg_l.png') no-repeat;
}
#stage_bg_r {
	right:0;
	background: url('/tms_asset/images/stage_bg_r.png') no-repeat;
}
#stage_bg_m {
	margin: auto;
	right:33px; left:33px;
	background: url('/tms_asset/images/stage_bg_m.png') repeat-x;
}
#stage>img {
	position: relative;
	margin-top: 17px;

}

#timerarea {
	top: 16px;
	left: 142px;
	width:204px; height:84px;
	background: url('/tms_asset/images/timerarea.png') no-repeat;
	z-index:10;
}
#watch {
	top: 6px;
	left:18px;
	width:58px;
	height:68px;
	background: url('/tms_asset/images/watch.png') no-repeat;
}
#second-hand {
	top: 18px;left: 19px;
	width:20px; height:27px;
	-webkit-transform:rotate(180deg);
	-moz-transform:rotate(180deg);
	transform:rotate(180deg);
	-webkit-transform-origin: 50% 75%;
	-moz-transform-origin: 50% 75%;
	transform-origin: 50% 75%;
}

#remains {
	left: 0px;	top:  0px;
	width:180px; height:80px;
	font-family: 'Rix밝은굴림', sans-serif;
	position: absolute;
	color: #333333;
	font-size: 40px;
	font-weight: bold;
	text-align: right;
	line-height: 87px;
	letter-spacing: -2px;
}

#remains::after {
	content: '초';
	font-size: 35px;
}

#title_t {
	position: absolute;
    top: 68px;
    left: 429px;
    width: 381px;
    height: 72px;
}

#title_t p {
	font-family: 'NanumSquareB', sans-serif;
	color: #fff;
	font-size: 90px;
	line-height: 72px;
	letter-spacing: 0px;
	margin: 0 !important;
	text-align:center;
}

#text_input {
	top: 14px;
	left: 442px;
}


/* 시작, 도움말 팝업 화면 */
#start,
#start2 {
	width: 1280px;
	height: 800px;
	top: 0;
	left: 0;
	z-index: 5;
	/* display:none; */
}

#start2 {
	background-color:rgba(0,0,0,0.3);
	display: none;
}
#fi1,#fi2,#fi3 {
	margin: auto;
	top:0;bottom:0;left:0;right:0;
	width:250px; height:269px;
}
#fi2,#fi3 {
	display: none;
}

#bg {
	width: 1280px;
	height: 800px;
	top: 0;
	left: 0;
}

#btn_start {
	top: 320px;
	left: 495px;
	cursor: pointer;
}

#btn_desc {
	top: 445px;
	left: 495px;
	cursor: pointer;
}


/* 시작, 도움말 팝업 화면 끝 */

#content_area {
	top: 125px;
	left: 20px;
	width: 1220px;
	height: 650px;
	/* border: 1px solid red; */
}

/* 테이블 영역 */
#content_area_table {
	/* top: 280px;
	left: 40px; */
    top: 422px;
    left: 389px;
    width: 460px;
    height: 152px;
    /* border: 1px solid red; */
}
#bottle1 {
	top: 320px;
	left: 90px;
	position: absolute;
	z-index: 3;
}
#bottle2 {
	top: 280px;
	left: 220px;
	position: absolute;
	z-index: 3;
}
#bottle3 {
	top: 280px;
	left: 890px;
	position: absolute;
	z-index: 3;
}
#bottle4 {
	top: 320px;
	left: 1040px;
	position: absolute;
	z-index: 3;
}
#content_area_left {
	top: 120px;
	left: 430px;
}
#content_area_right {
	top: 120px;
	left: 660px;
}
#content_area_op {
	top: 140px;
	left: 570px;
}
#wolf5 {
	top: 37px;
	left: 78px;
	position: absolute;
	z-index: 3;
	display: none;
}


/* 늑대 그림자 */

#wolf_shadow {
	top: 332px;
	left: 166px;
	position: absolute;
	z-index: 2;
}


/* 늑대의 벽돌 */

#wolf_brick1 {
	position: absolute;
	top: 295px;
	left: 50px;
	z-index: 1;
}

#wolf_brick2 {
	position: absolute;
	top: 305px;
	left: 45px;
	z-index: 1;
	display: none;
}

#wolf_brick3 {
	position: absolute;
	top: 306px;
	left: -24px;
	z-index: 1;
	display: none;
}

#wolf_brick4 {
	position: absolute;
	top: 309px;
	left: -82px;
	z-index: 1;
	display: none;
}

#wolf_brick5 {
	position: absolute;
	top: 309px;
	left: -82px;
	z-index: 1;
	display: none;
}


/* 늑대의 벽돌 그림자 */

#brickshadow1 {
	position: absolute;
	top: 380px;
	left: 41px;
}


/* 늑대 x박스 */

#wolf_xbox {
	position: absolute;
	top: 561px;
	left: 88px;
}

#wolf_x1 {
	position: absolute;
	top: 578px;
	left: 106px;
}

#wolf_x2 {
	position: absolute;
	top: 578px;
	left: 181px;
}

#wolf_x3 {
	position: absolute;
	top: 578px;
	left: 256px;
}

#wolf_x4 {
	position: absolute;
	top: 578px;
	left: 331px;
}


/* 왼 쪽 늑대 영역 끝 */


/* 오른쪽 돼지 영역 */

#content_area_r {
	top: 0px;
	right: 0px;
	width: 390px;
	height: 650px;
	/* border: 1px solid red; */
}


/* 다섯가지 표정의 돼지 */

#pig1 {
	top: 63px;
	left: 81px;
	position: absolute;
	z-index: 3;
}

#pig2 {
	top: 63px;
	left: 73px;
	position: absolute;
	z-index: 3;
	display: none;
}

#pig3 {
	top: 63px;
	left: 83px;
	position: absolute;
	z-index: 3;
	display: none;
}

#pig4 {
	top: 60px;
	left: 81px;
	position: absolute;
	z-index: 3;
	display: none;
}

#pig5 {
	top: 57px;
	left: 108px;
	position: absolute;
	z-index: 3;
	display: none;
}


/* 돼지 그림자 */

#pig_shadow {
	top: 332px;
	left: 122px;
	position: absolute;
	z-index: 2;
}


/* 돼지의 벽돌 */

#pig_brick1 {
	position: absolute;
	top: 295px;
	left: 2px;
	z-index: 1;
}

#pig_brick2 {
	position: absolute;
	top: 307px;
	left: -3px;
	z-index: 1;
	display: none;
}

#pig_brick3 {
	position: absolute;
	top: 307px;
	left: -72px;
	z-index: 1;
	display: none;
}

#pig_brick4 {
	position: absolute;
	top: 309px;
	left: -130px;
	z-index: 1;
	display: none;
}

#pig_brick5 {
	position: absolute;
	top: 309px;
	left: -130px;
	z-index: 1;
	display: none;
}


/* 돼지의 벽돌 그림자 */

#brickshadow2 {
	position: absolute;
	top: 380px;
	left: -7px;
}


/* 돼지 x박스 */

#pig_xbox {
	position: absolute;
	top: 561px;
	left: 40px;
}

#pig_x1 {
	position: absolute;
	top: 578px;
	left: 58px;
}

#pig_x2 {
	position: absolute;
	top: 578px;
	left: 133px;
}

#pig_x3 {
	position: absolute;
	top: 578px;
	left: 208px;
}

#pig_x4 {
	position: absolute;
	top: 578px;
	left: 283px;
}


/* 오른쪽 돼지 영역 끝 */


/* 가운데 풍선 영역 */

#content_area_c {
	top: 2px;
	left: 401px;
	width: 438px;
	height: 532px;
	/* border: 1px solid red; */
}

#balloon1 {
	position: absolute;
	top: 4px;
	left: 124px;
	cursor:pointer;
}

#balloon2 {
	position: absolute;
	top: 124px;
	left: 280px;
	cursor:pointer;
}

#balloon3 {
	position: absolute;
	top: 210px;
	left: 20px;
	cursor:pointer;
}

#balloon4 {
	position: absolute;
	top: 334px;
	left: 224px;
	cursor:pointer;
}

.digit1 {
	position: absolute;
	top: 45px;
	left: 28px;
}

.digit2 {
	position: absolute;
	top: 45px;
	left: 68px;
}


/* 가운데 풍선 영역 끝 */




#bomb_box {
    position: absolute;
    top: 205px;
    left: 280px;
    width: 785px;
    height: 500px;
}
#bomb {
	top:0; left: 0;
	width:695px;
}
#b_line {
    top: 79px;
    left: -120px;
	width:119px;
	height:109px;
}
#flame {
	position:relative;
    top: -73px;
    left: -194px;
	display: none;
}
/* #flame:before {
	position: absolute;
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    top: 99px;
    left: 75px;
    opacity: .7;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgb(14,13,36) 0%, rgb(241,220,186) 100%);
} */
#flame>img {
	width: 192px;
}
#fire {
	position:relative;
    top: 27px;
    left: -129px;
	display: none;
}
#fire>img {
	width:50px;
}
.stone {
	visibility:hidden;
	left:50%;
	top:45%;

	transition: transform .7s ease-out;
}
.stone.active {
	visibility: visible;
}
.stone01.active {
	transform: translate(-800px, 200px) rotate(360deg) scale(.8);
}
.stone02.active {
	transform: translate(800px, 100px) rotate(360deg) scale(.8);
}
.stone03.active {
	transform: translate(-800px, 100px) rotate(360deg) scale(.8);
}
.stone04.active {
	transform: translate(800px, 200px) rotate(360deg) scale(.8);
}
.stone05.active {
	transform: translate(-800px, 800px) rotate(360deg) scale(1.2);
}
.stone06.active {
	transform: translate(800px, 800px) rotate(360deg) scale(1.2);
}

#explosion {
	margin: auto;
	top:-85px;
	left: 0; right:0;
	width:790px;
	transform-origin: center;
	transform: scale(0.5);
	display: none;
}
#bomb1 {
	display: none;
    top: 110px;
    left: 200px;
    width: 785px;
    position: absolute;
    height: 500px;
}

#n_1{top:0px; left:0px; width: 62px; height: 67px;}
#n_2{top:0px; left:70px; width: 62px; height: 67px;}
#n_3{top:0px; left:140px; width: 62px; height: 67px;}
#n_4{top:0px; left:210px; width: 62px; height: 67px;}
#n_5{top:0px; left:280px; width: 62px; height: 67px;}
#n_6{bottom:0px; left:0px; width: 62px; height: 67px;}
#n_7{bottom:0px; left:70px; width: 62px; height: 67px;}
#n_8{bottom:0px; left:140px; width: 62px; height: 67px;}
#n_9{bottom:0px; left:210px; width: 62px; height: 67px;}
#n_0{bottom:0px; left:280px; width: 62px; height: 67px;}
#n_v{bottom:2px; right:-1px; width: 100px; height: 66px;}
#n_e{top:2px; right:-2px; width: 100px; height: 64px;}

.num.down {
	transform-origin: 0 0;
    transform: translate(1px,1px);
}

.num.blink{
	-webkit-animation:blink 1.5s ease-in-out infinite alternate;
  -moz-animation:blink 1.5s ease-in-out infinite alternate;
  animation:blink 1.5s ease-in-out infinite alternate;
}

@-webkit-keyframes blink{
    0% {opacity: .2;}
    100% {opacity: 1;}
}
@-moz-keyframes blink{
    0% {opacity: 0.2;}
    100% {opacity: 1;}
}
@keyframes blink{
    0% {opacity: .2;}
    100% {opacity: 1;}
}

#num_a1{top:0px;left:0px; width:43px;}
#num_a2{top:0px;left:63px; width:43px;}
#num_a3{top:0px;right:0px;width:43px;}

#content_area_top{
    top: 285px;
    left: 553px;
    width: 170px;
    height: 80px;
    position: absolute;
    /* border: 1px solid red; */
}

#finish {
    font-family: 'Rix밝은굴림', sans-serif;
    font-weight: bold;
    font-size: 60px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    padding-top: 387px;
	color: #e03733;
	z-index: 100;
}

#flame1 {
	animation: blinker 0.3s 0.5s linear infinite;
}

#flame2 {
	animation: blinker 0.3s 0.3s linear infinite;
}

#fire1 {
	animation: blinker 0.6s 0.5s linear infinite;
}

#fire2 {
	animation: blinker 0.6s 0.3s linear infinite;
}


@keyframes blinker {
	50% {
		opacity: 0;
	}
}


.shake {
	animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) infinite both;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	perspective: 1000px;
}

@keyframes shake {
	10%, 90% {
		transform: translate3d(-1px, 0, 0);
	}

	20%, 80% {
		transform: translate3d(2px, 0, 0);
	}

	30%, 50%, 70% {
		transform: translate3d(-4px, 0, 0);
	}

	40%, 60% {
		transform: translate3d(4px, 0, 0);
	}
}
