body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

#container {
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*background: red;*/
    background: url("default_background.png");
    /* 背景图垂直、水平均居中 */
    background-position: center center;
    /* 背景图不平铺 */
    background-repeat: no-repeat;
    /* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
    background-attachment: fixed;
    /* 让背景图基于容器大小伸缩 */
    background-size: cover;
    /* 设置背景颜色，背景图加载过程中会显示背景色 */
    background-color: #464646;
}

#scannerContainer {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#activeVideo {
    width: 64%;
    height: auto;
}

#activeCanvas {
    display: none;
}

#activeCode {
    color: #2d8cf0;
    font-weight: bolder;
    font-size: 24px;
}

#inputContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

input {
    border-radius: 4px;
    width: 64vw;
    background-color: #101010;
    color: #fff;
    font-size: 14px;
    height: 40px;
    padding-left: 8px;
    box-sizing: border-box;
    border: 1px solid #2d8cf0;
}

input:focus {
    outline: none; /* 移除默认的聚焦样式 */
    border: 1px solid #2d8cf0;
}

input:active {
    border-color: #2d8cf0;
}

#errorText {
    display: none;
    color: red;
    align-self: baseline;
    font-size: 14px;
}

button {
    background: #2d8cf0;
    border-radius: 4px;
    width: 64vw;
    margin-top: 8px;
    border: 1px solid #2d8cf0;
    font-size: 16px;
    height: 40px;
    cursor: pointer;
}
