@font-face {
  font-family: "Spoqa Han Sans";
  font-weight: 700;
  src: local("Spoqa Han Sans Bold"), url("../fonts/SpoqaHanSans/SpoqaHanSansBold.woff2") format("woff2"),
    url("../fonts/SpoqaHanSans/SpoqaHanSansBold.woff") format("woff"), url("../fonts/SpoqaHanSans/SpoqaHanSansBold.ttf")
    format("truetype");
}

@font-face {
  font-family: "Spoqa Han Sans";
  font-weight: 400;
  src: local("Spoqa Han Sans Regular"), url("../fonts/SpoqaHanSans/SpoqaHanSansRegular.woff2") format("woff2"),
    url("../fonts/spoqa-han-sans/SpoqaHanSans/SpoqaHanSansRegular.woff") format("woff"),
    url("../fonts/spoqa-han-sans/SpoqaHanSans/SpoqaHanSansRegular.ttf") format("truetype");
}

@font-face {
  font-family: "Spoqa Han Sans";
  font-weight: 300;
  src: local("Spoqa Han Sans Light"), url("../fonts/SpoqaHanSans/SpoqaHanSansLight.woff2") format("woff2"),
    url("../fonts/SpoqaHanSans/SpoqaHanSansLight.woff") format("woff"),
    url("../fonts/SpoqaHanSans/SpoqaHanSansLight.ttf") format("truetype");
}

@font-face {
  font-family: "Spoqa Han Sans";
  font-weight: 100;
  src: local("Spoqa Han Sans Thin"), url("../fonts/SpoqaHanSans/SpoqaHanSansThin.woff2") format("woff2"),
    url("../fonts/SpoqaHanSans/SpoqaHanSansThin.woff") format("woff"), url("../fonts/SpoqaHanSans/SpoqaHanSansThin.ttf")
    format("truetype");
}

html {
  touch-action: pan-y;
  -ms-user-select: none;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;

  -ms-content-zooming: none;
  -ms-touch-action: pan-x pan-y;
}

div {
  -ms-user-select: none;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

a:active,
a:focus {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -ms-user-select: none;
}

.hidden {
  display: none !important;
}

body {
  font-family: "Spoqa Han Sans", sans-serif;
  font-weight: 300;
  word-break: break-word;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #f9f9f9;
}

div#errorMsg p {
  color: #f00;
}

video {
  background: #222;
  height: 100vh;
  width: 100%;
  object-fit: fill;
  /* iOS 카메라 멈춤 방지를 위한 추가 속성 */
  -webkit-playsinline: true;
}

/* 사용자 조절 패널 스타일 개선 */
#div_user_controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.control-panel {
  background: rgba(0, 0, 0, 0.9); /* 배경 더 진하게 */
  padding: 20px;
  border-radius: 15px;
  color: white;
  min-width: 280px; /* 너비 증가 */
  max-height: 80vh; /* 최대 높이 설정 */
  overflow-y: auto; /* 스크롤 가능 */
}

/* 컨트롤 섹션 구분 */
.control-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.control-section:last-of-type {
  border-bottom: none;
}

.control-section h4 {
  margin: 0 0 15px 0;
  color: #2caeeb;
  font-size: 14px;
  font-weight: bold;
}

.control-item {
  margin-bottom: 15px;
}

.control-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #ccc;
}

.control-item input[type="range"] {
  width: 100%;
  margin-bottom: 5px;
}

.control-item span {
  font-size: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

#toggle_controls {
  background: #175292;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  margin-top: 10px;
  position: fixed;
  top: 10px;
  right: 10px;
  width: auto;
  z-index: 10003;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#toggle_controls:hover {
  background: #1a5ba3;
}

#container {
  position: absolute;
  color: #fff;
  top: 8rem;
  background-color: black;
}

#div_lens_area {
  position: fixed;
  --width: 100%;
  width: var(--width);
  min-height: 100vh;
  left: 50%;
  transform: translate(-50%, -10%);
}

#div_lens_area .div_lens_set {
  --width: 100%;
  width: var(--width);
  min-height: 100vh;
}

#div_lens_area .div_lens_set img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 🔴 고정된 기본 렌즈 이미지 스타일 (움직이지 않음) */
#img_lens_off_point {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 고정 위치 유지 - transform 변경 없음 */
}

/* 🔴 자이로 센서에 반응하는 빨간 렌즈 이미지 스타일 */
#img_lens_off_point_red {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 회전 중심점을 이미지 중앙으로 설정 */
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  z-index: 10; /* 기본 렌즈 이미지 위에 표시 */
}

.zoom-in-image {
  animation: ZoomIn 3s;
  -webkit-animation: ZoomIn 3s;
  -moz-animation: ZoomIn 3s;
  -o-animation: ZoomIn 3s;
  -ms-animation: ZoomIn 3s;
}

@keyframes ZoomIn {
  0% {
    transform: scale(0, 0);
  }

  100% {
    transform: scale(1, 1);
  }
}

.fade-in-image {
  animation: fadeIn 1s;
  -webkit-animation: fadeIn 1s;
  -moz-animation: fadeIn 1s;
  -o-animation: fadeIn 1s;
  -ms-animation: fadeIn 1s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fade-out-image {
  animation: fadeOut 1s;
  -webkit-animation: fadeOut 1s;
  -moz-animation: fadeOut 1s;
  -o-animation: fadeOut 1s;
  -ms-animation: fadeOut 1s;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.fade-in-image9 {
  animation: fadeIn9 1s;
  -webkit-animation: fadeIn9 1s;
  -moz-animation: fadeIn9 1s;
  -o-animation: fadeIn9 1s;
  -ms-animation: fadeIn9 1s;
}

@keyframes fadeIn9 {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.9;
  }
}

.div_popup_back {
  position: absolute;
  width: 100%;
  height: 100vh;
  background-color: #243057e0;
  z-index: 9999;
}

.div_popup {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 40%;
  width: 70%;
  height: 25%;
  background-color: #fff;
  border-radius: 2px;
  z-index: 9999999;
}

.div_popup_area {
  width: 100%;
  text-align: center;
  height: 100%;
  display: grid;
  place-self: center;
  grid-template-rows: 70%;
}

.div_popup_msg {
  font-family: "Spoqa Han Sans";
  font-size: 0.8rem;
  place-self: center;
  width: 90%;
  word-break: keep-all;
}

.div_popup_btn {
  display: table;
  width: 100%;
  height: 100%;
}

.div_popup_no,
.div_popup_yes {
  font-family: "Spoqa Han Sans";
  width: 50%;
  place-self: center;
  font-size: 1rem;
  font-weight: bold;
}

.div_popup_no {
  background-color: #e1e1e1;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
}

.div_popup_yes {
  background-color: #175292;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
  color: #fff;
}

.div_default_target {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 999;
  transform: scale(1.0, 1.0);
  top: 0;
}

.div_title {
  width: 100%;
  padding: 2rem 0 0 0;
}

.div_title_back {
  text-align: center;
  position: absolute;
  left: 4%;
  margin: 2.5% 0;
  z-index: 9999;
}

.div_title_back img {
  width: 50%;
}

.div_title_img {
  text-align: center;
}

.div_title_img img {
  width: 70%;
}

.div_bottom_area {
  text-align: center;
  background: #f9f9f9;
  padding: 1rem 0;
  display: flex;
  position: fixed;
  width: 100%;
  bottom: 0;
  height: 2rem;
  z-index: 9999;
}

.div_bottom_area:after {
  content: "KR_2025_607";
  position: absolute;
  right: 0.5rem;
  top: -1.9em;
  color: #fff;
  font-size: 12px;
}

.div_bottom_area .div_bottom_code {
  position: absolute;
  top: -2rem;
  left: 1rem;
  color: #fff;
  font-weight: bold;
  font-family: "Spoqa Han Sans", sans-serif;
}

.div_bottom_area a {
  width: 25%;
  align-items: center;
  justify-content: center;
  display: inherit;
}

.div_bottom_area > a > div {
  height: 100%;
}

.div_bottom_area a div > img {
  height: 100%;
  object-fit: contain;
  align-items: center;
  justify-content: center;
}

.div_bottom_area a div > img.img_btn4 {
  height: 80%;
}

.div_title_under,
.div_lens_text,
.div_script {
  font-weight: bold;
  color: #fff;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

.div_lens_text {
  position: absolute;
  margin: 0 auto;
  top: 20%;
}

.div_script {
  position: absolute;
  margin: 0 auto;
  top: 15%;
}

.div_script_text {
  background-color: #243057ce;
  padding: 0.5rem 1rem;
  width: 60%;
  margin: 0 auto;
  font-size: 1rem;
  word-break: keep-all;
}

.div_script_next {
  width: 65%;
  padding: 0.5rem;
  margin: 0 auto;
  text-align: right;
}

.div_script_next img {
  width: 2rem;
}

.div_default_acuvue {
  background: 100% / 100% no-repeat url(../img/acuvue/img_acuvue_background.png);
  overflow: hidden;
  background-size: cover;
  width: 100vw;
  height: 100vh;
}

.div_acuvue_body {
  width: 100%;
  height: 90%;
  display: contents;
}

.div_acuvue_title {
  margin: 5%;
  height: 5%;
}

.div_acuvue_title > img {
  margin: 0 auto;
  display: block;
  height: 80%;
}

.div_acuvue_box {
  background-color: #fff;
  width: auto;
  height: 75%;
  margin: 5%;
  border-radius: 2rem;
  display: grid;
  text-align: center;
  font-family: "Spoqa Han Sans", sans-serif;
}

.div_acuvue_box > div {
  place-self: center;
}

.div_acuvue_box_title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #175393;
  margin-top: 1rem;
}

.div_acuvue_box_img {
  width: 100%;
}

.div_acuvue_box_img img {
  width: 100%;
}

.div_acuvue_box_btns {
  width: 70%;
  margin: 0 auto;
}

.div_acuvue_box_btn1 {
  background: center / 100% no-repeat url(../img/acuvue/btn_acuvue01.png);
  height: 6vh;
  margin: 0 0 3vh 0;
  border-radius: 1rem;
  box-shadow: 3px 4px 10px 4px rgb(128 128 128 / 20%);
  background-size: cover;
}

.div_acuvue_box_btn2 {
  background: center / 100% no-repeat url(../img/acuvue/btn_acuvue02.png);
  height: 6vh;
  margin: 0 0 3vh 0;
  border-radius: 1rem;
  box-shadow: 3px 4px 10px 4px rgb(128 128 128 / 20%);
  background-size: cover;
}

.div_acuvue_box_btn3 {
  background: center / 100% no-repeat url(../img/acuvue/btn_acuvue03.png);
  height: 6vh;
  margin: 0 0 3vh 0;
  border-radius: 1rem;
  box-shadow: 3px 4px 10px 4px rgb(128 128 128 / 20%);
  background-size: cover;
}

.div_acuvue_box_tail {
  color: #929292;
  font-size: 10px;
  transform: scale(0.8);
}

.tuto_pop {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 9999;
}

.tuto_pop_back {
  width: 100%;
  height: 100%;
  display: grid;
  background-color: #243057e0;
}

.tuto_pop_btns {
  width: 100%;
  position: absolute;
  display: flex;
  top: 40%;
  height: 10%;
  justify-content: space-between;
}

.tuto_pop_before,
.tuto_pop_next {
  width: 25%;
  height: 100%;
  text-align: center;
  padding: 3rem 0;
}

.tuto_pop_before img,
.tuto_pop_next img {
  height: 80%;
}

.ar_img {
  place-self: center;
  height: 80vh;
  width: 95%;
  object-fit: contain;
}

.hidden {
  display: none;
}

.div_default_test {
  height: 100vh;
  width: 100%;
  display: inline-block;
  background-color: #f6f6f6;
  display: inline-block;
  font-family: "Spoqa Han Sans";
}

.div_page_title {
  text-align: center;
  margin: 1.5rem 0rem;
  color: #175393;
  font-weight: bold;
  font-size: 1.2rem;
  height: 2rem;
  width: 100%;
  object-fit: contain;
  vertical-align: middle;
}

.div_page_title .div_page_title_back {
  position: absolute;
  width: 1.5rem;
  margin-left: 2rem;
}

.div_page_title .div_page_title_back img {
  width: 100%;
}

.div_page_body {
  height: calc(100vh - 4rem);
  text-align: center;
  color: #8d8d8d;
}

.div_page_body .div_page_img {
  height: 70vw;
  width: 100%;
  display: grid;
}

.div_page_body .div_page_img .div_page_img_back {
  background-color: #fff;
  width: 70vw;
  height: 70vw;
  place-self: center;
  display: grid;
}

.div_page_body .div_page_img .div_page_img_back img {
  width: 90%;
  margin: auto;
  place-self: center;
}

.div_page_body .div_page_text1 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0;
}

.div_page_body .div_page_text1 span {
  color: #2caeeb;
}

.div_page_body .div_page_text2 {
  font-size: 0.8rem;
  font-weight: 300;
}

.div_page_body .div_page_text3 {
  font-size: 1rem;
  color: #000;
  font-weight: 600;
  margin: 1rem 0;
}

.div_page_body .div_page_btns {
  height: 10%;
  max-height: 50px;
  width: 90%;
  display: flex;
  justify-content: space-evenly;
  margin: 0 auto;
}

.div_page_body .div_page_btns .div_page_btn_yes,
.div_page_body .div_page_btns .div_page_btn_no {
  width: 40%;
  height: 70%;
  max-height: 45px;
  box-shadow: 1px 3px 4px 2px rgb(128 128 128 / 15%);
  border-radius: 5px;
  place-self: center;
}

.div_page_body .div_page_btns .div_page_btn_yes {
  background: 100% / 100% no-repeat url(../img/test/btn_test_toggle01_off.png);
}

.div_page_body .div_page_btns .div_page_btn_yes:active {
  background: 100% / 100% no-repeat url(../img/test/btn_test_toggle01_on.png);
}

.div_page_body .div_page_btns .div_page_btn_no {
  background: 100% / 100% no-repeat url(../img/test/btn_test_toggle02_off.png);
}

.div_page_body .div_page_btns .div_page_btn_no:active {
  background: 100% / 100% no-repeat url(../img/test/btn_test_toggle02_on.png);
}

.div_page_body .div_page_navi {
  display: flex;
  justify-content: space-evenly;
  width: 30%;
  margin: 0.5rem auto;
}

.div_page_body .div_page_point img {
  width: 50%;
}

.div_default_pop {
  position: absolute;
  background-color: #0006;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  display: grid;
}

.div_default_pop .div_pop_back {
  width: 80vw;
  height: 40vh;
  place-self: center;
  background-color: #243057;
  border-radius: 7%;
}

.div_default_pop .div_pop_back .div_pop_back_img {
  width: 100%;
  height: 100%;
  display: block;
  background: 120% 100px / 80% no-repeat url(../img/test/PoseShot_01.png);
}

.div_default_pop .div_pop_back .div_pop_back_img .div_pop_close {
  width: 7%;
  margin: 0 1rem 0 auto;
  padding-top: 1rem;
}

.div_default_pop .div_pop_back .div_pop_back_img .div_pop_close img {
  width: 100%;
  object-fit: contain;
}

.div_default_pop .div_pop_back .div_pop_back_img .div_pop_txt {
  color: #fff;
  margin-left: 8%;
}

.div_page_img_back_result {
  width: 100vw;
}

.div_page_img_back_result img {
  width: 100%;
}

.div_page_result {
  display: flex;
  margin-left: 3rem;
}

.div_page_result .div_page_result_check {
  width: 1rem;
}

.div_page_result .div_page_result_check img {
  width: 100%;
}

.div_page_result .div_page_result_text {
  display: grid;
  text-align: left;
  margin-left: 0.5rem;
}

.div_page_result .div_page_result_text .div_page_result_text_title {
  color: #25adeb;
  font-weight: 600;
}

.div_page_result .div_page_result_text .div_page_result_text_txt {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.div_page_result3 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 1.5rem 0;
}

.div_page_result_btns {
  height: 10%;
  max-height: 50px;
  width: 90%;
  display: flex;
  justify-content: space-evenly;
  margin: 0 auto;
}

.div_page_result_btns.lens_pict_check {
  height: 80px;
  width: inherit;
}

.div_page_result_btns.lens_pict_check {
  margin: 10px auto;
}

.div_page_result_btns .div_page_result_btn {
  width: 100%;
  height: 100%;
  max-height: 45px;
  box-shadow: 1px 3px 4px 2px rgb(128 128 128 / 15%);
  border-radius: 5px;
  place-self: center;
  background: 100% / 100% no-repeat url(../img/test/btn_01.png);
}

.div_default_tuto,
.div_default_tuto_back {
  height: 100vh;
  width: 100vw;
  background-color: #182039b3;
  display: grid;
  position: absolute;
}

.div_default_tuto .div_default_tuto_back img {
  width: 70%;
  object-fit: contain;
  place-self: center;
  margin-top: -20%;
}

.div_ios_title {
  position: absolute;
  display: inline-flex;
  width: 100%;
  justify-content: space-evenly;
  margin-top: 2rem;
}

.div_ios_title a {
  width: 30%;
  text-align: center;
  margin: 1rem 0;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 900;
  color: #fff;
}

.div_ios_title a img {
  width: 100%;
  box-shadow: 3px 4px 10px 4px rgb(128 128 128 / 20%);
}

.div_bottom_key {
  color: #f9f9f9;
  top: 0;
  margin-top: -2rem;
  position: absolute;
  margin-left: 1rem;
  font-weight: 500;
}

.div_popup_gamma {
  position: absolute;
  z-index: 999;
  width: 100%;
  height: 100%;
  display: grid;
  background-color: #0006;
  opacity: 0.9;
  z-index: 999999999;
}

.div_popup_gamma .div_popup_gamma_back {
  width: 70%;
  height: 40%;
  place-self: center;
  display: grid;
  border-radius: 10px;
  background-color: #fff;
}

.div_popup_gamma .div_popup_gamma_back img {
  width: 70%;
  place-self: center;
}

.div_popup_gamma .div_popup_gamma_back .div_popup_msg_gamma {
  word-break: keep-all;
  text-align: center;
  color: #185493;
  font-size: 1rem;
  font-weight: bold;
}

.div_body_exp {
  background-color: #f9f9f9;
}

.div_title_exp_bts {
  width: 70%;
  margin: 0 auto;
  display: flex;
}

.div_title_exp_bts .div_title_exp_bts_nansi {
  margin-right: 5px;
}

.div_title_exp_bts .div_title_exp_bts_nansi,
.div_title_exp_bts .div_title_exp_bts_geunsi {
  width: 50%;
}

.div_title_exp_bts .div_title_exp_bts_nansi img,
.div_title_exp_bts .div_title_exp_bts_geunsi img {
  width: 100%;
  display: none;
}

.div_title_exp_bts .div_title_exp_bts_nansi.on img.nansi_on {
  display: block;
}

.div_title_exp_bts .div_title_exp_bts_nansi:not(.on) img.nansi_off {
  display: block;
}

.div_title_exp_bts .div_title_exp_bts_geunsi.on img.geunsi_on {
  display: block;
}

.div_title_exp_bts .div_title_exp_bts_geunsi:not(.on) img.geunsi_off {
  display: block;
}

.div_title_exp_under {
  margin-top: 5px;
}

.div_title_exp_under .div_title_exp_under_test {
  width: 100%;
  text-align: center;
  display: grid;
}

.div_title_exp_under a {
  text-decoration-line: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}

.div_title_exp_under .div_title_exp_under_test .div_title_exp_under_text {
  width: 70%;
  height: 35px;
  place-self: center;
  color: #fff;
  font-weight: 500;
  object-fit: contain;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 2rem;
  text-decoration: none !important;
}

.div_title_exp_under .div_title_exp_under_test img {
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.curr_video {
  height: 0px;
}

#div_range {
  display: grid;
  position: absolute;
  width: 100%;
  bottom: 15%;
}

#div_range .div_range_inner {
  place-self: center;
  width: 80%;
}

#div_range .div_range_inner .div_range_txt,
#div_range .div_range_inner .div_range_txt_e {
  display: flex;
  color: #fff;
  font-weight: 600;
}

#div_range .div_range_inner .div_range_txt_e {
  place-content: center;
  white-space: nowrap;
}

#div_range .div_range_inner .div_range_txt div {
  width: 33.33%;
  text-align: left;
}

#div_range .div_range_inner .div_range_txt div:nth-child(1) {
  width: 33.33%;
  text-align: left;
}

#div_range .div_range_inner .div_range_txt div:nth-child(2) {
  width: 33.33%;
  text-align: center;
}

#div_range .div_range_inner .div_range_txt div:nth-child(3) {
  width: 33.33%;
  text-align: right;
}

#div_range .div_range_inner input[type="range"] {
  width: 100%;
}

.curr_video {
  height: 0px;
}

.curr_canvas {
  width: auto;
  width: -webkit-fill-available;
  height: 100%;
  position: absolute;
  object-fit: cover;
  transform: scale(1.2, 1.2);
}

.div_range_inner input {
  -webkit-appearance: none;
  height: 3px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  border: none;
  width: 100%;
}
.div_range_inner input::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: #175292;
  border-radius: 50%;
  border: 1px solid #009fe8;
  cursor: pointer;
}

#div_person_area {
  position: absolute;
  width: 300px;
  height: 100px;
  transform: translate(calc(50vw - 50%));
  top: 30px;
}

#div_person_area #img_parson,
#div_person_area #img_parson_left,
#div_person_area #img_parson_right,
#div_person_area #img_parson_left_more,
#div_person_area #img_parson_right_more {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.div_switch {
  position: absolute;
  bottom: 6rem;
  transform: translate(calc(50vw - 50%));
}

.switch_c_onoff {
  display: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.switch_c_onoff:focus {
  outline: none;
}

.switch_c_onoff + label {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
  position: relative;
  width: 130px;
  height: 50px;
  background: linear-gradient(
    9079deg,
    rgb(153 153 153) 0%,
    rgb(153 153 153) 45%,
    rgb(27 136 245) 68%,
    rgb(27 136 245) 100%
  );
  background-size: 650px 100%;
  border-radius: 70px;
  padding: 7px;
  cursor: pointer;
  transition: all 500ms ease;
  box-shadow: 0 0px 10px rgb(0 0 0 / 20%) inset;
}

.switch_c_onoff + label:after {
  content: "0.75";
  text-align: center;
  line-height: 55px;
  font-family: "Cabin", sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #dedede;
  letter-spacing: 2px;
  word-break: keep-all;
  margin-left: 60px;
}
.switch_c_onoff + label:before {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  content: "";
  width: 53px;
  height: 53px;
  position: absolute;
  left: 6px;
  top: 6px;
  border-radius: 100%;
  background: #fff;
  text-transform: uppercase;
  transition: left 500ms ease, color 500ms ease, transform 150ms ease;
  background: url(../img/gyro/btn_asd02.png) center center no-repeat;
  background-size: contain;
}
.switch_c_onoff + label:active:before {
  transform: scale(0.95);
}

.switch_c_onoff:checked + label {
  background-position-x: -350px;
}
.switch_c_onoff:checked + label:before {
  content: "";
  left: 85px;
  background: url(../img/gyro/btn_asd.png) center center no-repeat;
  background-size: contain;
}

.switch_c_onoff:checked + label:after {
  content: "1.75";
  color: #fff;
  margin-left: 10px;
}

.close {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 50px;
  height: 50px;
  font-size: 0;
}
.close:before,
.close:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 25px;
  background-color: #fff;
  transform: rotate(45deg) translate(-50%, -50%);
  transform-origin: top left;
  content: "";
}
.close:after {
  transform: rotate(-45deg) translate(-50%, -50%);
}

#div_lens_tuto {
  z-index: 999999;
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #243057e0;
}

#div_lens_tuto #div_lens_tuto_body {
  display: grid;
  width: 100%;
  height: 100%;
}

#div_lens_tuto #div_lens_tuto_body img {
  width: 90%;
  max-height: 80%;
  object-fit: contain;
  place-self: center;
}

#div_lens_pict {
  position: fixed;
  height: 100%;
  width: 100%;
  margin: auto 0;
}

#div_lens_pict_body {
  display: grid;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-content: center;
  gap: 20px;
}

#div_lens_pict_body .pic_item1 {
  width: 150px;
  height: 43.5px;
  margin: 0 auto;
}

#div_lens_pict_body .pic_item2 {
  width: 288px;
  height: 320.5px;
  margin: 0 auto;
}

#div_lens_pict_body .pic_item3 {
  height: 100px;
  width: 100%;
  margin: 10px auto;
  word-break: keep-all;
  text-align: center;
}

#div_lens_pict_body .pic_item3_in {
  color: #fff;
  font-weight: 400;
  width: 95%;
  margin: 3px auto 0 auto;
  text-align: center;
}

#div_lens_pict_body .pic_item3_in .red {
  color: #f00;
}

#div_lens_gif {
  position: fixed;
  height: 100%;
  width: 100%;
  margin: auto 0;
}

#div_lens_gif_body {
  display: grid;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-content: center;
}

#div_lens_gif_body .gif_item1 {
  width: 100%;
  object-fit: contain;
  transform: scale(1.3, 1.3) translate(0, -10%);
}

.swing3 {
  animation: swing3 ease-in-out 1s infinite alternate;
  transform-origin: bottom;
}

.swing6 {
  animation: swing6 ease-in-out 1s infinite alternate;
  transform-origin: bottom;
}

#div_person_area,
#div_lens_area,
#div_lens_pict,
#div_lens_gif {
  z-index: 999;
}

#div_switch,
#div_asd_text {
  z-index: 9999;
}

#div_asd_text {
  position: absolute;
  bottom: 11rem;
  transform: translate(calc(50vw - 50%));
  color: #fff;
  height: 2.4rem;
  width: 80%;
  margin: 0 auto;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
}

#div_asd_blur {
  height: 100%;
  background: rgb(0 0 0 / 60%);
  z-index: 9999;
  display: grid;
  justify-content: center;
  align-content: center;
  position: fixed;
  --width: 100%;
  width: var(--width);
  min-height: 100vh;
  left: 50%;
  transform: translate(-50%, -10%);
}

#div_asd_blur span {
  color: #fff;
  text-align: center;
  justify-content: center;
  font-weight: 400;
  font-size: 1.3rem;
}

/*홈 버튼 숨기기*/
.div_bottom_area a.btn_bottom_home {
  display: none;
}

.div_bottom_area a {
  width: 33.33333%;
}

@keyframes swing3 {
  0% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(3deg);
  }
}

@keyframes swing6 {
  0% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(-6deg);
  }
}

@media all and (max-height: 720px) {
  .div_default_test {
    height: calc(100vh - 5% - 2rem);
    overflow-y: auto;
  }

  .div_default_tuto .div_default_tuto_back img {
    width: 65%;
  }

  .div_popup_msg {
    font-size: 0.7rem;
  }

  .div_popup_no,
  .div_popup_yes {
    font-size: 0.8rem;
  }

  .tuto_pop,
  .tuto_pop_back {
    height: calc(100% - 5%);
  }

  #div_person_area {
    bottom: -20vh;
    top: 10px;
  }

  .div_script {
    top: 20%;
  }

  .div_lens_gif,
  .div_lens_pict {
    height: initial;
  }

  #div_lens_pict_body,
  #div_lens_gif_body {
    height: 90%;
    gap: 10px;
    transform: scale(0.8, 0.8);
  }

  #div_lens_gif_body .gif_item1 {
    transform: scale(0.9, 0.9);
  }

  #div_lens_pict_body .pic_item3_in {
    width: 95%;
  }
}

.div_buttons {
  position: absolute;
  bottom: 6rem;
  transform: translate(calc(50vw - 50%));
  display: flex;
  gap: 30px;
  z-index: 10000; /* z-index 증가 */
}

.lens_button {
  width: 122px; /* 크기 증가 */
  height: 70px; /* 크기 증가 */
  border: 3px solid #666;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 17px; /* 폰트 크기 증가 */
  font-weight: bold;
  border-radius: 12px; /* 둥근 모서리 증가 */
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Spoqa Han Sans", sans-serif;
  pointer-events: auto; /* 포인터 이벤트 활성화 */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.lens_button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(1.05); /* 호버 시 약간 확대 */
}

.lens_button:active {
  transform: scale(0.95); /* 클릭 시 약간 축소 */
}

.lens_button.active { 
  border-color: #0a7cc1;
  background-color: #0a7cc1; /* 전체 배경을 빨간색으로 */
  color: #fff;
  /* box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); /* 글로우 효과 강화 */ 
}

/* 기존 스위치 스타일 완전 제거 */
.div_switch,
.switch_c_onoff,
.switch_c_onoff + label {
  display: none !important;
}

/* 🔴 자이로 센서 값 표시 (우측 상단) */
.gyro-sensor-display {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  font-family: "Spoqa Han Sans", sans-serif;
  z-index: 10000;
  min-width: 80px;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer; /* 클릭 가능하도록 */
  transition: all 0.2s ease;
}

.gyro-sensor-display:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.gyro-label {
  font-size: 10px;
  color: #ccc;
  margin-bottom: 3px;
  font-weight: 300;
}

.gyro-value {
  font-size: 16px;
  font-weight: bold;
  color: #44ff44;
  transition: color 0.2s ease;
}

#close_controls {
  background: #ff4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  width: 100%;
  margin-top: 10px;
  transition: background 0.2s ease;
}

#close_controls:hover {
  background: #ff6666;
}

/* 30도 기준선, 십자가 선 강조 스타일 */
.gyro-limit-line {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10001;
}
.crosshair {
  position: absolute;
  left: 50%; top: 50%;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 10002;
}
.crosshair-line {
  position: absolute;
  background: rgba(255,0,0,0.8);
  border-radius: 2px;
}
.crosshair-line.h {
  width: 60px; height: 4px;
  left: calc(50% - 30px); top: 50%;
}
.crosshair-line.v {
  width: 4px; height: 60px;
  left: 50%; top: calc(50% - 30px);
}


