html, body, * {
    margin: 0;
    padding: 0;
}
body {
    /*background-color: #FF0000;*/
}

.buttonOverlay {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #eee;
    z-index: 100;
}

.buttonOverlay a, .buttonOverlay p {
    display: block;
    font-family:Arial, Helvetica, sans-serif;
    font-size: 12px;
    padding: 5px 15px;
    color: #666;
    text-decoration: none;
}
.buttonOverlay a:hover {
    text-decoration: underline;
}
#viewerNav a {
    display: block;
    position: fixed;
    z-index: 50;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 8 */
    filter: alpha(opacity=50); /* IE 5-7 */
    -moz-opacity: 0.5; /* Netscape */
    -khtml-opacity: 0.5; /* Safari 1.x */
    opacity: 0.5; /* Good browsers */	
}
#viewerNav a:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; /* IE 8 */
    filter: alpha(opacity=100); /* IE 5-7 */
    -moz-opacity: 1; /* Netscape */
    -khtml-opacity: 1; /* Safari 1.x */
    opacity: 1; /* Good browsers */	
}

#viewerNav a.prev {
    margin-top:-40px !important;
    top: 50%;
    left: 0;
}

#viewerNav a.next {
    margin-top:-40px !important;
    top: 50%;
    right: 0;
}

#viewerNav a.close {
    top: 10px;
    left: 10px;
    margin: 0;
    padding: 0;
}

#viewerCanvas {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    overflow-x: auto;
    list-style: none;
}

ul {
    display: block;
    float: left;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    zoom: 1;
}

#viewerCanvas ul {
    position: relative;
    list-style: none;
    float: none;
    width: 100%;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#viewerCanvas li.active > ul {
    height: auto;
    overflow: visible;
}

li {
    display: block;
    float: left;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-align: center;
}

#viewerCanvas > li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    float: none;
}

#viewerCanvas > li.active {
    position: relative;
    z-index: 10;
}

#viewerCanvas > li:not(.active) {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

#viewerCanvas > li,
#viewerCanvas ul li {
    margin: 0 !important;
}

#viewerCanvas ul li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    float: none;
    padding: 0;
    text-align: center;
}

#viewerCanvas li.active > ul > li {
    position: relative;
    height: auto;
    overflow: visible;
}

#viewerCanvas img {
    display: block;
    margin: 0 auto;
    padding: 0;
}

img {
    border: 0;
    -ms-interpolation-mode:bicubic;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
}

#viewerNav img {
    background: transparent;
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */   
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);   /* IE6 & 7 */ 
}

a, area { outline: 0; }

.videoContainer {
    display:none;
    position:absolute !important;
    top:50%;
    margin-top:-222px !important;
    left:50%;
    margin-left:-382px !important;
    z-index:100;
    padding:20px;
    background-color: #fff;
    border:2px solid #ccc;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

.mask {
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    background:#FFF;	
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; /* IE 8 */
    filter: alpha(opacity=70); /* IE 5-7 */
    -moz-opacity: 0.7; /* Netscape */
    -khtml-opacity: 0.7; /* Safari 1.x */
    opacity: 0.7; /* Good browsers */	
    z-index:50;
    display:none;
}

div.video-wrapper {
    width: 100%;
    height: 400px;
}
 
video.lesson-video {
    margin: 0;
    height: 100%;
    width: 100%;
    z-index: 8;
}
 
button.close-video-btn {
    border-radius: 50% !important;
    border: 1px solid #333;
    background: #000;
    cursor: pointer;
    margin: .5926em;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 2.964em;
    height: 2.964em;
    display: flex;
    align-items: center;
    justify-content: center;    
}
 
 
button.close-video-btn img {
     opacity: .75;
     display: block;
     margin: 0 auto;
}
 
button.close-video-btn span {
    display: none;
}
 
button.close-video-btn img[src=""] ~ span,
button.close-video-btn img:not([src]) ~ span {
    display: block;
}
 
@media screen and (max-width: 992px) {
        .videoContainer {
            margin-top: 0 !important;
            margin-left: 0 !important;
            width: calc(100vw - 20%);
            transform: translate(-50%, -50%);
        }
        div.video-wrapper {
               width: auto;
               height: 100%;
        }
        video.lesson-video {
            margin: 0;
            height: 100%;
        }
 
}
