/* Styles for Audiovault Player */

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
	font-family: sans-serif;
	font-size: 14px;
	color: #555555;
	line-height: 1.2rem;
}

.container {
	position: relative;
	max-width: 970px;
	margin: 0 auto;
	padding: 20px 0;
}

.section-wrapper {
	position: relative;
	padding: 30px 16px;
}

.section-wrapper-inner {
	max-width:  1000px;
}

.row {
	margin-bottom: 10px;
}

.half-wrapper {
	width: calc( 50% - 10px);
	display: inline-block;
}

.float-container {
	overflow: hidden;
}

.half-wrapper.float-left {
	float: left;
	margin-right: 20px;
}

.half-wrapper.float-right {
	float: right;
}

label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
}

select {
	width: 100%;
	padding: 6px 12px;
	border-radius: 3px;
	border: 1px solid #ccc;
	box-shadow: inset 0 1px 2px rgba( 0, 0, 0, .1 );
}

#open-instructions {
	position: absolute;
	top: 0;
	right: 16px;
}

/* modal styles */
.modal-overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background-color: white;
	display: none;
	padding: 20px 10px;
}

.modal-container ul {
	padding-left: 15px;
}

.modal-message {
	background-color: #ffffff;
	padding: 20px;
	border-radius: 3px;
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba( 0, 0, 0, .2);
}

.modal-message h4 {
	margin-top: 0px;
	margin-bottom: 0px;
	font-size: 1.1rem;
	float: left;
}

#close-instructions {
	float: right;
}

/* Button styles */
.instructions-button,
.audio-control-button {
	transition: background-color 0.2s ease;
}

.instructions-button {
	background-color: #5cb85c;
	font-size: 0.75rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1;
	border: none;
	border-radius: 2px;
	padding: 5px 10px;
}

.instructions-button:focus {
	outline: none;
}

.instructions-button:hover {
	background-color: #4fa04f;
}

.audio-control-button {
	background-color: rgb(238,58,67);
	border: none;
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	height: 30px;
	cursor: pointer;
}

.audio-control-button:hover {
	background-color: rgb(202, 50, 58);
}

.audio-control-button span {
	display: block;
	height: 15px;
	width: 15px;
	background-repeat: no-repeat;
}

.audio-control-button span img {
	width: 100%;
}



/* Currently Playing */
.currently-playing {
	text-align: center;
}

/* Progress Bar */
.progress-bar {
	position: relative;
	overflow: hidden;
	width: 100%;
	border-radius: 3px;
	box-shadow: inset 0 1px 2px rgba( 0, 0, 0, .1);
	border: 1px solid #cccccc;
	background-color: #f5f5f5;
	cursor: pointer;
}

.progress-position {
	text-align: center;
	position: absolute;
	top: 6px;
	width: 100%;
	z-index: 100;
}

#progress-slider {
	height: 30px;
	background-color: rgb(238, 58, 67);
	transition: width 0.6s ease;
	width: 0%;
}

/* Visually hide <audio> element */
#audio-element {
	display: none;
}

@media( max-width: 500px ) {
	.half-wrapper {
		width: calc( 50% - 5px );
	}

	.half-wrapper.float-left {
		margin-right: 10px;
	}
}


