/*
Theme Name:   GeneratePress Child
Theme URI:    https://generatepress.com
Description:  Default GeneratePress child theme
Author:       Tom Usborne
Author URI:   https://tomusborne.com
Template:     generatepress
Version:      0.1
*/

/*H태그 */
h1{
	font-size: 1.92em;
	font-weight: 600;
}

.entry-content h2,
.entry-header h2 {
	clear: both;
	font-size: 1.62em;
	font-weight: 600;
	line-height: 1.5;
	border-style: solid;
	border-width: 0px 0px 0px 5px;
	border-color: #0554F2;
	background: #f1f7ff;
	padding: 10px 10px;
}

.entry-content h3{
	font-size: 1.32em;
	font-weight: 500 !important;
	line-height: 1.4;
	display: inline-block;
	border-radius: 15px 15px 15px 0;
	padding: 10px 15px;
	border: 2px solid #0554f2;
	box-shadow: 1px 1px 1px 0px #cfcfcf;
}
.entry-content h4 {
	font-size: 1.22em;
	padding: 3px 9px;
	border-left: 5px solid #0554F2; 
	border-bottom: 1px solid #0554F2;
	transition: all .4s ease-in-out;
}

p{
	font-size: 1em;
	line-height: 26px;
}

li {
	margin-bottom: 10px;
}

/*줄바꿈*/
.br {
    display: block;
}

/* 형광펜 밑줄 효과*/
.underline {
	text-decoration: none;
	display: inline;
	box-shadow: inset 0 -5px 0 #9df9c6;
	font-weight: bold;
}

/* 이미지 그림자 테두리 */
.entry-content img {
	box-shadow: 1px 1px 10px 1px #0000004f;
	border: 0px solid #000;
}
table img {
	box-shadow: none !important;
}


/*아카이브 페이지 헤더 줄이기*/
.archive  .page-header {
	padding-top: 5px;
	padding-bottom: 5px;
}

/*숨기기*/
.entry-meta{
	display:none;
}

/*댓글창 줄이기*/
.comment-form-comment textarea { height: 100px !important; }

/*본문 상단 썸네일 숨기기*/
.single .inside-article>.featured-image {
	display: none;
}

/* 사이드바 고정 */
@media (min-width: 769px) {
	.site-content {
		display: flex;
		justify-content: space-around;
		align-items: flex-start;
	}

	#right-sidebar {
		position: -webkit-sticky;
		position: sticky;
		bottom: 0.1rem;
		align-self: flex-end;
	}
}

/*카테고리, 본문 여백*/
.separate-containers .inside-article {
	padding: 15px;
}
.archive  .page-header {
	padding: 15px;
}
/*카테고리, 본문 사이드바 여백*/
.widget-area .widget {
	padding: 25px;
}

/*color option*/
.color-list li { display: block; float: left; margin-right: 0.5em; }
.color-list li .col-swatch { display: block; width: 2em; height: 2em; }
.co1 { background-color: #F0EAE1; box-sizing: border-box; border: 1px solid #e4e1db; }
.co2 { background-color: #211E16; box-sizing: border-box; border: 1px solid #e4e1db; }
.co3 { background-color: #5F645A; box-sizing: border-box; border: 1px solid #e4e1db; }
.co4 { background-color: #D4C7D9; box-sizing: border-box; border: 1px solid #e4e1db; }

/* 컬러 텍스트 박스 스타일 */

.txtBox00bg, .txtBox01bg, .txtBox02bg, .txtBox03bg, .txtBox04bg {
	padding: 1.25em 1.125em;
	border-radius: .750em;
	word-break: break-all;	
}

.txtBox00bg { 
	background-color: #f6f6f6;
} 

.txtBox01bg { 
	background-color:rgba(30, 144, 255, 0.2); 
} 

.txtBox02bg { 
	background-color: rgba(255, 160, 122, 0.2);
} 

.txtBox03bg { 
	background-color:rgba(255, 99, 71, 0.2);
} 

.txtBox04bg { background-color:#fff9d7;
}

/* 피봇 테이블*/
.pivot {
	overflow:scroll;
	scroll-behavior: smooth;
	scroll-snap-type: x;
	cursor: grab;
	-webkit-user-select: none;  /* Safari */
	-moz-user-select: none;     /* Firefox */
	-ms-user-select: none;      /* Internet Explorer/Edge */
	user-select: none;          /* 크롬, 오페라, Edge에서 지원하는 버전 */
}
.pivot:active {
  cursor: grabbing;
}
.pt {
	border-collapse: collapse;
	text-align:center;
	border-left: 1px;
}
.pt tr > :first-child {
	background: #f1f7ff !important;
}
.pt th, .pt td {
	scroll-snap-align: start;
	padding: 0.4rem;
	min-width: 9rem;
	max-width: 9rem;
	background-clip: padding-box;
	border: 1px solid #e1e1e1 !important;
}
.pt th {
	position: sticky;
	left:0;
	top:0;
	z-index: 3;
	border-left: 1px;
}
/* 첫 번째 행의 첫 번째와 두 번째 td 요소 */
.pt tr:first-child td:nth-child(-n+9) {
	vertical-align: top;
}

/*제품 상세 */
.st1 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 0;
}
.st2 {
  margin: 5px 0 20px 0;
  color: #999;
  font-size: 14px;
}
.st {
	overflow-x: auto;
	width: 100%;
}
.spec_table {
	text-align:center;
	border-collapse: collapse;
	margin: 0 auto;
	vertical-align: middle;
	margin-bottom: 1.5em;
}
.spec_table th {
  	background-color: #3A8AD0;
	color: white !important;
}
.spec_table th, .spec_table td {
    font-size: 16px;
	padding: 0.4rem;
	min-width: 9rem;
	max-width: 9rem;
	background-clip: padding-box;
}

/*빛나는 버튼*/
.button {
	color: #fff;
	border-radius: 5px;
	padding: 10px 25px;
	font-weight: 600;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	display: inline-block;
	box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
		7px 7px 20px 0px rgba(0,0,0,.1),
		4px 4px 5px 0px rgba(0,0,0,.1);
	/*background: #fb2175;*/
	background: linear-gradient(0deg, #fb2175 0%, #ff4b90 100%);
	overflow: hidden;
	appearance: none;
	outline: none;
	border: none;
	top: 3px;
}
.button:hover {
	text-decoration: none;
	color: #fff;
}
.button:before {
	position: absolute;
	content: '';
	display: inline-block;
	top: -180px;
	left: 0;
	width: 30px;
	height: 100%;
	background-color: #fff;
	animation: shiny-btn 2.5s ease-in-out infinite;
}
.button:hover{
	opacity: .7;
}
.button:active{
	box-shadow:  4px 4px 6px 0 rgba(255,255,255,.3),
		-4px -4px 6px 0 rgba(116, 125, 136, .2), 
		inset -4px -4px 6px 0 rgba(255,255,255,.2),
		inset 4px 4px 6px 0 rgba(0, 0, 0, .2);
}
@-webkit-keyframes shiny-btn {
	0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
	80% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
	81% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
	100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
}
/*클릭 시 팝 효과*/
.button:focus {
	outline: none;
}

particle {
	left: 0;
	top: 0;
	pointer-events: none;
	position: fixed;
	opacity: 0;
}

/*앵커 버튼*/
.btnColor {
	display: inline-block;
	font-size: 1.22em;
	padding: 10px 20px;
	margin: 20px 0 20px 0;
	font-weight: 600;
	text-align: center;
	border-radius: 5px;
	transition: all 0.2s;
	position: relative; /* 위치를 상대적으로 고정 */
	background: #3d90d9 !important;
	box-shadow: 
    0px 5px 0px 0px #1664a9, 
    inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 
    7px 7px 20px 0px rgba(0, 0, 0, .1), 
    4px 4px 5px 0px rgba(0, 0, 0, .1);
	color: #fff;
    text-decoration: none; /* 밑줄 제거 */
}
.btnPush:hover {
	transform: translateY(3px); /* 버튼을 아래로 이동 */
	box-shadow: 
    0px 0px 0px 0px #1664a9, 
    inset 1px 1px 1px 0px rgba(255, 255, 255, .5);
	color: #fff;
}

/*본문 목차*/
.book-toc {
    position: relative;
    padding: 15px 25px;
    border: 1px solid #FFA726;
    background-color: #FFF;
    border-radius: 15px;
    /*width: 80%;*/
    margin: 20px auto; /* 상하 20px, 좌우 자동 마진으로 중앙 정렬 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 그림자 */
    font-family: 'Noto Sans KR', sans-serif; /* 글꼴 */
    display: table;
}

.book-toc ul {
    margin-top: 15px !important;
}

#toc {
    counter-reset: item;
}

#toc a {
    text-decoration: none;
    font-weight: 600;
    display: block;
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: all 0.3s ease;
	font-size: 17px;
    color: #333;
}

#toc a:hover {
    color: #FFA726;
    border-left: 3px solid #FFA726;
}

#toc> li {
    margin: 15px 0 15px 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#toc li:first-child {
    border-top: none;
    padding: 0;
}

#toc > li:last-child {
    margin-bottom: 0px;
}

#toc > li > ul {
    /*padding-left: 20px;*/
    list-style: none;
    margin: auto;
}

#toc > li > ul > li,
#toc > li > ul > li > ul > li {
    font-size: 0.9em;
    margin-top: 10px;
    list-style: none;
}

#toc > li > ul > li > a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

#toc > li > ul > li > a::before {
    content: "\2022 "; /* 유니코드 원형 디스크 문자 */
    color: black; /* 원하는 색상으로 변경 가능 */
    font-size: 1.2em; /* 원형 크기 조정 */
    margin-right: 0.5em; /* 텍스트와의 간격 조정 */
}

#toc > li > ul > li > ul {
	margin-top: 0 !important;
}

#toc > li > ul > li > ul > li > a {
	text-decoration: none;
    font-size: 15px;
	font-weight: 400;
	display: inline-block;
    position: relative;
    padding-left: 20px; /* 원형과 텍스트 사이의 간격 조절 */
}

#toc > li > ul > li > ul > li > a::before {
    /*content: "\2022"; /* 원형 문자 */
	content: "-";
    position: absolute;
    left: 7px;
    top: -2px;
    font-size: 1em;
}

.toggle-btn {
    float: right;
    display: inline-flex;
    align-items: center;
    border: 1px solid #FFA726;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: #FFF;
    color: #FFA726;
    cursor: pointer;
}

.toggle-icon {
    margin-right: 4px;
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.toggle-btn[data-state="open"] .toggle-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M2 4l4 4 4-4" fill="none" stroke="%23FFA726" stroke-width="2"/></svg>');
}

.toggle-btn[data-state="close"] .toggle-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M2 8l4-4 4 4" fill="none" stroke="%23FFA726" stroke-width="2"/></svg>');
}

#toc {
    max-height: 700px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, transform 0.3s ease-in-out;
    padding: 0;
    transform-origin: top;
    transform: scaleY(1);
}

.book-toc .toc-label {
    font-weight: 700;
    font-size: 1.4em;
    color: #333;
    margin-right: 10px;
}

.book-toc-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

#toc-container {
    overflow: hidden;
    max-height: 700px;
    transition: max-height 0.3s ease-in-out;
}

#toc.open {
    transform: scaleY(1);
    border-top: 1px dotted #ccc;
    list-style: none;
	margin: auto;
}

#toc:not(.open) {
    max-height: 0;
    transform: scaleY(0);
    border-top: 1px dotted #ccc;
    margin-top: 12px;
    list-style: none;
    display: table-column;
}

/*색상표*/
.color-palette {
  font-size: 0;
}

.color-box {
  display: inline-block;
  vertical-align: middle;
  width: 2em;
  height: 2em;
  font-size: 16px;
  margin: 6px;
  box-sizing: border-box;
  border: 1px solid #e4e1db;
  position: relative;
}

.color-box::before {
  content: attr(data-color-name);
  position: absolute;
  left: 50%;
  top: -1.5em;
  transform: translateX(-50%);
  white-space: nowrap;
  background-color: #fff;
  border: 1px solid #e4e1db;
  padding: 2px 4px;
  font-size: 12px;
  display: none;
}

.color-box:hover::before,
.color-box:active::before {
  display: block;
  z-index: 1;
}
