#myc-modal-wrapper{
	position: fixed;
	top: 0;
	z-index: 99999;
}

/* The Modal (background) */
.myc-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

/* Modal Content */
.myc-modal-content {
    position: relative;
    background-color: #f5f5f7;
    margin: auto;
    padding: 0;
    padding-bottom: 20px;
    border: 1px solid #888;
    width: 80%;
    margin-bottom: 50px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 0.6s;
    animation-name: animatebottom;
    animation-duration: 0.6s;
    border-radius: 6px;
}

/* Add Animation */
@-webkit-keyframes animatebottom {
    from {bottom:-300px; opacity:0} 
    to {bottom:0; opacity:1}
}

@keyframes animatebottom {
    from {bottom:-300px; opacity:0}
    to {bottom:0; opacity:1}
}

/* The Close Button */
.myc-modal-close {
    color: black;
    float: right;
    font-size: 20px;
    font-weight: bold;
}

.myc-modal-close:hover,
.myc-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.myc-modal-header {
    padding: 2px 16px;
    background-color: #e8e9eb;
    color: black;
    font-size: 22px;
    text-align: center;
}

.myc-modal-logo {
    padding: 8px;
    margin: auto;
}

.myc-modal-title {
    padding: 8px;
}

.myc-modal-body {
	padding: 2px 16px;
}

.myc-modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

.myc-modal-blocklabel{
	width: 100%;
	padding: 5px;
	text-align: center;
	font-size: 18px;
	font-weight: 350;
}

.myc-modal-field{	
	float: left;
	padding: 10px;
	padding-left: 25px;
	padding-right: 25px;
}

#myc-registration-form .myc-modal-field{
	width:50%;
}

#myc-login-form .myc-modal-field, #myc-forgot-form .myc-modal-field{
	width:100%;
	padding-left: 25px;
	padding-right: 25px;
}

label {
    font-size: 12px;
    font-weight: 350;
    color: #9e9e9e;
}



.myc-success-btn{
    position: relative;
    border-radius: 4px;
    background-color: #3ea8e5;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#44b1e8),to(#3098de));
    background-image: -webkit-linear-gradient(top,#44b1e8,#3098de);
    background-image: linear-gradient(-180deg,#44b1e8,#3098de);
    box-shadow: 0 1px 0 0 rgba(46,86,153,.15), inset 0 1px 0 0 rgba(46,86,153,.1), inset 0 -1px 0 0 rgba(46,86,153,.4);
    font-size: 17px;
    line-height: 21px;
    height: 37px;
    font-weight: 300;
    text-shadow: 0 -1px 0 rgba(0,0,0,.12);
    color: #fff;
    cursor: pointer;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.myc-close-btn{
	position: relative;
    border-radius: 4px;
    background-color: grey;
    font-size: 17px;
    line-height: 21px;
    height: 37px;
    font-weight: 300;
    text-shadow: 0 -1px 0 rgba(0,0,0,.12);
    color: #fff;
    cursor: pointer;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;

}

input:not([type]), input[type=text]:not(.browser-default), input[type=password]:not(.browser-default), input[type=email]:not(.browser-default), input[type=url]:not(.browser-default), input[type=time]:not(.browser-default), input[type=date]:not(.browser-default), input[type=datetime]:not(.browser-default), input[type=datetime-local]:not(.browser-default), input[type=tel]:not(.browser-default), input[type=number]:not(.browser-default), input[type=search]:not(.browser-default), textarea.materialize-textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #9e9e9e;
    border-radius: 0px;
    outline: none;
    height: 3rem;
    width: 100%;
    font-size: 1rem;
    margin: 0 0 20px 0;
    padding: 0;
    box-shadow: none;
    box-sizing: content-box;
    transition: all 0.3s;
}



select {
    background-color: rgba(255,255,255,0.9);
    width: 100%;
    padding: 5px;
    border: 1px solid #f2f2f2;
    border-radius: 2px;
    height: 3rem;
}

.invalid label {
    color: red;
}

.invalid > input{
	    border-bottom: 2px solid #ff7076 !important;
}

#myc-modal-message, #myc-modal-login-message, #myc-modal-forgot-message{
	width: 90%;
	margin: auto;
	margin-bottom: 10px;
	color: white;
	border-radius: 6px;
	padding: 10px;
	text-align: center;
}

.myc-success-message{
	background-color: green;
}
.myc-error-message{
	background-color: #ff7076;
}
.myc-check-message{
	background-color: grey;
}



.myc-shake {
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: myc-shake 0.5s; 
    /* When the animation is finished, start again */
    animation-iteration-count: infinite; 
}

@keyframes myc-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}




@media only screen and (max-width: 768px) {
	.myc-modal{
		padding-top: 5%;
	}
    .myc-modal-content{
	    width: 90% !important;
    }
    .myc-modal-logo img{
	    max-width: 100%;
    }
    .myc-modal-field{
	    width: 100% !important;
    }
}