#video-size-wrapper {
    height: 50%;
}

#video-wrapper {
    overflow: hidden;
    padding: 0;
}

    #video-wrapper div {
        padding: 10px;
    }

    #video-wrapper .controls {
        width: 100%;
        padding: 0;
        position: relative;
    }

        #video-wrapper .controls[data-state=hidden] {
            display: none;
        }

        #video-wrapper .controls[data-state=visible] {
            display: block;
        }

        #video-wrapper .controls > * {
            display: inline-block;
            height: 100%;
            font-size: 26px;
            margin-top: 0;
            width: 36px;
            vertical-align: top;
        }

        #video-wrapper .controls .progress {
            cursor: pointer;
            width: 45%;
        }

        #video-wrapper .controls button {
            background: transparent;
            background-size: contain;
            background-repeat: no-repeat;
            border: none;
            color: white;
            cursor: pointer;
            padding-top: 8px;
        }

            #video-wrapper .controls button:hover, .controls button:focus {
                opacity: 0.5;
            }

            #video-wrapper .controls button[data-state="play"]:after {
                content: 'a';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="pause"]:after {
                content: 'b';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="stop"]:after {
                content: 'c';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="mute"]:after {
                content: 'd';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="unmute"]:after {
                content: 'e';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="volup"]:after {
                content: 'f';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="voldown"]:after {
                content: 'g';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="go-fullscreen"]:after {
                visibility: hidden;
                content: 'h';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="cancel-fullscreen"]:after {
                visibility: hidden;
                content: 'h';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="share"]:after {
                content: 'j';
                font-family: "upiva-video";
            }

            #video-wrapper .controls button[data-state="other"]:after {
                content: 'm';
                font-family: "upiva-video";
            }

        #video-wrapper .controls progress {
            display: block;
            width: 100%;
            height: 80%;
            border: none;
            color: #0095dd;
            -moz-border-radius: 2px;
            -webkit-border-radius: 2px;
            border-radius: 2px;
        }

            #video-wrapper .controls progress[data-state="fake"] {
                background: #e6e6e6;
                height: 65%;
            }

            #video-wrapper .controls progress span {
                width: 0%;
                height: 100%;
                display: inline-block;
                background-color: #2a84cd;
            }

            #video-wrapper .controls progress::-moz-progress-bar {
                background-color: #706F6F;
            }

            #video-wrapper .controls progress::-webkit-progress-value {
                background-color: #706F6F;
            }

#video-controls {
    background: #000000;
    background: rgba(0,0,0,0.8);
    bottom: 96px;
    color: white;
    height: 46px;
    padding-left: 0;
    text-align: center;
    z-index: 9999;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#video-overlay {
    background-color: #ffffff;
    cursor: default !important;
    display: none;
    text-align: center;
    width: 100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    #video-overlay div {
        padding: 2px;
    }

    #video-overlay .element {
        padding-top: 12px;
    }

    #video-overlay #video-header {
        font-family: 'open_sanslight';
        font-size: 24px;
    }

    #video-overlay #video-logo-wrapper {
        padding-bottom: 30px;
    }

    #video-overlay #logo-wrapper {
    }

    #video-overlay #video-footer {
        font-size: 16px;
    }

#video-footer-created-by-logo {
    width: 119px;
}

#video-ending {
    background: #000000;
    background: rgba(0,0,0,0.85);
    border-radius: 6px;
    box-shadow: 12px 12px 6px rgba(192,192,192, 0.1);
    color: #ffffff;
    display: none;
    height: 74%;
    left: 1%;
    position: absolute;
    text-shadow: 1px 1px 2px #000000;
    top: 10%;
    width: 98%;
    z-index: 999;
}

    #video-ending h3 {
        color: #ffffff;
    }

.video-ending-thumb {
    max-width: 160px;
    padding-right: 10px;
    width: 160px;
}

    .video-ending-thumb img {
        max-width: 150px;
        padding-left: 4px;
        padding-top: 4px;
        padding-bottom: 4px;
        vertical-align: middle;
    }

.video-ending-title {
    font-size: 20px;
    font-weight: bold;
}

#video-ending-table-wrapper {
    background: #000000;
    background: rgba(0,0,0,0.2);
    border-collapse: collapse;
    height: 60%;
    overflow-x: hidden;
    overflow-y: auto;
}

    #video-ending-table-wrapper td {
        text-align: left;
    }

#video-ending-table {
    border-collapse: collapse;
    width: 100%;
}

    #video-ending-table td {
        transition: background ease-in-out 300ms, color ease-in-out 300ms, opacity ease-in-out 300ms, text-shadow ease-in-out 300ms;
    }

    #video-ending-table tr:hover td {
        background: #706F6F;
        color: #ffffff;
        cursor: pointer;
        opacity: 0.9;
    }



#video-share {
    background: #000000;
    border: 1px solid silver;
    border-radius: 6px;
    color: #ffffff;
    display: none;
    left: 8%;
    position: absolute;
    text-shadow: 1px 1px 2px #000000;
    top: 20%;
    min-height: 180px;
    width: 82%;
    height: 30%;
    z-index: 1006;
}

    #video-share input {
        width: 100%;
    }

    #video-share .video-share-label {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

#video-compare-link {
    background: #A5A5A5;
    bottom: 96px;
    box-shadow: 2px 4px 5px -2px rgba(0,0,0,0.46);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    left: 36px;
    max-width: 75%;
    opacity: 1.0;
    padding: 10px 20px;
    position: absolute;
    text-decoration: none;
    transition: background ease-in-out 0.3s;
    z-index: 999;
}

    #video-compare-link:hover {
        background: #B7B7B7;
    }

#video-share-embed {
    padding-top: 30px !important;
}

#video-share-data-wrapper {
    width: 100%;
    height: 100%;
}

#video-share-close, #video-ending-close {
    cursor: pointer;
    float: right;
    opacity: 1.0;
    transition: opacity ease-in-out 300ms;
}

    #video-share-close:hover, #video-ending-close:hover {
        opacity: 0.8;
    }

    #video-share-close:after, #video-ending-close:after {
        content: 'm';
        font-family: "icomoon";
    }

#video-ending-replay, #video-ending-share {
    cursor: pointer;
    display: inline-block;
    height: 80px;
    transition: opacity ease-in-out 300ms;
    width: 180px;
}

    #video-ending-replay:hover {
        opacity: 0.8;
    }

    #video-ending-share:hover {
        opacity: 0.8;
    }

    #video-ending-replay:before {
        content: 'a';
        display: block;
        font-family: "upiva-video";
        font-size: 30px;
    }

    #video-ending-share:before {
        content: 'j';
        font-family: "upiva-video";
        display: block;
        font-size: 30px;
    }

#video-ending-controls {
    text-align: center;
}

@media (max-width: 767px) {
    #video-share-embed {
        padding-top: 10px !important;
    }

    #video-share {
        font-size: 12px;
        height: auto;
        padding-top: 0 !important;
        padding-bottom: 20px !important;
        top: 30%;
    }

    #video-overlay #video-header {
        font-size: 16px;
        padding-top: 6px;
    }

    #video-overlay #video-logo-wrapper {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    #video-overlay #video-footer {
        font-size: 12px;
        padding-top: 6px;
    }

    #video-ending-table-wrapper {
        height: 65%;
        margin-top: 10px;
    }

    .video-ending-title {
        font-size: 14px;
    }

    .video-ending-thumb img {
        max-width: 100px;
    }

    .video-ending-thumb {
        max-width: 100px;
        padding-right: 10px;
        width: 110px;
    }

    #video-ending h3 {
        display: none;
    }

    #video-wrapper .controls .progress {
        width: 50%;
    }

    #volinc, #voldec, #stop {
        display: none !important;
    }

    #video-ending-replay, #video-ending-share {
        height: 60px;
        width: 140px;
        padding: 2px;
    }
}


@media (max-width: 480px) {
    #mute {
        display: none !important;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    #video-wrapper .controls, #video-overlay {
        width: 85.4% !important;
    }

    video {
        max-width: 85.4% !important;
    }

    #video-share {
        width: 66% !important;
    }

    #video-ending {
        top: 10% !important;
        width: 83.5% !important;
    }

    #video-ending-table-wrapper {
        height: 64% !important;
    }
}
