/* VARIABLES
	Some variables for the skin. Feel free to play around.
 */
@base-font-size: 22px;
@touch-device-font-size: 15px;

@main-font-color: #fff; 

@control-bg-color: #000;
@control-bg-alpha: 0; 

@slider-bar-color: #fff; 
@slider-background-color: #fff;
@slider-background-alpha: 0.1; // 1.0 = 100% opacity, 0.0 = 0% opacity

/* SKIN */

// Icon font character values
@play-icon: "\e602";
@pause-icon: "\e60a";
@volume-muted-icon: "\e603";
@volume-low-icon: "\e606";
@volume-mid-icon: "\e607";
@volume-high-icon: "\e605";
@fullscreen-enter-icon: "\e608";
@fullscreen-exit-icon: "\e609";
@subtitles-icon: "\e60d";
@captions-icon: "\e600";
@lightboxclose-icon: "\e601";
@highres-icon: "\e60b";
@lowres-icon: "\e60f";
// @chapters-icon: "\e00c";
// @share-icon: "\e00e";
// @cog-icon: "\e600";

// Font for texts and times
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);

// Icon font
@font-face {
	font-family: 'afterglow-icon';
	src: url(data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBncAAAC8AAAAYGNtYXDPacz+AAABHAAAAGxnYXNwAAAAEAAAAYgAAAAIZ2x5ZreZViUAAAGQAAAK7GhlYWQO52HJAAAMfAAAADZoaGVhCuoG/AAADLQAAAAkaG10eEhEAzQAAAzYAAAATGxvY2ETpBW6AAANJAAAAChtYXhwABoAwwAADUwAAAAgbmFtZZlKCfsAAA1sAAABhnBvc3QAAwAAAAAO9AAAACAAAwREAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpCQPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAUAAAABAAEAADAAAAAQAg5gvmDeYP6Qn//f//AAAAAAAg5gDmDeYP6Qn//f//AAH/4xoEGgMaAhcJAAMAAQAAAAAAAAAAAAAAAAAAAAAAAQAB//8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MS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* Base UI Component Classes
--------------------------------------------------------------------------------
*/

.vjs-afterglow-skin {
	&:focus,
	*:focus {
		outline:0;
	}

	overflow:hidden;
	color: @main-font-color;

	video{
		// To make the fading of the poster work
		background-color:#000;
	}

	/* Slider - used for Volume bar and Seek bar */
	.vjs-slider {
		/* Replace browser focus highlight with handle highlight *///
		outline: 0;
		position: relative;
		cursor: pointer;
		padding: 0;
		border-radius: 10px;
		-moz-border-radius: 10px;
		-webkit-border-radius: 10px;
		margin: 0 30px;

		@media(max-width:768px){
			margin: 0 20px;
		}
		@media(max-width:512px){
			margin: 0 12px;
		}

		.background-color-with-alpha(@slider-background-color, @slider-background-alpha);

		&:hover{
			margin: 0 30px; /* Overwriting defaults */

			@media(max-width:768px){
				margin: 0 20px;
			}
			@media(max-width:512px){
				margin: 0 12px;
			}
		}

		&:focus{
			.box-shadow(0 0 2em #fff);
		}
	}

	.vjs-slider-handle {
		position: absolute;
		/* Needed for IE6 *///
		left: 0;
		top: 0;
		display:none;
	}

	.vjs-play-progress:before {
		display:none !important;
		height:0;
		width:0;
		font-size: 0.9em;
	}

	.vjs-progress-control:hover .vjs-play-progress:after
	{
		display:none;
	}

	.vjs-progress-control .vjs-mouse-display,
	.vjs-progress-control:hover .vjs-mouse-display{
		display:none;
	}

	/* Control Bar
	--------------------------------------------------------------------------------
	The afterglow control bar that is a container for most of the controls.
	*/
	.vjs-control-bar {
		/* Start hidden *///
		display: none;
		position: absolute;
		/* Place control bar at the bottom of the player box/video.
		 If you want more margin below the control bar, add more height. *///
		bottom: 16px;
		/* Use left/right to stretch to 100% width of player div *///
		left: 0;
		right: 0;
		/* Height includes any margin you want above or below control items *///
		height: 33px;
		font-family: 'Open Sans';
		color:rgba(255,255,255,0.9);

		@media(max-width:768px){
			bottom:7px;
		}
		@media(max-width:512px){
			bottom:0px;
		}

		.background-color-with-alpha(@control-bg-color, @control-bg-alpha);

		.div{
			opacity:0.9;

			&:hover{
				opacity:1;
			}
		}
	}

	/* Show the control bar only once the video has started playing */
	&.vjs-has-started .vjs-control-bar {
		display: block;
		/* Visibility needed to make sure things hide in older browsers too. */
		visibility: visible;
		opacity: 1;

		@trans: visibility 0.1s, opacity 0.1s; // Var needed because of comma
		.transition(@trans);
	}
	&.vjs-has-started.vjs-ended .vjs-control-bar,
	&.vjs-has-started.vjs-ended .vjs-top-control-bar {
		display: block;
		visibility: hidden;
		opacity: 0;
	}

	/* Hide the control bar when the video is playing and the user is inactive  */
	&.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
		display: block;
		visibility: hidden;
		opacity: 0;

		@trans: visibility 1.0s, opacity 1.0s;
		.transition(@trans);
	}

	&.vjs-controls-disabled .vjs-control-bar {
		display: none;
	}

	&.vjs-using-native-controls .vjs-control-bar {
		display: none;
	}

	/* The control bars shouldn't show after an error */
	&.vjs-error .vjs-control-bar, &.vjs-error .vjs-top-control-bar {
		display: none;
	}

	/* Don't hide the control bar if it's audio */
	&.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
		opacity: 1;
		visibility: visible;
	}

	/* IE8 is flakey with fonts, and you have to change the actual content to force
		fonts to show/hide properly.
		- "\9" IE8 hack didn't work for this
		- Found in XP IE8 from http://modern.ie. Does not show up in "IE8 mode" in IE9
	*/
	@ie8screen: ~"\0screen";
	&.vjs-user-inactive.vjs-playing .vjs-control-bar :before {
		@media @ie8screen { content: ""; }
	}

	/* General styles for individual controls. */
	.vjs-control {
		outline: none;
		position: relative;
		float: left;
		text-align: center;
		margin: 0;
		padding: 0;
		height: 40px;
		width: auto;

		@media(max-width:768px){
			height:30px;
		}

		&.vjs-subtitles-button.vjs-control,
		&.vjs-captions-button.vjs-control{
			width:40px;

			@media(max-width:768px){
				width:30px;
			}
			@media(max-width:512px){
				width:20px;
			}
		}

		/* Font button icons */
		&:before {
			font-family: 'afterglow-icon';
			font-size: 17px;
			line-height: 18px;
			padding-top:10px;
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			text-align: center;
			opacity:.9;
			text-shadow:0 0 0 rgba(255,255,255,0);

			@media(max-width:768px){
				font-size:13px;
				line-height:13px;
				padding-top:9px;
			}

			@media(max-width:512px){
				font-size:11px;
				line-height:11px;
				padding-top:6px;
			}
		}

		/* Replacement for focus outline */
		&:focus:before,
		&:hover:before {
			text-shadow: 0 0 5px rgba(255, 255, 255, .6);
			opacity:1;
		}

		&:focus {
		/*  outline: 0; *///
		/* keyboard-only users cannot see the focus on several of the UI elements when
		this is set to 0 */
		}
	}

	/* Hide control text visually, but have it available for screenreaders */
	.vjs-control-text {
		.hide-visually;
	}

	/* Play/Pause
	--------------------------------------------------------------------------------
	*/
	.vjs-play-control {
		width: 50px;
		cursor: pointer;
		position:absolute;
		left:50%;
		margin-left:-25px;

		@media(max-width:512px){
			position:relative;
			left:auto;
			margin-left:0;
			width:25px;
		}

		&:before{
			content: @play-icon;
			margin-left:1px;
			font-size:22px;

			@media(max-width:768px){
				font-size:20px;
				line-height:22px;
				top:-5px;
			}

			@media(max-width:512px){
				font-size:10px;
				line-height:10px;
				top:0px;
			}
		}
	}

	&.vjs-playing .vjs-play-control:before {
		content: @pause-icon;
	}

	/* Playback toggle
	--------------------------------------------------------------------------------
	*/
	.vjs-playback-rate .vjs-playback-rate-value {
		font-size: 1.5em;
		line-height: 2;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		text-align: center;
		text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);

		&.vjs-menu-button .vjs-menu .vjs-menu-content {
			width: 30px;
			left: 15px;
			list-style: none;
		}
	}

	/* Volume/Mute
	-------------------------------------------------------------------------------- */
	.vjs-mute-control,
	.vjs-volume-menu-button {
		cursor: pointer;
		float: right;
		width: auto;
		padding-left: 32px;
		margin-left: 10px;

		&:before{
			content: @volume-high-icon;
			cursor:pointer;
		}

		&.vjs-vol-0:before{
			content: @volume-muted-icon;
		}

		&.vjs-vol-1:before{
			content: @volume-low-icon;
		}

		&.vjs-vol-2:before{
			content: @volume-mid-icon;
		}

		@media(max-width:768px){
			margin-left:0;
		}

		@media(max-width:512px){
			height:26px;
			padding-left:27px;
		}
	}

	.vjs-volume-control {
		float: right;
	}

	.vjs-volume-level {
		position: absolute;
		top: 0;
		left: 0;
		height: 4px;
		/* assuming volume starts at 1.0 */
		width: 100%;
		background-color:#fff;
		border-radius:4px;
	}

	/* The volume menu button is like menu buttons (captions/subtitles) but works
		a little differently. It needs to be possible to tab to the volume slider
		without hitting space bar on the menu button. To do this we're not using
		display:none to hide the slider menu by afterglow, and instead setting the
		width and height to zero. 
	*/
	.vjs-volume-menu-button .vjs-menu,
	.vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu {
		display: block;
		width: 0;
		height:10px;
		border-top-color: transparent;
		position:relative;
		padding-left:0px;
		top: 0px;
		padding-top:17px;
		padding-bottom:17px;
		left:0px;
		.transition(all 0.2s);

		@media(max-width:768px){
			left:0;
			padding-top:13px;
			padding-bottom:12px;
		}
	
		.vjs-menu-content {
			height: 10px;
			width: 0px;
			float:right;
			left:0;
			box-shadow:none;
			background:transparent;
			position:relative;
			bottom:auto;
			overflow:hidden;
			.transition(all 0.2s);
		}
	}

	.vjs-volume-menu-button:hover .vjs-menu,
	.vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu{
		width: 74px;

		@media(max-width:768px){
			padding-left:5px;
			padding-right:5px;
			width: 50px;
		}
		@media(max-width:500px){
			display:none;

			&.vjs-lock-showing{
				display:none !important;
			}
		}

		.vjs-menu-content {
			height: 10px;
			width: 61px;
			bottom:0;
			left:0;
			float:none;
			box-shadow:none;
			.transition(all 0.2s);

			@media(max-width:768px){
				width:41px;
				left:-5px;
			}
			@media(max-width:500px){
				display:none;
			}
		}
	}
	
	.vjs-volume-bar,
	.vjs-volume-bar.vjs-slider-horizontal {
		width: 0;
		left:1px;
		height: 5px;
		margin: 0;
		background-color:rgba(255,255,255,0.3);
		border-radius: 5px;
		.transition(all 0.2s);

		@media(max-width:768px){
			width:0;
		}

		.vjs-volume-handle {
			width: 0px;
			height: 0px;
			/* Assumes volume starts at 1.0. If you change the size of the
				handle relative to the volume bar, you'll need to update this value
				too. 
			*/
			left: 100%;

			&:before {
				display:none;
			}
		}

		.vjs-volume-level{
			height:4px;
			border-radius:4px;

			&:before{
				display:none;
			}
		}
	}
	.vjs-volume-menu-button:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal,
	.vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal{
		width:60px;

		@media(max-width:768px){
			width:40px;
		}
	}
	
	.vjs-menu-button-popup .vjs-menu{
		position:relative;
		float:right;
	}


	/* Progress
	--------------------------------------------------------------------------------
	*/
	.vjs-progress-control {
		position: absolute;
		left: 0;
		right: 0;
		width: auto;
		height: 5px;
		/* Set above the rest of the controls. *///
		top: -9px;

		/* Shrink the bar slower than it grows. *///
		.transition(all 0.3s);

		&:hover{
			top:-11px;
			height:9px;
			.transition(all 0.0s);

			@media(max-width:768px){
				top:-9px;
				height:7px;
			}
		}
	}

	/* On hover, make the progress bar grow to something that's more clickable.
		This simply changes the overall font for the progress bar, and this
		updates both the em-based widths and heights, as wells as the icon font 
	*/
	&:hover .vjs-progress-control {
				
		/* Even though we're not changing the top/height, we need to include them in
		the transition so they're handled correctly. */
		.transition(all 0.2s);
	}

	/* Box containing play and load progresses. Also acts as seek scrubber. */
	.vjs-progress-holder {
		height: 100%;

		/* Progress Bars */
		.vjs-play-progress,
		.vjs-load-progress {
			position: absolute;
			display: block;
			height: 100%;
			margin: 0;
			padding: 0;
			/* updated by javascript during playback */
			width: 0;
			/* Needed for IE6 *///
			left: 0;
			top: 0;
			border-radius: 10px;
			-moz-border-radius: 10px;
			-webkit-border-radius: 10px;
		}

		// Fixes a display error
		.vjs-load-progress div {
			display:none;
		}
	}

	.vjs-play-progress {
		/*
			Using a data URI to create the white diagonal lines with a transparent
			background. Surprisingly works in IE8.
			Created using http://www.patternify.com
			Changing the first color value will change the bar color.
			Also using a paralax effect to make the lines move backwards.
			The -50% left position makes that happen.
		*/
		background-color: @slider-bar-color;

		// Fallback
		box-shadow: 0 0 5px #fff;
		-moz-box-shadow: 0 0 5px #fff;
		-webkit-box-shadow: 0 0 5px #fff;

		box-shadow: 0 0 5px rgba(255,255,255,0.6);
		-moz-box-shadow: 0 0 5px rgba(255,255,255,0.6);
		-webkit-box-shadow: 0 0 5px rgba(255,255,255,0.6);

	}
	.vjs-load-progress {
		background: rgb(100, 100, 100) /* IE8- Fallback */;
		background: rgba(255, 255, 255, 0.2);

		/* there are child elements of the load progress bar that represent the
		specific time ranges that have been buffered */
		div {
			background: rgb(120, 120, 120) /* IE8- Fallback */;
			background: rgba(255, 255, 255, 0.2);
		}
	}

	.vjs-seek-handle {
		width: 10px;
		height: 100%;
	}

	/* Live Mode
	--------------------------------------------------------------------------------
	*/
	&.vjs-live{
		
		.vjs-time-controls,
		.vjs-time-divider,
		.vjs-progress-control {
			display: none;
		}
		
		.vjs-live-display {
			display: block;
		}
	}

	/* Live Display
	--------------------------------------------------------------------------------
	*/
	.vjs-live-display {
		display: none;
		font-size: 1em;
		line-height: 3em;
	}

	/* Time Display
	--------------------------------------------------------------------------------
	*/
	.vjs-time-controls {
		font-size: 22px;
	}
	.vjs-current-time, .vjs-duration {
		height: 23px;
		position: relative;
		float:left;
		margin-top:7px;
		padding: 0;
		font-weight: 100;
		font-size:21px;
		line-height: 22px;
		display:block;
		width:auto;

		@media(max-width:768px){
			font-size:17px;
			line-height:17px;
		}
		@media(max-width:512px){
			font-size:14px;
			line-height:14px;
			margin-top:5px;
		}
	}
	&.vjs-no-flex{
		// Necessary for IE9
		.vjs-current-time, .vjs-duration{
			display:block;
		}
	}

	.vjs-current-time{
		margin-left:30px;

		@media(max-width:768px){
			margin-left:20px;
		}

		@media(max-width:512px){
			margin-left:12px;
		}
	}
	.vjs-duration {
		float:right;
		text-align:right;
		margin-right:30px;
		padding-left:10px;

		@media(max-width:768px){
			margin-right:20px;
			padding-left:6px;
		}

		@media(max-width:512px){
			margin-right:12px;
			padding-left:2px;
		}
	}
	/* Remaining time is in the HTML, but not included in afterglow design */
	.vjs-remaining-time { display: none; float: right; }
	.vjs-time-divider { float: left; line-height: 3em; }
	

	/*
		TOP CONTROL BAR
	 */
	
	.vjs-top-control-bar{
		width:auto;
		height:auto;
		text-align:right;
		position:absolute;
		right:26px;
		top:13px;
		display: none;
		opacity:0;

		@media(max-width:768px){
			top:10px;
			right:18px;
		}

		@media(max-width:512px){
			top:6px;
			right:10px;
		}

		.vjs-control{
			width: 20px;
			height:30px;
			text-align:right;
			line-height:13px;
			font-size:13px;
			cursor: pointer;
			opacity:0.9;
			margin-left:20px;

			@media(max-width:768px){
				font-size:11px;
				line-height:11px;
				margin-left:16px;
			}
			@media(max-width:768px){
				font-size:9px;
				line-height:9px;
				margin-left:5px;
			}

			&:hover{
				opacity:1;
			}
		}

		.vjs-fullscreen-control {

			&:before {
				content: @fullscreen-enter-icon;
			}
		}
		
		.vjs-lightbox-close-button{

			&:before {
				content: @lightboxclose-icon;
			}
		}
	}

	&.vjs-fullscreen .vjs-top-control-bar .vjs-fullscreen-control:before{
		content: @fullscreen-exit-icon;
	}

	/* Show the control bar only once the video has started playing */
	&.vjs-has-started .vjs-top-control-bar {
		display: block;
		/* Visibility needed to make sure things hide in older browsers too. */
		visibility: visible;
		opacity:1;

		@trans: visibility 0.1s, opacity 0.1s; // Var needed because of comma
		.transition(@trans);

		.vjs-control{
			opacity:0.9;
			@trans: visibility 0.1s, opacity 0.1s; // Var needed because of comma
			.transition(@trans);
		}
	}

	&.vjs-has-started.vjs-user-inactive.vjs-playing  .vjs-top-control-bar{
		display: block;
		visibility: hidden;
		opacity:0;

		@trans: visibility 1.0s, opacity 1.0s;
		.transition(@trans);

		.vjs-control{
			opacity: 0.9;
		}
	}

	/* Big Play Button (play button at start)
	--------------------------------------------------------------------------------
	Positioning of the play button in the center or other corners can be done more
	easily in the skin designer. http://designer.videojs.com/
	*/
	.vjs-big-play-button {
		
		display: block;
		z-index: 2;
		position: absolute;
		width: 80px;
		height: 80px;
		text-align: center;
		vertical-align: middle;
		cursor: pointer;
		opacity: 1;
		top:50%;
		left:50%;
		margin-left:-40px;
		margin-top:-40px;
		border:none;
		background:transparent;
		visibility: visible;
		opacity: 1;

		@trans: visibility 0.1s, opacity 0.1s; // Var needed because of comma
		.transition(@trans);

		.transition(all 0.4s);
	}

	/* Hide if controls are disabled */
	&.vjs-controls-disabled .vjs-big-play-button {
		display: none;
	}
	/* Hide when video starts playing */
	&.vjs-has-started .vjs-big-play-button {
		display: none;
		opacity:0;
	}
	/* Show when video has ended */
	&.vjs-has-started.vjs-ended .vjs-big-play-button {
		display: block;
		visibility: visible;
		opacity: 1;
	}
	/* Hide on mobile devices with youtube. Remove when we stop using native controls
	by afterglow on mobile  */
	&.vjs-using-native-controls .vjs-big-play-button {
		display: block;
	}

	&:hover .vjs-big-play-button,
	.vjs-big-play-button:focus {
		outline: 0;
		border:none;
		background:transparent;

		.transition(all 0s);
	}

	/* Show the spinner when waiting for data and seeking to a new time */
	&.vjs-waiting .vjs-big-play-button,
	&.vjs-seeking .vjs-big-play-button {
		display: none;

		/* only animate when showing because it can be processor heavy *///
		.animation(spin 1.5s infinite linear);
	}

	.vjs-big-play-button:before {
		content: @play-icon;
		font-family: 'afterglow-icon';
		/* In order to center the play icon vertically we need to set the line height
		to the same as the button height */
		line-height: 80px;
		font-size:80px;
		/* Fallback for non rgba browsers */
		text-shadow: 0 0 5px #000;
		text-shadow: 0 0 5px rgba(0,0,0,0.6);
		text-align: center /* Needed for IE8 */;
		font-weight: bold;

		position: absolute;
		left: 0;
		width: 100%;
		height: 100%;

		@media(max-width:768px){
			font-size:60px;
		}

		@media(max-width:512px){
			font-size:40px;
		}
	}

	&.vjs-error .vjs-big-play-button {
		display: none;
	}

	/* Error Display
	--------------------------------------------------------------------------------
	*/

	.vjs-error-display {
		display: none;
	}

	&.vjs-error .vjs-error-display {
		display: block;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
	}

	.vjs-error .vjs-error-display:before {
		content: '';
	}

	.vjs-error-display div {
		position: absolute;
		bottom: 40px;
		right: 0;
		left: 0;
		font-family: 'Open Sans', Helvetica light, Helvetica, sans-serif;
		font-size: 16px;
		text-align: center;
		padding: 3px;
		background: rgb(0, 0, 0); // fallback to just black
		background: rgba(0,0,0,0.5); // Normally show black at 50% opacity
	}

	.vjs-error-display a, .vjs-error-display a:visited {
		color: #F4A460;
	}

	&.vjs-error{


		.vjs-fullscreen-control {

			display:none;
		}
	}

	/* Loading Spinner
	--------------------------------------------------------------------------------
	*/

	.vjs-loading-spinner {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 32px;
		height: 32px;
		margin-left: -16px;
		margin-top: -16px;
		clear:both;
		border: 3px rgba(255,255,255,0.1) solid;
		border-top: 3px rgba(255,255,255,.95) solid;
		border-radius: 50%;
		-webkit-animation: spCircRot 1.6s infinite linear;
		animation: spCircRot 1.6s infinite linear;

		&:before,
		&:after{
			content:none;
			border:0px;
		}
	}

	/* Show the spinner when waiting for data and seeking to a new time */
	.vjs-waiting .vjs-loading-spinner,
	.vjs-seeking .vjs-loading-spinner {
		display: block;

		/* only animate when showing because it can be processor heavy *///
		.animation(spin 1.5s infinite linear);
	}

	/* Errors are unrecoverable without user interaction so hide the spinner */
	.vjs-error .vjs-loading-spinner {
		display: none;

		/* ensure animation doesn't continue while hidden *///
		.animation(none);
	}

	@-moz-keyframes spin {
		0% { -moz-transform: rotate(0deg); }
		100% { -moz-transform: rotate(359deg); }
	}
	@-webkit-keyframes spin {
		0% { -webkit-transform: rotate(0deg); }
		100% { -webkit-transform: rotate(359deg); }
	}
	@-o-keyframes spin {
		0% { -o-transform: rotate(0deg); }
		100% { -o-transform: rotate(359deg); }
	}
	@keyframes spin {
		0% { transform: rotate(0deg); }
		100% { transform: rotate(359deg); }
	}

	/* Menu Buttons (Captions/Subtitles/etc.)
	--------------------------------------------------------------------------------
	*/
	.vjs-menu-button {
		float: right;
		cursor: pointer;

		&.vjs-menu-button-inline{
			width:auto;

			&:before{
				width:30px;
			}
		}
	}

	.vjs-menu {
		display: none;
		position: relative;
		bottom: auto;
		left: -85px; /* (Width of vjs-menu - width of button) / 2 */
		width: 0;
		height: 0;
		margin-bottom: 0;
		@media(max-width:768px){
			left: -75px;
		}
		@media(max-width:512px){
			left: -70px;
		}
	}

	/* Button Pop-up Menu */
	.vjs-menu-button .vjs-menu .vjs-menu-content {
		display: block;
		padding: 0 0 70px 0;
		margin: 0;
		position: absolute;
		bottom:-50px;
		width: 100px;
		max-height: none;
		overflow: auto;
		left: 12px;
		font-family: 'Open Sans', Helvetica Light, Helvetica, sans-serif;
		background: transparent;

		@media(max-width:768px){
			left:12px;
			bottom:-40px;
			padding-bottom: 60px;
		}

		@media(max-width:512px){
			left:11px;
			bottom:-30px;
			padding-bottom: 50px;
		}
	}

	.vjs-menu-button:hover .vjs-control-content .vjs-menu,
	.vjs-control-content .vjs-menu.vjs-lock-showing {
		display: block;
	}
	/* prevent menus from opening while scrubbing (FF, IE) */
	&.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu {
		display: none;
	}
	.vjs-menu-button ul li {
		list-style: none;
		margin: 0;
		padding: 0 5px;
		line-height: 16px;
		font-size: 14px;
		text-align: center;
		text-transform: lowercase;
		opacity:.7;
		text-shadow:0 0 0 rgba(255,255,255,0);

		&.vjs-selected {
			text-shadow: 0 0 5px rgba(255, 255, 255, .6);
			opacity:1;
			background:transparent;
			color:#fff;
		}

		&:hover,
		&:focus,
		&.vjs-selected:focus,
		&.vjs-selected:hover {
			text-shadow: 0 0 5px rgba(255, 255, 255, .6);
			opacity:1;
			background:transparent;
			color:white;
		}

		&.vjs-menu-title {
			text-align: center;
			text-transform: uppercase;
			font-size: 1em;
			line-height: 2em;
			padding: 0;
			margin: 0 0 0.3em 0;
			font-weight: bold;
			cursor: afterglow;
		}
	}

	/* Subtitles Button */
	.vjs-subtitles-button:before {
		content: @subtitles-icon;
	}

	/* Captions Button */
	.vjs-captions-button:before {
		content: @captions-icon;
	}
	
	/* Stylings for Webkit browsers. Not very stable, but worth a try */
	video::-webkit-media-text-track-container {
		bottom: 40px;
		.transition(all 0.3s);

		@media(max-width:768px){
			bottom:20px;
		}
		@media(max-width:512px){
			bottom:10px;
		}
	}

	video::-webkit-media-text-track-background {
		background-color: rgba(0,0,0,0.5);
		border-radius: 3px;
		padding: 10px 14px;
	}

	video::-webkit-media-text-track-display {
		color: white;
		font-family: Open Sans, Georgia;
		font-size: 16px;
		padding: 5px 10px 8px 10px;

		@media(max-width:768px){
			font-size:14px;
		}
		@media(max-width:512px){
			font-size:11px;
		}
	}

	&.vjs-user-active{
		video::-webkit-media-text-track-container {
			bottom: 70px;

			@media(max-width:768px){
				bottom:40px;
			}
			@media(max-width:512px){
				bottom:30px;
			}
		}
	}

	/* Chapters Button 
		Will maybe be added later
	*/
	// .vjs-chapters-button:before {
	// 	content: @chapters-icon;
	// }

	.vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content {
		width: 24em;
		left: -12em;
	}

	/* Replacement for focus outline */
	.vjs-captions-button:focus .vjs-control-content:before,
	.vjs-captions-button:hover .vjs-control-content:before {
		.box-shadow(0 0 1em rgba(255, 255, 255, 1));
	}
	
	.vjs-tech:focus{
		outline:none;
	}

	&.vjs-responsive{
		width:100%;
		height:auto;

		&.vjs-has-started .vjs-tech{
			padding-top:0 !important;
		}

		video{
			width:100%;
			height:auto;
		}

		&.vjs-fullscreen{
			video{
				height:100%;
			}
		}
	}

	/* RESOLUTION SWITCHING */
	.vjs-ag-res-button{
		float:right;
		cursor:pointer;
		width:50px;
		font-family: 'afterglow-icon';

		@media(max-width:768px){
			width:30px;
			margin-left:-4px;
		}

		@media(max-width:512px){
			width:20px;
			margin-right:5px;
			margin-left:0;
		}


		&:before{
			font-family: 'afterglow-icon';
			content: @lowres-icon;
		}

		&.vjs-ag-res-hd{

			&:before{
				content: @highres-icon;
				margin-left:.5px;
			}
		}
	}

	&.vjs-IE{
		.vjs-ag-res-button{
			font-size: 17px;
			line-height: 18px;
			padding-top:10px;

			@media(max-width:768px){
				font-size:11px;
				line-height:11px;
				margin-left:16px;
			}
			@media(max-width:768px){
				font-size:9px;
				line-height:9px;
				margin-left:5px;
			}
		}
	}

	/* Poster Styles */
	.vjs-poster {
		/* Cross browser opacity */
		-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
		-moz-opacity: 0.8;
		-khtml-opacity: 0.8;
		opacity: 0.8;

		.transition(all 0.2s);
	}

	&:hover .vjs-poster{
		/* Cross browser opacity */
		-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
		-moz-opacity: 1;
		-khtml-opacity: 1;
		opacity: 1;
	}
	
	// make youtube player fullscreen
	&.vjs-youtube > div:first-child{
		position:absolute !important;
		margin:0;
		height:100%;
		top:0;
		width:100%;
	}

	&.vjs-youtube{
		iframe{
			display:block;
			visibility:hidden;
		}

		&.vjs-IE{
			iframe{
				display:block;
				visibility:visible;
			}
		}
		
		.vjs-control-bar{
			right:120px;
			width:auto;
		
			.transition(all .3s);
			.transition-delay(.4s);
		}
		&.vjs-has-started{
		
			&.vjs-youtube-headstart{
				.vjs-control-bar{
					right:120px;
					.transition(all .3s);
					.transition-delay(0s);
				}
			}
			.vjs-control-bar{
				right:0px;
				.transition(all .3s);
				.transition-delay(.4s);
			}
			&.vjs-paused, &.vjs-ended{
				.vjs-control-bar{
					right:120px;
					width:auto;
					.transition(all .1s);
					.transition-delay(.1s);
				}
			}
		}

		&.vjs-using-native-controls,
		&.vjs-iOS{
			.vjs-big-play-button {
				display: none;
			}
			.vjs-poster {
				display: none;
			}
			iframe{
				display:block;
				visibility:visible;
			}
			.vjs-loading-spinner,
			.vjs-text-track-display{
				display:none;
			}
		}
	}

	&.vjs-vimeo{
		.vjs-top-control-bar{
			display:none;
		}
	}

	&.vjs-has-started, &.vjs-IE{
		&.vjs-youtube{
			iframe{
				display:block;
				visibility:visible;
			}
		}
	}

	.vjs-error-display{
		&:before{    
		    content: '';
		    width: 100px;
		    width: 10vh;
		    height: 100px;
		    height: 10vh;
		    background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxMjkgMTI5IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMjkgMTI5IiB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4Ij4KICA8Zz4KICAgIDxnPgogICAgICA8cGF0aCBkPSJNNjQuNSwxMjIuNmMzMiwwLDU4LjEtMjYsNTguMS01OC4xUzk2LjUsNi40LDY0LjUsNi40UzYuNCwzMi41LDYuNCw2NC41UzMyLjUsMTIyLjYsNjQuNSwxMjIuNnogTTY0LjUsMTQuNiAgICBjMjcuNSwwLDQ5LjksMjIuNCw0OS45LDQ5LjlTOTIsMTE0LjQsNjQuNSwxMTQuNFMxNC42LDkyLDE0LjYsNjQuNVMzNywxNC42LDY0LjUsMTQuNnoiIGZpbGw9IiNGRkZGRkYiLz4KICAgICAgPHBhdGggZD0ibTQyLjcsODUuN2MwLjgsMC44IDEuOCwxLjIgMi45LDEuMnMyLjEtMC40IDIuOS0xLjJsMTYtMTYgMTYsMTZjMC44LDAuOCAxLjgsMS4yIDIuOSwxLjJzMi4xLTAuNCAyLjktMS4yYzEuNi0xLjYgMS42LTQuMiAwLTUuOGwtMTYtMTYgMTYtMTZjMS42LTEuNiAxLjYtNC4yIDAtNS44cy00LjItMS42LTUuOCwwbC0xNiwxNi0xNi0xNmMtMS42LTEuNi00LjItMS42LTUuOCwwLTEuNiwxLjYtMS42LDQuMiAwLDUuOGwxNiwxNi0xNiwxNmMtMS42LDEuNi0xLjYsNC4yLTEuNDIxMDllLTE0LDUuOHoiIGZpbGw9IiNGRkZGRkYiLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo=);
		    background-size: cover;
		    margin-top: -50px;
		    margin-top: -5vh;
		    margin-left: -50px;
		    margin-left: -5vh;
		    top: 40%;
		    left: 50%;
		}

		.vjs-modal-dialog-content{
			width: 80%;
		    margin: 0 auto;
		    font-family: 'Open Sans';
		    font-weight: 100;
		    position: absolute;
		    bottom: 20%;
		    height: auto;
		    top: auto;
		    font-size: 2vh;
		}
	}

}


/*
REQUIRED STYLES (be careful overriding)
================================================================================
When loading the player, the video tag is replaced with a DIV,
that will hold the video tag or object tag for other playback methods.
The div contains the video playback element (Flash or HTML5) and controls,
and sets the width and height of the video.

** If you want to add some kind of border/padding (e.g. a frame), or special
positioning, use another containing element. Otherwise you risk messing up
control positioning and full window mode. **
*/
.video-js {
	background-color: #000;
	position: relative;
	padding: 0;
	/* Start with 10px for base font size so other dimensions can be em based and
	easily calculable. */
	font-size: @base-font-size;
	/* Allow poster to be vertically aligned. */
	vertical-align: middle;
	/*  display: table-cell; */ /*This works in Safari but not Firefox.*/

	/* Provide some basic afterglows for fonts */
	font-weight: normal;
	font-style: normal;
	/* Avoiding helvetica: issue #376 */
	font-family: Arial, sans-serif;

	/* Turn off user selection (text highlighting) by afterglow.
		The majority of player components will not be text blocks.
		Text areas will need to turn user selection back on. 
	*/
	.user-select(none);
	
	/* Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when
		checking fullScreenEnabled. */
	&:-moz-full-screen { position: absolute; }

	&:-webkit-full-screen {
		width: 100% !important;
		height: 100% !important;
	}

	/* Playback technology elements expand to the width/height of the containing div
	<video> or <object> */
	.vjs-tech {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
}

/* Fullscreen Styles */
body.vjs-full-window {
	padding: 0;
	margin: 0;
	height: 100%;
	/* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html *///
	overflow-y: auto;
}
.video-js.vjs-fullscreen.vjs-user-inactive {
	cursor: none;
}

/* Poster Styles */
.vjs-poster {
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: contain;
	cursor: pointer;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;

	.transition(all 0.2s);
}

.vjs-poster img {
	display: block;
	margin: 0 auto;
	max-height: 100%;
	padding: 0;
}

/* Hide the poster after the video has started playing */
.video-js.vjs-has-started .vjs-poster {
	display: none;
	visibility: hidden;
	opacity: 0;
	.transition(all 0.2s);
}

/* Show the poster after the video has ended */
.video-js.vjs-has-started.vjs-ended .vjs-poster {
	display: block;
	visibility: visible;
	opacity: 1;
	.transition(all 0.2s);
}

/* Don't hide the poster if we're playing audio */
.video-js.vjs-audio.vjs-has-started .vjs-poster {
	display: block;
}

/* Hide the poster when controls are disabled because it's clickable
and the native poster can take over */
.video-js.vjs-controls-disabled .vjs-poster {
	display: none;
}

/* Don't hide the poster when native controls are used, because they will be laying over it anyways */
.video-js.vjs-using-native-controls .vjs-poster {
	display: block;
}

/* Text Track Styles */
/* Overall track holder for both captions and subtitles */
.video-js .vjs-text-track-display {
	position: absolute;
	bottom: 50px;
	pointer-events: none;
}

// .video-js.vjs-IE .vjs-text-track-display{
// 	display:none;
// }

/* Captions Settings Dialog */
.vjs-caption-settings {
	position: relative;
	top: 1em;
	background-color: #000;
	opacity: 0.75;
	color: #FFF;
	margin: 0 auto;
	padding: 0.5em;
	height: 15em;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	width: 40em;
}

.vjs-caption-settings .vjs-tracksettings {
	top: 0;
	bottom: 2em;
	left: 0;
	right: 0;
	position: absolute;
	overflow: auto;
}

.vjs-caption-settings .vjs-tracksettings-colors,
.vjs-caption-settings .vjs-tracksettings-font {
	float: left;
}
.vjs-caption-settings .vjs-tracksettings-colors:after,
.vjs-caption-settings .vjs-tracksettings-font:after,
.vjs-caption-settings .vjs-tracksettings-controls:after {
	clear: both;
}

.vjs-caption-settings .vjs-tracksettings-controls {
	position: absolute;
	bottom: 1em;
	right: 1em;
}

.vjs-caption-settings .vjs-tracksetting {
	margin: 5px;
	padding: 3px;
	min-height: 40px;
}
.vjs-caption-settings .vjs-tracksetting label {
	display: block;
	width: 100px;
	margin-bottom: 5px;
}

.vjs-caption-settings .vjs-tracksetting span {
	display: inline;
	margin-left: 5px;
}

.vjs-caption-settings .vjs-tracksetting > div {
	margin-bottom: 5px;
	min-height: 20px;
}

.vjs-caption-settings .vjs-tracksetting > div:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	min-height: 0;
}

.vjs-caption-settings label > input {
	margin-right: 10px;
}

.vjs-caption-settings input[type="button"] {
	width: 40px;
	height: 40px;
}

/* Hide disabled or unsupported controls */
.vjs-hidden { display: none !important; }

.vjs-lock-showing {
	display: block !important;
	opacity: 1;
	visibility: visible;
}

/*  In IE8 w/ no JavaScript (no HTML5 shim), the video tag doesn't register.
		The .video-js classname on the video tag also isn't considered.
		This optional paragraph inside the video tag can provide a message to users
		about what's required to play video. */
		.vjs-no-js {
			padding: 2em;
			color: #ccc;
			background-color: #333;
			font-size: 1.8em;
			font-family: Arial, sans-serif;
			text-align: center;
			width: 30em;
			height: 15em;
			margin: 0 auto;
		}

		.vjs-no-js a, .vjs-no-js a:visited {
			color: #F4A460;
		}

// MIXINS
// =============================================================================
// Mixins are a LESS feature and are used to add vendor prefixes to CSS rules
// when needed.

// https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
.box-shadow (@string: 0 0 1em rgba(0, 0, 0, 0.25)) {
	/* box-shadow *///
	-webkit-box-shadow: @string;
	-moz-box-shadow: @string;
	box-shadow: @string;
}

// https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
.border-radius (@string: 5px) {
	/* border-radius *///
	-webkit-border-radius: @string;
	-moz-border-radius: @string;
	border-radius: @string;
}

// https://developer.mozilla.org/en-US/docs/Web/CSS/transition
.transition (@string: all 1s linear) {
	/* transition *///
	-webkit-transition: @string;
	-moz-transition: @string;
	-o-transition: @string;
	transition: @string;
}

// https://developer.mozilla.org/en-US/docs/Web/CSS/transition
.transition-delay (@string: 1s) {
	/* transition-delay *///
	-webkit-transition-delay: @string;
	-moz-transition-delay: @string;
	-o-transition-delay: @string;
	transition-delay: @string;
}

// https://developer.mozilla.org/en-US/docs/Web/CSS/animation
.animation (@string: spin 1s infinite linear) {
	/* animation *///
	-webkit-animation: @string;
	-moz-animation: @string;
	-o-animation: @string;
	animation: @string;
}

// https://developer.mozilla.org/en-US/docs/Web/CSS/transform
.transform (@string: rotate(-45deg)) {
	/* transform *///
	-webkit-transform: @string;
	-moz-transform: @string;
	-ms-transform: @string;
	-o-transform: @string;
	transform: @string;
}

// https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
.user-select (@string: none) {
	/* user-select *///
	-webkit-user-select: @string;
	-moz-user-select: @string;
	-ms-user-select: @string;
	user-select: @string;
}

// Hide something visually but keep available for screen readers.
// http://h5bp.com/v
.hide-visually () {
	/* hide-visually *///
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position:
	absolute;
	width: 1px;
}

// Align an object with absolute positioning
// Used to align the Big Play Button in the corners or center
.absolute-align (@align, @margin, @length) when (@align = top) {
	top: @margin;
}
.absolute-align (@align, @margin, @length) when (@align = bottom) {
	bottom: @margin;
}
.absolute-align (@align, @margin, @length) when (@align = left) {
	left: @margin;
}
.absolute-align (@align, @margin, @length) when (@align = right) {
	right: @margin;
}
.absolute-align (@align, @margin, @length) when (@align = center) {
	/* Center it horizontally *///
	left: 50%;
	margin-left: (-(@length/2));
	// margin-left: ((@length*-1)/2);
}
.absolute-align (@align, @margin, @length) when (@align = middle) {
	/* Center it vertically *///
	top: 50%;
	margin-top: (-(@length/2));
	// margin-top: ((@length*-1)/2);
}

// http://stackoverflow.com/questions/637921/opacity-of-background-but-not-the-text
.background-color-with-alpha (@color, @alpha) {
	@rgba: rgba(red(@color), green(@color), blue(@color), @alpha);
	/* background-color-with-alpha *///
	background-color: @color;
	background-color: @rgba;
	// No longer using MS filters because they break border radius in IE9
	// @argb: argb(@rgba);
	// filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=@{argb}, endColorstr=@{argb})";
	// -ms-filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=@{argb}, endColorstr=@{argb})";
}

.border-color-with-alpha (@color, @alpha) {
	@rgba: rgba(red(@color), green(@color), blue(@color), @alpha);
	/* border-color-with-alpha *///
	border-color: @color;
	border-color: @rgba;
}

// Spinner animation

		
@-webkit-keyframes spCircRot {
	from { -webkit-transform: rotate(0deg); }
	to { -webkit-transform: rotate(359deg); }
}
@keyframes spCircRot {
	from { transform: rotate(0deg); }
	to { transform: rotate(359deg); }
}