html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

h2 {
    text-transform: uppercase;
}

.divHidden, .divTop, .divBottom, .divControlSpeech {
    width: 100%;
}

.divHelp {
    position: fixed;
    right: 0;
    font-size: 250%;
    border: 1px solid gray;
    background-color: slategrey;
    z-index: 1;
    cursor: pointer;
}

.divTop {
    position: fixed;
    border: none;
    background-color: white;
    z-index: 1000; /* 确保在最上层 */
}

.divHidden, .divTop {
    height: 50%;
}

.divBottom {
    position: relative; /* 确保相对定位 */
    top: 450px; /* 调整顶部距离，确保不会被上面的框遮掩 */
    height: auto; /* 调整高度，确保不会遮掩字幕 */
    width: 100%;
    border: 1px solid red;
    z-index: 9; /* 确保在其他元素之上 */
    margin-bottom: 100px; /* 添加底部外边距，确保不贴底部 */
}

.divControlSpeech {
    border: none;
    height: 65px;
}

.divControlsSubs {
    height: 65px;
    border-bottom: 1px solid black;
}

.divVideo, .divTranscript {
    height: calc(100% - 145px)
}

.divVideo {
    background: black;
    display: inline-block;
    width: 55%;
    opacity: 100%;
    position: relative;
}

.divTranscript {
    overflow: auto;
    vertical-align: top;
    display: inline-block;
    border: 1px solid green;
    width: 43%;
}

video::cue {
    background: rgba(1, 1, 1, 0);
    text-shadow: -1px -1px 0 #000000,1px -1px 0 #000000,-1px 1px 0 #000000,1px 1px 0 #000000;
}

::cue(.recordRed) {
    color: red;
    font-size: 120%;
}

::cue(.recordWhite) {
    color: white;
    font-size: 120%;
}

::cue(.textGreen) {
    color: lawngreen;
}

::cue(.textWhite) {
    color: white;
}

::cue(.countS) {
    font-size: 70%;
}

::cue(i) {
    font-size: 60%;
}

select, label, button, .divControlsEdit div {
    border: none;
    color: white;
    padding: 0px 0px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 100%;
    margin: 0px 0px;
    background-color: #717171;
    vertical-align: bottom;
    height: 25px;
    padding-right: 10px;
    padding-left: 10px;
}

#editAll {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
    display: none;
}

.divControlsEdit {
    position: fixed;
    top: 58px;
    right: 20px;
}

.divControlsEdit div {
    cursor: pointer;
}

#idCountCharacters {
    background: black;
    color: white;
    position: sticky;
    top: 0px;
    right: 0px;
}

#idCountCharacters[data-diff="true"] {
    background: red;
}

#idTranscript:hover~#idCountCharacters {
    display: none;
}

#idLabelSubtitle,#idButtonRecognition,#idLabelVideo, #idSelectLanguage,#idSelectDialect,#idCaptions {
    height: 25px;
    width: 30%;
    font-size: 100%;
    cursor: pointer;
}

button {
    cursor: pointer;
}

#idButtonDown,#idButtonUp,#idDownloadTable,#idDownloadTrack {
    font-size: 100%;
}

#idGroup1,#idGroup2,#idGroup3,#idGroup4 {
    margin: 5px;
}

input {
    border: none;
    text-align: left;
    padding: 0px 0px;
    display: inline-block;
    font-size: 100%;
    transition-duration: 0.4s;
    /*height:100%;*/
}

.inputGroup {
    border: 1px solid black;
    display: inline-block;
    vertical-align: text-bottom;
}

.DowloadSubtitle {
    width: auto;
    visibility: hidden;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

input.visually-hidden:focus + label {
    outline: thin dotted;
}

input.visually-hidden:focus-within + label {
    outline: thin dotted;
}

.idModal {
    display: none;/* 默认隐藏 */
    position: fixed;/* 固定位置 */
    z-index: 1;   /* 位于顶部 */
    padding-top: 100px; /* 盒子位置 */
    left: 0;
    top: 0;
    width: 100%; /* 全宽 */
    height: 100%; /* 全高 */
    overflow: auto; /* 如果需要，启用滚动 */
    background-color: rgb(0,0,0); /* 备用颜色 */
    background-color: rgba(0,0,0,0.4); /* 黑色带透明度 */
}

.idModal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    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);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.idModal-header {
    padding: 2px 16px;
    background-color: slategrey;
    color: white;
}

.idModal-body {
    padding: 2px 16px;
}

.idModal-footer {
    padding: 2px 16px;
    background-color: slategrey;
    color: white;
}

ol {
    padding: 0px;
}

ol li {
    margin-left: 40px;
}