﻿.subtitles-panel-container {
    display: flex;
    flex-direction: column;
    padding-left: 24px;
}

.subtitles-panel-container-destination {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: end;
}

.subtitles-panel-settings {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    height: 100%;
}

    .subtitles-panel-settings div {
        position: relative;
    }


.subtitles-panel-settings-close {
    grid-area: close;
}

    .subtitles-panel-settings-close > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        cursor: pointer;
        position: relative;
        width: 20px;
        margin-top: 10px;
        margin-left: 10px;
    }

.subtitles-panel-settings-cur-offset {
    grid-area: curoffset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitles-panel-settings-new-offset {
    grid-area: newoffset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitles-panel-settings-frames {
    grid-area: frames;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitles-panel-settings-button-apply {
    grid-area: button;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitles-panel-settings-button-dest {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
}

.offset-panel-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    color: #F2F2F2;
    letter-spacing: 0.75px;
}

.offset-panel-info-title {
    font-size: 11px;
    color: #FFFFFFCC;
}

.subtitle-panel-buttons-panel-main {
    overflow: hidden;
}

.subtitle-panel-buttons-panel-main-hide {
    height: 24px;
}

    .subtitle-panel-buttons-panel-main-hide .arrow {
        transform: rotate(0deg);
    }

.arrow {
    height: 12px;
    width: 12px;
    fill: #FFFFFFAA;
    transform: rotate(90deg);
}

.subtitle-panel-title-split {
    display: grid;
    grid-template-columns: auto 1fr;
    color: #FFFFFF;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    font-size: 18px;
    font-family: Raleway-ExtraBold, Raleway;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.subtitle-panel-title-split-splitter {
    display: flex;
    height: 16px;
    border-bottom: 1px solid #FFFFFFAA;
    margin-left: 6px;
}

.subtitle-panel-buttons-panel-title-icon {
    padding-top: 1px;
}

.subtitle-panel-buttons-panel-title {
    display: grid;
    grid-template-columns: 20px auto 1fr;
    cursor: pointer;
    text-transform: uppercase;
    color: aqua;
    font-size: 16px;
    font-family: Raleway-ExtraBold, Raleway;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.subtitle-panel-buttons-panel-title-splitter {
    display: flex;
    height: 16px;
    border-bottom: 1px solid #FFFFFFAA;
    margin-left: 6px;
    margin-right: 6px;
    margin-bottom: 8px;
}

.subtitle-panel-buttons-panel-splitter {
    display: flex;
    height: 1px;
    border-bottom: 1px solid #C4C4C475;
    margin-left: 6px;
    margin-right: 6px;
    margin-bottom: 8px;
}

.offset-panel-info-time {
    color: #F2F2F2;
    opacity: 1;
    font-size: 16px;
    letter-spacing: 0.75px;
    font-size: 22px;
    font-family: Aileron-Light, Aileron;
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* leg */

.select-offset {
    background-color: #333333;
    border: 1px solid #FFFFFF;
    margin: 0;
    width: 100px;
    height: 40px;
    padding: 0 0 0 10%;
    cursor: pointer;
    font-size: 14px;
    font-family: Raleway-Medium, Raleway;
    font-weight: 500;
}

.button-offset-left {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #FFFFFF;
    background-color: #333333;
    border-radius: 20px 0 0 20px;
    height: 40px;
    width: 40px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

    .button-offset-left:hover {
        background-color: #72f9f5;
        color: #213138;
    }

.button-offset-right {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #FFFFFF;
    background-color: #333333;
    border-radius: 0 20px 20px 0;
    height: 40px;
    width: 40px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

    .button-offset-right:hover {
        background-color: #72f9f5;
        color: #213138;
    }

    .button-offset-right:target {
    }


.button-offset-apply {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #99d7d2;
    border-radius: 20px;
    background-color: #FFFFFF;
    color: #525252;
    font-size: 16px;
    font-weight: 800;
    width: 120px;
    height: 40px;
    cursor: pointer;
    letter-spacing: 2px;
}

    .button-offset-apply:hover {
        background-color: #72f9f5;
        color: #213138;
    }

.button-offset-reset {
    display: inline-block;
    float: left;
    padding: 3px 0;
    margin: 3px 1px;
    cursor: pointer;
    color: #f2f2f2;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

    .button-offset-reset:hover {
        color: #72f9f5;
    }


.subtitle-panel {
    position: fixed;
    display: grid;
    grid-template-rows: 110px 1fr;
    bottom: 2px;
    height: 440px;
    min-width: 400px;
    left: 18%;
    right: 18%;
    color: #f2f2f2;
    z-index: 200;
    border: 1px solid #9A9A9A;
    cursor: default;
    transition: height 0.7s cubic-bezier(0, 0, 1, 1) 100ms;
    max-height: 80%;
    opacity: 1;
}

    .subtitle-panel > div {
    }


.subtitle-panel-fullscreen {
    height: 750px;
}

.subtitle-panel-subtitles-panel-top {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: 60%;
    display: none;
    max-height: 88px;
    background-color: #525252;
}

.subtitle-panel-destination-panel-top {
    position: absolute;
    display: flex;
    align-items: center;
    top: 10px;
    right: 40px;
    bottom: 10px;
    max-height: 88px;
}

.subtitle-panel-minscreen {
    height: 110px;
}

    .subtitle-panel-minscreen .subtitle-panel-buttons-panel {
        display: none;
    }

    .subtitle-panel-minscreen .subtitle-panel-subtitles-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: calc(60% - 180px);
        height: 110px;
        width: 110px;
        padding: 0;
        margin: 0;
    }

        .subtitle-panel-minscreen .subtitle-panel-subtitles-panel > .autosub-navigate {
            display: none;
        }

        .subtitle-panel-minscreen .subtitle-panel-subtitles-panel > .subtitles-panel-container > *:not(.subtitles-panel-container-autosub) {
            display: none;
        }

        .subtitle-panel-minscreen .subtitle-panel-subtitles-panel .subtitles-panel-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 110px;
            height: 110px;
            padding: 0;
            margin: 0;
        }

        .subtitle-panel-minscreen .subtitle-panel-subtitles-panel .subtitles-panel-container-autosub {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 110px;
            height: 110px;
            padding: 0;
            margin: 0;
        }

            .subtitle-panel-minscreen .subtitle-panel-subtitles-panel .subtitles-panel-container-autosub .autolivesub-navigation-area > .autosub-color-area {
                display: none;
            }

    .subtitle-panel-minscreen .autolivesub-navigation-area {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 110px;
        height: 110px;
        padding: 0;
        margin: 0;
    }


    .subtitle-panel-minscreen .subtitle-panel-subtitles-panel-top {
        display: flex;
        align-items: center;
    }

    .subtitle-panel-minscreen .subtitle-panel-destination-panel-top {
        top: 10px;
    }


.subtitle-panel-body {
    position: relative;
    display: grid;
    grid-template-areas:
        ". buttons subtitles close";
    grid-template-columns: 40px 480px 1fr 40px;
    min-height: 200px;
    height: 100%;
}

.subtitle-panel-buttons-panel {
    position: relative;
    grid-area: buttons;
    height: 100%;
    border-right: 2px solid #525252;
    padding-top: 36px;
}

.subtitle-panel-subtitles-panel {
    grid-area: subtitles;
    display: grid;
    grid-template-rows: 60px 1fr auto;
    padding-top: 36px;
}


.arena-test {
    height: 400px;
    max-height: 100%;
    overflow: auto;
    padding-right: 40px;
}

.subtitle-panel-fullscreen .arena-test {
    height: 670px;
}

.subtitle-panel-buttons-panel-body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding-left: 0px;
    padding-bottom: 10px;
}

.subtitles-arena {
    display: grid;
    grid-template-areas:
        "body";
    grid-template-rows: 1fr;
    margin-top: 10px;
    width: 100%;
}

.subtitles-arena-title {
    grid-area: title;
    display: flex;
}

.subtitles-arena-body {
    grid-area: body;
    background-color: #525252;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle-info {
    display: inline-block;
    float: left;
    border-style: solid;
    border-width: 1px;
    border-radius: 7px;
    color: aqua;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    padding: 2px;
    margin: 10px;
    width: 60px;
    height: 60px;
}

.subtitle-text {
    display: inline-block;
    float: none;
    border-style: solid;
    border-width: 0;
    color: aqua;
    font-family: 'Aileron-SemiBold';
    font-size: 18px;
    text-align: left;
    padding: 2px 2px 2px 2px;
    margin: 0 10px;
    height: 60px;
    cursor: default;
    width: 100%;
}

.subtitle-text-linenumber {
    margin-left: 10px;
    margin-right: 40px;
    padding-bottom: 2px;
    font-size: 14px;
}

.subtitle-panel-destination-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 66px;
    width: 66px;
    border: 1px solid #FFFFFF22;
    cursor: pointer;
    font-size: 9px;
}

    .subtitle-panel-destination-button:hover {
        border-color: #00FFFF;
    }

.button-close {
    display: inline-block;
    border: 1px solid darkcyan;
    border-radius: 2px;
    color: darkcyan;
    cursor: pointer;
    height: 10px;
    width: 10px;
}

    .button-close:hover {
        border-color: lightcyan;
    }

.subtitle-stream-button {
    position: relative;
    width: 130px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #525252;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    margin: 6px;
}

    .subtitle-stream-button:hover {
        border-color: #00aaaa;
    }

.subtitle-stream-button-actived {
    --background-color: #00aaaaaa;
    background-color: var(--background-color);
}

.subtitle-stream-button-context-menu {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle-stream-button-title-text {
    height: 30px;
    width: 70px;
    line-height: 30px;
    padding-left: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.subtitle-stream-button-title-indicator {
    height: 16px;
    width: 42px;
    overflow: hidden;
    margin-right: 10px;
    display: flex;
    justify-content: end;
    align-items: center;
}

.indicator-active {
    border: 1px solid #00FFFF;
}

.subtitle-panel-fullscreen .subtitles-arena-body {
    justify-content: start;
    align-items: start;
    height: 440px;
    margin-bottom: 10px;
}

.subtitle-panel-fullscreen .subtitle-text {
    font-size: 13px;
    text-align: left;
}

.subtitle-panel-fullscreen .subtitles-arena {
    height: 100%;
}

.subtitle-stream-button-title-indicator > .indicator-active {
    border-color: #00000000;
}

.subtitles-panel-settings-button-dest > .indicator-active {
    border: 3px solid #00FFFF;
}

.subtitle-stream-button-title-indicator > .indicator-online {
}

.subtitle-info-toogle {
    display: flex;
    flex-direction: column;
    height: 20px;
    width: 8px;
}

.subtitle-info-toogle-button {
    fill: #FFFFFF;
    height: 18px;
    width: 18px;
}

    .subtitle-info-toogle-button:hover {
        fill: #00DDDDDD;
    }

.subtitle-info-toogle-button-active {
    fill: #00DDDD;
}

::-webkit-scrollbar {
    width: 8px;
}

/* Track */

::-webkit-scrollbar-track {
    border-radius: 0;
}

/* Handle */

::-webkit-scrollbar-thumb {
    width: 8px;
    border-radius: 8px;
    background-color: #525252;
}

body::-webkit-scrollbar {
    background-color: #525252aa;
    width: 14px;
}

/* Track */

body::-webkit-scrollbar-track {
    border-radius: 0;
}

/* Handle */

body::-webkit-scrollbar-thumb {
    width: 8px;
    border-radius: 8px;
    background-color: #525252;
}



.arena-test::-webkit-scrollbar {
    background-color: none;
    width: 6px;
}

.arena-test::-webkit-scrollbar-track {
    border-radius: 0;
}

.arena-test::-webkit-scrollbar-thumb {
    width: 6px;
    border-radius: 6px;
    background-color: #525252;
}

.autosub-navigate {
    display: flex;
    flex-direction: column;
    margin-top: 0px;
    margin-left: 0px;
    min-height: 80px;
    font-size: 10px;
    width: 100%;
}

.subtitles-panel-container-autosub {
    height: 80px;
    width: 100%;
    display: flex;
    flex-direction: row;
}
