/*
 * player.css
 * 
 * 	Copyright 2015 dev-and-a11y.com
 * 
 * 	This projet is a free software made by the dev-and-a11y.com team. 
 *  It is distributed in the hope that it will be useful, but WITHOUT 
 *  ANY WARRANTY. It is under the licence 
 * 	Creative Commons : Attribution-NonCommercial 3.0 Unported 
 *	(http://creativecommons.org/licenses/by-nc/3.0/)
 *	You must : 
 * 	 - Give appropriate credit
 *	 - Provide a link to the license
 * 	 - Indicate if changes were made.			
 * 	You can :
 *	 - Use it.
 *	 - Modify it.
 *	 - Share it.
 *	You can't :
 *	 - Use it for commercial purposes.
 *	 - Change the project licence.
 *   
 * 
 *    Contact :
 *	 - contact[@]dev-and-a11y[dot]com
 * 
 *    Contributor :
 *	 - David Casson : https://gitlab.com/u/Casson
 *	 - Adrien Fallot : https://gitlab.com/u/adrien.fallot
 * 
 */

/***************  General color *********************/
	
	.outilBar{ /* Bar with all button */
		background-color:lightgrey;
		opacity:1;
		color:black; /* Text color */
	}
	
	.settingDiv{ /* Setting box */
		background-color:lightgrey;
		opacity:1;
		color:black; /* Text color */
        border: black solid 2px;
		border-radius: 4px;
	}

/***************  Visible focus *********************/

	.elem:focus{ /* All player elements except Input range TimeBar and VolumeBar */
		outline: red solid 5px;
		outline-offset: -4px; /* To display focus on video in fullscreen. */
	}

	/* Input range TimeBar and VolumeBar */
		.range:focus::-moz-range-track{ 
			border: red solid 5px; /* Use border to no hide partially the input. */
		}

		.range:focus::-webkit-slider-runnable-track {
			outline: red solid 5px;
		}

		.range:focus::-ms-track {
			outline: red solid 5px;
		}


/*************** Button configuration *********************/

	.playerBtn{
		color: #fff; /* color of picture */
		background-color: #004CD5;
		border: black solid 1px;
		border-radius: 4px;
	}
	.playerBtn:hover,
	.playerBtn:focus{
		color: #fff; /* color of picture */
		background-color: #00357A;
		border: black solid 1px;
		border-radius: 4px;
	}
	
	/* let 0px but the others should be the same value as .btn */
	.volumeBar{
		background-color:#004CD5;
		border: black solid 1px;	
		border-radius: 0px 4px 4px 0px;		
	}
	
	/* let 0px but the others should be the same value as .btn */
	.volumeBtn{
		border-radius: 4px 0px 0px 4px;
	}
	.volumeBtn:hover,
	.volumeBtn:focus{
		border-radius: 4px 0px 0px 4px;
	}
	
	/* When a button is active */

		.activeButton{
			background-color: green;
		}
		.activeButton:hover,
		.activeButton:focus{
			background-color: #276B2D;
		}
	
/*************** Range input configuration *********************/


	/* Thanks to https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/ for this tutoriel */
	
	/* Google Chrome ; Safari ; Opera */

		.range::-webkit-slider-runnable-track {
			background: #004CD5;
			border: black solid 1px;
			border-radius: 4px;
		}

		.range::-webkit-slider-thumb {
			background: #ffffff;
			border: black solid 1px;
			border-radius: 6px;
		}

		.volumeBar > input::-webkit-slider-runnable-track{
			background:#ffffff;
		}

	/* Mozilla Firefox */
	
		.range::-moz-range-track {
			background: #004CD5;
			border: black solid 1px;
			border-radius: 4px;
		}
		.range::-moz-range-thumb {
			background: #ffffff;
			border: black solid 1px;
			border-radius: 6px;
		}

		.volumeBar > input::-moz-range-track{
			background:#ffffff;
		}
	/* Internet Explorer */
		
		.range::-ms-track {
		  background: #004CD5;
		  border: black solid 1px;
		  border-radius: 4px;
		}
		.range::-ms-thumb {
		  background: #ffffff;
		  border: black solid 1px;
		  border-radius: 6px;
		}

		.range::-ms-fill-lower {
		  background: #004CD5;
		}
		.range::-ms-fill-upper {
		  background: #004CD5;
		}

		.volumeBar > input::-ms-track{
			background:#ffffff;
		}
		.volumeBar > input::-ms-fill-lower {
		 	background: #ffffff;
		}
		.volumeBar > input::-ms-fill-upper {
		 	background: #ffffff;
		}

/******************************** Time size ****************************/
	
	/* You can adapt the size of the current time, the duration, the time bar following the size of your video */
	
	.timeText{
		width : 20%;	
	}

	.timeBar{
		width : 60%;
	}

/*********************************************************************/

.exclamation{
	color:red;
}

.titleBox{
	padding-left:auto;
	padding-right:auto;
	font-size:120%;
	font-weight:bold;
}

.transcriptLink{
	color:#000000;
	line-height:1.5;
}
.transcriptLink:focus,
.transcriptLink:hover{
	color:#000000;
}

.settingDiv > hr{
	margin-bottom:0.5em;
	margin-top:0.5em;
	margin-left:-0.3em;
	margin-right:-0.3em;
	border-color:grey;
}


.playerBtn{
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
  background-image: none;
}

.audioBar{
	height:3.9em;
}

.range{
  -webkit-appearance: none;
  width: 100%;
  padding-top: 0em;
  padding-bottom: 0em;
  background: inherit;
}

.range::-webkit-slider-runnable-track {
	width: 100%;
	height: 0.4em;
	margin-top:0.5em;
	cursor: pointer;
}

.range::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 16px;
	width: 16px;
	margin-top: -6px;
	cursor: pointer;
}

.volumeBar > input::-webkit-slider-runnable-track{
	margin-bottom:0.38em;
}

.range::-moz-range-track {
	width: 100%;
	height: 0.3em;
	cursor: pointer;
}

.range::-moz-range-thumb {
	height: 16px;
	width: 16px;
	cursor: pointer;
}

.range::-moz-range-track {
	width: 100%;
	height: 0.3em;
	cursor: pointer;
}

.range::-moz-range-thumb {
	height: 16px;
	width: 16px;
	cursor: pointer;
}

.range::-ms-track {
	cursor: pointer;
	color: #337AB7;
	margin-top:0.4em;
	margin-bottom:0.35em;
	height: 0.4em;
}

.volumeBar > input::-ms-track{
	color: #ffffff;
}

.range::-ms-thumb {
	height: 16px;
	width: 16px;
	cursor: pointer;
}

.player {
	position: relative;
}

.front{
	z-index: 2;
	position:absolute;
	bottom:0;
	padding-top: 0.1em;
	width:inherit;
}
.back{
	z-index: 1;
}

.settingDiv{
	z-index: 5;
	position:absolute;
	top:2em;
	left:2em;
	padding:0.3em;
}

.time{
	margin-left: auto;
	margin-right: auto;
	text-align:center;
	padding-bottom: 0.2em;
}

.timeElem{
	padding-left: 0em;
	padding-right: 0em;
	text-align:center;
}

.timeText{
	width : 20%;	
}

.timeBar{
	width : 60%;
}

.replay{
	z-index: 2;
	position:absolute;
}


.center{
	text-align:center;
}


.button{
	position:relative;
	bottom:0.3em;
}


.volumeBar{
	position: absolute;
	left:5.6em;
	margin-top: 0.07em;
	padding-top: 0.45em;
	padding-bottom: 0.54em;
	padding-left: 0.60em;
	padding-right: 0.60em;
	border: black solid 1px;
	border-left: none;
	width:6.5em;
}


.volumeBtn{
	z-index: 3;
	border-right: none;
	width:2.5em;
	text-align:right;
}

.volumeBtn:hover,
.volumeBtn:focus{
	border-right: none;
}

.rightButton{
	float : right;
}
.rightButton > button{
	margin-right: 0.2em;
}
.rightButton > span{
	margin-right: 0.2em;
}

.leftButton{
	float : left;
}
.leftButton > button{
	margin-left: 0.2em;
}

.hideCursor{
	cursor : none;
}

/* font by http://fontello.com/ */

@font-face {
  font-family: 'fontello';
  src: url('../fonts/fontello.eot?46016113');
  src: url('../fonts/fontello.eot?46016113#iefix') format('embedded-opentype'),
       url('../fonts/fontello.woff?46016113') format('woff'),
       url('../fonts/fontello.ttf?46016113') format('truetype'),
       url('../fonts/fontello.svg?46016113#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}

.icon {
	position: relative;
	top: 1px;
	display: inline-block;
	font-family: 'fontello';
	font-style: normal;
	font-weight: normal;
		
	width:2.9em;
	
	padding-left:0.2em;
	padding-right:0em;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
 
.icon-ad:before { content: '\e800'; } /* '' */
.icon-st:before { content: '\e801'; } /* '' */
.icon-tt:before { content: '\e802'; } /* '' */
