/* Dialog Background */
.egov-message-dialog {
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
	bottom: 0;
	display: none; /* Hidden by default */
	height: 100%; /* Full height */
	left: 0;
	right: 0;
	overflow: auto; /* Enable scroll if needed */
	padding-top: 100px; /* Location of the box */
	position: fixed; /* Stay in place */
	top: 0;
	z-index: 66000; /* Sit on top */
}

body.eGov_modalEnabled #eGov_Header,
body.eGov_modalEnabled #eGov_Tab_Buffer,
body.eGov_modalEnabled #eGov_Main {
	filter: blur(2px);
	transition: filter .5s;
}

#eGov_body.eGov_modalEnabled {
	background: #fff url('//cdn.egovcdn.com/egov/imgs/ui/nav_shadow_blur.png') 0 0 repeat-y;
}

/* Dialog Content */
.egov-message-dialog-content {
	background-color: #fff;
	box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.75);
	color: #333;
	margin: auto;
	padding: 0;
	position: relative;
	width: 80%;
	max-width: 565px;

	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.5s;
	animation-name: animatetop;
	animation-duration: 0.5s
}


/* Dialog Header */
.egov-message-dialog-header {
	background: #f9f9f9;
	border-bottom: 1px solid #f3f3f3;
	padding: 20px 20px 16px 20px;
	transition: background .5s;
}

	.error .egov-message-dialog-header {
		background: #9c2020;
	}

	.success .egov-message-dialog-header {
		background: #0e8123;
	}

	.info .egov-message-dialog-header {
		background: #476595;
	}

	.warning .egov-message-dialog-header {
		background: #ffd953;
	}

.egov-message-dialog-header h2 {
	border-bottom: 0;
	color: #6e6e6e;
	font-weight: normal;
	text-shadow: none;
	margin: 0;
}

	.error .egov-message-dialog-header h2,
	.success .egov-message-dialog-header h2,
	.info .egov-message-dialog-header h2 {
		color: #fff !important;
	}

	.warning .egov-message-dialog-header h2 {
		color: #705800 !important;
	}

		.error .egov-message-dialog-header h2:before,
		.success .egov-message-dialog-header h2:before,
		.info .egov-message-dialog-header h2:before,
		.warning .egov-message-dialog-header h2:before {
			display: inline-block;
			font-family: "Font Awesome 5 Pro";
			font-weight: 300;
			margin-right: .25em;
		}

		.error .egov-message-dialog-header h2:before {
			content: "\f06a";
		}

		.success .egov-message-dialog-header h2:before {
			content: "\f058";
		}

		.info .egov-message-dialog-header h2:before {
			content: "\f05a";
		}

		.warning .egov-message-dialog-header h2:before {
			content: "\f071";
		}


/* The Close Button */
.egov-message-dialog-close {
	color: #6e6e6e;
	cursor: pointer;
	font-size: 1.7em;
	font-weight: bold;
	position: absolute;
	right: 20px;
	top: 20px;
}

	.egov-message-dialog-close .fas {
		display: none;
	}

	.error .egov-message-dialog-close,
	.success .egov-message-dialog-close,
	.info .egov-message-dialog-close {
		color: #fff;
	}

	.warning .egov-message-dialog-close {
		color: #705800;
	}

.egov-message-dialog-close:hover,
.egov-message-dialog-close:focus
 {
	text-decoration: none;
	cursor: pointer;
}

.egov-message-dialog-close:hover .fal,
.egov-message-dialog-close:focus .fal {
	display: none;
}

.egov-message-dialog-close:hover .fas,
.egov-message-dialog-close:focus .fas {
	display: inline-block;
}

/* Dialog Body */
.egov-message-dialog-body {
	padding: 20px;
}

/* Dialog Buttons */
.egov-message-dialog-buttons {
	border-top: 1px solid #f3f3f3;
	text-align: right;
	padding: 20px;
}

/* Dialog Footer */
.egov-message-dialog-footer {
	padding: 2px 16px;
	background-color: #5cb85c;
	color: white;
}

/* Progress Bar */
#eGov_messageDialogBodyProgress,
#eGov_messageDialogBodyProgress-EMV {
	display: none;
	left: 0;
	position: absolute;
	right: 0;
	top: -1px;
	z-index: 7;
}

.egov-message-progress {
	height: .2em;
}

.egov-message-progress .egov-message-progress-inner {
	height: .2em;
	background: #333;
	animation: progressbar-countdown;
	animation-duration: 40s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
	animation-play-state: paused;
	animation-timing-function: linear;
}

	.error .egov-message-progress-inner {
		background: #600507;
	}

	.success .egov-message-progress-inner {
		background: #075a16;
	}

	.info .egov-message-progress-inner {
		background: #38527a;
	}

	.warning .egov-message-progress-inner {
		background: #d8b338;
	}

@keyframes progressbar-countdown {
 	0% {
		width: 100%;
	}
	100% {
		width: 0%;
	}
}


/* Modal Open Animation */
@-webkit-keyframes animatetop {
	from {top: -300px; opacity: 0}
	to {top: 0; opacity: 1}
}

@keyframes animatetop {
	from {top: -300px; opacity: 0}
	to {top: 0; opacity: 1}
}
