/* The Modal (background) */
.smart-modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	padding-top: 100px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

/* Modal Content */
.smart-modal .sm-content {
	position: relative;
	background-color: #fefefe;
	margin: auto;
	padding: 0;
	border: 1px solid #888;
	width: 80%;
	max-width: 700px;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.4s;
	animation-name: animatetop;
	animation-duration: 0.4s;
}

/* Modal Header */
.smart-modal .sm-content .sm-header {
	padding: 6px 10px;
	background-color: #eeeeee;
	color: #444444;
	font-size: 14px;
	line-height: 14px;
	font-weight: bold;
	/*height: 6%;*/
	box-sizing: border-box;
}

/* Modal Body */
.smart-modal .sm-content .sm-body {
	padding: 10px;
	font-size: 12px;
	overflow: auto;
	width: 100%;
	height: 94%;
	box-sizing: border-box;
}

/* Modal Footer */
/*.smart-modal .sm-content .sm-footer {*/
	/*padding: 6px 16px;*/
	/*background-color: #5cb85c;*/
	/*color: white;*/
/*}*/

/* The Close Button */
.smart-modal > span.sm-close {
	position: absolute;
	top: 45px;
	right: 15px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
	opacity: 1;
}

.smart-modal > span.sm-close:hover,
.smart-modal > span.sm-close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

.smart-modal .sm-header > span.sm-close-header:hover,
.smart-modal .sm-header > span.sm-close-header:focus {
	color: #6a6a6a;
	text-decoration: none;
	cursor: pointer;
}

.smart-modal .sm-header > span.sm-close-header {
	float:right;
	color: #b5b5b5;
	font-size: 20px;
	font-weight: bold;
	transition: 0.3s;
	opacity: 1;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
	.smart-modal > .sm-content {
		width: 100%;
	}
}

/* Add 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}
}
