#modal-popup {
    background: rgba(0,0,0,0.66);
	height: 100%;
	left: 0;
	position: fixed;
    top: 0;
	width: 100%;
    z-index: 99999;
    
	-webkit-animation: smooth 2s ease-in;
    -moz-animation: smooth 2s ease-in;
    -o-animation: smooth 2s ease-in;
    -ms-animation: smooth 2s ease-in;
    animation: smooth 2s ease-in;
}

@-webkit-keyframes smooth {
    0% { opacity: 0;}
	75% { opacity: 0; }
    100% { opacity: 1;}
}

@keyframes smooth {
    0% { opacity: 0;}
	75% { opacity: 0; }
    100% { opacity: 1;}
}

.modalcontent {
	background: #fff;
	-moz-box-shadow: 0 1px 5px rgba(0,0,0,0.66);
	-o-box-shadow: 0 1px 5px rgba(0,0,0,0.66);
	-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.66);
	box-shadow: 0 1px 5px rgba(0,0,0,0.66);
	height: auto;
	left: 50%;
	max-height: 90%;
	max-width: 600px;
	overflow-x: hidden;
	overflow-y: auto;
    position: absolute;
    top: 5%;
    transform: translate(-50%, 0px);
    width: 100%;
}

.modalcontent .widget {
	padding: 20px;
}

.modalcontent p:last-child {
	margin: 0;
}

.modal-close::before {
	color: #fff;
	content: "x";
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 40px;
}

.modal-close {
	-moz-border-radius: 100%;
	-o-border-radius: 100%;
	-webkit-border-radius: 100%;
    border-radius: 100%;
	background-color: #333;
    font-size: 0;
    font-weight: 700;
    height: 40px;
    left: 50%;
    padding: 0;
    position: absolute;
    top: 5%;
    transform: translate(680%, -30%);
    width: 40px;
}

.modal-close:hover {
	background-color: #e5554e;
}

@media only screen and (max-width: 666px) {
	
	.modalcontent {
		max-width: none;
		width: 90%;
	}
	
	.modal-close {
		left: auto;
		right: 5%;
		transform: translate(40%, -40%);
	}
	
}