@font-face {
  font-family: "SunBatang-Bold";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_eight@1.0/SunBatang-Bold.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MinSans-Regular";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/MinSans-Regular.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

#media-container{
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: black;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}

#doorTitle {
  width: 106.356rem;
  height: 42.9rem;
  margin-top: 18vh;
  background-size: cover; /* 배경 이미지를 div에 맞추기 */
  background-repeat: no-repeat; /* 이미지 반복 없음 */
  background-position: center; /* 이미지를 가운데 정렬 */
  background-image: url("/static/iconImage/doorTitle.png");
}
#doorHandle {
  background-size: cover; /* 배경 이미지를 div에 맞추기 */
  background-repeat: no-repeat; /* 이미지 반복 없음 */
  background-position: center; /* 이미지를 가운데 정렬 */
  background-image: url("/static/iconImage/doorHandle.png");
  height: 12.79688rem;
  width: 13.90875rem;
  right: 12.53rem;
  top: 54vh;
  position: absolute;
}

#doorBackground {
  cursor: url("/static/iconImage/cursor.png"), auto;
  width: inherit;
  height: inherit;
  position: absolute;
  z-index: 2;
  
  background-color: #d9d9d9;
  overflow: auto;
  display: none;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

#total-container {

  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  font-family: "SunBatang-Bold";
  background-color: white;
}

#story-container {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  font-family: "SunBatang-Bold";
  word-break: keep-all;

}

/* nodeContents */

#node-contents-container {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
}
.NodeContent-Outer_Intro,
.NodeContent-Outer_Outro {
  color: black;

  border-left: 1rem double black;
  margin-top: 2rem;
  margin-left: 7.5rem;
  margin-right: 7.5rem;
  padding-left: 3.38rem;

  font-size: 5.25rem;
  font-family: "SunBatang-Bold";
  font-style: normal;
  line-height: 160%; /* 8.4rem */
  letter-spacing: -0.3675rem;
}
.NodeContent-Inner {
  color: white;
  margin-top: 4rem;
  margin-left: 11.25rem;
  margin-right: 11.25rem;
  font-size: 4.375rem;
  font-family: "SunBatang-Bold";
  font-style: normal;
  line-height: 160%; /* 8.4rem */
  letter-spacing: -0.21875rem;

}

.NodeContent-Inner_SmallEnding {
  color: black;
  margin-top: 4rem;
  margin-left: 11.25rem;
  margin-right: 11.25rem;

  font-size: 4rem;
  font-family: "SunBatang-Bold";
  font-style: normal;
 
  line-height: 140%; 
  letter-spacing: -0.21875rem;
 
}
#interviewerText {
  margin-left: 7.5rem;
  font-size: 5.25rem;
  font-family: "SunBatang-Bold";
  font-style: normal;
  line-height: 160%; /* 8.4rem */
  letter-spacing: -0.3675rem;
  display: none;
}

/* nextnode */

#next-node-container {
  position: absolute;
  bottom: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: inherit;
  height: 68.4rem;
  word-break: keep-all;
}
.NextNode-Outer_Intro,
.NextNode-Outer_Outro {
  background-color: black;
  color: white;
}

.NextNode-Inner {
  background-color: black;
  color: #00ef99;
  border: 0.5rem solid #00ef99;
}
.NextNode-Inner_SmallEnding {
  background-color: #00ef99;
  color: #000;
  border: 0.5rem solid #000;
}

#nextNodeIcon {
  width: 7.5rem;
  height: 7.5rem;
  margin-left: 3.6rem;
  margin-top: 3rem;
  margin-bottom: 3.2rem;
  margin-right: 4.38rem;
  font-size: 7.5rem;
  line-height: 100%;
  letter-spacing: -0.5625rem;
}
#nextNodeTitle {
  margin-right: 3rem;
 
  width: 96.875rem;
  word-break: keep-all;
}

.nextNodeButton {
  text-align: start;
  font-size: 4.5rem;
  font-style: normal;
  font-family: inherit;
  
  flex-shrink: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin-left: 6rem;
  margin-right: 6rem;
}

.nextNodeButton-disabled {
  background-color: gray;
}

.nextNodeButton :disabled {
  background-color: grey;
  color: white;
}

/* nameInput */

#nameInput {
  width: 80%;
  height: 11.875rem;
  flex-shrink: 0;
  border-radius: 0%;
  border: 0.38rem solid #000;
  margin-top: 3.63rem;
  margin-bottom: 3.63rem;
  font-family: "SunBatang-Bold";
  font-size: 5.25rem;
  font-style: normal;
  line-height: 160%; /* 8.4rem */
  letter-spacing: -0.3675rem;
  padding-left: 5.5rem;
  padding-right: 5.5rem;
}

#nameInput-container {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: start;
  font-size: 5.25rem;
  margin-left: 11.62rem;
  margin-right: 11.62rem;
  margin-top: 16.5rem;
}

#buttonHeader {
  height: 13rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#headerInfo {
  margin-top: 3.37rem;
  width: 111rem;
  display: flex;
  flex-direction: row;
  justify-content: start;
}

#userName {
  color: #fff;
  font-family: "SunBatang-Bold";
  font-size: 4.75rem;
  font-style: normal;
  line-height: 100%; /* 4.375rem */
  letter-spacing: -0.32813rem;
  width: 35.25rem;
  padding-left: 3rem;
  padding-right: 3rem;
  text-align: center;
  border-right: #fff 0.38rem solid;
  height: 100%;
  padding-top: 0.8rem;
}

#badgeHeader {
  min-width: 77.6rem;
  display: flex;
  flex-direction: row;
  justify-content: start;
}

#badgeTitle {
  color: #fff;
  font-family: "SunBatang-Bold";
  font-size: 4.75rem;
  font-style: normal;
  line-height: 100%; /* 4.75rem */
  letter-spacing: -0.35625rem;
  height: 100%;
  padding-top: 0.8rem;
  margin-left: 5.35rem;
  margin-right: 6.12rem;
}

.badgeNum {
  width: 10rem;
  height: 100%;
  font-family: "SunBatang-Bold";
  color: #fff;
  font-size: 4.375rem;
  font-style: normal;
  line-height: 100%; /* 4.375rem */
  letter-spacing: -0.32813rem;
  margin-top: 1.8rem;
  margin-left: 1.5rem;
}

#oneStar {
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 2.7rem;
}
#threeStar {
  margin-top: 1.3rem;
  width: 5.43rem;
  height: 5.1rem;
}
#twoStar {
  width: 5.42rem;
  height: 2.5rem;
  margin-top: 2.7rem;
}

#endButton {
  background-size: cover; /* 배경 이미지를 div에 맞추기 */
  background-repeat: no-repeat; /* 이미지 반복 없음 */
  background-position: center; /* 이미지를 가운데 정렬 */
  width: 8.375rem;
  height: 8.375rem;
  border: 0;
  background-color: inherit;
  margin-right: 6.37rem;
  margin-top: 3.37rem;
}

#thread {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding-bottom: 1rem;
  padding-top: 2rem;
  align-items: center;
}

#result-numbering,
#numberCell {
  width: 15rem;
  border: 0px;
}

#result-badge,
#iconCell {
  width: 15rem;
  border: 0px;
}

#result-title,
#titleCell {
  width: 32rem;
  border: 0px;
  word-break: keep-all;
  line-height: 120%; /* 8.4rem */
}

#result-degree,
#starNumCell {
  width: 10rem;
  border: 0px;
}

#result-gainPercentage,
#gainPercentageCell {
  width: 15rem;
  border: 0px;
}

#stampImage {
 
  width: 50rem;
  height: 12.3rem;
  margin-top: 6rem;
  background-size: cover; /* 배경 이미지를 div에 맞추기 */
  background-repeat: no-repeat; /* 이미지 반복 없음 */
  background-position: center; /* 이미지를 가운데 정렬 */
}

#img-container {
  height: 30vh;
  display: none;
  background-size: cover; /* 배경 이미지를 div에 맞추기 */
  background-repeat: no-repeat; /* 이미지 반복 없음 */
  background-position: center; /* 이미지를 가운데 정렬 */
}

body {
  margin: 0px;
  overflow-y: hidden;
  overflow-x: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* badge */

#badge-total-container {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  border: 1rem double black;
  flex-shrink: 0;
  background-color: white;
  font-family: "SunBatang-Bold";
  font-size: 4.375rem;
  font-style: normal;
  line-height: 140%; /* 8.4rem */
  letter-spacing: -0.21875rem;
  margin-left: 6rem;
  margin-right: 6rem;
  margin-top: 4rem;
}

#badgeContents-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 24.37rem;
}
#badgeContents {
  text-align: center;
  padding-left: 7rem;
  padding-right: 7rem;
  margin-top: 3rem;
}

#badge-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
#badgeInfo {
  height: 6.25rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#badgeTag {
  width: 11.8rem;
  height: 4.25rem;
  display: inline-flex;
  padding: 1.25rem 1.875rem;
  margin-right: 2.56rem;
  margin-left: 2.13rem;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  border-radius: 6.25rem;
  border: 0.46rem solid black;
  background-color: #e7e7e7;
}

#badgeNameContents {
  
    margin-bottom: 2rem;
    height: 6.25rem;
    padding: 1.2rem;
    padding-left: 4rem;
    padding-right: 4rem;
    text-align: center;

    font-family: "SunBatang-Bold";
    font-size: 4.375rem;
    font-style: normal;
    line-height: 140%;
    letter-spacing: -0.21875rem;
    border-radius: 6.25rem;
    background-color: black;
    color: white;
}

#badge-holder {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-right: 1vw;
  padding-top: 3rem;
  overflow-x: auto;
  max-width: 90vw;
  margin-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
}

.badge {
  width: 11rem;
  height: 11rem;
  flex-shrink: 0;
  margin-left: 3rem;
  margin-bottom: 2rem;
  background-size: cover; /* 배경 이미지를 div에 맞추기 */
  background-repeat: no-repeat; /* 이미지 반복 없음 */
  background-position: center; /* 이미지를 가운데 정렬 */
  border: 0.3rem solid white;
}
#logoImg {
  width: 60%;
}
#modalBackground {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.7); /* 검은 배경 설정 */
  overflow: auto;
  display: none;
  flex-direction: row;
  justify-content: center;
}

#modalPopup {
  width: 98.4375rem;
  min-height: 66.625rem;
  flex-shrink: 0;
  margin-top: 86.69rem;
  position: absolute;
  background-color: #000;
  color: #00ef99;
  border: 0.5rem solid #00ef99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#modal-content {
  min-height: 30.437rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#modal-contents-text {
  text-align: center;
  color: #00ef99;
  text-align: center;
  font-size: 5rem;
  font-style: normal;
  line-height: 140%; /* 7rem */
  letter-spacing: -0.25rem;
  font-family: "SunBatang-Bold";
}

.modal-button {
  border-top: 0.5rem solid #00ef99;
  height: 18.1rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  color: #00ef99;
}
.modalText {
  font-size: 4.5rem;
  font-style: normal;
  line-height: 100%; /* 4.5rem */
  letter-spacing: -0.3375rem;
  font-family: "SunBatang-Bold";
  height: 6.25rem;
  margin-left: 4.38rem;
  margin-top: 6.1rem;
}
.modalIcon {
  color: #00ef99;
  font-size: 7.5rem;
  font-style: normal;
  line-height: 100%; /* 7.5rem */
  letter-spacing: -0.5625rem;
  margin-left: 8rem;
  margin-top: 5.09rem;
  width: 7.5rem;
  height: 7.5rem;
}
/* result */

#resultBackground {
  display: none;
  overflow-y: hidden;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 200%;
  z-index: 1;
  left: 0;
  top: 0;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #418edd,
    white
  ); /* 초기 그라데이션: 파란색에서 흰색으로 */
  animation: gradientAnimation 5s linear infinite; /* 무한 반복 설정 */
}

/* #result-container:nth-child(2) {
  animation-delay: 7.5s; /* 두 번째 content가 5초 지연됨 */

#result-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 0.5rem black solid;
  border-right: 0.5rem black solid;
  border-top: 0.5rem black solid;
  width: 80%;
  height: 100%;
  background-color: white;
  animation: scrollAnimation 30s linear infinite;
}

.result {
  width: 100%;
  color: #000;
  font-size: 3.75rem;
  font-style: normal;
  line-height: 100%; /* 3.75rem */
  letter-spacing: -0.1875rem;
  text-align: center;
  height: 8.06rem;
  border-bottom: 0.5rem black solid;
  padding-top: 4rem;
  font-family: "MinSans-Regular";
}

#logo {
  font-size: 10rem;
  height: 15rem;
  padding-top: 8rem;
}
#resultNum {
  font-size: 15.625rem;
  height: 22.75rem;
  padding-top: 5rem;
}

#resultContents-container {
  width: 100%;
  color: #000;
  font-size: 3.75rem;
  font-style: normal;
  line-height: 100%; /* 3.75rem */
  letter-spacing: -0.1875rem;
  text-align: center;
  border-bottom: 0.5rem black solid;
  padding-top: 4rem;
  padding-bottom: 8rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

#resultContents {
  color: #000;
  text-align: center;
  font-family: "SunBatang-Bold";
  font-size: 4.3rem;
  font-style: normal;
  font-weight: 300;
  line-height: 160%; /* 6.2rem */
  padding-top: 6.12rem;
  padding-bottom: 6.12rem;
  padding-left: 7rem;
  padding-right: 7rem;
}

#badgeResultTable {
  text-align: center;
  font-size: 3.75rem;
  font-style: normal;
  line-height: 200%;
}

tr {
  height: 17rem;
  border-bottom: 0.5rem solid #000;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

#iconResultImage {
  width: 12.5rem;
  height: 12.5rem;
  flex-shrink: 0;
  border: 0.5rem solid #000;
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
  margin-left: 2rem;
  margin-right: 2rem;
  background-size: cover; /* 배경 이미지를 div에 맞추기 */
  background-repeat: no-repeat; /* 이미지 반복 없음 */
  background-position: center; /* 이미지를 가운데 정렬 */
}

#resultEndButton {
  position: absolute;
  z-index: 3;
  bottom: 5vh;
  color: black;
  border: 0.5rem solid #000;
  background: #00ef99;
  width: 90%;
  margin-left: 10rem;
  margin-right: 10rem;
  height: 15rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
#resultEndTitle {
  margin-right: 1.9rem;
  margin-top: 2.22rem;
  margin-bottom: 2.66rem;
  width: 96.875rem;
  word-break: keep-all;
  font-size: 4.75rem;
  color: #000;
  font-family: "SunBatang-Bold";
  font-style: normal;
  line-height: 140%;
  letter-spacing: -0.2375rem;
}

#currentBadgeImage{
  display: block;
  width: 15rem;
  height: 15rem;
  margin-left: -2rem;
  margin-top: -2rem;
}

#tissueStamp{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}


/* media-query */
@media (orientation: portrait) {
  #total-container {
    width: 100%;
    height: 100%;
  }
  
  body {
    background-color: white;
  }
  html {
    font-size: 8px;
  }
  #resultEndButton {
    
  }

}
/* iPad를 대상으로 하는 미디어 쿼리 */
@media only screen
  and (min-device-width: 768px)
  and (max-device-width: 1024px) {
    /* iPad에 대한 스타일 지정 */
    #img-container {
      height: 39vh;
    }
    body {
      background-color: black;
    }
    html {
      font-size: 6px;
    }
    #resultEndButton {
      
    }
}

@media (orientation: landscape) {
  #total-container {
    width: 600px;
    height: 100vh;
  }
  body {
    background-color: black;
  }
  #resultBackground{
    width: 600px;
  }
  #resultEndButton {
    width: 550px;
  }
  html {
    font-size: 4px;
  }
}

@keyframes gradientAnimation {
  0% {
    background: linear-gradient(
      to bottom,
      #418edd,
      white
    ); /* 초기 그라데이션: 파란색에서 흰색으로 */
  }
  50% {
    background: linear-gradient(
      to bottom,
      #fbe853,
      white
    ); /* 그라데이션 변경: 노란색에서 흰색으로 */
  }
  100% {
    background: linear-gradient(
      to bottom,
      #418edd,
      white
    ); /* 복귀: 파란색에서 흰색으로 */
  }
}

@keyframes scrollAnimation {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(
      -100%
    ); /* 스크롤 박스 높이의 음수값을 사용하여 위로 이동 */
  }
}
