/**
 * fork by Ag, ajesicus.dev@outlook.com
 * last updated: 2020-03-17
 *
 * fork from: https://s3-us-west-2.amazonaws.com/spider.multimedia/interactive_videos/code/css/video.css
 *
 * What's new ?
 * Add style for control subtitle of the video
 *
 */
* {
	margin: 0;
	padding: 0;
}
div {
	display: block;
}
.r { float: right; }
.l { float: left; }
.video-player {
	position: relative;
	color: #fff;
	background-color: #000;
	overflow: hidden;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
    border-radius: 10px;
}
.video-container{
	position: absolute;
	overflow: hidden;
}
.video-controls-center{
	display: table;
	width: 100%;
	height: 100%;
    margin: auto auto;
	text-align: center;
}
.video-controls-center:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}
.centered {
	display: inline-block;
	vertical-align: middle;
}
.video-view {
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -30;
	background-color: #fff;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-radius: 10px;
}
.video-controls {
	position: absolute;
	width: 100%;
	bottom: 0;
}
.control-progress-bar-padding {
	width: 100%;
	height: 4px;
	top: -4px;
	z-index: 928;
}
.control-progress-bar{
	bottom: 0;
	width: 100%;
}
.progress-bar-background{
	z-index: 932;
	background: #444;
}
.progress-bar-buffer{
	position: absolute;
	z-index: 933;
	background: #777;
	left: 0;
	transform: scaleX(0);
}
.progress-bar-play{
	position: absolute;
	z-index: 934;
	background: #cc181e;
	left: 0;
	transform: scaleX(0);
}
.progress-bar-background,
.progress-bar-buffer,
.progress-bar-play{
	width: 100%;
	height: 8px;
	float: left;
	-moz-transform: scaley(1);
	-ms-transform: scaley(1);
	-webkit-transform: scaley(1);
	transform: scaley(1);
	-moz-transform-origin: 0 100%;
	-ms-transform-origin: 0 100%;
	-webkit-transform-origin: 0 100%;
	transform-origin: 0 100%;
}

body{
	visibility: hidden;
}

/*Control Bar*/
.control-bar{
	margin-top: 8px;
	position: relative;
	direction: ltr;
	width: 100%;
	overflow: hidden;
	height: 27px;
	z-index: 750;
	background: #1b1b1b;
    border-radius: 10px;
}

/*Play Center*/
.button-play-center{
	background: no-repeat url('../images/icon_video_controller.png') 0px 0px;
}
.button-play-center:hover{
	background: no-repeat url('../images/icon_video_controller.png') -86px 0px;
}
.button-play-center.replay{
	background: no-repeat url('../images/icon_video_controller.png') 0px -186px;
}
.button-play-center.replay:hover{
	background: no-repeat url('../images/icon_video_controller.png') -86px -186px;
}
.button-play-center{
	position:relative;
	cursor: pointer;
	background-size: auto;
	width: 84px;
	height: 64px;
}

.loading-center{
	background: no-repeat url('../images/icon_video_controller.png') -172px -0px;
}
.loading-center:hover{
	background: no-repeat url('../images/icon_video_controller.png') -203px -0px;
}
.loading-center{
	position:relative;
	background-size: auto;
	width: 31px;
	height: 31px;
	-webkit-animation: rotating 2s linear infinite;
	-moz-animation: rotating 2s linear infinite;
	-ms-animation: rotating 2s linear infinite;
	-o-animation: rotating 2s linear infinite;
	animation: rotating 2s linear infinite;
}

/*Control Left*/
.button-play{
	background: no-repeat url('../images/icon_video_controller.png') 0px -66px;
}
.button-play:hover{
	background: no-repeat url('../images/icon_video_controller.png') -58px -66px;
}
.button-play.pause{
	background: no-repeat url('../images/icon_video_controller.png') -116px -66px;
}
.button-play.pause:hover{
	background: no-repeat url('../images/icon_video_controller.png') -174px -66px;
}
.button-play.replay{
	background: no-repeat url('../images/icon_video_controller.png') 0px -156px;
}
.button-play.replay:hover{
	background: no-repeat url('../images/icon_video_controller.png') -58px -156px;
}
.button-play{
	cursor: pointer;
	background-size: auto;
	float: left;
	width: 56px;
	height: 28px;
}

/*Control Right*/
.button-fullscreen{
	background: no-repeat url('../images/icon_video_controller.png') 0px -126px;
}
.button-fullscreen:hover{
	background: no-repeat url('../images/icon_video_controller.png') -38px -126px;
}
.button-fullscreen.exit{
	background: no-repeat url('../images/icon_video_controller.png') -76px -126px;
}
.button-fullscreen.exit:hover{
	background: no-repeat url('../images/icon_video_controller.png') -114px -126px;
}
.button-setting{
	background: no-repeat url('../images/icon_video_controller.png') -152px -126px;
}
.button-setting:hover{
	background: no-repeat url('../images/icon_video_controller.png') -190px -126px;
}
.button-subtitle,
.button-subtitle[data-state="inactive"]{
	background: no-repeat url('../images/icon-subtitle-72-28.png');
}
.button-subtitle[data-state="active"]{
	background: no-repeat url('../images/icon-subtitle-72-28.png') -36px 0px;
}

.button-subtitle,
.button-fullscreen,
.button-setting{
	cursor: pointer;
	background-size: auto;
	float: right;
	width: 36px;
	height: 28px;
}
/* subtitles menu */
.subtitles-menu {
	display:none;
	position:absolute;
	bottom:35px;
	right:8px;
	/* background:rgba(200, 200, 200, .5); */
	background: transparent;
	list-style-type:none;
	margin:0;
	padding:0;
}
.subtitles-menu li {
	padding:0;
	text-align:center;
}
.subtitles-menu li button {
	border:none;
	background:#000;
	color:#fff;
	cursor:pointer;
	padding:8px;
	-moz-border-radius:2px;
	-webkit-border-radius:2px;
	border-radius:0;
	text-align: left;
	font-size: 14px;
	width: 128px;
}

/* select subtitle that only have 2 childs */
.subtitles-menu li:first-child:nth-last-child(2),
.subtitles-menu li:first-child:nth-last-child(2) ~ li {
}
/* then apply styles to only 2 childs */
.subtitles-menu li:nth-child(1) button,
.subtitles-menu li:nth-child(2) button {
	width: auto;
	padding: 8px 1rem;
	border-radius: 4px;
	text-align: center;
}

.subtitles-menu li button:hover, .subtitles-menu li button:focus,
.subtitles-menu li button[data-state="active"] {
	background-color: #2f2f2f;
}

/* WebVTT cues */
::cue {
	color:#fefefe;
}
::cue(v[voice='Test']) {
	color:#fefefe;
	background:#0095dd;
}

.button-scrubber-seekbar {
	-ms-touch-action: none;
	z-index: 935;
	border: 5px solid #eaeaea;
	background: #aeaeae;
	height: 16px;
	width: 16px;
	left: 8px;
	z-index: 941;
	top: -1px;
	position: absolute;
	cursor: pointer;
	margin-left: -8px;
	border-radius: 8px;
	-moz-transform: translateY(0px) scale(1,1);
	-ms-transform: translateY(0px) scale(1,1);
	-webkit-transform: translateY(0px) scale(1,1);
	transform: translateY(0px) scale(1,1);
	transition: transform .1s ease-out;
}

.button-scrubber-seekbar:hover {
	background: #cc181e;
}

/* Volume */
.button-volume[data-value=max], .button-volume[data-value=loud] {
	background: no-repeat url('../images/icon_video_controller.png') 0px -96px;
}
.button-volume[data-value=max]:hover, .button-volume[data-value=loud]:hover {
	background: no-repeat url('../images/icon_video_controller.png') -38px -96px;
}

.button-volume[data-value=normal], .button-volume[data-value=quiet] {
	background: no-repeat url('../images/icon_video_controller.png') -76px -96px;
}
.button-volume[data-value=normal]:hover, .button-volume[data-value=quiet]:hover {
	background: no-repeat url('../images/icon_video_controller.png') -114px -96px;
}

.button-volume[data-value=min] {
	background: no-repeat url('../images/icon_video_controller.png') -152px -96px;
}
.button-volume[data-value=min]:hover {
	background: no-repeat url('../images/icon_video_controller.png') -190px -96px;
}

.button-volume[data-value=off] {
	background: no-repeat url('../images/icon_video_controller.png') -172px -32px;
}
.button-volume[data-value=off]:hover {
	background: no-repeat url('../images/icon_video_controller.png') -210px -32px;
}

.volume-control{
	float: left;
	background-size: auto;
	position: relative;
	direction: ltr;
	overflow: hidden;
	height: 28px;
}
.button-volume {
	background: no-repeat url('../images/icon_video_controller.png') -152px -96px;
	display: inline-block;
	cursor: pointer;
	background-size: auto;
	width: 36px;
	height: 28px;
}
.volume-panel:focus, .volume-control-hover, .volume-panel, .volume-slider-active{
	display: inline-block;
	width: 56px;
	height: 28px;
	-moz-transition: width .05s ease-in;
	-webkit-transition: width .05s ease-in;
	transition: width .05s ease-in;
}
.volume-slider {
	position: relative;
	display: block;
	height: 28px;
	width: 52px;
	float: left;
	margin: 0 6px 0 1px;
	padding: 0 3px 0 0;
	cursor: pointer;
	overflow: hidden;
}
.volume-slider-foreground {
	position: absolute;
	bottom: 6.5px;
	height: 14px;
	width: 5px;
	background: #ddd;
}
.volume-slider-foreground:after {
	position: absolute;
	top: 5px;
	display: block;
	width: 55px;
	height: 4px;
	content: '';
	background: #777;
	left: 5px;
}
.volume-slider-foreground:before {
	position: absolute;
	top: 5px;
	left: -55px;
	display: block;
	width: 55px;
	height: 4px;
	background: #b91f1f;
	content: '';
}

/* Time Display */
.time-display {
	font-size: 11px;
	float: left;
	padding-left: 6px;
	line-height: 27px;
	color: #999;
}
.time-current {
	color: #fff;
}

/* Animation */
.transition-anim-1{
	-moz-transition: -moz-transform .1s ease-out, background .15s;
	-webkit-transition: -webkit-transform .1s, ease-out,background .15s;
	-ms-transition: -ms-transform .1s ease-out, background .15s;
	transition: transform .1s ease-out, background .15s;
}


/* Mozilla proposal (dash) */
#video-player:full-screen {
    width:100%;
    height:100%;
}

/* W3C proposal (no dash) */
#video-player:fullscreen {
    width:100%;
    height:100%;
}

/* currently working vendor prefixes */
#video-player:-webkit-full-screen, #video-player:-moz-full-screen {
    width:100%;
    height:100%;
}

/* Add this attribute to the element that needs a tooltip */
[data-tooltip] {
	position: relative;
	z-index: 2;
	cursor: pointer;
}

/* Hide the tooltip content by default */
[data-tooltip]:before,
[data-tooltip]:after {
  visibility: hidden;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
	opacity: 0;
	pointer-events: none;
}

/* Position tooltip above the element */
[data-tooltip]:before {
	position: absolute;
	bottom: 150%;
	left: 50%;
	margin-bottom: 5px;
	margin-left: -80px;
	padding: 7px;
	width: 160px;
	-webkit-border-radius: 3px;
	-moz-border-radius:    3px;
	border-radius:         3px;
	background-color: #000;
	background-color: hsla(0, 0%, 20%, 0.9);
	color: #fff;
	content: attr(data-tooltip);
	text-align: center;
	font-size: 14px;
	line-height: 1.2;
}

/* Triangle hack to make tooltip look like a speech bubble */
[data-tooltip]:after {
	position: absolute;
	bottom: 150%;
	left: 50%;
	margin-left: -5px;
	width: 0;
	border-top: 5px solid #000;
	border-top: 5px solid hsla(0, 0%, 20%, 0.9);
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	content: " ";
	font-size: 0;
	line-height: 0;
}

/* Show tooltip content on hover */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
	visibility: visible;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
	opacity: 1;
}

/*
iPad Bg
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
*/
@keyframes rotating {
  from {
    transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
  }
}
@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
  }
}
.rotating {
  -webkit-animation: rotating 2s linear infinite;
  -moz-animation: rotating 2s linear infinite;
  -ms-animation: rotating 2s linear infinite;
  -o-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
}