/* The Modal (background) */
.modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 99999; /* Sit on top */ padding-top: 10px; /* Location of the box */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ /*background: rgba(0,30,90,0.75);*/ background: url(../images/bg.jpg) repeat; }
/* Modal Content */
.modal-content { position: relative; margin: auto; padding: 0; width: 80%; height: auto; background-color: #fff; /*	top:100%;
	margin-top:-50%;*/
top: 30px; border: 2px solid #69c; border-radius: 10px; -webkit-box-shadow: 0 0 16px rgba(0,0,0,0.25); -moz-box-shadow: 0 0 16px rgba(0,0,0,0.25); -ms-box-shadow: 0 0 16px rgba(0,0,0,0.25); -o-box-shadow: 0 0 16px rgba(0,0,0,0.25); box-shadow: 0 0 16px rgba(0,0,0,0.25);/*	 -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s	*/ }
.modal-content img { }
.modal-content table { width: 95%; margin: auto; margin-top: 25px; }

/* Add Animation */
@-webkit-keyframes animatetop {
 from {
top:-250px;
opacity:0
}
 to {
top:0;
opacity:1
}
}
 @keyframes animatetop {
 from {
top:-250px;
opacity:0
}
 to {
top:0;
opacity:1
}
}
/* The Close Button */
.close { float: right; font-size: 20px; font-weight: bold; color: #fff; background-color: #000; width: 30px; height: 30px; line-height: 30px; display: block; text-align: center; top: 10px; position: relative; border-radius: 100%; }
.close:hover,
.close:focus { color: #000; background-color: #ccc; text-decoration: none; cursor: pointer; }
.modal-header { padding: 2px 16px; color: #333; border-bottom: 1px solid #dedede; }
.modal-body { /*	padding: 2px 16px;*/ height: auto; }
.modal-footer { /*	padding: 2px 16px;*/ height: 50px; color: #555; padding: 20px; text-align: justify; margin-top: 10px; margin-bottom: 10px; }
.modal-footer:after { contant: "asdf"; }

@media screen and (max-width:1000px) {
.modal { background: #fff; }
.modal-footer { height: auto; }
.modal-content { padding: 10px; width: 80%; top: 0; margin-top: 0; border: none; border-radius: 10px; box-shadow: none; }
.modal-content table,
.modal-content table * { width: 100%; margin: auto; margin-top: 3px; text-align: center; padding: 0; border-spacing: 0 0; }
.modal-body img { width: auto; max-height: 150px; }
}

@media only screen and (min-width:1024px) and (max-width:1366px) {
.modal { background-color: #fff; }
.modal-content { top: 0; margin: auto; border: none; border-radius: 10px; box-shadow: none; }
}
