.md-modal {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	margin-top: 5rem;
	max-height: 35rem;
	height: 100%;
	z-index: 2000;
	visibility: hidden;
    overflow-y: auto;
}

.md-modal:target {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	opacity: 50%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	transition: all 0.3s;
}

.md-modal:target ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.md-content {
	padding: 3rem 3rem 3 3rem;
	background-color: #fff;
	width: auto;
	height: auto;
	text-align: justify;
}

/* Effect */
.md-modal .md-content {
	-webkit-transform: scale(0.7);
	-moz-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-modal:target .md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}



/* Vlastni uprava */
.md-close {
	overflow: hidden;
	display: flex;
	justify-content: flex-end;
	background-color: #fff;
	padding-bottom: 2rem;
}

.ikona-zavrit {
	display: block;
	width: 30px;
	height: auto;
}

.ikona-zavrit:hover {
	opacity: 0.5;
	transition: all 0.1s ease-in-out;
}

@media only screen and (max-width: 1080px) {
	.md-modal {
		width: 80%;
	}
}


@media only screen and (max-width: 600px) {
	.md-modal {
		width: 90%;
	}

	.md-content {
		padding: 3rem 1rem 3 1rem;
		background-color: #fff;
		width: auto;
		height: auto;
		text-align: justify;
	}
}


@media screen and (max-width: 470px){
	.md-modal {
		position: fixed;
		left: 50%;
		transform: translateX(-50%);
		width: 100%;
		margin-top: 0rem;
		max-height: 100%;
		height: auto;
		z-index: 2000;
		visibility: hidden;
		overflow-y: auto;
	}
}