@charset "utf-8";
@import url(normalize.css);
@import url(../calculator/calculator.css);
@import url(mediaquery.css);
@import url(sizecolor.css);

html {
	font-size: 10px;
	-ms-user-select: none;
	-moz-user-select: -moz-none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

/*메뉴가 열렸을때 본문이 스크롤 되지 않는다.*/
html.open {
	/*	overflow: hidden;*/
}

body {
	position: relative;
}

button:focus {
	outline: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
input[type=number] {
	-moz-appearance: textfield;
}

/* 사이즈 pc: 800px */
.wrap {
	max-width: 800px;
	width: 96%;
	margin: auto;
}

/*헤더 영역*/
header {
	text-align: center;
}

header h1 {
	height: 40px;
	line-height: 40px;
}

header h1 img {
	height: 30px;
	padding: 5px;
}

header h1 span {
	display: inline-block;
	vertical-align: top;
	transition: all 0.3s;
}

/*nav*/
nav .btn-menu {
	position: absolute;
	top: 8px;
	right: 12px;
	cursor: pointer;
}

nav .btn-close {
	position: absolute;
	top: 8px;
	right: 12px;
	cursor: pointer;
	z-index: 3;
}

nav .menu-box {
	position: fixed;
	height: 100vh;
	top: 0;
	right: 0;
	z-index: 2;
}

nav .menu-list {
	position: absolute;
	top: 40px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	z-index: 3;
}

nav .menu-list ul {
	line-height: 40px;
}

nav .menu-list h4 {
	display: block;
}

nav .menu-list>p+ul>li:nth-child(odd) {
	border-bottom: 1px solid;
}

nav .menu-list ul>li>span {
	float: right;
}

nav .menu-list ul img {
	vertical-align: middle;
	width: 20px;
	margin-right: 10px;
	transform: translateY(-2px);
	filter: hue-rotate(240deg);
}

nav .menu-list ul ul {
	padding-left: 35px;
}

nav .menu-list ul ul>li {
	position: relative;
}

nav .menu-list ul ul>li span {
	position: absolute;
	animation: slidein-nav 0.3s alternate infinite;
}

@keyframes slidein-nav {
	0% {
		transform: translateX(5px)
	}

	100% {
		transform: translateX(10px)
	}
}

.ct-wrap {
	position: absolute;
	top: 0px;
	z-index: 3;
	min-height: 100vh;
	background: #e0e5ec;
}

.ct-wrap .btn-close-b {
	position: absolute;
	top: 8px;
	right: 12px;
	cursor: pointer;
	z-index: 3;
}

nav .btn-menu,
nav .btn-close,
nav .menu-box,
nav .menu-list,
.ct-wrap {
	display: none;
}

nav .btn-menu.open,
nav .btn-close.open,
nav .menu-box.open,
.ct-wrap.open {
	display: flex;
	justify-content: center;
	align-items: center;
}

.notice-container,
.manual-container {
	margin: 0 auto;
}

.notice-box,
.manual-box {
	width: 100%;
}

.notice-container,
.manual-container {
	position: absolute;
	top: 0px;
	z-index: 3;
	min-height: 100vh;
	background: #e0e5ec;
}

.notice-container .btn-close-b,
.manual-container .btn-close-b {
	position: absolute;
	top: 8px;
	right: 12px;
	cursor: pointer;
	z-index: 3;
}

.notice-container,
.manual-container {
	display: none;
}

.notice-container.open,
.manual-container.open {
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

/* NAV메뉴 버튼 */
/* NAV메뉴 버튼을 세로로 배치 */
#gtm-calc,
#gtm-manual,
#gtm-notice {
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 12px 20px;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	border: 2px solid #e0e0e0;
	background-color: #f5f5f5;
	color: #666;
	transition: all 0.3s ease;
}

/* 마지막 버튼은 margin-bottom 제거 */
#gtm-notice {
	margin-bottom: 0;
}

/* 호버 효과 */
#gtm-calc:hover {
	background-color: #fde8e7;
	border-color: #fcb2af;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(252, 178, 175, 0.2);
}

#gtm-manual:hover {
	background-color: #e8f5f7;
	border-color: #abd8db;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(171, 216, 219, 0.2);
}

#gtm-notice:hover {
	background-color: #e8f5f7;
	border-color: #abd8db;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(171, 216, 219, 0.2);
}

/* 클릭 효과 */
#gtm-calc:active,
#gtm-manual:active,
#gtm-notice:active {
	transform: translateY(0px);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 반응형 - 모바일 */
@media (max-width: 600px) {

	#gtm-calc,
	#gtm-manual,
	#gtm-notice {
		padding: 10px 16px;
		font-size: 14px;
	}
}


/*main*/
/*계산기 선택하기*/
.select-box {
	position: relative;
	width: 100%;
	font-weight: bold;
}

.select-box .options-container {
	position: absolute;
	top: 66px;
	max-height: 0;
	width: 100%;
	opacity: 0;
	transition: all 0.2s;
	overflow: hidden;
	z-index: 1;
}

.selected {
	position: absolute;
	top: 20px;
	width: 100%;
	padding: 11px 24px;
	cursor: pointer;
	box-sizing: border-box;
}

.selected::after {
	content: "";
	background: url("../img/arrow-down.svg");
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	height: 100%;
	width: 32px;
	right: 8px;
	top: 5px;
	transition: all 0.4s;
}

.select-box .options-container.active {
	max-height: 240px;
	opacity: 1;
	overflow-y: scroll;
}

.select-box .options-container.active+.selected::after {
	transform: rotateX(180deg);
	top: -6px;
}

.select-box .options-container::-webkit-scrollbar {
	width: 8px;
	border-radius: 0 8px 8px 0;
}

.select-box .options-container::-webkit-scrollbar-thumb {
	border-radius: 0 8px 8px 0;
}

.select-box .option {
	padding: 12px 24px;
	cursor: pointer;
	box-sizing: border-box;
}

.select-box label {
	cursor: pointer;
}

.select-box .option .radio {
	display: none;
}

.blank-box1 {
	height: 2px;
}

/*main section*/
main section {
	display: none;
}

main section.on {
	display: block;
}

main section fieldset {
	padding: 6px 14px 20px;
}

main section fieldset img {
	height: 13px;
}

main section li {
	text-align: center;
}

main section li:nth-child(odd) {
	/*	width: 82%;*/
	height: 28px;
	line-height: 28px;
	margin-bottom: 4px;
	font-size: 1.4rem;
}

main section li:nth-child(odd) span:first-child {
	display: inline-block;
	text-align: left;
}

main section li:nth-child(odd) span:last-child {
	display: inline-block;
	margin-left: 4px;
	width: 84px;
}

main section li:last-child {
	margin-bottom: 30px;
}

main section input[type="number"] {
	font-weight: bold;
	height: 36px;
	line-height: 36px;
	padding: 0 10px;
	text-align: center;
	vertical-align: middle;
	box-sizing: border-box;
	border-radius: 15px 0 0 15px;
}

main section input[type="number"]:focus {
	outline: none;
}

main section .input-reset-btn {
	display: inline-block;
	height: 36px;
	line-height: 36px;
	padding-right: 10px;
	cursor: pointer;
	transition: all 0.1s;
	border-radius: 0 15px 15px 0;
}

main section .input-reset-btn:active {
	color: #fff;
}

main section .input-reset-btn:focus {
	outline: none;
}

main section li span {
	vertical-align: middle;
}

main section li .input-won {
	display: inline-block;
	height: 36px;
	line-height: 36px;
	width: 60px;
	margin-left: 4px;
	padding: 0 4px;
	text-align: center;
	box-sizing: border-box;
	border-radius: 15px;
}

/*main select#unit-box*/
main section select {
	-ms-text-align-last: center;
	-moz-text-align-last: center;
	text-align-last: center;
	width: 60px;
	height: 36px;
	line-height: 36px;
	padding: 0 2px;
	margin-left: 4px;
	font-weight: bold;
	vertical-align: middle;
	border-radius: 15px;
	cursor: pointer;
}

main section select:focus {
	outline: none;
}

main section .button {
	width: 100%;
}

main section .result-box span {
	font-weight: bold;
}

main section .result-box p {
	text-align: center;
}

main section .result-box p:not(:last-child) {
	margin-bottom: 10px;
}

main section [class^="manual-"],
main section .btn-calc {
	overflow: hidden;
	cursor: pointer;
	height: 20px;
	line-height: 20px;
	padding: 0px 5px 0px 25px;
}

main [class ^="btn-box"] {
	padding: 4px 14px 6px;
}

main .c-cal input[type="radio"]:last-of-type {
	margin-left: 10px;
}

main .c-cal .result-box p:nth-child(n+3) {
	font-weight: bold;
}

.price-date {
	text-align: center;
	margin: 10px 0;
	font-size: 1.4rem;
	color: #999;
}

#priceDate {
	display: inline-block;
	vertical-align: baseline;
}

.btn-add {
	display: block;
	margin-top: 10px;
	margin-bottom: 10px;
	margin-left: auto;
	width: 25px;
	height: 25px;
	line-height: 25px;
	text-align: center;
	border-radius: 50%;
	background-color: #f5f5f5;
	cursor: pointer;
	color: #555;
	transition: all 0.3s ease;
}

.btn-add:hover {
	background-color: #e0e0e0;
}

/* 주유비 계산 */
/* 유류 선택 버튼 그룹 */
#fuelPriceGroup {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* 각 줄 래퍼 - 2개씩 배치 */
.fuel-row {
	display: flex;
	justify-content: space-between;
	gap: 2%;
}

/* 버튼 너비 49% */
.fuel-row>.fuel-button {
	width: 49%;
	box-sizing: border-box;
}

/* 유류 선택 버튼 기본 스타일 */
.fuel-button {
	padding: 12px 16px;
	background-color: #f5f5f5;
	border: 2px solid #e0e0e0;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1.4rem;
	color: #333;
	text-align: center;
	user-select: none;
}

/* 호버 상태 */
.fuel-button:hover {
	background-color: #fde8e7;
	border-color: #fcb2af;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(252, 178, 175, 0.2);
}

/* 선택된 상태 */
.fuel-button.fuel-selected {
	background: linear-gradient(135deg, #fde8e7 0%, #e8f5f7 100%);
	border-color: #fcb2af;
	font-weight: 600;
	color: #2c3e50;
	box-shadow: 0 4px 12px rgba(252, 178, 175, 0.3);
}

/* 클릭 애니메이션 */
.fuel-button:active {
	transform: translateY(0px);
	box-shadow: 0 1px 4px rgba(252, 178, 175, 0.2);
}

/* 가격 텍스트 정렬 */
#price-premium,
#price-regular,
#price-diesel,
#price-lpg {
	display: inline-block;
	vertical-align: baseline;
	font-weight: 600;
	color: #abd8db;
}

/* 선택된 버튼의 가격 강조 */
.fuel-button.fuel-selected #price-premium,
.fuel-button.fuel-selected #price-regular,
.fuel-button.fuel-selected #price-diesel,
.fuel-button.fuel-selected #price-lpg {
	color: #7bc5cf;
	font-weight: 700;
}

/* 반응형 - 모바일 세로 배치 */
@media (max-width: 600px) {
	.fuel-row {
		flex-direction: column;
		gap: 8px;
	}

	.fuel-row>.fuel-button {
		width: 100%;
	}

	.fuel-button {
		padding: 10px 14px;
		font-size: 13px;
	}
}


/*배너광고*/
.banner-box {
	text-align: center;
}

/*쿠팡광고*/
.banner-box .coupang-con1 {
	padding: 0 0px;
}

.banner-box .coupang-con1 p {
	margin-bottom: 10px;
}

p.cta-text {
	color: #fb8884;
	font-weight: 700;
	padding: 0px 20px;
	border-radius: 8px;
	display: inline-block;
	cursor: default;
	transition: background-color 0.3s ease,
		color 0.3s ease;
	user-select: none;
	margin-bottom: 16px;
}

/* 이모지 깜빡임 애니메이션 */
.blink-emoji {
	display: inline-block;
	animation: blink 1.2s infinite;
}

@keyframes blink {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.3;
	}
}


.banner-box .coupang-con2 {
	margin-top: 30px;
	font-size: 0;
}

.banner-box .coupang-con2 div {
	display: inline-block;
}

.banner-box .coupang-con3 {
	margin-top: 30px;
	font-size: 0;
}

.banner-box .coupang-con3 a {
	display: inline-block;
	margin-bottom: 10px;
}

/*쿠파스 문구 : 폰트크기*/
.banner-box .coupas {
	margin-top: 3px;
	margin-bottom: 5px;
	padding: 0 13px;
	font-size: 1.2rem;
}

/*쿠팡 배너 광고*/
.banner-box .banner2 {
	width: 100%;
	font-size: 0;
	margin-top: 20px;
	overflow: hidden;
	text-align: center;
	cursor: pointer;
	background: linear-gradient(315deg, #A9C9FF 0%, #FFBBEC 100%);
}

.banner-box .banner2 a {
	display: block;
	line-height: 140px;
}

/*자체 배너 광고*/
.banner-box .banner1 {
	width: 100%;
	margin: auto;
	background: url(../img/banner/banner_gm_800x140.png) repeat 0% 100%;
	overflow: hidden;
}

.banner-box .banner3 {
	width: 100%;
	margin: auto;
	overflow: hidden;
	background-size: auto auto;
	background-color: #ffd2d1;
	background-image: repeating-linear-gradient(135deg, transparent, transparent 10px, #ffe1e0 10px, #ffe1e0 20px);
}

.banner-box .banner-imgbox {
	width: 100%;
}

.banner-box [class^="banner"] img {
	display: block;
	margin: auto;
	width: 100%;
	max-width: 400px;
}

/*로또번호*/
.lotto-box {
	text-align: center;
	overflow: hidden;
}

.lotto-box h4 {
	padding: 6px 14px;
}

.lotto-box #lotto-number {
	font-size: 1rem;
	opacity: 0;
}

.lotto-box #btn-lotto {
	display: inline-block;
	margin-top: 6px;
	cursor: pointer;
	line-height: 20px;
}

.lotto-box #btn-lotto span {
	position: relative;
}

.lotto-box #btn-lotto span:after {
	content: '';
	position: absolute;
	display: block;
	width: 0%;
	height: 2px;
	bottom: 0px;
	left: 50%;
	transition: all 0.3s
}

.lotto-box #btn-lotto span:hover:after {
	width: 100%;
	left: 0
}

.lotto-box #gtm-lotto {
	display: inline-block;
	border-radius: 50%;
	width: 20px;
	transform: rotateZ(170deg);
	vertical-align: middle;
	transform-origin: 50% 50%;
	transition: all 0.1s;
}

.lotto-box #btn-lotto:active #gtm-lotto,
.lotto-box #gtm-lotto:active {
	transform: rotateZ(230deg);
}

.lotto-box #canvas {
	display: block;
	margin: 10px auto 12px;
}

.lotto-box p {
	padding: 1px 14px 14px;
}

/*오늘날짜*/
.today-box {
	margin-top: 20px;
	padding: 14px 14px;
}

.today-box p {
	text-align: center;
	line-height: 2.0rem;
}

.today-box .today-box-br {
	height: 10px;
}

.today-box .today-result {
	font-weight: bold;
}

.today-box .day-result-month {
	text-decoration: underline;
}

/*빈줄표시2*/
.blank-box2 {
	height: 20px;
}


/*푸터*/
footer {
	margin-top: 20px;
	text-align: center;
	padding: 10px 14px;
}

footer #btn-save {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	opacity: 1;
	width: 200px;
	height: 23px;
	line-height: 23px;
	margin: 10px auto;
	cursor: pointer;
	font-weight: bold;
}

footer address {
	font-style: normal;
	line-height: 20px;
}

#gtm-share-naver,
#gtm-share-katalk {
	margin-top: 10px;
	overflow: hidden;
	cursor: pointer;
	height: 20px;
	line-height: 20px;
	padding: 0px 5px 0px 25px;
}

#gtm-share-naver {
	background: url(../img/ico_naver.jpg) no-repeat;
	background-color: #00ff4c;
	color: #00601d;
}

#gtm-share-katalk {
	background: url(../img/ico_katalk.jpg) no-repeat;
	background-color: #fff175;
	color: #4b2b2c;
}

/*팝업 메뉴얼*/
.pop-manual {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3
}

.pop-manual .pop-back {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pop-manual .pop-cont {
	position: relative;
	max-width: 760px;
	margin: 50px auto;
	padding: 20px;
	-webkit-box-shadow: rgba(0, 0, 0, 0.7) 2px 2px 10px;
	-moz-box-shadow: rgba(0, 0, 0, 0.7) 2px 2px 10px;
	box-shadow: rgba(0, 0, 0, 0.7) 2px 2px 10px;
	background: #fff;
}

.pop-manual .pop-close {
	position: absolute;
	top: 4px;
	right: 8px;
	height: 24px;
	padding: 4px;
	border-radius: 50%;
	cursor: pointer;
}

.pop-manual .pop-cont ul li {
	padding-left: 20px;
	padding-right: 20px;
	text-indent: -20px;
}

.pop-manual .pop-cont ul li:nth-child(odd) {
	padding-left: 40px;
}

.pop-manual .pop-cont ul li span {
	position: relative;
	animation: slidein 0.3s alternate infinite;
}

@keyframes slidein {
	0% {
		left: 0px;
	}

	100% {
		left: 5px;
	}
}

.pop-manual .pop-cont ul li p {
	width: 95%;
	margin: auto;
	line-height: 30px;
}

.pop-manual .pop-cont ul li:nth-child(odd) {
	height: 40px;
	line-height: 40px;
	font-weight: bold;
	cursor: pointer;
}

.pop-manual .pop-cont ul li:nth-child(even) {
	padding-top: 20px;
	padding-bottom: 20px;
}

.pop-manual .pop-con-text {
	text-align: center;
	margin-top: 10px;
	padding: 10px;
}


/* 네비게이션 전체 컨테이너 */
.nav-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	background: var(--white);
	border: 1px solid #abd8db;
	margin: 20px auto;
	/* 중앙 정렬 추가 */
	box-sizing: border-box;
	/* 패딩, 보더 포함 폭 계산 */
	padding: 15px 15px;
	/* 좌우 여유 확보 (버튼 공간) */
}

/* 좌우 화살표 버튼 스타일 */
.nav-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: var(--bg-gray);
	cursor: pointer;
	font-size: 16px;
	color: #555;
	flex-shrink: 0;
	/* 크기 고정 */
	transition: all 0.2s;
}

.nav-btn:hover {
	background-color: #dde1e6;
	color: var(--primary-color);
}

.nav-btn:active {
	transform: scale(0.95);
}

.prev-btn {
	margin-right: 10px;
}

.next-btn {
	margin-left: 10px;
}

/* 스크롤 뷰포트 (실제 스크롤 영역) */
.scroll-view {
	flex-grow: 1;
	overflow-x: auto;
	/* 가로 스크롤 허용 */
	overflow-y: hidden;
	white-space: nowrap;
	/* 줄바꿈 방지 */
	cursor: grab;
	/* 마우스 커서 모양 */
	-webkit-overflow-scrolling: touch;
	/* 모바일 부드러운 스크롤 */

	/* 스크롤바 숨기기 (크롬, 사파리, 엣지, 파폭) */
	scrollbar-width: none;
	-ms-overflow-style: none;

	/* 드래그 시 텍스트 선택 방지 */
	user-select: none;
}

.scroll-view::-webkit-scrollbar {
	display: none;
}

.scroll-view.active {
	cursor: grabbing;
	/* 드래그 중일 때 커서 모양 */
}

/* 옵션 아이템들을 감싸는 리스트 */
.options-list {
	display: inline-flex;
	gap: 8px;
	/* 버튼 사이 간격 */
	padding: 0 5px;
}

/* 라디오 버튼 숨기기 (CSS 트릭) */
.option-item input[type="radio"] {
	display: none;
}

/* 라벨 스타일 (실제 버튼 모양) */
.option-item label {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 20px;
	background-color: var(--bg-gray);
	color: #666;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

/* 호버 효과 */
.option-item label:hover {
	background-color: #e2e6ea;
	color: var(--text-color);
}

/* 선택된 상태 (Checked) 스타일 */
.option-item input[type="radio"]:checked+label {
	background-color: var(--primary-color);
	color: var(--white);
	text-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
	transform: translateY(-1px);
}

/* 기본 변수 설정 (필요시 추가) */
:root {
	--primary-color: #abd8db;
	/* 선택된 배경색 (남색) */
	--accent-color: #3498db;
	--bg-gray: #efefef;
	/* 기본 버튼 배경색 */
	--text-color: #333;
	--white: #ffffff;
}