.fileinput-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.fileinput-button input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    -ms-filter: 'alpha(opacity=0)';
    font-size: 200px !important;
    direction: ltr;
    cursor: pointer;
}

/* Fixes for IE < 8 */
@media screen\9 {
    .fileinput-button input {
        filter: alpha(opacity=0);
        font-size: 100%;
        height: 100%;
    }

}

input[type=file] {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 30;
}

html, body {

    /* overflow: hidden; */
    font-family: en, zh !important;
    -webkit-touch-action: none;
    -moz-touch-action: none;
    -o-touch-action: none;
    touch-action: none;
}

.ui-container {
    display: none;
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: en, zh !important;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input {
    -webkit-user-select: text;
    -moz-user-select: text;
    -o-user-select: text;
    user-select: text;
}

#hide-p1 {
    background-image: url('../image/叢林偽裝裝備室手機素材/叢林偽裝裝備室-上傳底圖.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#hide-upload-btn {
    background-image: url('../image/叢林偽裝裝備室手機素材/確認上傳.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    width: 43%;
    height: 9%;
    top: 84%;
    left: 29%;
}

#hide-p2 {
    background-image: url('../image/叢林偽裝裝備室手機素材/叢林偽裝裝備室-上傳完畢.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#ai-p1 {
    background-image: url('../image/AI生態逆傳計畫手機素材/AI生態逆傳計畫-上傳底圖.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#ai-upload-btn {
    display: none;
    background-image: url('../image/AI生態逆傳計畫手機素材/確認上傳.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    width: 43%;
    height: 9%;
    top: 84%;
    left: 29%;
}

#ai-p2 {
    background-image: url('../image/AI生態逆傳計畫手機素材/AI生態逆傳計畫-上傳完畢.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#photo-frame {
    position: absolute;
    width: 74%;
    height: 63%;
    top: 18.5%;
    left: 13%;
}

#upload-hint {
    background-image: url('../image/AI生態逆傳計畫手機素材/上傳提示.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    width: 43%;
    height: 9%;
    top: 44%;
    left: 29%;
    pointer-events: none;
}

#adjust-hint {
    display: none;
    background-image: url('../image/AI生態逆傳計畫手機素材/調整畫面提示.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    width: 43%;
    height: 9%;
    top: 44%;
    left: 29%;
    pointer-events: none;
    z-index: 1;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#loading-overlay.active {
    display: flex;
}

#loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }

}
