.header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding: 16px 20px;
    z-index: 10;
    background-color: #000;
}

@media (min-width: 1200px) {
    .header {
        padding: 50px 50px 0px 50px;
    }
}

.logo {
    display: block;
    width: 92px;
    height: 36px;
}

@media (min-width: 1200px) {
    .logo {
        width: 197px;
        height: 80px;
    }
}

.form {
    position: relative;
    height: 100%;
    width: 100%;
    background: #fff;
    padding: 143px 50px 60px 50px;
}

@media (min-width: 1200px) {
    .form {
        z-index: 20;
        height: auto;
        max-width: 487px;
        border-radius: 16px;
        padding: 75px 113px 60px 113px;
    }
}

.form__title {
    padding: 10px 0px;
    font-size: 32px;
    font-weight: 400;
    color: #000;
    margin-bottom: 40px;
    position: relative;
}

.form__title::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 6px;
    background-color: #000;
}

.form__body {
    gap: 20px;
}

@media (min-width: 1200px) {
    .form__body {
        gap: 30px;
    }
}

.form__input {
    min-height: 44px;
    padding: 0px 20px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: #fff;
    border-radius: 70px;
    background-color: #000;
    border: 0px;
    outline: none;
}

.form__input::placeholder {
    color: #fff;
}

@media (min-width: 1200px) {
    .form__input {
        font-size: 24px;
        min-height: 57px;
        padding: 0px 28px;
    }
}

.form__checkbox {
    border-radius: 4px;
    position: relative;
    width: 22px;
    height: 22px;
    border: 3px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form__checkbox input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.form__checkbox svg {
    width: 14px;
    height: 14px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
}

.form__checkbox input:checked ~ svg {
    opacity: 100;
}

@media (min-width: 1200px) {
    .form__checkbox {
        width: 24px;
        height: 24px;
    }
}

.form__label {
    font-weight: 400;
    line-height: 20px;
    font-size: 16px;
    margin: 0;
    color: #000;
}

.form__button {
    min-width: 200px;
    min-height: 44px;
    font-size: 16px;
    color: #000;
    line-height: 20px;
    font-weight: 700;
    border-radius: 70px;
    border: 2px solid #000;
    background-color: #fff;
}

@media (min-width: 1200px) {
    .form__button {
        font-size: 20px;
        min-width: 114px;
        min-height: 54px;
    }
}

.form__hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #7c7c7c;
    font-size: 12px;
    font-weight: 400;
}

.operate-modal-wrap {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.operate-modal-wrap:has(.operate-modal--show) {
    display: flex !important;
}

.operate-modal {
    width: 100%;
    height: 100%;
    outline: none;
    border: 0;
    border-radius: 0px;
    padding: 24px 20px;
    background-color: #fff;
    display: none;
    flex-direction: column;
    gap: 30px;
}

.operate-modal--show {
    display: flex !important;
}

@media (min-width: 1200px) {
    .operate-modal {
        height: fit-content;
        max-width: 1240px;
        max-height: 100%;
        padding: 36px;
        border-radius: 16px;
        gap: 24px;
    }
}

.operate-modal__header span {
    color: #000;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.operate-modal__header .logout {
    min-width: 94px;
    min-height: 44px;
    color: #fff;
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    border-radius: 4px;
    background-color: #202020;
    outline: none;
    border: 0;
}

@media (min-width: 1200px) {
    .operate-modal__header .logout {
        min-width: 100px;
        min-height: 54px;
        font-size: 16px;
    }
}

.operate-modal__selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 1200px) {
    .operate-modal__selects {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

.operate-modal__label {
    color: #202020;
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 1200px) {
    .operate-modal__label {
        font-size: 18px;
        font-weight: 400;
    }
}

.operate-modal__select {
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #202020;
    padding: 0px 14px;
    color: #7c7c7c;
    position: relative;
    height: 44px;
}

@media (min-width: 1200px) {
    .operate-modal__select {
        height: 54px;
    }
}

.operate-modal__select:focus {
    outline: none;
}

@media (min-width: 1200px) {
    .operate-modal__select {
        padding: 15px 14px;
    }
}

.operate-modal__options {
    z-index: 10;
    position: absolute;
    top: 50px;
    left: 0px;
    transition: all 0.15s;
    width: 100%;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    list-style: none;
    padding: 0px;
    margin: 0;
    max-height: 0px;
    overflow: hidden;
    outline: none;
}

@media (min-width: 1200px) {
    .operate-modal__options {
        top: 60px;
    }
}

.operate-modal__options--active {
    overflow: scroll;
    max-height: 225px;
    border: 1px solid #000;
}

@media (min-width: 1200px) {
    .operate-modal__options--active {
        max-height: 275px;
    }
}

.operate-modal__options li {
    padding: 0px 14px;
    height: 44px;
    display: flex;
    align-items: start;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.operate-modal__options li:not(:last-child) {
    border-bottom: 1px solid #000;
}

@media (min-width: 1200px) {
    .operate-modal__options li {
        height: 54px;
    }
}

.operate-modal__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 1200px) {
    .operate-modal__body {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

.operate-modal__body button {
    width: 100%;
    height: 100%;
    background-color: #202020;
    color: #fff;
    line-height: 24px;
    font-weight: 700;
    font-size: 14px;
    min-height: 44px;
    border: 0;
    outline: none;
    border-radius: 4px;
    padding: 0;
}

@media (min-width: 1200px) {
    .operate-modal__body button {
        font-size: 16px;
        min-height: 54px;
    }
}

.operate-modal__body .non-keep {
    display: none;
}

@media (min-width: 1200px) {
    .operate-modal__body .non-keep {
        display: block;
    }
}

.operate-modal__footer {
    gap: 24px;
}

@media (min-width: 1200px) {
    .operate-modal__footer {
        gap: 30px;
        padding-top: 33px;
    }
}

.operate-modal__footer .start {
    width: 100%;
    min-height: 44px;
    border: 0;
    margin: 0;
    background-color: #202020;
    border-radius: 4px;
    color: #fff;
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    padding: 0;
}

@media (min-width: 1200px) {
    .operate-modal__footer .start {
        max-width: 390px;
        min-height: 61px;
        font-size: 24px;
    }
}

.operate-modal__footer span {
    font-size: 12px;
    font-weight: 400;
    color: #7c7c7c;
}

.wrap {
    padding: 0px 20px 24px 20px;
    position: relative;
    row-gap: 16px;
}

@media (min-width: 1200px) {
    .wrap {
        padding: 0px 50px 50px 50px;
    }
}

.trigger {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 197px;
    height: 80px;
    z-index: 100;
}

@media (min-width: 1200px) {
    .trigger {
        right: 50px;
        top: 50px;
    }
}

.ui {
    margin-top: auto;
    width: 100%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

@media (min-width: 1200px) {
    .ui {
        width: 50%;
        row-gap: 16px;
    }
}

.toolbar {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-areas:
        "speech speech switch subtitle subtitle"
        "reset start start start toggle";
}

@media (min-width: 1200px) {
    .toolbar {
        grid-template-columns: repeat(9, minmax(0, 1fr));
        grid-template-areas: "reset speech speech switch subtitle subtitle start start toggle";
    }
}

.toolbar > div:nth-child(1) {
    grid-area: reset;
}

.toolbar > div:nth-child(2) {
    grid-area: speech;
}

.toolbar > div:nth-child(3) {
    grid-area: switch;
}

.toolbar > div:nth-child(4) {
    grid-area: subtitle;
}

.toolbar > div:nth-child(5) {
    grid-area: start;
}

.toolbar > div:nth-child(6) {
    grid-area: toggle;
}

.toolbar__button {
    position: relative;
    outline: none;
    border: 1px solid #fff;
    border-radius: 4px;
    background-color: #000;
    height: 100%;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    transition: all 0.15s;
    padding: 0px 14px;
    width: 100%;
    height: 44px;
}

@media (min-width: 1200px) {
    .toolbar__button {
        height: 54px;
    }
}

@media (min-width: 1200px) {
    .toolbar__button:hover {
        background-color: #fff;
        color: #000;
    }
}

.toolbar__button:focus {
    outline: none;
}

.toolbar__button--active {
    background-color: #fff;
    color: #000;
}

.toolbar__button .reset-icon {
    width: 24px;
    height: 24px;
}

@media (min-width: 1200px) {
    .toolbar__button .reset-icon {
        width: 32px;
        height: 32px;
    }
}

.toolbar__button .select-icon {
    width: 24px;
    height: 24px;
}

.toolbar__button .switch-icon {
    width: 24px;
    height: 24px;
}

@media (min-width: 1200px) {
    .toolbar__button .switch-icon {
        width: 32px;
        height: 32px;
    }
}

.toolbar__button .toggle-icon {
    width: 24px;
    height: 24px;
}

@media (min-width: 1200px) {
    .toolbar__button .toggle-icon {
        width: 32px;
        height: 32px;
    }
}

.toolbar__label {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

@media (min-width: 1200px) {
    .toolbar__label {
        font-size: 16px;
    }
}

.toolbar__options {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: #000;
    transition: all 0.15s;
    max-height: 0px;
    overflow: hidden;
    z-index: 50;
}

@media (min-width: 1200px) {
    .toolbar__options {
        bottom: 58px;
    }
}

.toolbar__options--active {
    max-height: 1000px;
    border: 1px solid #fff;
}

.toolbar__options li {
    min-height: 44px;
    padding-left: 14px;
    padding-right: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toolbar__options li:hover {
    background-color: #fff;
    color: #000;
}

.toolbar__options li:not(:last-child) {
    border-bottom: 1px solid #fff;
}

@media (min-width: 1200px) {
    .toolbar__options li {
        min-height: 54px;
    }
}

.transformer {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "asr1 asr2 lid1"
        "tra1 tra2 tra3";
}

@media (min-width: 1200px) {
    .transformer {
        grid-template-columns: repeat(9, minmax(0, 1fr));
        grid-template-areas: ". . . asr1 asr2 tra1 tra2 tra3 lid1";
    }
}

.transformer > div:nth-child(1) {
    grid-area: asr1;
}

.transformer > div:nth-child(2) {
    grid-area: asr2;
}

.transformer > div:nth-child(3) {
    grid-area: tra1;
}

.transformer > div:nth-child(4) {
    grid-area: tra2;
}

.transformer > div:nth-child(5) {
    grid-area: tra3;
}

.transformer > div:nth-child(6) {
    grid-area: lid1;
}

.transformer__label {
    font-size: 14px;
    color: #fff;
}

@media (min-width: 1200px) {
    .transformer__label {
        font-size: 20px;
    }
}

.transformer__button {
    color: #fff;
    outline: none;
    border: 1px solid #fff;
    background-color: #000;
    height: 44px;
    border-radius: 4px;
    transition: all 0.15s;
}

@media (min-width: 1200px) {
    .transformer__button {
        height: 54px;
    }
}

.transformer__button:hover {
    background-color: #fff;
    color: #000;
}

.transformer__button:focus {
    outline: none;
}

.transformer__button--active {
    background-color: #fff;
    color: #000;
}

.time {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.time__text {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
}

@media (min-width: 1200px) {
    .time__text {
        text-align: right;
    }
}

.phrase {
    row-gap: 16px;
    z-index: 20;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.phrase__item {
    padding: 18px;
    background-color: #000;
    border: 2px solid #fff;
}

.phrase__item--reverse {
    background-color: #fff;
}

.phrase__item--left-radius {
    border-radius: 10px 10px 10px 0px;
}

.phrase__item--right-radius {
    border-radius: 10px 10px 0px 10px;
}

.phrase__text {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0px;
}

.phrase__text--reverse {
    color: #000;
}

.phrase__text--scale {
    transform: scaleX(-1);
}

/* Utilities */
.rotate-180 {
    transform: rotate(180deg);
}

.leading-5 {
    line-height: 20px;
}

/* 以下為陳舊樣式 */

/* browser 基底 scrollbar 關閉 */
::-webkit-scrollbar {
    display: none;
}
#application-logo {
    display: block;
    width: 150px;
    top: 10px;
    right: 20px;
    position: absolute;
    z-index: -1;
}
#model {
    width: 360px;
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1;
}
.time-left {
    color: #fff;
    position: fixed;
    bottom: 0;
    left: calc(50% - 180px);
    z-index: 2;
}
.black-btn {
    width: 49%;
    background-color: #000;
    border-color: #343a40;
    color: #fff;
    font-size: 12px;
    margin: 2px 0;
}
#phrase {
    display: flex;
    flex-direction: column-reverse;
    min-height: 60vh;
    overflow: auto;
}

#phrase #phrase-box {
    width: 95%;
    margin: 0 auto;
    font-size: 1.3rem;
}

#phrase #phrase-box div {
    display: table;
    margin: 10px;
    border: 1px solid #fff;
    border-radius: 10px 10px 10px 0;
}

.position-right div {
    margin: 10px 10px 10px auto !important;
}

.position-right div .original-text,
.position-right div .translated-text {
    margin: 0 0 0 auto !important;
}

#languageBox {
    color: #fff;
    margin-left: 30px;
}

/* #languageBox button {
    width: 10%;
    font-size: 12px;
    margin: 2px 4px;
    border-color: #fff;
    color: #fff;
} */

body {
    background-color: #000;
}

/* .speech-reco-btn {
    width: 3rem !important;
    height: 3rem;
    margin: 0 20px 0 4px !important;
    display: flex;
    justify-content: center;
    align-items: center;
} */

.shortcut__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-color: #fff;
    color: #fff;
    min-width: 50px;
    height: 50px;
    margin: 0 4px;
}

.lang_shortcut__btn {
    border-color: #fff;
    color: #fff;
    min-width: 4rem;
    font-size: 12px;
    margin: 2px 4px;
}

.open-origin-reverse .original-text,
.open-translated-reverse .translated-text {
    transform: scaleX(-1);
}

.hide-origin .original-text,
.hide-translated .translated-text {
    display: none !important;
}

.rotate-90 {
    transform: rotate(90deg);
}
