@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;
}

#btn_help {
	top: 16px;
	left: 1160px;
}

#stage {
	padding: 0px;
	right: 140px; top: 16px; min-width: 350px; height: 84px;
	text-align: center;
}
.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;
}
#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;
}


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

#title_t {
	top: 44px;
	left: 486px;
}

.cards {
	top: 0px;
	left: 0px;
}


#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;
}

/* 시작, 도움말 팝업 화면 */
#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;
}


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

#obj_train {
	left: 50px;
	top: 522px;
}

#content_area {
	top: 170px;
	/* left: 185px;
	width: 920px; */
	left:0px;
	width:1280px;
	height: 585px;
	/* border: 1px solid red; */
}


/* 윗 쪽 카드 영역 */

#content_area_t {
	top: 88px;
	/* top:0px; */
	left: 0px;
	/* width: 920px; */
	width: 1280px;
	height: 282px;
	text-align: center;
	/* border: 1px solid red; */
}

.tcard,.bcard,.tcard2 {
	display:inline-block;
	margin: 0 6px;
}


/*앞 면 카드*/

.tcard,.tcard>img,.tcard2,.tcard2>img {
	width: 215px;
	height: 281px;
}

/*뒷 면 카드*/
.bcard,.bcard>img {
	width: 195px;
	height: 253px;
}


/* 윗 쪽 카드 영역 끝 */


/* 아래 쪽 카드 영역 */
#content_area_b {
	top: 330px;
	/* left: 47px;
	width: 825px; */
	left:0px;
	width: 1280px;
	height: 255px;
	display: block;
	text-align: center;
}
/* 아래 쪽 카드 영역 끝 */


#desc {
	font-family: '배민주아', sans-serif;
	font-weight: bold;
	margin: auto;
	padding: 10px;
	top: 32px;
	left: 0;
	right: 0;
	width: 800px;
	height: 30px;
	color: #565252;
	font-size: 32px;
	line-height: 30px;
	font-weight: bold;
	text-align: left;
}


#__msgbox {
	position: absolute;
    top: 300px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 400px;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    line-height: 80px;
    text-align: center;
    font-weight: bold;
    color: #e03733;
    font-size: 30px;
    border: 10px solid white;
    border-radius: 45px;
}

#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;
}

.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);
	}
}
@keyframes shake2 {
	10%, 90% {
		transform: translate3d(-1px, -1px, 0);
	}

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

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

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