.jw-custom-overlay {
	position: absolute;
	top:0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 0;
	background: rgba(0,0,0,0.9);
	visibility: hidden;
}

.jw-custom-overlay.active {
	visibility: visible;
	z-index: 99;
	opacity: 0.8;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease;
}

.jw-custom-overlay-confirm {
visibility: hidden;
	position: absolute;
	top: 0;
	width: 100%;
	height: auto;
	transform: translateY(-100%);
	-webkit-transform: translateY(-100%);
}

.jw-custom-overlay-confirm.active {
	visibility: visible;
    transform: translateY(0%);
    -webkit-transform: translateY(0);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    color: #fff;
    z-index: 99;
    text-align: center;
    padding: 6px 0;
    font-size: .85em;
    color: #eee;
    /*background: rgba(163, 12, 31, 0.8);*/
	background: rgba(105, 105, 105, 0.8)
}

.jw-custom-overlay-dismiss {
	position: absolute;
	top: 20px;
	right: 20px;
    color: #fff;
    padding: 6px 9px;
    opacity: .85;
    display: block;
    border: none;
    background: none;
    text-transform: uppercase;
    font-size: .85em;
    cursor: pointer;
}

.jw-custom-overlay .overlay-wrapper {
	display: block;
	color: #eee;
	width: 80%;
	margin: 40px auto;
}

.jw-custom-overlay .overlay-title {
	text-align: center;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.jw-custom-overlay .overlay-body {

}

.jw-custom-overlay .overlay-body-element {
	display: block;
	padding: 5px 0;
}

.jw-custom-overlay .overlay-body-element button {
	cursor: pointer;
    background: none;
    border: none;
    color: #eee;
    font-size: .85em;
}

.jw-custom-overlay .overlay-body-element button:hover {
	text-decoration: underline;
}

.jw-custom-overlay .overlay-body-element button:before {
	content: "";
	display: block;
	background: url("link-white.png") no-repeat;
	background-size: 16px;
	width: 20px;
	height: 20px;
	float: left;
	padding-right: 8px;
}

.jw-custom-overlay .overlay-body-element button.icon-chain:before {
	background: url("link-white.png") no-repeat;
	background-size: 16px;
}

.jw-custom-overlay .overlay-body-element button.icon-copy:before {
	background: url("copy-white.png") no-repeat;
	background-size: 16px;
}

.jw-custom-overlay .overlay-body-element button.icon-time:before {
	background: url("time-white.png") no-repeat;
	background-size: 16px;
}


/** media queries **/
@media (min-width: 768px){
	.jw-custom-overlay .overlay-wrapper {
		font-size: 1.2em;
	}
}

@media (min-width: 1024px){
	.jw-custom-overlay .overlay-wrapper {
		font-size: 1.4em;
	}

	.jw-custom-overlay-confirm.active {
		font-size: .95em;
		padding: .95em;
	}
}

@media (min-width: 1200px){
	.jw-custom-overlay .overlay-wrapper {
		font-size: 1.6em;
		margin-top: 10%;
	}

	.jw-custom-overlay-dismiss {
		font-size: 1.2em;
	}

	.jw-custom-overlay .overlay-body-element button.icon-copy:before,
	.jw-custom-overlay .overlay-body-element button.icon-time:before  {
		background-size: 20px;
		width: 1em;
		height: 1em;
		padding-left: 1em;
		top: -5px;
	}

	.jw-custom-overlay-confirm.active {
		font-size: 1em;
		padding: 1.15em;
	}
}

@media (min-width: 1600px){
	.jw-custom-overlay .overlay-wrapper {
		font-size: 2em;
	}

	.jw-custom-overlay-dismiss {
		font-size: 1.5em;
	}

	.jw-custom-overlay .overlay-body-element button.icon-copy:before,
	.jw-custom-overlay .overlay-body-element button.icon-time:before {
		background-size: 24px;
	}
}

/** fullscreen **/

.jw-flag-fullscreen .jw-custom-overlay .overlay-wrapper {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    width: 50%;
    font-size: 2em;
}

.jw-flag-fullscreen .jw-custom-overlay-dismiss {
		font-size: 1.8em;
}

.jw-flag-fullscreen .overlay-body-element button:before {
	background-size: contain !important;
	position: relative;
	top: 5px;
}


/* action buttons **/
.jw-dock-image {
	background-size: 70%;
	opacity: .85;
}

/* skin override */
.jw-skin-seven .jw-dock .jw-dock-button {
	border: 1px solid #333;
	background: rgba(0,0,0,0.65);
	width: 2em;
	height: 2em;
}

.jw-dock .jw-dock-image {
	opacity: 1;
}

.jw-skin-seven .jw-dock .jw-dock-button:hover {
	transform: scale(1.1);
	-webkit-transform: scale(1.1);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.player-error{
    color:red;
    padding: 20px;
    border: 1px solid red;
	margin: 10px 0;
}
