@charset "UTF-8";

/* ----------- */
/* -- popin -- */
/* ----------- */

.smart-popin{
	position: fixed;
	z-index: 100;
	left: 0; right: 0;
	top: 0; bottom: 0;
	overflow: auto; 
	opacity: 0;
	visibility: hidden;
	/* design */
	background-color: rgba(0,0,0,0.5);
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	-ms-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	transition: all 0.4s ease;
}
.smart-popin:target{
	opacity: 1;
	visibility: visible;
}
.smart-popin .sp-table{
	display: table;
	height: 100%;
	width: 100%;
}
.smart-popin .sp-cell{
	display: table-cell;
	vertical-align: middle;
	padding: 10px;
}
.smart-popin .sp-body{
	position: relative;
	z-index: 10;
	width: auto;
	min-width: 300px; 
	margin: 0 auto;
	/*background-color: #ffffff;*/
	/*padding: 2em;*/
	/*-webkit-box-shadow: 0 3px 5px 1px rgba(0,0,0,0.25);*/
	/*box-shadow: 0 3px 5px 1px rgba(0,0,0,0.25);*/
	width: 60%; 
}
.smart-popin .sp-body *{
	max-width: 100%; /* this is a security to prevents wide elements such as img to stretch the popin beyond the viewport width */
}
.smart-popin .sp-back{
	position: fixed;
	left: 0; right: 0;
	top: 0; bottom: 0;
	display: block;
}
.smart-popin .sp-close{
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	text-align: center;
	line-height: 36px;
	font-size: 1.6em;
	color: #000000;
	font-weight: 900;
	text-decoration: none;
}
