#image {
    position: absolute;
    width: 100%;
    height: auto;
    z-index: 1;
    /* 確保圖片在 mask 下方 */
}

#frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* 防止 mask 攔截鼠標事件 */
    z-index: 2;
    /* 確保 mask 在圖片之上 */
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
}

.button:hover {
    background-color: #0056b3;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

label {
    cursor: pointer;
    margin-right: 10px;
    display: inline-block;
    /* 使 label 行内显示且可以设置宽度和高度 */
    margin: 10px;
    /* 增加外边距以防止元素挤在一起 */
    border: 2px solid #0088cc;
    /* 设置边框颜色和宽度 */
    border-radius: 10px;
    /* 圆角边框 */
    overflow: hidden;
    /* 隐藏超出部分 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 添加阴影效果 */
    transition: transform 0.3s ease;
    /* 平滑变换效果 */
}

label img {
    border: 2px solid transparent;
    /* 預設無邊框 */
    width: 100px;
    /* 統一圖片大小 */
    height: auto;
    transition: border 0.3s ease;
}

label:hover {
    transform: scale(1.05);
    /* 鼠标悬停时放大 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    /* 鼠标悬停时增强阴影效果 */
}

input[type="radio"]:checked+img {
    border: 2px solid blue;
    /* 選中時顯示邊框 */
}

#imageText {
    position: absolute;
    /* 绝对定位 */
    top: 80%;
    /* 垂直居中 */
    width: 50%;
    /* 输入框宽度，可根据需要调整 */
    z-index: 10;
    background-color: transparent;
    border: 0px;
    font-size: 20px;
    left: 50%;
    /* 水平居中 */
    transform: translateX(-50%);
    /* 向左偏移自身宽度的50%，确保完全居中 */
    /* bottom: 40px;  设置底部距离，确保在图片下方 */
}

.rounded-img {
    display: block;
    /* 或者 inline-block */
    /*border-radius: 20px;*/
    border: 2px solid #000;
    /*padding: 5px;*/
}

.container-img {
    position: relative;
    /* 设置容器为相对定位 */
    text-align: center;
    /* 文字和内部元素居中 */
    width: 525px;
    /* Frame 的固定寬度 */
    height: 336px;
    /* Frame 的固定高度 */
    overflow: hidden;
    padding-top: 0px !important;
    border: 2px solid #000000; /* 设置边框颜色和宽度 */
    border-radius: 10px; /* 圆角边框 */
    /* 隱藏超出部分 
    overflow: visible; 
    margin: 20px;*/
}

.border-radius-frame-image {
    margin-top: 20px;
    width: 1050px;
    height: 672px;
    margin: 10px; /* 增加外边距以防止元素挤在一起 */
    border: 2px solid #000000; /* 设置边框颜色和宽度 */
    border-radius: 10px; /* 圆角边框 */
    overflow: hidden; /* 隐藏超出部分 */
}