/* CSS RESET - BEGIN */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #222222;
  position: fixed;
}

button {
  outline: none;
  border: none;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
}

input {
  background: none;
  outline: none;
}

input:focus {
  outline: none;
  box-shadow: none;
}

/* CSS RESET - END */

/* BASE STYLE - BEGIN */
@font-face {
    font-family: 'Pretendard-Regular';
    src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'NanumSquareNeoHeavy';
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-eHv.eot);
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-eHv.eot?#iefix) format("embedded-opentype"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-eHv.woff) format("woff"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-eHv.ttf) format("truetype");
}

:root {
  --main-color: #CDFF62;
  --sub-color: #C8FF21;
  --disable-color: #E8E8E8;

  --text-color-main: #EA1D75;
  --text-color-sub: #FFF690;
  --text-color-white: #FFF;
  --text-color-white-title: #F1F1F1;
  --text-color-white-text: #C9C9C9;
  --text-color-black: #3F3F3F;
  --text-color-disable: #999;
  --text-color-placeholder: #999;
  --text-color-error: #FF2D55;
}

* {
  font-family: 'Pretendard-Regular', sans-serif;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 73px;
  height: 38px;

  padding-top: 10px;
  padding-bottom: 10px;
  gap: 10px;
  border-radius: 30px;

  background-color: var(--main-color);
  color: var(--text-color-black);
  font-size: 13px;
  font-weight: 700;
  font-family: 'NanumSquareNeoHeavy', sans-serif;

  cursor: pointer;

  box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.3);
}

button:disabled {
  background-color: var(--disable-color);
  color: var(--text-color-disable);
  box-shadow: none;
}

button img {
  filter: brightness(0.3);
}
button:disabled img {
  filter: brightness(0.6);
}

button.large {
  width: 246px;
  height: 50px;

  font-size: 16px;
  font-weight: 900;
}

#back {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 38px;

  position: absolute;
  top: 16px;
  left: 7px;
}

.header_logo {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translate(-50%);
}

#logo #bubble {
  position: absolute;
  top: -2px;
  left: 65.5px;
  width: 24px;
}
#bubble img {
  width: 100%;
}
#bubble #eventTag {
  position: absolute;
  top: 3.5px;
  left: 12px;
  transform: translate(-50%);

  font-size: 5px;
  font-weight: 800;
  color: #222;
  white-space: nowrap;
}

#entry-progress-bar-empty {
  margin: 24px auto;
  width: 210px;
  height: 8px;
  border: 1px solid #CDFF62;
  border-radius: 100px;
  padding: 1px;
  overflow: hidden;
}
#entry-progress-bar-full {
  width: 0%;
  height: 100%;
  background-color: #CDFF62;
  border-radius: 100px;
}
#message {
  color: var(--text-color-white);
  text-align: center;
  font-weight: 500;
  font-size: 14px;

  white-space: nowrap;
}
/* BASE STYLE - END */

/* ALIGNMENT STYLE - BEGIN */
.content {
  display: none;

  width: 100%;
  max-width: 312px;
  height: 100%;

  margin: 0 auto;
  padding: calc(15.75% + 66px) 16px 0;
}

.content > * {
  width: 100%;
  max-width: 328px;
}

.content h1 {
  display: block;

  font-size: 30px;
  letter-spacing: -1px;
  color: var(--text-color-white-title);
  line-height: 24px;
  white-space: nowrap;
}

.content > span {
  display: block;

  font-weight: 400;
  font-size: 18px;
  margin-top: 16px;
  color: var(--text-color-white-text);

  margin-bottom: 62px;
}

#login.content > span {
  margin-bottom: 38px;
}
#register.content > span {
  margin-bottom: 16px;
}

.start {
  margin: 0 auto;
}

#nickname .start {
  margin-top: 49px;
}
#register .start {
  margin-top: 24px;
}
#login .start {
  margin-top: 24px;
}

.input_feedback {
  display: flex;
  opacity: 1;
  height: 16px;
  padding-left: 6px;
  margin-top: 5px;
}

#register input:first-child {
  margin-bottom: 10px;
}

#entry {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-color: #222222;
    display: flex;           /* flex 적용 */
    flex-direction: column;  /* 세로 방향 */
    justify-content: flex-start; /* 수직 중앙 */
    align-items: center;     /* 수평 중앙 */
    text-align: center;      /* 텍스트 중앙 */
}

/*#entry > *:not(video) {*/
/*  position: absolute;*/
/*  bottom: 40px;*/
/*  left: 50%;*/
/*  transform: translate(-50%);*/
/*  z-index: 1;*/
/*  text-align: center;*/
/*}*/
/* ALIGNMENT STYLE - END */

/* LANDING PAGE STYLE - BEGIN */
.landing {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-color: #222;
  user-select: none;
}

.landing_content {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}

.landing_content:after {
  content: "";
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  width: 200vw;
  height: 18.75vh;
  background-color: #5F45FF;
}

#dummy {
  position: absolute;
  top: 33%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);

  z-index: 3;
}

#startARText {
  max-width: 80%;
  text-align: center;
  color: var(--text-color-white);
  font-size: 14px;
}

#intro-wyft-logo {
    width: 100%;
    max-width: 260px; /* 이미지의 원래 비율을 유지 */
    aspect-ratio: 260 / 100; /* 비율을 정확히 지정 */
    background: url('../Images/YonamTech/logo_big.svg') no-repeat center;
    background-size: contain; /* 이미지가 요소 크기에 맞게 조정됨 */
    overflow: hidden;
    margin-bottom: 5%;
    margin-top: 10%;
}

#intro-yonamtech-logo {
    width: 100%;
    max-width: 237px; /* 이미지의 원래 비율을 유지 */
    aspect-ratio: 237 / 237; /* 비율을 정확히 지정 */
    background: url('../Images/YonamTech/YonamTech_logo.png') no-repeat center;
    background-size: contain; /* 이미지가 요소 크기에 맞게 조정됨 */
    overflow: hidden;
}

#startARText {
  margin-top: 80px;
  margin-bottom: 20px;
}
/* LANDING PAGE STYLE - END */

/* UNITY LOADING STYLE OVERRIDE - BEGIN */
#unity-loading-bar {
  width: 100%;
  height: 100%;
  background-color: #222;

    display: flex;            /* 추가: 내부 요소 정렬을 위해 flex 적용 */
    flex-direction: column;   /* 추가 */
    justify-content: flex-start;  /* 수정: end에서 center로 변경 */
    align-items: center;      /* 추가 */
    text-align: center;

    padding-bottom: 0;        /* 수정: 40px에서 0으로 변경 (중앙 균형 파괴 방지) */
}
#unity-progress-bar-empty {
  /*background-image: none;*/
    margin: 24px auto;
    width: 210px;
    height: 8px;
    border: 1px solid #CDFF62 !important;
    border-radius: 100px;
    padding: 1px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
/* UNITY LOADING STYLE OVERRIDE - END */

/* MESSAGE POP UP - BEGIN */
#message_popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  border-radius: 20px;
  border: 2px solid #FFF;
  padding: 44px 20px 20px;
  width: 268px;

  text-align: center;
  background-color: #222;

  z-index: 999;
}

/* Webcam Camera Button Style - BEGIN*/
/* 웹캠 영상 */

#cameraFeed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;                /* 화면에는 안 보이지만 DOM에는 남음 */
    pointer-events: none;      /* 터치/클릭 안 먹도록 */
    z-index: 0;
}

.camera-guide-container {
    position: relative;          /* 안의 요소를 절대 위치로 배치하기 위해 필요 */
    display: flex;
    align-items: center;
}

/* 버튼 이미지 */
.tooltip-btn {
    width: 220px;                /* 필요에 따라 크기 조절 */
    display: block;
}

/* 툴팁 텍스트 */
.capture-hint {
    position: absolute;          /* 부모 기준으로 위치 지정 */
    bottom: 18px;
    left: 50%;                   /* 가로 가운데 정렬 */
    transform: translateX(-50%); /* 가운데 정렬 보정 */
    color: white;
    font-size: 14px;
    white-space: nowrap;         /* 한 줄로 표시 */
    pointer-events: none;        /* 클릭 이벤트 통과 (선택사항) */
}

.capture-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px max(16px, env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    z-index: 50;
}

.capture-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.capture-btn {
    width: 60px;
    height: 60px;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent url('../Images/btn_camera.png') center/contain no-repeat;
    cursor: pointer;
    transition: opacity 0.2s ease;
    outline: none;
    text-indent: -9999px;
    overflow: hidden;

    touch-action: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    -webkit-tap-highlight-color: transparent;
}

.capture-btn:active {
    transform: scale(.95);
}

.capture-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.capture-btn:hover:not(:disabled) {
    opacity: 0.8;
    transform: scale(1.05);
}

.capture-btn:active {
    transform: scale(0.95);
    opacity: 0.7;
}

/*overlay*/
#panelOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* 반투명 검은 배경 */
    z-index: 11;
}

/* Old loading spinner removed - now using loading-modal */

.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgb(0,0,0);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.preview-content {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* 프리뷰 컨테이너 */
.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 프리뷰 미디어 */
.preview-media {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 10px;
}

/* 프리뷰 컨트롤 */
.preview-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* 프리뷰 버튼 */
.preview-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:active {
    transform: scale(0.95);
}

.preview-btn svg {
    width: 20px;
    height: 20px;
}

.save-delete-buttons {
    position: absolute;
    bottom: calc(30px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    z-index: 101;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 0;
    border: none;
    font-size: 0;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.2s ease;
    box-shadow: none;
    color: transparent;
    background-color: transparent;
}

.action-btn:active {
    transform: scale(.95);
}

.delete-btn {
    background-image: url('../Images/btn_remove.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    font-size: 0;
}

.delete-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.save-btn {
    background-image: url('../Images/btn_down.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    font-size: 0;
}

.save-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Recording indicator styles */
.recording-indicator {
    background: transparent url('../Images/back_bottom_rec.png') center/auto 40px no-repeat;
    padding: 10px 60px;
    min-width: 300px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 로딩 스피너 */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 200;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-card {
    background-image: url('../Images/wait_message_back.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    min-width: 280px;
    min-height: 200px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.loading-modal .loading-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: -45px;
}
/* Loading Modal styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; /* 어두운 배경 제거 */
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 80px;
}

/* 다운로드 모달 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.modal-content {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
}

.modal-icon {
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 16px;
    opacity: 0.8;
}

.controls {
    display: none;
}


#unity-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
}

#video-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* 버튼/UI */
#camera-ui {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* 버튼 컨테이너 */
#camera-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* 화면 작아지면 버튼이 다음 줄로 이동 */
    justify-content: center;
    padding: 5px 10px;
}

/* 버튼 스타일 */
#camera-controls button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 73px;
    height: 38px;

    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
    border-radius: 30px;

    background-color: var(--main-color);
    color: var(--text-color-black);
    font-size: 13px;
    font-weight: 700;
    font-family: 'NanumSquareNeoHeavy', sans-serif;

    cursor: pointer;
    pointer-events: auto;

    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.3);
}

#camera-controls button:disabled {
    background-color: var(--disable-color);
    color: var(--text-color-disable);
    box-shadow: none;
}

#camera-controls button img {
    filter: brightness(0.3);
}

#camera-controls button:disabled img {
    filter: brightness(0.6);
}

#camera-controls button.large {
    width: 246px;
    height: 50px;

    font-size: 16px;
    font-weight: 900;
}

/* 작은 화면 대응 */
@media (max-width: 500px) {
    #camera-controls {
        gap: 5px;
        padding: 5px;
    }

    #camera-controls button {
        width: 60px;
        height: 35px;
        font-size: 12px;
    }

    #camera-controls button.large {
        width: 200px;
        height: 45px;
        font-size: 14px;
    }
}
/* Webcam Camera Button Style - END*/

/*카메라 이후 팝업*/
/* 순천만 메세지 팝업 */
#scm-message-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 314px;
    padding: 54px 15px 22px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;

    z-index: 12;

    background-color: rgba(0,0,0,0.8);
    color: var(--text-color-white);
    font-size: 16px;

    border: 2px solid #000;
    border-radius: 20px;
}
#scm-message-text {
    text-align: center;
}
.scm-message-highlight {
    color: #FFF690;
}
.onceperday {
    margin-top: 20px;
}
#onceperday {
    width: auto;
    background-color: #FFF;
}
#scm-message-button {
    margin-top: 20px;
    padding: 5px 10px;
    width: 104px;
    height: 40px;
}
/* ETC */
.message-panel-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*카메라 이후 팝업*/

#message_popup > * {
  position: relative;
  z-index: 2;
}
#message_popup .click_blocker {
  z-index: 1;
}

#message_popup_icon {
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%);
}

#message_popup_text {
  color: var(--text-color-white);
}

#message_popup .button_area {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#message_popup .button_area button {
  position: relative;
  z-index: 1;
  margin: 0 6.5px;
  justify-content: center;
  width: 104px;
  height: 40px;
}

#message_popup_yes {
  background-color: var(--main-color);
  color: #222;
}

#message_popup_no {
  background-color: var(--text-color-white);
  color: var(--text-color-main);
}

.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);
}
/* MESSAGE POP UP - END */
/* TUTORIAL - BEGIN */
/* 튜토리얼 이미지 슬라이드 - 참고 사진과 동일 */
#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: 75%;
    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;
}
/*#tutorial {*/
/*  position: absolute;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  display: none;*/
/*  background-color: #222;*/
/*}*/

/*.video_wrap {*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  overflow: hidden;*/

/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: center;*/
/*}*/

/*#tutorial video {*/
/*  width: 100%;*/
/*  display: block;*/
/*}*/

/*#close_tutorial {*/
/*  position: absolute;*/

/*  bottom: 90px;*/
/*  left: 50%;*/
/*  transform: translate(-50%);*/

/*  width: 246px;*/
/*  height: 50px;*/

/*  font-size: 16px;*/
/*  font-weight: 900;*/

/*  display: none;*/
/*}*/
/*#replay_tutorial {*/
/*  position: absolute;*/
/*  bottom: 53px;*/
/*  left: 50%;*/
/*  transform: translate(-50%);*/

/*  font-family: 'Pretendard', sans-serif;*/
/*  font-size: 12px;*/
/*  height: 20px;*/
/*  color: var(--text-color-white);*/
/*  text-decoration: underline;*/
/*  text-underline-offset: 3px;*/

/*  background-color: transparent;*/
/*  box-shadow: none;*/
/*  gap: 0;*/

/*  display: none;*/
/*}*/
/*#replay_tutorial img {*/
/*  margin-right: 6px;*/
/*  width: 12px;*/
/*  filter: none;*/
/*  padding-top: 2px;*/
/*}*/
/*#skip_tutorial {*/
/*  position: absolute;*/
/*  bottom: 20px;*/
/*  right: 18px;*/

/*  width: 92px;*/
/*  height: 40px;*/
/*}*/
/* TUTORIAL - END */

/* ERROR PAGE STYLE - BEGIN */
.error_page {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #222;
  z-index: 1;

  text-align: center;
  color: var(--text-color-white);
}
#fill_gift_logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding-top: 53px;
}
#fill_gift_logo .mascot {
  width: 146px;
}
#error_message{
  height: 282px;
}
#reason {
  color: var(--text-color-sub);
  font-size: 18px;
  font-weight: 600;

  position: relative;

  display: block;
  min-width: 182px;
  margin: 92px auto 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
#reason.close {
  font-size: 20px;
}
#reason span {
  font-size: 22px;
}

#context {
  margin-top: 40px;

  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}
#context.time {
  font-size: 16px;
  line-height: 20px;
}
#context.break {
  margin-top: 40px;
  font-size: 16px;
  line-height: 20px;
}
#context.close {
  margin-top: 13px;
}

#context .highlight {
  font-size: 20px;
}
#context.break .highlight {
  font-size: 18px;
  color: var(--text-color-sub);
}

#detail {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-color-sub);
}
#detail.gap {
  margin-top: 74px;
}
#detail.break {
  margin-top: 18px;
}
#detail span {
  color: var(--text-color-white);
}

#open_gift_list {
  position: absolute;
  bottom: 45px;
  margin: 0 auto;
  width: 246px;
  height: 50px;
  font-size: 16px;
}

#system_error_page {
  padding-bottom: 50px;
}

#location_permission_guide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#location_permission_guide .steps {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color-white);
}

#system_error_page button {
  position: absolute;
  bottom: 45px;
  width: 246px;
  height: 50px;

  font-size: 16px;
}

#system_error_message1 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}
#system_error_message1 span {
  color: var(--text-color-sub);
  font-size: 24px;
}
#system_error_message2 {
  margin: 40px 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}
#system_error_message2 span.color {
  color: #CDFF62;
  font-size: 18px;
}
#system_error_message2 span.bold {
  font-weight: 700;
}
/* ERROR PAGE STYLE - END */

.vertical-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 2;

  background-color: #222;
}
