/* INTRO 화면 */
@font-face {
  font-family: "MapleStory";
  src: url("../font/Maplestory\ Bold.ttf") format("truetype");
  src: url("../font/Maplestory\ Light.ttf") format("truetype");
}

.jk-intro {
  padding: 1.5dvh 0 1.5dvh;
  justify-content: start;
}

.jk-quest-banner {
  width: 100%;
}
.jk-quest-panel {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-top: -5px;
  width: 312px;
  /* padding: 18px; */
  padding: 1.8dvh;
  border: 1px solid #fff;
  border-radius: 26px;

  color: var(--text-color-white);
  font-size: 14px;
  line-height: 20px;
}
.jk-quest-labelled-section {
  display: flex;
  flex-direction: column;
  align-items: start;

  margin-bottom: 14px;
}
.jk-quest-label {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #fff;
  border-radius: 100px;
  color: #222;
  padding: 3px 9px;
  height: 30px;

  margin-bottom: 5px;
  font-weight: 700;
  font-family: "MapleStory";
}
.jk-quest-section-context {
  margin-left: 7px;
}
.jk-quest-panel .highlight {
  color: var(--main-color);
}
.jk-quest-panel .bold {
  font-weight: 700;
}
.jk-quest-label,
#message_popup_text.jk-quest-label {
  color: #222;
}
.jk-quest-context {
  padding: 10px 7px;
  word-break: break-all;
}
#startARText.jk-start-ar {
  font-size: 12px;
  line-height: 16px;
  margin-top: 2.7dvh;
  margin-bottom: 2dvh;
  color: #c9c9c9;
}
.jk-button {
  width: 266px;
  height: 50px;
  font-size: 16px;
  box-shadow: none;
}

/* 튜토리얼 시작을 물어보는 팝업 */
#message_popup.jk-quest-start-popup,
#message_popup.jk-start-popup {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}
#message_popup.jk-quest-start-popup {
  width: 324px;
  padding: 12px 13px 20px;
}
#message_popup_text.jk-quest-label {
  width: 110px;
  margin-bottom: 10px;
}
.jk-quest-item-display {
  position: relative;
  width: 100%;
  height: 132px;
  padding: 5px 0 13px;

  background-color: #32aaed;
  background-image: url(../image/event_specific/item_panel_deco.svg);
  background-position: top center;
  background-repeat: no-repeat;
  border-radius: 10px;

  margin-bottom: 10px;
}
.jk-quest-item-name {
  color: #fff;
  font-family: "MapleStory";
  font-size: 16px;
  font-weight: 700;
}
.jk-quest-item-display > img {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%);
}
.jk-quest-guide {
  display: flex;
  flex-direction: column;
  align-items: start;

  width: 100%;
  height: 164px;
  padding: 12px;

  background-color: #222222;
  opacity: 0.9;
  border-radius: 10px;
}
.jk-quest-label-dark {
  background-color: #e9f7ff;
}
.jk-quest-guide-text {
  font-size: 14px;
  line-height: 20px;
  margin-left: 8px;
  font-weight: 500;
  color: #fff;
}
.jk-quest-guide .jk-quest-labelled-section:last-child {
  margin-bottom: 10px;
}
#message_popup .button_area button.jk-button {
  font-size: 14px;
  color: #fff;
  font-family: "Pretendard";
}
#message_popup.jk-quest-start-popup .button_area button.jk-button {
  font-size: 14px;
  color: #fff;
  width: 144px;
  height: 46px;
  margin: 0;
}
#message_popup .button_area {
  margin-top: 18px;
}
#message_popup .button_area button.jk-button:first-child {
  margin-right: 10px;
}
#message_popup_yes.jk-button {
  background-color: #222;
}
#message_popup_no.jk-button {
  background-color: #523de2;
}

#message_popup_no.jk-button > img {
  filter: brightness(1);
}

#message_popup.jk-start-popup .button_area {
  margin-top: 24px;
}
.jk-start-popup #message_popup_text {
  color: #090909;
  font-weight: 700;
}

/* 튜토리얼 이미지 슬라이드 - 참고 사진과 동일 */
#tutorial.slide-tutorial {
  background-color: rgba(0, 0, 0, 0.5);
}
.slide_wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 20px 0;
}

/* 헤더: 노란 책 아이콘 + "튜토리얼" 라벨 */
.tutorial_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.tutorial_header_label {
  display: inline-block;
  padding: 6px 16px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
}

/* 팝업 창: 다크, 둥근 모서리, 콘텐츠 영역 230×458 비율 */
.tutorial_popup {
  position: relative;
  width: 324px;
  max-width: 90vw;
  min-height: 530px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border: 2px solid #fff;
  border-radius: 24px;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 슬라이드 콘텐츠 영역 */
.tutorial_popup .slides {
  flex: 1;
  min-height: 0;
  height: 0;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides {
  /* width: 240px; */
  /* height: 334px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  background-color: #000;
  position: relative;
}

.slides > span {
  position: absolute;
  top: 52px;
  padding: 4px 10px;
  background-color: #222;
  border-radius: 100px;
  font-size: 14px;
  font-weight: bold;
}
.slides > img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slide {
  width: 100%;
  height: 100%;
  position: relative;
  display: none;
}
.slide > img {
  width: 100%;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%);
}
.tutorial_popup .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* padding: 12px 16px; */
  box-sizing: border-box;
  overflow-y: auto;
}
.tutorial_popup .slide.is-active {
  display: flex;
}
.tutorial_popup .tutorial_slide_img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 350px;
  width: 100%;
}
.tutorial_popup .tutorial_slide_img img {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tutorial_popup .tutorial_slide_text {
  flex: 1;
  min-height: 0;
  margin: 12px 0 0;
  padding: 0 4px;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
}
.slide > p {
  font-size: 15px;
  line-height: 20px;

  position: absolute;
  bottom: 62px;

  width: 100%;
  text-align: center;
}
.slide.is-active {
  display: block;
}
.control-button {
  position: absolute;
  bottom: 20px;
  display: flex;
  align-items: center;
  width: 92px;
  height: 40px;
}
.tutorial_controls .control-button,
.tutorial_controls #skip_tutorial {
  position: static;
}
.tutorial_controls .control-button {
  min-width: 72px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
  border: none;
}
.tutorial_controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 16px;
  flex-shrink: 0;
  background-color: #252525;
}
.tutorial_controls #skip_tutorial {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
#control-next,
#close-image-tutorial {
  right: 18px;
  background-color: #fff;
}
#close-image-tutorial {
  width: 108px;
}

.jk-bak .bak-only {
  display: block;
}

#message_popup2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 268px;
  height: auto;
  z-index: 999;
}

.popup_content {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 2px solid #fff;
  padding: 32px 20px 25px;
  width: 100%;
  height: 180px;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #e9f7ff;
  z-index: 2;
}

#message_popup2 .click_blocker {
  z-index: -1;
}

#message_popup_icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

#message_popup_text2 {
  color: black;
  font-weight: bold;
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
}

#message_popup2 .button_area2 {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 104px;
  height: 36px;
}

#message_popup2 .button_area2 button {
  position: relative;
  z-index: 1;
  margin: 0 6.5px;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#message_popup_ok {
  background-color: #5b45ff;
  color: white;
}
.click_blocker {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100vw;
  height: 100vh;
  transform: scale(2);
  background-color: rgba(0, 0, 0, 0);
}
