/*

HOW TO CREATE AN AUDIO PLAYER [TUTORIAL]

"How to create an Audio Player [Tutorial]" was specially made for DesignModo by our friend Valeriu Timbuc.

Links:
http://vtimbuc.net/
https://twitter.com/vtimbuc
http://designmodo.com
http://vladimirkudinov.com

*/

.audio-player,
.audio-player div,
.audio-player h1,
.audio-player a,
.audio-player img,
.audio-player span,
.audio-player button {
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
}

.audio-player * {
    font-family: finalfrontier, Helvetica, Arial, sans-serif;
}

div.audio-player {
	position: relative;
	width: 100%;
	height: 9rem;
	margin: 0;/*3rem 0 0 0;*/
        
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

/* Title */
.audio-player .title {
	position: absolute;
	top: 15px;
	left: 11.25rem;

	font-size: 1.25rem;
        font-weight: normal;
	/*font-weight: bold;*/
	color: #ececec;
	text-shadow: 1px 1px 1px rgba(0,0,0, .5);
}

.audio-player .media-info {
        position: relative;
        top: -3px;
        left: 0;
        
	font-weight: bold;
        font-size: 0.875rem;
        color: #cccccc;
        text-shadow: 1px 1px 1px rgba(0,0,0, .5);
}

/* Cover */
.audio-player .cover {
	position: absolute;
	top: 0;
	left: 0;
	height: 8.875rem;
	max-width:9.375rem;
	max-height:11rem
}

/* Buttons */
.mejs-controls .mejs-button button {
	cursor: pointer;
	display: block;
	position: absolute;
	text-indent: -9999px;
}

/* Play & Pause */
.mejs-controls .mejs-play button,
.mejs-controls .mejs-pause button {
	width: 21px;
	height: 21px;
	top: 20px;
	left: 9.375rem;
	background: transparent url(../img/play-pause.png) 0 0;
}

.mejs-controls .mejs-pause button { background-position:0 -21px; }

/* Mute & Unmute */
.mejs-controls .mejs-mute button,
.mejs-controls .mejs-unmute button {
	width: 14px;
	height: 12px;
	bottom: 1px;
	left: 155px;
	background: transparent url(../img/mute-unmute.png) 0 0;
}

.mejs-controls .mejs-unmute button { background-position: 0 -12px; }

/* Volume Slider */
.mejs-controls div.mejs-horizontal-volume-slider {
	position: absolute;
	bottom: 0;
	left: 11.25rem;
	cursor: pointer;
        width: 50%;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
	width: 50%;
	height: 8px;
	background: #212227;

	-webkit-box-shadow: inset 0px 1px 0px rgba(0,0,0, .3), 0px 1px 0px rgba(255,255,255, .25);
	-moz-box-shadow: inset 0px 1px 0px rgba(0,0,0, .3), 0px 1px 0px rgba(255,255,255, .25);
	box-shadow: inset 0px 1px 0px rgba(0,0,0, .3), 0px 1px 0px rgba(255,255,255, .25);

	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
	position: absolute;
	width: 0;
	height: 6px;
	top: 1px;
	left: 1px;
	/* background: url(../img/volume-bar.png) repeat-x; */
        background: gray;

	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}

/* Progress Slider */
.mejs-controls div.mejs-time-rail { width: 100%; }

.mejs-controls .mejs-time-rail span {
	position: absolute;
	display: block;
	width: 100%;
	height: 5px;
	left: 0;
	bottom: -2rem;
	cursor: pointer;
	
	-webkit-border-radius: 0px 0px 2px 2px;
	-moz-border-radius: 0px 0px 2px 2px;
	border-radius: 0px 0px 2px 2px;
}

.mejs-controls .mejs-time-rail .mejs-time-total { background: #999999; }

.mejs-controls .mejs-time-rail .mejs-time-loaded {
	width: 0;
	background: #cccccc;
	bottom: 0rem;
}

.mejs-controls .mejs-time-rail .mejs-time-current {
	width: 0;
	background: #FF9900;
	bottom: 0rem;
}

/* Volume Slider & Progress Bar Handle */
.mejs-controls .mejs-time-rail .mejs-time-handle,
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-handle {
	position: absolute;
	display: block;
	width: 12px;
	height: 14px;
	top: -4px;
	background: url(../img/handle.png) no-repeat;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-handle { top: -2px; }

/* Time Float Box */
.mejs-controls .mejs-time-rail .mejs-time-float {
	position: absolute;
	display: none;
	width: 50px;
	height: 23px;
	top: -26px;
	margin-left: -17px;
	background: url(../img/time-box-real-dupe.png);
}

.mejs-controls .mejs-time-rail .mejs-time-float-current {
	width: 50px;
	display: block;
	left: 0;
	top: 4px;

	font-family: Helvetica, Arial, sans-serif;
	font-size: 10px;
	font-weight: bold;
	color: #666666;
	text-align: center;
}

@media only screen and (max-width: 40.0625em) {    
    .mejs-controls .mejs-play button,
    .mejs-controls .mejs-pause button {
		left: 10.375rem;
    }
	
	#main-content-panel {
		margin-top: 0;
	}
    
	div.audio-player {
		height:11rem;
	}
	
    .audio-player .title {
        left: 12.25rem;
		font-size: 1rem;
    }
	.audio-player .media-info {
		font-size: .75rem;
	}
	.download-bar {
		text-align: left;
	}
	.mejs-controls .mejs-mute button, 
	.mejs-controls .mejs-unmute button {
		top: 0;
		left: 10.375rem;
	}
	.mejs-controls div.mejs-horizontal-volume-slider {
		top: 0;
		left: 12.25rem;
	}
	nav img {
	  max-width: 50%;
	}
}