@-webkit-keyframes minimise {
	0% {
		-webkit-transform: scale3d(1,1,1);
	}
	100% {
		-webkit-transform: scale3d(0.1,0.1,1);
	}
}

.modal {
	display: block;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	-webkit-transition: opacity 0.3s ease-out;
	-moz-transition: opacity 0.3s ease-out;
	-o-transition: opacity 0.3s ease-out;
	transition: opacity 0.3s ease-out;
	z-index: 11000;
}

.modal.no-css {
	display: none;
	opacity: 1;
	pointer-events: auto;
}

.modal.active {
	opacity: 1;
	pointer-events: auto;

}

#modal-overlay {
	background: #000;
    left: 0px;
    height:100%;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0px;
    width:100%;
    z-index: 100;
}

#modal-overlay.no-css {
	display: none;
	pointer-events: auto;
}

#modal-overlay.active {
	opacity: .5;
	pointer-events: auto;
	-webkit-transition: opacity 0.3s ease-out;
	-moz-transition: opacity 0.3s ease-out;
	-o-transition: opacity 0.3s ease-out;
	transition: opacity 0.3s ease-out;
}

#test {
	width: 600px;
	padding: 30px;
	background: white;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7);
	-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
	-moz-box-shadow: 0 0px 4px rgba(0,0,0,0.7);
}


/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {
	#text {
		width: 300px;
	}
}