/* Elevate */

.#{$csstheme} {

    font-family: $text_fontfamily;

    .#{$csscommon}-icon-play, .#{$csscommon}-icon-pause {
        color: $button_color;
    }

    .#{$csscommon}-icon-volume-up, .#{$csscommon}-icon-play, .#{$csscommon}-icon-pause,
    .#{$csscommon}-icon-resize-full, .#{$csscommon}-icon-volume-down {
        display: inline-block;
        &:before {
            font-size: $text_fontsize;
            margin: 0;
            line-height: inherit;
        }
    }

    .#{$csscommon}-settings-menu {
        bottom: 72px;
    }

    &.#{$cssie8} .#{$csscommon}-icon-volume-down {
        &:before {
            font-size: $text_fontsize + 1;
        }
    }

    .ba-settings-overlay-inner {
        bottom: 50px;
        right: $controlbar_side_padding;
    }

    .#{$csscommon}-settings-visible {
        .#{$csstheme}-button-inner {
            color: $controlbar_background;
        }
    }

    .#{$csscommon}-icon-volume-up {
        color: $button_color_secondary;
    }

    .#{$csscommon}-icon-resize-full {
        color: $button_color_secondary;
    }

    .#{$css}-seeking-thumb-container {
        bottom: 70px;
    }

}

.#{$csstheme}-dashboard {
    @include transition1(opacity, $dashboard_transition, ease-in-out);
    position: absolute;
    left: $controlbar_side_padding;
    bottom: 10px;
    width: $dashboard_width;
    opacity: 0.75;
    overflow: hidden;
    z-index: 1;

    .#{$cssplayer}-airplay-container, .#{$cssplayer}-button-active .#{$csstheme}-button-inner {
        padding-top: 2px;
    }

    .#{$cssplayer}-button-inactive .ba-commoncss-icon-subtitle {
        color: $rerecord_primarybutton_color;
    }

}


.#{$csstheme}-top-block {
    padding-top: 15px;
    width: 100%;
    clear: both;
}

.#{$cssie8} .#{$csstheme}-top-block {
    padding-top: 0;
    padding-bottom: 5px;
}

.#{$csstheme}-bottom-block {
    background-color: $controlbar_background;
    clear: both;
    height: $controlbar_bottom_height;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.#{$csstheme}-left-block {
    flex-grow: 1;
    min-width: (2 * $button_width) + $volume_width + 3;
    & > div {
        //@include right-box-shadow($button_border_color, 1);
        border-right: 1px solid $button_border_color;
        box-sizing: content-box;
        float: left;
        font-size: $button_fontsize;
        color: $button_color;
        line-height: $controlbar_line_height - 1;
        text-align: center;
        width: $button_width;
    }
}

.#{$cssie8} .#{$csstheme}-left-block {
    & > div {
        //filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)"
    }
}

.#{$csstheme}-center-block {
    flex-grow: 10;
    padding: 0 10px;
}

.#{$csstheme}-right-block {
    flex-grow: 1;
    min-width: (3 * $button_width) + 3;
    & > div {
        //@include left-box-shadow($button_border_color, 1);
        border-left: 1px solid $button_border_color;
        box-sizing: content-box;
        float: right;
        line-height: $controlbar_line_height;
        text-align: center;
    }

    & > div:first-child {
        float: left;
        line-height: $controlbar_line_height - 1;
    }

}

.#{$csstheme}-top-right-block {
    float: right;
    .#{$csstheme}-time-value{
        text-align: right;
    }
}

.#{$csstheme}-button-container {
    width: $button_width;
    text-align: center;
}

.#{$cssnoie8} .#{$csstheme}-button-inner {
    //@include relative-center-center;
    color: $button_color;
    font-size: $button_fontsize;
}

.#{$cssie8} .#{$csstheme}-button-inner {
    color: $button_color;
    font-size: $button_fontsize;
    margin-left: 3px;
}

.#{$csstheme}-button-inner {
    @include clickable;
}

.#{$csstheme}-time-container {
    @include float-width-height(left, $time_value_width, 100%);
    position: relative;
    top: $progressbar_height + 2;
    text-align: center;
    font-size: $text_fontsize;
    box-sizing: content-box;
    border: none;
}

.#{$cssie8} .#{$csstheme}-time-container {
    top: $progressbar_height - 1;
}

.#{$csstheme}-time-value {
    color: #ffffff;
    @include text-shadow(#000000, 4);
    @include relative-center-center;
    float: left;
    font-size: $text_fontsize;
    width: $time_value_width;
    letter-spacing: 0.1em;
}

.#{$cssnoie8} .#{$csstheme}-volumebar {
    @include float-width-height(right, $volume_width, 100%);
}

.#{$cssie8} .#{$csstheme}-volumebar {
    @include float-width-height(right, $volume_width, 50%);
}

.#{$csstheme}-progressbar {
    overflow: hidden;
    height: 100%;
}

.#{$csstheme}-progressbar {
    padding: 10px 0 5px;
}

.#{$csstheme}-progressbar-inner {
    @include relative-center-center;
    @include border-radius($progressbar_height / 4);
    @include clickable;
    background-color: $progressbar_cache_bgcolor;
    box-sizing: border-box;
    height: $progressbar_height;
}

.#{$csstheme}-progressbar.#{$cssplayer}-disabled {
    & .#{$csstheme}-progressbar-cache, & .#{$csstheme}-progressbar-inner, & .#{$csstheme}-progressbar-position {cursor: not-allowed}
}

.#{$csstheme}-progressbar-cache {
    @include absolute-align-left;
    @include border-round-edges($volume_height / 2);
    @include clickable;
    background-color: $progressbar_cache_bgcolor;
    height: $progressbar_height;
}

.#{$csstheme}-progressbar-position {
    background-color: $progressbar_button_overflow;
    left: -8px;
    position: absolute;
    height: 100%;
}

.#{$csstheme}-progressbar-button {
    @include border-radius(50%);
    box-sizing: content-box;
    display: inline-block;
    position: absolute;
    right: -15px;
    top: $progressbar_height / -2;
    z-index: 1;
    background-color: $button-color;
    border: ($progressbar_height / 2) solid #666666;
    height: $progressbar_height;
    width: $progressbar_height;
}

.#{$csstheme}-progressbar-marker {
    box-sizing: content-box;
    display: inline-block;
    position: absolute;
    right: -15px;
    top: ($progressbar_height / -2) - 2; //-2 to accomodate for border size
    border: 2px solid #666666;
    z-index: 1;
    background-color: $button-color;
    height: $progressbar_height * 2;
    width: $progressbar_height / 2;
}

.#{$csstheme}-button-text {
    font-family: sans-serif;
    font-weight: normal;
    font-size: 10px;
}

.#{$cssplayer}-size-small .#{$csstheme}-time-container, .#{$cssplayer}-size-small .#{$csstheme}-center-block {
    display: none;
}

.#{$cssplayer}-size-medium .#{$csstheme}-volumebar {
    display: none;
}

.#{$cssplayer}-size-medium .#{$csstheme}-right-time-container {
    display: none;
}

.#{$csstheme}-title-block > p {
    font-size: $text_fontsize;
    color: $controlbar_video_title_color;
    line-height: $controlbar_line_height;
    margin: 0;
    & > span {
        color: $text_color;
        font-weight: bold;
        font-size: 1em;
        cursor: pointer;
    }
}

.#{$csstheme}-stream-label-container{
    .#{$csstheme}-stream-label {
        @include clickable;
        background-color: $stream_label_bg_color;
        color: $stream_label_color;
        padding: 3px;
    }
}

.#{$csstheme}-left-block .#{$csstheme}-volumebar {
    float: left;
    height: $controlbar_bottom_height;
    width: $volume_width;
}

.#{$csstheme}-volumebar-inner {
    @include relative-center-center;
    @include border-round-edges($volume_height / 2);
    @include clickable;
    background-color: $volumebar_cache_bgcolor;
    height: $volume_height;
    margin: 0 5px;
}

.#{$cssie8} .#{$csstheme}-volumebar-inner {
    margin-top: -3px;
}

.#{$csstheme}-volumebar-position {
    @include border-round-edges($volume_height / 2);
    @include absolute-align-left();
    background-color: $progressbar_button_overflow;
    height: 100%;
}

.#{$csstheme}-top-left-block {
    float: left;
}

.#{$cssplayer}-size-small .#{$csstheme}-volumebar {
    display: none;
}

.#{$cssplayer}-size-small .#{$csstheme}-dashboard {
    width: 100%;
    left: 0;
}

.#{$csstheme}-title-block > p, .#{$csstheme}-left-block .#{$csstheme}-volumebar,
.#{$csstheme}-button-inner {
    padding-top: 1px;
}

.#{$csstheme}-cast-button-container button {
    //--connected-color: #00cc00;
    //--disconnected-color: #000000;
    @include transparent(0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    //outline: none;
    padding-top: 7px;
    width: 32px;
}

.#{$csstheme}-primary-button {
    padding: 0 10px;
}

.#{$csstheme}-primary-button-container {
    width: auto;
}
