/*******************************************************
  메인 메뉴 화면 시작
********************************************************/
#wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #333;
  font-size: 10px;
}

#wrapper .main_title {
  margin-bottom: 4.7rem;
  font-size: 2.4rem;
  line-height: 2.4rem;
  color: #565b63;
  font-weight: 500;
}

#wrapper .main_ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: 28.8rem;
  margin: 0 auto;
  list-style: none;
}

#wrapper .main_ul li {
  position: relative;
  width: 14rem;
  height: 13.2rem;
  padding: 1.2rem 1.6rem;
  border-radius: 1.6rem;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

#wrapper .main_ul .img1 {
  background-color: #e1eeff;
  color: #2d8cff;
  background-image: url(../images/icon_id.png);
}

#wrapper .main_ul .img2 {
  background-color: #d2faeb;
  color: #13bc73;
  background-image: url(../images/icon_passport.png);
}

#wrapper .main_ul .img3 {
  background-color: #dedcff;
  color: #986eff;
  background-image: url(../images/icon_foreigner.png);
}

#wrapper .btn_wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 4rem;
  font-size: 1.6rem;
  font-weight: 400;
}

#wrapper .btn_wrap button {
  color: #565b63;
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2rem;
  background-color: white;
  border: 1px solid #c1c6cc;
  padding: 0.6rem 1.8rem 0.6rem 1.6rem;
  border-radius: 10rem;
  cursor: pointer;
}

#wrapper button .icon.check {
  display: inline-block;
  width: 1.4rem;
  height: 1rem;
  margin-right: 0.6rem;
  background-image: url(../images/icon_check.png);
}

#wrapper .footer_logo {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 1rem;
  background-image: url(../images/inzi_logo.png);
}

/* 체크박스 disable 되면 옆의 문자로 함께 gray로 변경 */
#wrapper input[type="checkbox"]:disabled + span {
  border-color: #eee;
  color: #ccc;
}

@media screen and (min-width: 600px) and (max-width: 1100px) {
  #wrapper .main_ul {
      width: 100%;
      justify-content: center;
      
  }

  #wrapper .btn_wrap {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    margin-top: 3rem;
  }
}

/*******************************************************
  메인 메뉴 화면 종료
********************************************************/

/*******************************************************
  결과 화면 시작
********************************************************/
#resultContainer {
  position:absolute;
  display: none;
  width:100%;
  height: 100%;
  color: #333;
  letter-spacing: -0.6px;
  /* //font-size:10px;
  //max-height: 100vh;
  //background-color:#242424;*/
  background-color:white;
  z-index: 850;
}

#resultContainer .title {
  position: relative;
  width: 100%;
  height: 4.8rem;
  border-bottom: 1px solid #c1c6cc;
  line-height: 4.8rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 500;
  color: #222222;
}

#resultContainer .x_btn {
  position: absolute;
  right: 0.8rem;
  top: 0.4rem;
  display: inline-block;
  width: 4rem;
  height: 4rem;
  background-image: url(../images/btn_icon.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
  cursor: pointer;
}

#resultContainer .flex:has(.id_img_wrap) {
  flex-direction: column;
  height: calc(100% - 4.8rem - 7.2rem);
}

#resultContainer .flex {
  display: flex;
}

#resultContainer .id_img_wrap {
  display: flex;
  flex-direction:row;
  gap:4px;
  align-items: center;
  /* //justify-content: center; */
  overflow-x:scroll;
  overflow-y: hidden;
  height: 24rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* iOS에서 부드러운 스크롤을 위해 추가 */
  -ms-overflow-style: none; /* IE, Edge */
  scrollbar-width: none; /* Firefox */
}

#resultContainer .id_img_wrap::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

#resultContainer .id_img {
  /* //width: 26rem;
  //height: 16.5rem; */
  border-radius: 0.6rem;
  text-align: center;
  width:100%;
  /* //background-color: rgb(240, 240, 240); */
  flex: 0 0 100%;
  scroll-snap-align: start;
  -ms-user-select: none; /* IE, Edge */
  -moz-user-select: -moz-none; /* Firefox */
  -khtml-user-select: none; /* KHTML */
  -webkit-user-select: none; /* Chrome, Safari */
  -webkit-touch-callout: none; /* iOS */
  user-select: none;
}

#resultContainer .id_img_wrap canvas {
  /* //width: 30rem; */
  height: 19.3rem;
  object-fit: contain;
}

#resultContainer .id_table_wrap {
  width: calc(100% - 2.4rem);
  max-height: calc(100% - 21.3rem);
  margin: 0 auto;
  overflow-y: auto;
  /* border-bottom: 1px solid #e9e9e9; */
}


#resultContainer .id_table_wrap dl {
  display: flex;
  align-items: center;
  border-top: 1px solid #e9e9e9;
}

#resultContainer .id_table_wrap dl:last-child {
  border-bottom: 1px solid #e9e9e9;
}

#resultContainer .id_table_wrap dt {
  width: 13.6rem;
  height: 4rem;
  line-height: 4rem;
  padding-left: 1.4rem;
  font-size: 1.6rem;
  color: #565b63;
  overflow-x: auto;
}

#resultContainer .id_table_wrap dd {
  font-size: 1.6rem;
  /* overflow-x: auto; */
  /* //color: #222222; */
}

#resultContainer .id_btn_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 7.2rem;
}

#resultContainer .valid_item {
  color: #222222;
  /* //color:#d2be90; */
  width: calc(100% - 13.6rem);
  overflow-wrap: break-word;
}
#resultContainer .invalid_item {
  color:rgb(191, 118, 133);
}


#resultContainer .id_btn_wrap button {
  width: 11rem;
  height: 4.8rem;
}

#resultContainer button.blue {
  background-color: #2d8cff;
  border: 1px solid #2d8cff;
  color: white;
}

#resultContainer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid #c1c6cc;
  color: #2d8cff;
  padding: 0.6rem 1.8rem 0.6rem 1.6rem;
  border-radius: 10rem;
  font-size: 1.6rem;
  line-height: 2rem;
  font-weight: 400;
  cursor: pointer;
}

/* pagination */
.pagination_wrap{
  display: flex;
  justify-content: center;
}

.pagination_wrap .page {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
}

.pagination_wrap .page.active {
  background-color: #333;
}

@media screen and (min-width: 600px) and (max-width: 1100px) {
  #resultContainer .flex:has(.id_img_wrap) {
      display: grid;
      grid-template-columns: auto 50%;
      grid-template-rows: auto auto;
      /* gap: 2.4rem; */
      /* justify-content: end; */
      /* padding: 2.4rem; */
      /* padding-bottom: 1.2rem; */
      /* height: calc(100% - 6rem); */
      height: 100%;
      width: 100%;
      margin: 1rem 0 1rem 0;
      background-color: white;
  }

  #resultContainer .id_img_wrap {
    grid-column: 1;
    grid-row: 1;
    /* width: 45rem; */
    /* height: 100%; */
    align-self: end;
    /* padding-bottom: 1.2rem; */
  }
  #resultContainer .pagination_wrap {
    grid-column: 1;
    grid-row: 2;
  }
  #resultContainer .id_table_wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #resultContainer .id_btn_wrap {
    height: 6rem;
    align-items: start;
  }
  #resultContainer .id_btn_wrap button {
    width: 19rem;
  }
  #resultContainer .id_btn_wrap button.blue {
    /* width: 38rem; */
    width: 19rem;
  }
}

@media screen and (min-width: 600px) and (max-width: 1100px) and (min-height: 0px) and (max-height: 400px) {
  #resultContainer .flex:has(.id_img_wrap) {
    grid-template-rows: 90% auto;
  }
}
/*******************************************************
  결과 화면 종료
********************************************************/

/*******************************************************
  외부 브라우저 사용 시 화면 시작
********************************************************/

#toExternalBrowser {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
}

.inapp_wrap #inappDesc {
  margin-top: 46vh;
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
}

/*******************************************************
  외부 브라우저 사용 시 화면 종료
********************************************************/