#host {
    position: absolute;
    right: 25px;
    bottom: 70px;
    width: 190px;
    height: 190px;
    pointer-events: all;
    z-index: 101;
    transform-origin: left top;
    transition: opacity 0.5s ease-in, transform 0.5s;
    cursor: pointer;
}

main.ui_hidden #host {
    opacity: 0!important; pointer-events: none!important;
    transform: translate(300px,200px) scale(1.2);
}

#main{
    position: fixed;
    width: 300px;
    height: 250px;
    left: 50%;
    top: 50%;
    margin-left:-150px;
    margin-top:-125px;  
    background-color: red;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;    
    -moz-transition: all 0.5s ease;    
    z-index: 101;


}


#host .avatar {
    position: absolute;
    box-sizing: border-box;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%,-50%);
    border-radius: 6px;
    background-color: rgba(136,0,220,1);
    pointer-events: all;
    cursor: pointer;
}
/*
#host .avatar:before {
    content: '';
    position: absolute;
    box-sizing: border-box;
    left: 50%;
    top: 50%;
    width: 108px;
    height: 108px;
    transform: translate(-50%,-50%);
    border-radius: 100px;
    border: 10px solid rgba(136,0,220,0.5);
    border-radius: 100px;
    background-position: center;
    background-size: 120%;
    background-repeat: no-repeat;
    transition: transform 0.7s, background-image 1s, opacity 0.3s;
}

#host .avatar:after {
    content: '';
    position: absolute;
    box-sizing: border-box;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%,-50%) scale(0.9);
    border: 10px solid rgba(136,0,220,0.5);
    border-radius: 100px;
    transition: transform 0.7s, opacity 0.3s;
}

#host.open .avatar:after {
    transform: translate(-50%,-50%) scale(1);
}
*/
#host .avatar .video {
    position: absolute;
    box-sizing: border-box;
    left: 50%;
    top: 50%;
    width: 185px;
    height: 185px;
    transform: translate(-50%,-50%);
    border-radius: 6px;
    overflow: hidden;
    z-index: 100;
}


#host .avatar .video video {
    position: absolute;
    left: -74px;
    top: 0;
    width: 180%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s;
}

/*
#host .avatar .video video {
    position: absolute;
    left: -47px;
    top: 0;
    
    height: 105%;
    
    transition: opacity 0.3s;
}
*/

.video_controls{
    height: 100%;
    position: relative;
    opacity: 0;
}

.video_bottom{
    top: 0;
    position: absolute;
    text-align: left;
    width: 100%;
    padding: 5px 5px;
}

.video_bottom img{
    width: 25px;
}

.video_replay{
    bottom: 0;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 0.7rem;
    padding: 0px 10px 10px 10px;
    box-sizing: border-box; 
    display: none;
}

.video_replay .desktop{
    display:  block;
}

.video_replay .mobile{
    display:  none;
}

#host.playing #btn_play{
    display: none;
}

#host:not(.playing) #btn_pause{
    display: none;
}

#toggle_video .play{
    opacity: 1;
}

#toggle_video .pause{
    opacity: 0;
}

#toggle_video.playing .play{
    opacity: 0;
}

#toggle_video.playing .pause{
    opacity: 1;    
}

@media (max-width: 600px) {
    #host {
        left: 0; 
        right: 0; 
        margin-left: auto; 
        margin-right: auto; 
        bottom: 5px;
        width: 120px;
        height: 120px;      
    }

    #host .avatar .video{
        width: 115px;
        height: 115px;
    }

    #host .avatar .video video{
        left: -46px;
    }   

    .video_controls{
        opacity: 1;
    }

    .video_replay .desktop{
        display:  none;
    }

    .video_replay .mobile{
        display:  block;
    }

    .video_replay{
        font-size: 0.6rem;
    }

}