.overlay {
	background-color: #000!important;
	bottom: 0;
	cursor: default;
	left: 0;
	opacity: 0;
	position: fixed;
	right: 0;
	top: 0;
	visibility: hidden;
	z-index: 9998;

	-webkit-transition: opacity .5s;
	-moz-transition: opacity .5s;
	-ms-transition: opacity .5s;
	-o-transition: opacity .5s;
	transition: opacity .5s;
}

.overlay:target {
    visibility: visible;
    opacity: 0.7;
}

.popup {
	width:400px;
	display: inline-block;
	left: 50%;
	opacity: 0;
	position: fixed;
	top: 40%;
	visibility: hidden;
	z-index: 9999;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	box-shadow: 0 0 100px #000;
	text-align:center;

	-webkit-transition: opacity .5s, top .5s;
	-moz-transition: opacity .5s, top .5s;
	-ms-transition: opacity .5s, top .5s;
	-o-transition: opacity .5s, top .5s;
	transition: opacity .5s, top .5s;
	background-color:#fff;
	border: 1px solid #999;
	padding:30px;
}

.overlay:target+.popup {
	top: 40%;
	opacity: 1;
	visibility: visible;
}

.close {
	position: absolute;
	right:10px;
	top: -10px;
	border:none !important;
	background:none!important;
	font-size:48px;
	color:#000;
}


