.container {
    display: flex;
    flex-direction: row;

    justify-content: center;

    padding: 0;
}

#Btn_previousImage {
    background: transparent;
    border: 0px;
    cursor: pointer;

    position: flex;

    /* width: 32px;
    height: 32px; */
    /* Inside auto layout */
    
    flex: none;
    order: 0;
    flex-grow: 0;
    z-index: 5;
}

/* Edit Image Area*/

.image_generator {
    width: 100%;
    aspect-ratio: 1/1;

    position: relative;
}

#imageDisplay {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

#personaBox {
    position: absolute;
    cursor: move;
    background: transparent;
    /* padding: 5px; */

    border-radius: 10px;

    width: 300px;
    height: 300px;

    /* top: 0; */
    /* left: 0; */
    z-index: 2;
}

#persona {
    position: absolute;
    background: transparent;
    /* padding: 5px; */

    width: 100%;
    /* height: 300px; */

    top: 0;
    left: 0;
}

.textOverlay {
    position: absolute;
    cursor: move;
    /* user-select: none; */
    background: transparent;
    padding: 5px;
    height: fit-content;
    width: fit-content;
    min-width: 50px;
    min-height: 20px;
    /* top: 0; */
    /* left: 0; */
    z-index: 3;
    /* text-align: right; */

    max-width: 100%; /* 限制最大寬度不超過 image_generator */
    white-space: nowrap; /* 避免換行 */

    font-weight: bold;
    font-size: 70px;
    font-family: "GenSenRounded2TW_B", "Noto Sans TC", serif;

    user-select: text; /* 確保可選取 */
    -webkit-user-select: text; /* iOS Safari */
    -ms-user-select: text; /* 針對舊版 Edge */
}

.textOverlay:focus {
    /* outline: none; */
    cursor: text;
    outline: 3px dashed #000000;
}

.textOverlay::before {
    content: attr(data-storke);
    padding: 5px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    -webkit-text-stroke: 7px;
    -webkit-text-stroke-color: var(--textStroke);
}

.close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 15;

    /* UI/輔色 */
    background: #FFFFFF;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);

    user-select: none; /* 禁止選取 */
    -webkit-user-select: none; /* iOS Safari */
    -ms-user-select: none; /* 針對舊版 Edge */
    pointer-events: none; /* 防止干擾文字編輯 */
}

.close-btn img {
    height: 30px;
    width: 30px;

    user-select: none; /* 禁止選取 */
    pointer-events: auto; /* 但仍允許點擊關閉按鈕 */
}

/* Edit Image Menu*/

.edit_Img_menu_Group {
    display: none;
}

#Btn_addTxt,
#Btn_addAiPersona {
    height: 160px;
    gap: 0px;
}

/* Edit Image Btn*/

.edit_Persona_Btn_Group {
    display: none;
}

.edit_Txt_Btn_Group {
    justify-content: space-between;
}

.edit_Txt_Btn_Group,
.edit_Persona_Btn_Group {
    /* display: none; */

    width: 100%;
}

.edit_Persona_Btn_Item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;

    width: 100%;
    flex-grow: 1;
}

.edit_Txt_Btn_Item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;

    width: 100%;
    flex-grow: 1;
}

.txt_bold_22 {
    font-weight: 700;
    font-size: 22px;
    line-height: 150%;

    /* UI/主色 */
    color: #A66C44;
}

.slider_PersonaSize_container,
.slider_textSize_container {
    
    width: 100%;
    height: 40px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}

.btn_edit_control {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px 0px;
    gap: 8px;
    isolation: isolate;

    width: 100%;
    height: 70px;

    /* UI/輔色 */
    background: #FFFFFF;
    /* M3/Elevation Light/1 */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    border-radius: 16px;

    flex-grow: 1;

    font-weight: 700;
    font-size: 22px;
    line-height: 150%;

    /* UI/主色 */
    color: #A66C44;
}

.btn_edit_control_icon {
    width: 40px;
    height: 40px;

    padding: 6px;
    gap: 3px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* UI/彈窗底色 */
    background: #F9E8DC;
    border-radius: 8px;
}

#Btn_ChangeStrokeColor .btn_edit_control_icon {
    border-width: 3px;
    border-style: solid;
    border-color: #000000;
}

.txtColorShowPreview {
    height: 4px; 
    width: 27px;
    /* UI/輔色 */
    background: #FFFFFF;
    /* UI/主色 */
    border: 1px solid #A66C44;
    border-radius: 20px;
}

#textColorInput {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#Btn_Share_invite {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    gap: 4px;

    height: 48px;

    /* UI/主色 */
    background: #A66C44;
    /* M3/Elevation Light/1 */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 1;
    flex-grow: 1;

    /* UI/副標題 25 Bold */
    font-family: 'Noto Sans TC';
    font-style: normal;
    font-weight: 700;
    font-size: 25px;
    line-height: 150%;
    letter-spacing: 0.04em;

    /* UI/輔色 */
    color: #FFFFFF;
}

#Btn_download {

    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    gap: 4px;

    height: 48px;

    /* UI/輔色 */
    background: #FFFFFF;
    /* M3/Elevation Light/1 */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

    /* UI/副標題 25 Bold */
    font-family: 'Noto Sans TC';
    font-style: normal;
    font-weight: 700;
    font-size: 25px;
    line-height: 150%;
    letter-spacing: 0.04em;

    /* UI/主色 */
    color: #A66C44;

}

.downloadPopTxt {
height: 18px;

/* UI/副標題 25 Bold */
font-family: 'Noto Sans TC';
font-style: normal;
font-weight: 700;
font-size: 25px;
line-height: 150%;
letter-spacing: 0.04em;

/* UI/主色 */
color: #A66C44;
}

/* Pickr 隱藏預設 UI */
#colorPicker {
    display: none;
}

/* 隱藏 Pickr 的 UI */
.pickr {
    display: none;
}

.pcr-interaction {
    justify-content: center;
}
.pcr-save {
    /* width: 50% !important;  */
    font-size: 1.2em !important;
    background: #A66C44 !important;
    border-radius: 13px !important;

    font-weight: bold;

    flex-grow: 1;
}

.pcr-cancel {
    /* width: 50% !important;  */
    font-size: 1.2em !important;
    color: #A66C44 !important;
    background: #F0F0F0 !important;
    border-radius: 13px !important;

    font-weight: bold;

    flex-grow: 1;
}

.pcr-app {
    top: 60% !important;
    left: 10px !important;

    border-radius: 16px !important;
}

/* ------------ Button ------------ */


