html {
    -ms-touch-action: manipulation;
}

h1.page-header{
    font-size: 30px;
}

.stat{
    margin-top: 5px;
}

.main-wrap{
    display: table;
    table-layout: fixed;
    width: 100%;
}

#canvas_container{
    -ms-touch-action: pan-y pinch-zoom;
    background-color:black;
    width : 100%;
    /*height:405px;    */
    padding-bottom: 66.7%;
    position: relative;
}

#player_ad_container {
    display: none;
    position: absolute;
    z-index: 1;
    /*
    width: 100%;
    height: 100%;
    */
    width:300px;
    height: 250px;
    /*max-width: 100%;
    max-height: 100%; */
    pointer-events: none;
    /*background-color: #1B1B1B;*/
    background-color: #242424;
    /*background-color: yellow;*/
    background-image: url("/img/loading.gif");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#player_ad_x_btn{
    position: absolute;
    z-index: 2;
    /*left: 0;*/
    right:0;
    top:0;
    width: 16px;
    height: 15px;
    display: none;
    pointer-events: auto;
    cursor: pointer;
}

#player_ad_container #player_ad{
    /*pointer-events: auto;*/
    display: none;
    width: 100%;
    height: 100%;
}

#player_ad_container #player_ad ins{
    pointer-events: auto;
}

.sidebar{
    /*background-color: green;*/
}

.search-box{
    margin-top: 20px;
}

.well>h2{
    margin-top: 0;
    font-size: 18px;    /*same as normal h4*/
}

@media (min-width: 768px) and (max-width: 991px){
    .main{
        display: table-cell;
    }

    .sidebar{
        display: table-cell;
        width: 260px;
        padding-left: 10px;
        vertical-align: top;
    }

    .sidebar .well{
        padding-left: 5px;
        padding-right: 5px;
    }

    .sidebar .work-cell div{
        padding-left: 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199px){
    .main{
        display: table-cell;
    }

    .sidebar{
        display: table-cell;
        width: 300px;
        padding-left: 15px;
        vertical-align: top;
    }
}

@media(min-width:1200px) {
    .main{
        display: table-cell;
        width: 720px;
    }

    .sidebar{
        display: table-cell;
        padding-left: 30px;
        vertical-align: top;
        width:420px;
    }
}

.work-cell {
    font-size: 0px;
}

.work-cell .img-wrapper{
    display: inline-block;
    width: 50%;
    vertical-align: middle;
}

.work-cell .img-wrapper img{
    width: 100%;
    height: auto;
}

.work-cell div{
    width: 50%;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    padding-left: 20px;
}



.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

#video_ad_container {
  position: absolute;
  top: 0px;
  left: 0px;
  /*width: 640px;
    height: 360px;*/
    width:100%;
    height: 100%;
    z-index: -1;
}

#play_ctrl_container{
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 2;
    overflow-y: hidden;
    height: 48px;
}

#play_ctrl{
    background-color:rgba(64, 64, 64, 0.7);
    width: 100%;
}

#volume_bar{
    display: inline-block;
    width : 50px;
    height : 13px;
    margin-right: 15px;
    vertical-align: middle;
    margin-left: 3px;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color:rgba(128, 128, 128, 0.7);
    background-clip: content-box;
}

@media (max-width: 320px){
    #volume_bar{
        display: none;    /*implies iPhone5-, not enough space to show in one line*/
    }
}

#volume_active{
    position: relative;
    width:100%;
    min-width: 10px;
    height: 100%;
    background-color:rgba(224, 224, 224, 0.7);
}

#volume_icon{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    right: 0px;
    top:-4.5px;
}

#progress_bg{
    position: relative;
    display: block;
    width : 100%;
    height : 13px;
    padding-top: 5px;
    padding-bottom: 2px;
    margin-bottom: 3px;
    background-color:rgba(128, 128, 128, 0.7);
    background-clip: content-box;
}

#progress_downloaded {
    width:0%;
    height: 100%;
    background-color:rgba(224, 224, 224, 0.7);
}

#progress_played {
    position: absolute;
    top:0;
    left:0;
    width: 0%;
    height: 6px;
    min-width: 14px;
    max-width: 100%;
    margin-top: 5px;
    background-color:rgba(240, 64, 64, 0.7);
}

#progress_now{
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    right: 0px;
    top:-4px;
}

#ctrl_icons {
    padding-left: 10px;
    padding-right: 10px;
}

#ctrl_icons .material-icons{
    font-size: 32px;
    vertical-align: middle;
}


.ctrl-buttons{
    color:#C0C0C0;
}

.ctrl-buttons:hover{
    color:white;
}


#play_time {
    font : 16px SimHei,'Courier New',monospace;
    vertical-align: middle;
    color:white;
}

#buf_msg {
    font : 14px Arial, Helvetica, sans-serif;
    vertical-align: middle;
    color:white;
}

#btn_close_ad{
    text-align: right;
    margin-top : -20px;
    margin-bottom: 0px;
    display: none;
}

.flex-row{
    display: flex;
    flex-direction: row;
}

.flex-column{
    display: flex;
    flex-direction: column;
}


.flex-center{
    justify-content: center;
}

.flex-middle{
    align-items: center;
}

#total_votes_wrap{
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 10px;
}
#votes_wrap{
    flex-wrap: wrap;
}

#votes_wrap:not(.clickable) .btn{
    cursor: auto;
    pointer-events: none;
}

#votes_wrap.clickable .vote-cnt{
    line-height: 0;
}

.vote-item{
    margin: 5px 6px 10px 6px;
}

.vote-item img{
    width: 24px;
    height: auto;
    margin-right: 5px;
}

.vote-item span{
    vertical-align: middle;
}

.vote-item.selected{
    color: #337ab7;
}

.vote-item.selected .btn{
    color: #337ab7;
    border-color:  #337ab7;
    font-weight: 700;
}

.vote-cnt{
    overflow-y: hidden;
    margin-top: 8px;
    line-height: 1.4;
    transition: line-height 0.4s ease-in-out 0.2s;
}
