.md-perspective,
.md-perspective body {
	height: 100%;
	overflow: hidden;
}

.md-perspective body  {
	background: #222;	
	perspective: 600px;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width: 630px;
	min-width: 320px;
	height: auto;
	z-index: 2000;
	visibility: hidden;	
	backface-visibility: hidden;	
	transform: translateX(-50%) translateY(-50%);
}

.md-show {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: rgba(0,0,0,0.8);	
	transition: all 0.3s;
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}


.md-content {
	color: #000000;
	background: #fff;
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
}

.md-content p 
{font-size: 24px;
padding-top: 20px;
display: block;
text-align: center;
margin: 20px auto;}

.formwrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}


.formwrap input[type="text"],
.formwrap input:not([type="submit"]),
.formwrap textarea {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #000000; 
    border-radius: 0; 
    outline: none;
    transition: border-color 0.3s ease; 
    font-size: 16px;
    color: #333;
}


.formwrap input:not([type="submit"]):focus,
.formwrap textarea:focus {
    border-bottom: 2px solid #007bff;
}


.formwrap textarea {
    resize: vertical;
}


.formwrap .mybutton
{width:97%;
height: 50px;
border:2px solid #0d0d4e;
display: block;
text-align: center;
margin:20px auto;
cursor: pointer;
transition: .5s;}

.formwrap .mybutton:hover
{background:#4AACE9;
transition: .5s;
color: #0d0d4e;}


.md-effect-8.md-modal {	
	perspective: 1300px;
}

.md-effect-8 .md-content {	
	transform-style: preserve-3d;	
	transform: rotateY(-70deg);	
	transition: all 0.3s;
	opacity: 0;
}

.md-show.md-effect-8 .md-content {	
	transform: rotateY(0deg);
	opacity: 1;
}



@media screen and (max-width: 32em) {
	body { font-size: 75%; }
}