/* 
   css Popup 
   projekt: https://jakubjurkian.pl/jak-zrobic-popup-w-javascript/

*/

.popup-overlay {
	position: relative;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 10000;
}
.popup {
	position: absolute; /*relative;*/
	z-index: 10001;
	padding: 8px 8px 20px;
	/*width: 100%;
	margin: 100px 18%;*/
	top: 10%;
	left: 0;
	right: 0;
	margin: 0 auto;
	background: #e2e3e5;
	border-radius: 0.25rem;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.popup .popup-content {
	margin-top: 15px;
}
/* Popup close */
.popup .close {
	position: absolute;
	right: -13px;
	top: -13px;
	cursor: pointer;
	background-color: #000;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	text-align: center;
	line-height: 26px;
	font-size: 20px;
	width: 30px;
	height: 30px;
	z-index: 10;
}
.popup .close:hover {
	text-decoration: none;
}
/* Heading */
.popup-content h4 {
	text-align: center;
	font-size: 24px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	line-height: 28px;
	color: #222;
}
/* Popup image */
.popup-image {
	margin-left: 0;
	max-width: 305px;
	width: 100%;
	display: inline-block;
}
.popup-image img {
	max-width: 100%;
	height: auto;
}
/* Responsive */
@media screen and (max-width: 870px) {
	.popup {
		max-width: 100%;
		width: 94%;
	}
	.popup .popup-content {
		padding-left: 10px;
		padding-right: 10px;
	}
	.popup .popup-image {
		display: block;
	}
	.popup .popup-image {
		text-align: center;
	}
}

@media screen and (max-width: 550px) {
	.popup {
		width: 92%;
	}
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */
.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}