@charset "UTF-8";
* {
    /*-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;*/
    -webkit-tap-highlight-color: transparent;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /*-webkit-overflow-scrolling: touch;
    -webkit-touch-callout: none;*/
    -webkit-text-size-adjust: none;
}
::-webkit-scrollbar {
	width: 0px;
	height: 0px;
}
::-webkit-scrollbar-track {
	margin: 0px;
	padding: 0px;
}
::-webkit-scrollbar-thumb {
	margin: 0px;
	padding: 0px;
}
html, body {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*-webkit-text-size-adjust: none;
    touch-action: manipulation;*/
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard syntax */
}
html, body, input, button, select, textarea {
    font-family: "Helvetica Neue", Helvetica, Arial, "微軟正黑體", "微软雅黑", "メイリオ", "맑은 고딕", sans-serif;
    font-size: 17px;
    color: #000000;
}
button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
}
button:focus {
    outline: none;
}
/*video {
    position: fixed;
}*/
#three {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 100%;
}
#log {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #00FF00;
    pointer-events: none;
}
#start-page {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    text-align: center;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    opacity: 1;
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
    color: #666666;
    overflow-y: auto;
    padding-top: max(20px, constant(safe-area-inset-top));
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, constant(safe-area-inset-bottom));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, constant(safe-area-inset-left));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, constant(safe-area-inset-right));
    padding-right: max(20px, env(safe-area-inset-right));
}
#start-page .gap {
    flex: 1;
}
/*#loading {
    width: 70%;
    max-width: 300px;
    position: absolute;
    height: 1px;
    background-color: #444444;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
#loading > div {
    width: 0%;
    height: 100%;
    background-color: #CCCCCC;
    overflow: hidden;
}*/
#start-page .title {
    display: none;
    margin-bottom: 50px;
}
#start-page .title .main {
    font-weight: bold;
    font-size: 30px;
    white-space: nowrap;
    margin-bottom: 5px;
}
.mainimg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("UI/MainPicture.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;  /* Ensure background image is centered */
    z-index: -1;  /* Place it behind other elements */
}

#start-page .title .subtitle {
    color: #888888;
    white-space: nowrap;
}
#start-page .name {
    display: none;
    margin-bottom: 10px;
    font-size: 20px;
}
#start-page input {
    font-size: 17px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid transparent;
    padding: 10px;
    width: 100%;
    display: none;
    margin-bottom: 20px;
    max-width: 300px;
    color: #666666;
    background-color: #FFFFFF;
}
#start-page input:focus {
    border: 1px solid #666666;
    outline: none;
}
#play, #dialogue .replay {
    font-family: 'wt014', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px #0000006b;
    letter-spacing: 2px;
    color: #1f1f1f;
    border: 0px solid #666666;
    background-color: #ffffff;
    margin: 0px;
    bottom: 10%;
    /* padding: 25px;
    padding-top: 10px;
    padding-bottom: 10px; */
    border-radius: 1000px;
    display: none;
    width: 120px;
    height: 30px;
    /*position: absolute;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);*/
    cursor: pointer;
    font-size: 16px;
    text-align: center; /* 新增這行來置中文字體 */
}

#play:active, #dialogue .replay:active {
    -ms-transform: scale(0.96);
    transform: scale(0.96);
}
#play:disabled {
    opacity: 0.3;
    pointer-events: none;
}
#info {
    padding-left: 20px;
    padding-right: 20px;

    color: #dfdfdf;
    /*width: 100%;*/
    /*position: absolute;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);*/
}
/*#vignette {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    pointer-events: none;
}*/

#model {
    position: fixed;
    display: flex;
    top: 0px;
    width: 100%;
    height: 100%;
    /*background-image: url("vignette.png");
    background-size: 100% 100%;*/
    align-items: center;
    text-align: center;
    /*justify-content: space-between;*/
    flex-direction: column;
    padding-top: max(20px, constant(safe-area-inset-top));
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, constant(safe-area-inset-bottom));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    opacity: 0;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    pointer-events: none;
}
#model .event {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
}
#model.show {
    opacity: 1;
    pointer-events: auto;
}
#model .vignette {
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    /*background-color: rgba(0,255,0,0.5);*/
}
/*#model .find {
    border: 1px solid #FFFFFF;
    background-color: rgba(43,43,43,0.75);
    margin: 0px;
    padding: 20px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
}
#model .find:active {
    -ms-transform: scale(0.95);
    transform: scale(0.95);
}*/
#model .title {
    position: relative;
    font-size: 20px;
    text-shadow: #000000 0px 0px 4px;
    color: #FFFFFF;
}
#model .loading {
    position: absolute!important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120px;
    height: 120px;
    border-radius: 100%;
    /* background-color: rgba(0,0,0,0.5); */
    font-size: 20px;
    padding: 5px;
    pointer-events: none;
    /*background: conic-gradient(#FF9900 36deg, rgba(0,0,0,0.5) 0deg);
    overflow: hidden;*/
    -webkit-transition: transform 0.5s, opacity 0.5s;
    transition: transform 0.5s, opacity 0.5s;
    opacity: 0;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;

    width: 160px; /* 設定寬度 */
    height: 160px; /* 設定高度 */
    background-image: url('UI/CloudLoading.gif'); /* 指定GIF的URL */
    background-size: cover; /* 使背景圖片覆蓋整個元素 */
    background-repeat: no-repeat; /* 防止背景圖片重複 */
    
}
#model .loading .loading-text {
    position: absolute;
    top: 160px; /* cloud-loading 的高度加上 5px 的間距 */
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #FFFFFF;
    text-shadow: #000000 0px 0px 4px;
}
#model .loading.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
#model .loading.error {
    background-color: transparent;
    cursor: pointer;
    pointer-events: auto;
}
#model .loading.error > div {
    background-color: #FF5E70;
}
#model .loading.error > div:active {
    transform: scale(0.96);
}
#model .loading .progressbar-text {
    /*color: #FF5E70!important;*/
    width: 100%;
    text-align: center;
}
#model .loading > div {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    /*background: url(model/1/icon.png) no-repeat center;
    background-size: contain;*/
}

#scanner {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    top: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    /*-webkit-transition: transform 0.5s, opacity 0.5s;
    transition: transform 0.5s, opacity 0.5s;*/
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    text-align: center;
}
#scanner.show {
    pointer-events: auto;
    opacity: 1;
    /*transform: scale(1);*/
}
#scanner.show .panel {
    transform: scale(1);
}
#scanner > * {
    position: absolute;
}
#scanner .title {
    top: 0px;
    padding: 20px;
    padding-top: max(20px, constant(safe-area-inset-top));
    padding-top: max(20px, env(safe-area-inset-top));
    font-size: 20px;
    color: #FFFFFF;
}
/*#scanner .info {
    bottom: 0px;
    padding: 20px;
    padding-bottom: max(20px, constant(safe-area-inset-bottom));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    color: #FF5E70;
    display: none;
}
#scanner.error .info {
    display: block;
}*/
#scanner .panel {
    width: 100%;
    height: 100%;
    position: relative;   
    display: flex;
    flex-direction: row;
    transition: transform 0.5s;
    transform: scale(1.5);
}
#scanner .scan {
    display: flex;
    flex-direction: column;
}
#scanner .mask {
    flex: 1;
    background-color: rgba(0,0,0,0.6);
}
#scanner .range {
    position: relative;
    /*background-color: rgba(255,255,255,0.5);*/
    width: 300px;
    height: 300px;
    /*position: absolute;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);*/
}
#scanner .range > div {
    position: absolute;
    width: 60px;
    height: 60px;
    /*background-color: #FFCC00;*/
}
#scanner.error .range > div {
    border-color: #FF5E70;
}
#scanner .range .left {
    left: -4px;
    border-left: 4px solid #FFFFFF;
}
#scanner .range .right {
    right: -4px;
    border-right: 4px solid #FFFFFF;
}
#scanner .range .top {
    top: -4px;
    border-top: 4px solid #FFFFFF;
}
#scanner .range .bottom {
    bottom: -4px;
    border-bottom: 4px solid #FFFFFF;
}

#dialogue {
    top: 0px;
    position: fixed;
    width: 100%;
    height: 100%;
    font-size: 0px;
    pointer-events: none;
}
/*#dialogue.can-pass {
    pointer-events: auto;
    background-color: rgba(0,0,0,0.5);
    cursor: pointer;
}*/
#dialogue .main {
    max-width: 408px;
    left: 50%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 20px;
    padding-bottom: max(10px, constant(safe-area-inset-bottom));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-left: max(10px, constant(safe-area-inset-left));
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, constant(safe-area-inset-right));
    padding-right: max(10px, env(safe-area-inset-right));
    opacity: 0;
    transition: opacity 1s;
}
#dialogue .main.show {
    opacity: 1;
}
#dialogue .character {
    position: relative;
    overflow: hidden;
    -ms-transform: translate(0%, 22%);
    transform: translate(0%, 4%);
}
#dialogue .character img {
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
    transform: translate(0%, 100%);
    width: 100%;
    max-width: 100%;
}
#dialogue .character.show img {
    opacity: 1;
    transform: translate(0%, 0%);
}

.headBG_container {
    position: absolute;
    width: 100%;
    height: 100%;

    -webkit-transition: opacity 1.8s;
    transition: opacity 1.8s;
}

.headBG {
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url("UI/OpenBG.png");
    background-size: cover; /* 讓背景圖片覆蓋整個容器 */
    background-repeat: no-repeat;
    background-position: center; /* 背景圖片置中 */
}
#dialogue .character .head2, #dialogue .character.talk .head1 {
    /*display: none;*/
    visibility: hidden;
}
#dialogue .character.talk .head2 {
    /*display: block;*/
    visibility: visible;
}
#dialogue .character .head2 {
    position: absolute;
    left: 0px;
    top: 0px;
}
#dialogue .panel {
    overflow: hidden;
    pointer-events: auto;
    position: relative;
    width: 100%;
    color: #444444;
    /*background-color: #F0EBE3;
    border-radius: 3px;*/
    /*box-shadow: 0px 4px 5px 0px rgba(0,0,0,0.5);
    transition: background-color 0.6s;*/
    cursor: pointer;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
    -webkit-touch-callout: none;
}
#dialogue .background {
    width: 100%;
    transition: filter 0.6s;
}
#dialogue .background * {
    width: 100%;
}
#dialogue .background .top, #dialogue .background .bottom {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    display: none;
}
#dialogue .background.top .default, #dialogue .background.bottom .default {
    visibility: hidden;
}
#dialogue .background.top .top, #dialogue .background.bottom .bottom {
    display: block;
}
#dialogue .panel:active .background {
    filter: brightness(0.85);
}
/*#dialogue .background-arrow-top {
    width: 100%;
    transition: filter 0.6s;
}
#dialogue .panel:active .background-arrow-top {
    filter: brightness(0.85);
}*/
#dialogue .content {
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
    width: 75%;
    /*height: 82.5%;*/
    height: 69.5%;
    left: 50%;
    /*top: 5%;*/
    top: 14%;
    overflow-y: auto;
    /*padding: 17px;
    max-height: 200px;*/
    position: absolute;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 15px;
    
}
#dialogue .content .keyword {
    font-weight: bold;
    color: #000000;
    /*white-space: nowrap;*/
}
#dialogue .content .error {
    color: #FF5E70;
}
#dialogue .content .hidden {
    visibility: hidden;
}
/*#dialogue .panel.find {
    pointer-events: none;
}*/
#dialogue .panel.find .content {
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
#dialogue .panel.find .next, #dialogue .panel.speaking .next {
    display: none;
}
#dialogue .next {
    position: absolute;
    right: 10%;
    /*bottom: 12px;*/
    width: 18px;
    opacity: 0.4;
    bottom: calc(23% - 0px);
}
#dialogue .next.down {
    bottom: calc(23% - 2px);
}
#dialogue .chapter {
    padding: 20px;
    width: 100%;
    /*height: 100%;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #5f5f5f;
    white-space: nowrap;
    /*background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);*/
    position: absolute;
    font-weight: bold;
    left: 50%;
    top: 50%;
    /*-ms-transform: translate(-50%, -50%);*/
    transform: translate(-50%, -50%);
    /* text-shadow: 2px 2px 0 #8C77F6; */
    opacity: 0;
    transition: opacity 1s;
    -webkit-transition: opacity 1s;
    z-index: 3;
}
#dialogue .chapter.show {
    opacity: 1;
    transition: opacity 1s 0.5s;
    -webkit-transition: opacity 1s 0.5s;
}
#dialogue .chapter .title {
    font-size: 60px;
    margin-bottom: 20px;
}
#dialogue .chapter .subtitle {
    font-size: 30px;
}
/*#dialogue .chapter .replay {
    margin-top: 50px;
    pointer-events: auto;
    box-shadow: 0px 4px 5px 0px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    background-color: rgba(240,235,227,0.6);
    background-color: #F0EBE3;
    color: #000000;
}
#dialogue.finish {
    background-color: #F0EBE3;
}
#dialogue.finish .chapter .replay {
    pointer-events: auto;
    display: block;
}
#dialogue.finish .chapter {
    color: #666666;
    text-shadow: #000000 0px 0px 10px;
    text-shadow: none;
}*/
/*#dialogue .name {
    position: relative;
    font-size: 15px;
    font-weight: bold;
    color: #444444;
    z-index: 1;
}
#dialogue .name span {
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #F4F2EC;
    border: 1px solid #B7A99C;
    position: absolute;
    right: 0px;
    border-radius: 1000px;
    bottom: -10px;
    transform: translate(0%, 20%);
    transition: transform 0.3s, opacity 0.3s;
    -webkit-transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
}
#dialogue .name.show span {
    transform: translate(0%, 0%);
    opacity: 1;
}*/
#dialogue .finish {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    text-align: center;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #F0EBE3;
    -webkit-transition: opacity 1.5s;
    transition: opacity 1.5s;
    color: #666666;
    overflow-y: auto;
    padding-top: max(20px, constant(safe-area-inset-top));
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, constant(safe-area-inset-bottom));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, constant(safe-area-inset-left));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, constant(safe-area-inset-right));
    padding-right: max(20px, env(safe-area-inset-right));
    z-index: 4;
}
#dialogue .finish.show {
    opacity: 1;
    pointer-events: auto;
}
#dialogue .finish .finish-panel {
    margin-bottom: 50px;
}
#dialogue .finish .finish-panel .title {
    font-weight: bold;
    font-size: 30px;
    white-space: nowrap;
    margin-bottom: 5px;
}
#dialogue .finish .finish-panel .subtitle {
    font-size: 17px;
    color: #888888;
    white-space: nowrap;
}
#dialogue .finish .replay {
    display: block;
}
#dialogue .finish .gap {
    flex: 1;
}
#dialogue .mask {
    pointer-events: none;
    opacity: 0;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    transition: opacity 1.5s;
    -webkit-transition: opacity 1.5s;
    z-index: 2;
}
#dialogue .mask.show {
    opacity: 1;
}


@keyframes scaleBorder {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }

  .blink-border {
    border: 3.5px solid red;
    /* border-radius: 50%; */
    animation: scaleBorder 1s infinite;
  }

  .tooltip {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 8px 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;

    letter-spacing: 1px;

    /* margin: 10px; */

    /* left: 20px; */

    font-size: 20px;
    max-width: 80%;
  }

  .close-tooltip {
    background-color: #cccccc;
    width: 80px; /* 根据需求调整 */
    height: 25px; /* 根据需求调整 */
    position: relative;
    right: 0;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

.close-tooltip::after {
    color: #000;
    content: '全部略過...';
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* position: absolute; */
    text-align: center; /* 文字居中 */
}
