/* The Modal (background) */
.overlay {
	position: absolute;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(6px);
	transition: opacity 50ms;
	visibility: hidden;
	opacity: 0;
	transition: all 50ms;
}

.overlay:target {
	visibility: visible;
	opacity: 1;
	z-index: 1002 !important;
}

.overlay .cancel {
	/*position: absolute;*/
	width: 100%;
	height: 100%;
	cursor: default;
}

/*
.popup {
	background: rgba(0, 0, 0, 0.85);
	border: 2px solid #600000;
	width: 40%;
	position: relative;
	transition: all 1s ease-in-out;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	border-radius: 3px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 4px rgba(153, 0, 0, .6);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 4px rgba(153, 0, 0, .6);
}
*/
.popup {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #600000;
    width: 40%;
    position: relative;
    transition: all 1s ease-in-out;
    transform: translate(-50%, 100%);
    left: 50%;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 4px rgba(153, 0, 0, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 4px rgba(153, 0, 0, .6);
}

.popup .header {
	color: white;
	background: rgba(0, 0, 0, 0.9);
	line-height: 50px;
	text-align: center;
	position: relative;
	height: 50px;
	box-sizing: border-box;
	border-bottom: 1px solid #300000;
}

.popup .footer {
	color: white;
	background: rgba(0, 0, 0, 0.9);
	line-height: 50px;
	text-align: center;
	position: relative;
	height: 50px;
	box-sizing: border-box;
	border-top: 1px solid #300000;
}

.popup h2 {
	margin-top: 0;
	color: #900000;
	font-size: 24px;
}

.popup p {
	font-size: 16px;
}

.popup .close {
	position: absolute;
	top: 0px;
	right: 20px;
	transition: all 20ms;
	font-size: 50px;
	font-weight: bold;
	text-decoration: none;
	color: #600000;
}

.popup .close:hover {
	color: #900000;
}

.popup .content {
	max-height: 30%;
	padding: 10px;
	text-align: center;
}

/* =========================================================================== */
/* Modal Dialogue Popups */

.modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -40%);
	background: url(assets/blur-noise.png), #202020 center center/cover no-repeat fixed;
	border: 1px solid #000;
	width: 100%;
	max-width: 750px;
	border-radius: 6px;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal h2 {
	margin-top: 0;
	text-align: center;
}

.modal .close {
	position: absolute;
	width: 40px;
	/* height: 20px; */
	top: 20px;
	right: 20px;
	opacity: 0.8;
	font-size: 36px;
	font-weight: bold;
	text-decoration: none;
	color: #c00000;
	z-index: 1003;
	float: right;
	font-weight: bold;
	background: #131313;
	border: 1px solid #000;
	border-radius: 4px;
	text-align: center;
}

.modal .footer .close {
	font-size: 24px;
	top: inherit;
	width: 100%;
	background: none;
	border: none;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40px;
}

.modal .close:hover {
	opacity: 1;
}

.modal .header {
	margin: 0;
	padding: 20px;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	border-bottom: 2px solid #900000;
	z-index: 999;
}

.modal .content {
	max-height: 400px;
	overflow: auto;
	/* margin: 1em; */
	background: #333;
	color: #fff;
	padding: 1em;
}

.modal .img {
	width: 100%;
	min-height: 275px;
}

.modal .footer {
	margin: 0;
	padding: 20px;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	border-top: 2px solid #000;
}

.modal p {
	text-align: center;
}

.modal p:last-child {
	margin: 0;
}

/* =========================================================================== */




.close {
    opacity: 0.8;
    font-size: 36px;
    font-weight: bold;
    text-decoration: none;
    color: #c00000;
    z-index: 1003;
    background: none;
    border: none;
    text-align: center;
    align-items: center;
    vertical-align: middle;
		padding: 0;
		margin: 0;
		top: -10px;
}

.close:hover {
    background: #131313;
    border: 1px solid #000;
    border-radius: 4px;
}
