/* 基本樣式設置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 導航欄樣式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
}

header nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
}

/* 內容區域樣式 */
.section {
    padding: 20px 20px;
    text-align: center;
}

.section2 {
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 300px;
    padding-left: 20px;
    text-align: center;
}

.section:nth-child(odd) {
    background-color: #ffffff;
}

.section:nth-child(even) {
    background-color: #e9e9e9;
}

.section h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.section p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 表單樣式 */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

form label {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 5px;
    margin-top: 5px;
}

form button:hover {
    background-color: #555;
}

/* 聯絡按鈕樣式 */
.contact-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #ff5722;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    text-align: center;
}

.contact-button a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.info-row {
    display: flex;
    justify-content: center; /* 將內容置中 */
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.info-row p {
    margin: 0;
}

#video {
    width: 100%; /* 使用百分比使其自適應容器寬度 */
    max-width: 640px;
    height: auto; /* 自適應高度 */
    border: 2px solid #ddd;
}

#overlay {
    position: absolute;
    width: 100%;
    height: auto;
    pointer-events: none;
}

#screenshot {
    display: none;
    margin-top: 20px;
    border: 2px solid #ddd;
    width: 100%;
    max-width: 640px;
    height: auto;
}

#faceImage {
    display: none;
    margin-top: 20px;
    border: 2px solid #ddd;
    /* width: 100%; */
    height: auto;
    max-width: 240px;
    height: auto;
}

#portrait {
    display: none;
    position: absolute;
    width: 100%;
    max-width: 640px;
    height: auto;
    padding-top: 30px;
    z-index: 5;
}
/* max <= 以下*/ /* min >= 以上*/
/* phone */
@media screen and (max-width: 576px) {
    h1#test {
        color: #f1491f;
    }
    video#video {
        width: 100%;
        max-width: 640px;
        height: auto;
        max-height: 400px;
    }
    canvas#portrait {
        width: 100%;
        max-width: 640px;
        height: 80%;
        padding-top: 30px;
    }
    img#screenshot {
        width: 100%;
        max-width: 640px;
        height: auto;
        max-height: 400px;
    }
    img#faceImage {
        display: none;
        margin-top: 20px;
        /* width: 100%; */
        width: auto;
        max-width: 320px;
        height: auto;
        max-height: 640px;
    }
    canvas#overlay {
        width: 100%;
        height: auto;
    }

    .section2 {
        padding-bottom: 500px;
    }
}
/* pad */
@media screen and (min-width: 576px) and (max-width: 1280px) {
    h1#test {
        color: #02fa0e;
    }
    video#video {
        width: 100%;
        max-width: 640px;
        height: auto;
        max-height: 400px;
    }
    canvas#portrait {
        width: 100%;
        max-width: 640px;
        height: 65%;
        padding-top: 30px;
    }
    img#screenshot {
        width: 100%;
        max-width: 300px;
        height: auto;
        max-height: 400px;
    }
    img#faceImage {
        display: none;
        margin-top: 20px;
        /* width: 100%; */
        width: auto;
        max-width: 240px;
        height: auto;
        max-height: 320px;
    }
    canvas#overlay {
        width: 100%;
        height: auto;
    }
    .section2 {
        padding-bottom: 700px;
    }
}

.getDataBtn {
    padding: 5px 10px;
    font-size: 16px;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 5px;
}

.customDropdown {
    padding: 5px 30px 5px 10px; /* 增加右侧内边距以给下拉箭头留空间 */
    font-size: 16px;
    color: #333;
    background-color: #fff;
    /* border: none; */
    border-radius: 5px;
    background-size: 24px; /* 调整箭头大小 */
}

.customDropdown option {
    color: #333; /* 下拉选项文字颜色 */
    background-color: #fff; /* 下拉选项背景颜色 */
}

#logoDiv {
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
}
