@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Hachi+Maru+Pop&family=Jura:wght@300..700&family=Kosugi+Maru&family=Noto+Serif+SC:wght@200..900&family=Pixelify+Sans:wght@400..700&family=Hina+Mincho&family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Yellowtail&family=Yuji+Boku&family=Homemade+Apple&family=ZCOOL+XiaoWei&family=Zen+Maru+Gothic&family=Zen+Old+Mincho&family=Zhi+Mang+Xing&display=swap');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri7/Galmuri7.css');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri9/Galmuri9.css');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri11/Galmuri11.css');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri14/Galmuri14.css');
@font-face {
  font-family: 'HakgyoansimDunggeunmisoTTF-R';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimDunggeunmisoTTF-R.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'HakgyoansimDunggeunmisoTTF-B';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimDunggeunmisoTTF-B.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'KCCImkwontaek';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2202@1.0/KCCImkwontaek.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Handletter';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/naverfont_05@1.0/Handletter.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'BookkMyungjo-Bd';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'BookkMyungjo-Lt';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Lt.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Chosunilbo_myungjo';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Chosunilbo_myungjo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'ChosunKm';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunKm.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'ChosunSm';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.1/ChosunSm.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
	font-family: 'Freesentation9';
	src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
}
@font-face {
	font-family: 'Freesentation5';
	src: url('https://cdn.jsdelivr.net/gh/fontbee/font@main/Freesentation/Freesentation-5Medium.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Freesentation3';
	src: url('https://cdn.jsdelivr.net/gh/fontbee/font@main/Freesentation/Freesentation-3Light.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}
@font-face {
  font-family: 'GumiRomanceTTF';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2410-1@1.0/GumiRomanceTTF.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'TTLaundryGothicB';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2403-2@1.0/TTLaundryGothicB.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'RiaSans-ExtraBold';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2410-1@1.0/RiaSans-ExtraBold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'MarinesBold';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2502-1@1.0/MarinesBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
    font-family: 'KCCHyerim-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
	font-family: 'GmarketSansBold';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'GmarketSansMedium';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

.custommenu-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  display: flex;
}

.custommenu {
  position: relative;
  display: flex;
  transition-duration: var(--cm-ani);
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.custommenu-wrapper.viewing .custommenu {
  opacity: 1;
  pointer-events: auto;
}

.custommenu-folder-wrapper {
  display: contents;
}

.custommenu-item {
  display: flex;
  justify-content: space-between;
  color: var(--cm-text-color);
  align-items: center;
  transition-duration: var(--cm-ani);
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
}

.custommenu-item:hover {
  color: var(--cm-point-color);
}
.custommenu-main .custommenu-name * {
  font-family: var(--cm-title-font);
}
.custommenu-name {
  font-family: var(--cm-default-font);
}

.custommenu-name-one {
  display: contents;
}
.custommenu-name-two {
  display: none;
}

.custommenu-item.disabled {
  pointer-events: none;
}
.custommenu-item.disabled .custommenu-icon,
.custommenu-item.disabled .custommenu-name {
  opacity: 0.5;
}

.custommenu-icon {
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  flex-shrink: 0;
}

.custommenu-icon i,
.custommenu-icon .material-icons {
  text-align: center;
}

.custommenu-img {
  width: 100%;
  height: 100%;
}
.custommenu-icon .custommenu-img-default {
  width: 100%;
  height: 100%;
}
.custommenu-item:hover .custommenu-img-default {
  display: none;
}
.custommenu-icon .custommenu-img-active {
  display: none;
  width: 100%;
  height: 100%;
}
.custommenu-item:hover .custommenu-img-active {
  display: block;
}
.custommenu-name {
  box-sizing: border-box;
  padding: 0px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  flex-shrink:0;
  line-height: normal;
}

/* 숨김 */
.custommenu-wrapper.custommenu-hide .custommenu {
  opacity: 0;
  pointer-events: none;
}
.custommenu-wrapper.custommenu-hide .custommenu-popup-wrapper {
  opacity: 0;
  pointer-events: none;
}

.custommenu-hide .custommenu.custommenu-subwindow {
  opacity: 0;
  pointer-events: none;
}

.custommenu-hide .custommenu.view {
  opacity: 1;
  pointer-events: auto;
}

.custommenu-hide .custommenu.custommenu-subwindow.view {
  opacity: 1;
  pointer-events: auto;
}

.custommenu-hide-btn {
  position: fixed;
  width: 30px;
  height: 70px;
  right: 20px;
  bottom: -20px;
  border-radius: 20px 20px 0px 0px;
  background: var(--cm-point-color);
  color: var(--cm-point-color-auto);
  opacity: 0;
  pointer-events: none;
  transition-duration: 0.3s;
  transition-property: opacity, bottom;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.custommenu-hide-btn:hover {
  opacity: 1;
  bottom: 0px;
}

.custommenu-hide .custommenu-hide-btn {
  pointer-events: auto;
  cursor: grab;
}
.custommenu-hide .custommenu-hide-btn:active {
  cursor: grabbing;
  opacity: 1;
  bottom: 0px;
}
.custommenu-item-sub {
  font-size: 0.9em;
}
/* 모바일 */

.custommenu-compact-btn {
  width: 30px;
  height: 30px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 12px;
  color: var(--cm-point-color-auto);
  background: var(--cm-point-color);
  opacity: 0;
  pointer-events:none;
  cursor: pointer;
  z-index: 9999;
}

@media all and (max-width: 800px) {
  .custommenu-compact-btn {
    opacity: 1;
    pointer-events: auto;
  }
  .custommenu-wrapper {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
  .custommenu {
    width: 180px;
    height: 100vh;
    left: -200px;
    right: unset;
    top: unset;
    right: unset;
    margin: auto 0;
    background: var(--cm-base-color);
    border: 0px;
    flex-direction: column;
    padding: 0px 10px;
    box-sizing: border-box;
    overflow-y: auto;
  }
  .custommenu:hover {
    width: 180px;
    height: 100vh;
    left: -200px;
    right: unset;
    top: unset;
    right: unset;
    margin: auto 0;
    background: var(--cm-base-color);
    border: 0px;
    flex-direction: column;
    padding: 0px 10px;
    box-sizing: border-box;
    overflow-y: auto;
  }
  .custommenu.active {
    left: 0px;
  }
  .custommenu-folder-wrapper {
    width: 100%;
  }
  .custommenu .custommenu-item {
    flex-direction: row;
    height: auto;
    border: 0px;
    width: 100%;
    color: var(--cm-text-color);
    background: transparent;
    background-image: none;
    left: 0;
    position: relative;
  }
  .custommenu .custommenu-item::before {
    display: none;
  }
  .custommenu .custommenu-item::after {
    display: none;
  }

  .custommenu .custommenu-item .custommenu-name {
    display: flex;
    opacity: 1;
    font-size: 15px;
    background: transparent;
    background-image: none;
    -webkit-text-stroke: 0px;
  }
  .custommenu-divider {
    display: none;
  }
  .custommenu-item.custommenu-sub {
    display: none;
  }
  .custommenu-item.custommenu-sub.open {
    display: flex;
  }
  .custommenu-subwindow {
    display: none !important
  }
  #cm_backeffect {
    display: none;
  }
} 

/* 설정 창 */

.custommenu-setting-window {
  width: 800px;
  height: 500px;
  margin: 0 auto;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  left: calc(50% - 300px);
  top: calc(50% - 400px);
  pointer-events: auto;
  position: fixed;
  font-family: freesentation5;
  z-index: 999;
}

.custommenu-setting-window *::-webkit-scrollbar {
	display: none;
}

/* Firefox */
.custommenu-setting-window * {
	scrollbar-width: none;
}

/* IE, Edge 구버전 */
.custommenu-setting-window * {
	-ms-overflow-style: none;
}

.custommenu-setting-subtitle,
.custommenu-setting-title {
  margin: 20px 0px;
  font-size: 18px;
  font-weight: bold;
}

.custommenu-sub-subtitle {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 50px;
}
.custommenu-sub-subtitle::before,
.custommenu-sub-subtitle::after {
  content: '';
  height: 1px;
  background: var(--cm-text-color-t);
  flex-shrink: 10000;
}

.custommenu-sub-subtitle::before {
  width: 5%;
}
.custommenu-sub-subtitle::after{
  width: 100%;
}

.menu-settings,
.menu-list,
.background-settings,
.player-settings {
  margin-bottom: 30px;
}
.custommenu-setting-subtitle::before {
  content: '▶';
}
.custommenu-setting-subtitle.active::before {
  content: '▼';
}
.menu-option textarea {
  background: var(--cm-text-color);
  color: var(--cm-form-color);
  border-radius: 5px;
}
.menu-option-two {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.menu-option-two .menu-option label{
  width: 100%;
  margin-right: 0;
  margin-bottom: 10px;
}
.menu-option-two .menu-option {
  width: 50%;
  flex-direction: column;
}
.menu-option-two .menu-option input,
.menu-option-two .menu-option select{
  width: 100%;
}

.menu-option-three {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.menu-option-three .menu-option label{
  width: 100%;
  margin-right: 0;
  margin-bottom: 10px;
}
.menu-option-three .menu-option {
  width: 33%;
  flex-direction: column;
}
.menu-option-three .menu-option input,
.menu-option-three .menu-option select{
  width: 100%;
}

.menu-option {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 0px 5px;
}

.menu-option label {
  width: 150px;
  margin-right: 10px;
  font-size: 14px;
}

.menu-option input,
.menu-option select {
  flex: 1;
  padding: 5px;
}

.custommenu-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.custommenu-table table th {
  border: 1px solid var(--cm-text-color);
  padding: 10px;
  text-align: center;
}

.custommenu-table table td {
  border: 1px solid var(--cm-text-color);
  padding: 2px;
  text-align: center;
}

.custommenu-table table th {
  background: var(--cm-form-color);
}

.custommenu-table #menu_color{
  justify-content: flex-start;
  margin-bottom: 10px;
  width: 100%;
}

.custommenu-handle {
	cursor: move;
}

.custommenu-table {
	color: var(--cm-text-color);
	background: var(--cm-form-color);
  border-collapse: collapse;
  font-size: 12px;
	border-radius: 10px;
	padding: 20px;
	padding-top: 60px;
	border: 1px solid var(--cm-base-color-auto-t);
	box-shadow: 0px 6px 14px 1px var(--cm-base-color-auto-t);
}

.custommenu-table .title {
	width: 100%;
	color: var(--cm-text-color);
	position: absolute;
	left: 0;
	top: 0;
	padding: 18px 22px;
	box-sizing: border-box;
	font-size: 14px;
	box-shadow: 0px 7px 8px -10px var(--cm-text-color-auto);
  user-select: none;
}

.custommenu-table input,
.custommenu-table select {
	border-radius: 5px;
  background: var(--cm-text-color);
  color: var(--cm-form-color);
}

.custommenu-table .switch {
display: inline-flex;
align-items: center;
}
.custommenu-table .switch-btn {
	width: 60px;
	height: 20px;
	background-color: var(--cm-text-color);
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	margin-right: 10px;
}

.custommenu-table .switch-ball {
	background-color: var(--cm-form-color);
	border-radius: 20px;
	height: 14px;
	width: 30px;
	left: 2px;
	position: relative;
	transition: 0.5s;
}
.custommenu-table .switch-ball::before {
  font-size:10px;
  color: var(--cm-text-color-t);
  content: 'off';
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.custommenu-table .switch-btn.active .switch-ball::before {
  font-size:10px;
  color: var(--cm-text-color-t);
  content: 'on';
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.custommenu-table .switch-btn.active .switch-ball {
	left: 27px;
}

.custommenu-table .switch-text {
	display:inline-flex;
}

.custommenu-table .switch-text .highlight-text-off {
	font-weight: bold;
	padding: 0px 5px;
}
.custommenu-table .switch-text .highlight-text-on {
	padding: 0px 5px;
}
.custommenu-table .active ~ .switch-text .highlight-text-off {
	font-weight: normal;
}

.custommenu-table .active ~ .switch-text .highlight-text-on {
	font-weight: bold;
}

.custommenu-table-column {
	display: inline-flex;
	flex-direction: column;
  padding: 0px 5px;
}

.custommenu-table-btns {
	text-align: right;
	margin-top: 20px;
}

.custommenu-table .custommenubtn {
  padding: 6px 12px;
  background: var(--cm-point-color);
  color: var(--cm-point-color-auto);
  border-radius: 5px;
  margin: 0px 5px;
  border: none;
  font-family: freesentation5;
  display: inline-flex;
  font-size: 12px;
}
.custommenu-table .custommenubtn:hover {
  background: var(--cm-form-color);
  color: var(--cm-text-color);
} 

/* 설정 여기까지 */


/* Pickr 여기부터 */

.custommenu-table .color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.custommenu-table .color-input {
  width: calc(100% - 30px);
}

.custommenu-setting-window.custommenu-table .pcr-button {
  border: 2px solid var(--cm-base-color-auto);
  border-radius: 4px;
  width: 30px;
  height: 30px;
}
/* Pickr 여기까지 */

/* 툴팁과 서브텍스트 */
.custommenu-item-tooltip.active {
  display: block;
}
.custommenu-item-tooltip {
  position: absolute;
  background: var(--cm-base-color);
  color: var(--cm-text-color);
  border: 1px solid var(--cm-text-color);
  border-radius: 5px;
  padding: 6px 10px;
  max-width: 200px;
  width: auto;
  white-space: nowrap;
  left: 50%;
  margin-left: 10px;
  z-index: 10;
  display: none;
  animation: tooltipAni 0.5s;
  font-family: var(--cm-default-font);
}

@keyframes tooltipAni {
  0%{
    opacity: 0;
    translate: 0px 20px;
  }
  100% {
    opacity: 1;
    translate: 0px 0px;
  }
}

.custommenu-item-tooltip::before {
  content: "";
  position: absolute;
  top: calc(100% - 2px);
  left: 3px;
  border-width: 0px 10px 10px 15px;
  border-style: solid;
  border-color: var(--cm-base-color) transparent transparent var(--cm-base-color);
}

.custommenu-item-tooltip::after {
  content: "";
  position: absolute;
  top: calc(100% - 0px);
  left: 2px;
  border-width: 0px 10px 10px 15px;
  border-style: solid;
  border-color: var(--cm-text-color) transparent transparent var(--cm-text-color);
  z-index: -1;
}

.custommenu-item-subtext {
  position: absolute;
  display: none;
  opacity: 0;
}

.custommenu-popup-wrapper {
  width: 100vw;
  height: 100vh;
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
}

#cm_backeffect.custommenu-hide {
  display:none;
}

.custommenu-item-tooltip-text {
  display: block;
}
.upside_down.custommenu-item-tooltip{
  transform: rotateX(180deg);
}
.upside_down .custommenu-item-tooltip-text {
  transform: rotateX(-180deg);
}

/* 서브 창 */
.custommenu-subwindow {
  display: none;
  position: absolute;
}

.custommenu-subwindow.active {
  display: flex;
  opacity: 1;
  pointer-events: visible;
}

.custommenu_header_d {
  display: none;
}