﻿/*共用*/
@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Light.otf');
    font-weight: 300;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Regular.otf');
    font-weight: 400;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Medium.otf');
    font-weight: 500;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Bold.otf');
    font-weight: 700;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/font/Noto_Sans_TC/NotoSansTC-Black.otf');
    font-weight: 900;
}

@font-face {
    font-family: 'Gill';
    src: url('/font/Gill/Gill Sans Medium Italic.otf');
    font-weight:300;
}

*{
    margin: 0;
    padding: 0;
    text-decoration: none;
}
body {
    overflow: hidden;
}

:focus,
:focus-visible,
.btn:focus,
.btn:focus-visible {
    outline: none !important;
}

a{
    color: #666;
}

a:hover, a:focus {
    text-decoration: none;
    color: transparent;
    outline: none;
    outline-offset: unset;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ccc;
}

ul, ol, li {
    list-style: none;
    margin-bottom: 0;
}

.btn:active {
    box-shadow: none;
}

img {
    max-width: 100%;
    height: auto;
}

.w_pic{
    display:block;
}

.p_pic {
    display: none;
}

.modal-content {
    background: rgba(8, 77, 121, 0.9);
    padding: 0 30px;
    padding-top: 90px;
    padding-bottom: 25px;
    padding-left: 40px;
    border-radius: 25px;
    border: 1px solid #06507e;
}

#error_modal .modal-content {
    padding-top: 20px;
}

.modal-header {
    border-bottom: 1px solid #dbd530;
    padding: 0;
    padding-bottom: 5px;
    margin-bottom: -10px;
}

#error_modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.modal-header .close {
    padding: 0;
    margin: 0;
    font-size: 80px;
    position: absolute;
    right: 2%;
    top: -2%;
    text-shadow: none;
    color: #dbd530;
    opacity: 1;
    font-weight: 100;
}

#error_modal .modal-header .close {
    font-size: 50px;
    right: 4%;
}

.modal-header .title span {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 1px;
}

.modal-body {
    max-height: 500px;
    overflow: auto;
    padding-top: 0;
    padding-left: 0;
    padding-right: 5px;
    margin-top: 25px;
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-button {
    display: none;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: #dbd530;
    border-radius: 0 !important;
}

.modal-body .t1 {
    margin-bottom: 30px;
}

.modal-body .item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.modal-body span {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 200;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 1px;
}

.modal-body .oth {
    font-weight: 700;
    color: #dbd530;
}

#stage.sky-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    cursor: grab;
    user-select: none;
    background: #009cff;
    overflow: hidden;
}

#stage.sky-container:active {
    cursor: grabbing;
}

.map-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.cloud-img {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.layer-back {
    z-index: 1; 
}

.layer-front {
    z-index: 10; 
}

.info {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: transform 4s cubic-bezier(0.25, 1, 0.5, 1), opacity 3s ease;
    will-change: transform, opacity;
}

.info.is-pushed {
    transform: translate(-50%, -150vh);
    opacity: 0;
    pointer-events: none;
}

.info .en_text {
    width: 100%;
    margin: auto;
    text-align: center;
}

.info .en_text span {
    display: inline-block;
    font-family: "Gill", sans-serif;
    font-weight: 300;
    font-size: 75px;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 75px;
}

.info .small_text {
    margin-top: 10px;
    text-align: center;
}

.info .small_text .text {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.info .small_text span {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000000;
    letter-spacing: 1px;
    background: #dbd530;
    padding: 2px 5px;
}

.info .small_text .other {
    font-weight: 700;
    padding: 0;
}

.info .input_item {
    text-align: end;
    width: 50%;
    margin: auto;
    margin-top: 60px;
}

.info .input_item .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 15px;
}

.info .input_item .item span {
    display: inline-block;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 1px;
    word-break: keep-all;
}

.info .input_item .item .form-control {
    flex: 1; 
    background: transparent;
    border: none; 
    border-bottom: 1px solid #ffffff; 
    color: #ffffff;
    font-size: 20px;
    padding: 5px 10px;
    outline: none;
    border-radius: 0;
}

.info .input_item .item .t1 {
    display: flex;
    align-items: center;
}

.info .input_item .item .t2 span {
    font-size: 12px;
    padding-bottom: 10px;
}

.info .btn_item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.info .btn_item .btn_01 {
    display: inline-block;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    letter-spacing: 2px;
    background: #d0d0d0;
    border-radius: 50px;
    padding: 2px 12px;
    margin: 0 15px;
}

.info .btn_item .btn_02 {
    background: #dbd530;
    border-radius: 50px;
    padding: 2px 15px;
}

.info .btn_item .btn_02 .text_item {
    display: flex;
    align-items: center;
}

.info .btn_item .btn_02 span {
    width: auto;
    display: inline-block;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    color: #000000;
}

.info .btn_item .btn_02 .tw_text {
    font-size: 18px;
}

.info .btn_item .btn_02 .en_text {
    font-size: 12px;
    margin: 0;
    padding: 0 5px;
}

.airplane_item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, 100vh);
    opacity: 0;
    transition: transform 10s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    z-index: 5;
    pointer-events: none;
}

.airplane_item.is-pushed {
    transform: translate(-50%, -50%) !important;
    opacity: 1;
    pointer-events: auto;
}

.airplane-unit {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 1s ease;
    animation-name: planeFloat;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    pointer-events: none;
    opacity: 0;
}

.airplane-unit.is-show {
    opacity: 1;
    pointer-events: auto;
}

.airplane_pic {
    pointer-events: auto;
}

.airplane_pic img {
    width: 50px;
    height: 50px;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    touch-action: none;
}

.airplane_pic .User {
    filter: 
        drop-shadow(0 0 3px #fff) 
        drop-shadow(0 0 5px #dbd530) 
        drop-shadow(0 0 10px #dbd530)
        drop-shadow(0 0 15px rgba(219, 213, 48, 0.5));
}

.airplane-unit .arrow-up,
.airplane-unit .airplane_text,
.success_airplane-unit .arrow-up,
.success_airplane-unit .airplane_text {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease-in-out;
    pointer-events: none;
}

.airplane-unit.show-text {
    z-index: 999 !important;
}

.airplane-unit.show-text .arrow-up,
.airplane-unit.show-text .airplane_text,
.success_airplane-unit.show-text .arrow-up,
.success_airplane-unit.show-text .airplane_text {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.arrow-up {
    width: 0;
    height: 0;
    margin: 0 auto;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 14px solid #ffffff;
}

.airplane_text {
    position: relative;
    width: 160px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 12px; 
    max-height: calc(20px * 8 + 20px);
    overflow: hidden; 
}

.airplane_text span {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    color: #000000;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 20px;
    word-break: break-all;
    text-align: justify;
}

.airplane_text .other_text {
    font-weight: 600;
}

@keyframes planeFloat {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: translate(6px, -8px) rotate(1.5deg);
    }

    50% {
        transform: translate(-5px, 6px) rotate(-1deg);
    }

    75% {
        transform: translate(7px, 5px) rotate(1deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

.confession {
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

.confession .conf_item {
    position: relative;
    background-image: url('/Images/pic_09.jpg');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 470px;
    height: 565px;
    max-height: 565px;
    box-shadow: 15px 22px 5px 0 rgba(0, 0, 0, 0.3);
    padding: 20px 35px;
    padding-top: 30px;
    pointer-events: none;
    transform: scale(0);
    transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.confession .conf_item.is-active {
    transform: scale(1);
    pointer-events: auto;
}

.confession .conf_item::after {
    content: "▼";
    font-size: 15px;
    position: absolute;
    right: 9%;
    top: 9%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000000;
}

.confession .pro_select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 8px 24px;
    padding-left: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    outline: none;
    color: #000000;
    border-bottom: 2px solid #000000;
}

.confession .pro_select option {
    color: #000000 !important;
}

.confession .for_item{
    padding:10px 0;
}

.confession .for_item .for_text {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: 15px;
    letter-spacing: 1px;
}

.confession.is-white .conf_item::after,
.confession.is-white .pro_select,
.confession.is-white .for_item .for_text {
    color: #ffffff;
}

.confession.is-white .pro_select {
    border-bottom: 2px solid #ffffff;
}

.confession .cofo_info {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.confession.active .cofo_info {
    opacity: 1;
    pointer-events: auto;
}

.confession .Member_Text {
    width: 100%;
    height: 235px;
    max-height: 235px;
    border: none;
    outline: none;
    resize: vertical;
    background: transparent;
    font-size: 16px;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    line-height: 31.5px;
    background-image: repeating-linear-gradient( transparent, transparent 31px, #000000 31px, #000000 32px );
    padding: 2px 0;
    resize: none;
    overflow: hidden;
}

.confession .dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 120px;
    border: none;
    border-radius: 10px;
    background: #e3dbce;
    border: 1px solid #9e9990;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.confession #uploadZone * {
    pointer-events: none;
}

.confession .dz-message {
    display: none;
}

.confession .dropzone span {
    display:inline-block;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: #000000;
    letter-spacing: 1px;
}

.confession .dropzone .t1 img {
    width: 17px;
    margin-top: -5px;
}

.confession .dropzone .other {
    font-weight: 700;
}

.confession .dropzone .small {
    font-size: 13px;
    padding-top: 5px;
}

.confession .dropzone .dz-preview.dz-image-preview {
    background: transparent;
    width: 100%;
    margin: 0;
    min-height: initial;
}

.confession .dropzone .dz-preview .dz-image {
    border-radius: 0;
    width: 100%;
    max-height: 120px;
    overflow:hidden;
}

.confession .dropzone .dz-preview .dz-image img {
    width: 100%;
    max-height:120px;
    object-position: center;
    object-fit: cover;
    filter: blur(1px);
    transform: scale(1);
}

.confession .dropzone .dz-preview .dz-details {
    display:none;
}

.confession .dropzone .dz-preview .dz-details .dz-size,
.confession .dropzone .dz-preview .dz-details .dz-filename {
    display: none;
}

.confession .dropzone.slick-initialized .slick-track {
    max-height: 120px;
    overflow: auto;
    display: flex;
    margin: 0;
}

.confession .dropzone .slick-list{
    width:100%;
}

.confession #uploadZone .dz-preview img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    display: block;
}

.confession #uploadZone .dz-preview {
    padding: 0;
    margin: 0;
}

.confession .btn_item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.confession .btn_item .btn_01,
.confession .btn_item .btn_02 {
    display: inline-block;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 1px;
    min-width: 100px;
    text-align: center;
    padding: 2px 20px;
    padding-bottom: 4px;
    margin: 0 10px;
    border-radius: 2px;
    cursor: pointer;
}

.confession .btn_item .btn_01 {
    color: #ffffff;
    background: #000000;
    border: 1px solid #000000;
}

.confession .btn_item .btn_02 {
    color: #000000;
    background: #dbd530;
    border: 1px solid #dbd530;
}

.finger {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease-in-out;
}

.finger.is-active {
    opacity: 1;
    pointer-events: auto;
}

.finger img {
    animation: move 2s ease-in-out infinite;
}

@keyframes move {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px);
    }

    100% {
        transform: translateX(0);
    }
}

.unused {
    position: fixed;
    bottom: calc(35px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: auto;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease-in-out;
}

.unused.is-active {
    opacity: 1;
    pointer-events: auto;
}

.unused .conf_text {
    display: inline-block;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #000000;
    letter-spacing: 1px;
    background: #dbd530;
    padding: 2px 40px;
    padding-bottom: 3px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.8s ease-in-out, color 0.8s ease-in-out;
}

.unused .conf_text:hover {
    background: #000000;
    color: #dbd530;
}

.unused .small {
    font-family: "Gill", sans-serif;
    font-weight: 300;
    font-size: 26px;
    color: #ffffff;
    display: block;
    background: transparent;
    border: none;
    padding-bottom: 0;
    padding-top: 15px;
}

.confession_success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100vh);
    transition: transform 5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    opacity: 0;
    z-index: 999;
    pointer-events: none;
}

.confession_success.fly-in {
    transform: translate(-50%, -50%) !important;
    opacity: 1;
    pointer-events: auto;
}

.confession_success.fly-out {
    transform: translate(-50%, -150vh);
    opacity: 0;
    pointer-events: none;
}

.success_airplane-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: planeFloat 10s infinite ease-in-out;
}

.success_text {
    position: fixed;
    bottom: calc(35px + env(safe-area-inset-bottom));
    right: 15px;
    background: #dbd530;
    z-index: 999;
    border-radius: 20px;
    padding: 15px 20px;
    transform: translateX(calc(100vw + 20px));
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

@keyframes slideInOut {
    0% {
        /* 起始：螢幕右側外面 */
        transform: translateX(calc(100vw + 20px));
    }

    25% {
        /* 慢慢滑入到達 right: 15px 的位置 (花了總時間的 25%) */
        transform: translateX(0);
    }

    75% {
        /* 在原位停留 2.5 ~ 3 秒 (從 25% 保持到 75%) */
        transform: translateX(0);
    }

    100% {
        /* 慢慢滑回螢幕右側外面 (花了總時間的 25%) */
        transform: translateX(calc(100vw + 20px));
    }
}

.success_text.show-toast {
    animation: slideInOut 8s ease-in-out forwards;
}

.success_text span {
    display: block;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000000;
    letter-spacing: 1px;
    line-height: 22px;
}

.success_text .t1 {
    text-align: center;
    border-bottom: 1px solid #000000;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

 .success_text .t1 span {
    font-size: 22px;
    letter-spacing: 2px;
    line-height: 30px;
}

.success_text .t2{
    text-align:center
}

.success_text .t3 {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.success_text .t3 span {
    display: flex;
}

.success_text .t3 .other {
    border-bottom: 1px solid #000000;
}

.success_text .close_item {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 20;
}

.success_text .close_item .close {
    opacity: 1;
    text-shadow: none;
}

.success_text .close_item span {
    font-size: 25px;
}

.right_icon {
    width: 3%;
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.right_icon.is-active {
    opacity: 1;
    pointer-events: auto;
}

.right_icon a {
    display: block;
    margin-bottom: 10px;
    transition: transform 0.8s ease-in-out;
}

.right_icon a:hover{
    transform:scale(1.1);
}

/*admin*/
.admin {
    padding: 20px;
    overflow: auto;
}

.admin .title_item {
    display: flex;
    align-items: center;
}

.admin .title_item .title span {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: 28px;
    letter-spacing: 3px;
}

.admin .title_item .btn_item {
    margin-left: 10px;
}

.admin .title_item .btn_item .btn {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    letter-spacing: 3px;
    font-size: 16px;
    padding: 7px 10px;
    min-width: 110px;
    transition: background 0.8s ease,color 0.8s ease;
}

.admin .title_item .btn_item .btn:hover {
    background: #000000;
    color: #ffffff;
}

.admin .table_item {
    margin-top: 30px;
    max-height: 750px;
    overflow: auto;
}

.admin .table_item .table {
    word-break: keep-all;
}

.admin .table_item .Confession_Text {
    display: block;
    width: 250px; 
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.admin .table_item .table th {
    font-family: 'Noto Sans TC';
    font-weight: 500;
    border: none;
    border-bottom: 1px solid #000000;
    background: #000000;
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
}

.admin .table_item .table td {
    font-family: 'Noto Sans TC';
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    border: none;
    border-top: 1px solid #dee2e6;
}

.admin .table_item .table .btn {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    letter-spacing: 3px;
    font-size: 16px;
    padding: 7px 10px;
    min-width: 110px;
    transition: background 0.8s ease, color 0.8s ease;
}

.admin .table_item .table .btn:hover {
    background: #000000;
    color: #ffffff;
}