.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 200; /* Sit on top */
    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 */
    padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5px auto; /* 15% from the top and centered */
    border: 1px solid #888;
   /* width: 80%; *//* Could be more or less, depending on screen size */
     max-width:500px;
	 height:auto;
}

/* The Close Button */
.close {
    /* Position it in the top right corner outside of the modal */
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}

/* Close button on hover */
.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}
/**********************************************/
.modal-forms{
	
    background-color: #ddd;
    max-width: 450px; 
    border:2px #0299ff solid;
    z-index: 5;
    border-radius:7px;
    overflow: hidden;
    
	/*border-bottom:none;*/
       
}
.modal input[type=text],.modal input[type=password],.modal input[type=email] {
    width: 100%;
    padding: 7px 5px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 5px;
}
.modal textarea {
 border-radius: 5px; 
   border: 1px solid #ccc;      

        
}
.modal input[type=checkbox] {
    width:20px;
    padding: 2px 2px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
/* Set a style for all buttons */
.modal-sub {
    background-color: #4CAF50;
    color: white;
    font-size: 15px;
    padding: 10px 15px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
}

/* Extra style for the cancel button (red) */
.cancelbtn {
    width: auto;
     font-size: 15px;
    padding: 10px 18px;
    background-color: #f44336;
     border: none;
	 color:white;
	 cursor: pointer;
    border-radius: 5px;
}

/* Center the avatar image inside this container */
.imgcontainer-mod {
    text-align: center;
    margin: 15px 0 5px 0;
	
}

/* Avatar image */
img.avatar {
    height:60px;
	width:60px;
	margin-top:10px;
    border-radius: 50%;
    background-color: #F1F1F1;
}

/* Add padding to containers */
.container-mod {
    padding: 15px;
}

/* The "Forgot password" text */
span.psw {
    float: right;
    padding-top: 16px;
}

 .modal input:required:invalid  {
            border: 1px solid firebrick;
       }
    .modal input:required:valid  {
            border: 1px solid green;
       }

.psw { margin-left: 10px; height: 20px; float: right; }

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }
    .cancelbtn {
        width: 100%;
    }
}

