/* CSS RESET - BEGIN */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #222;
  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://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    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;
}

input {
  border-color: transparent;
  border-bottom: 1px solid #8F8F8F;
  border-radius: 2px;
  padding: 10px;
  width: 100%;

  font-size: 16px;
  font-weight: 400;
  color: var(--text-color-white);
}
input:not(:placeholder-shown) {
  border-bottom: 1px solid var(--main-color);
}

input::placeholder {
  color: var(--text-color-placeholder);
}

.input_check {
  display: flex;
  align-items: center;
  padding-left: 17px;
  height: 20px;

  font-size: 11px;
  font-weight: 400;
  color: var(--text-color-main);

  background-position: left center;
  background-repeat: no-repeat;
  background-size: 14px;
  background-image: url('image/exclamation.svg');
  color: var(--text-color-error);

  display: none;
}

#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: #000;
}

#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: 218px; /* 이미지의 원래 비율을 유지 */
  aspect-ratio: 218 / 192; /* 비율을 정확히 지정 */
  background: url('../image/event_specific/logo_big.svg') no-repeat center;
  background-size: contain; /* 이미지가 요소 크기에 맞게 조정됨 */
  overflow: hidden;
}

#startARText {
  margin-top: 76px;
  margin-bottom: 30px;
}
/* LANDING PAGE STYLE - END */

/* UNITY LOADING STYLE OVERRIDE - BEGIN */
#unity-loading-bar {
  width: 100%;
  height: 100%;
  background-color: #222;

  justify-content: end;
  text-align: center;

  padding-bottom: 40px;
}
#unity-progress-bar-empty {
  background-image: none;
}
/* 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;
}

#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 {
  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: 95px;
  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;
}
