.modal-open {
  overflow: hidden;
}

body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
  margin-right: 10px;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  display: none;
  overflow: auto;
  overflow-y: scroll;
}

.modal.fade .modal-dialog {
  -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
          transform: translate(0, -25%);
  -webkit-transition: -webkit-transform 0.3s ease-out;
     -moz-transition: -moz-transform 0.3s ease-out;
       -o-transition: -o-transform 0.3s ease-out;
          transition: transform 0.3s ease-out;
}

.modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
          transform: translate(0, 0);
}

.modal-dialog {
  z-index: 1050;
  width: auto; 
  margin-right: auto;
  margin-left: auto; 
}

.modal-content {
  position: relative;
  background-color: #FFF;
  outline: none;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  padding:2em 0 0;
   border-radius:5px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  background-color: #000000;
}

.modal-backdrop.fade {
  opacity: 0;
  filter: alpha(opacity=0);
}

.modal-backdrop.in {
  opacity: 0.5;
  filter: alpha(opacity=50);
}

.modal-header {
  position:absolute;	
  height: 30px;
  width:100%;
  padding: 0px;
  top:-30px;
}

.modal-header .close {
  position:absolute;
  top:5px;
  right:-25px;
  color:#FFF;
  background-color:transparent;
  border:none;
  font-size:40px;
  line-height:1;
}
.modal-header img {
	height:40px;
	width:auto;	
	margin-top:-5px;
	margin-left:5px;
}
.modal-title {
  margin: 0;
  line-height: 20px;
}

.modal-body {
  position: relative;
  padding: 3em;
  text-align:center;
}
.modal-body h3 {margin-bottom:1.5em;}
.modal-body p, .modal-footer p {color:#000000; font-size:115%; line-height:1.2;}
.modal-body input {width:90%; margin-top:20px; height:3em; line-height:2em;}

.modal-footer {
  padding: 1.5em 1.5em 0.5em 2em;
  margin-top: 15px;
  text-align: left;
  border-top:1px solid #eeeff0;
}
.modal-footer p {color:#000000; width:60%; display:inline-block;}

.modal-footer:before,
.modal-footer:after {
  display: table;
  content: " ";
}

.modal-footer:after {
  clear: both;
}

.modal-footer:before,
.modal-footer:after {
  display: table;
  content: " ";
}

.modal-footer:after {
  clear: both;
}

.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}

.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}

.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}

.modal-footer button {
	display:inline-block;
	vertical-align:middle;	
	float:right;
	margin-top:-5px;
	background-color:#406618;
	border:none;
	color:#FFF;
}

.modal-footer .button-red {
  display:inline-block;
  vertical-align:middle;  
  float:right;
  margin-top:-5px;
  background-color:#F46F8F;
  border:none;
  color:#FFF;
}

.modal-footer .cancel {
  display:inline-block;
  vertical-align:middle;  
  float:right;
  margin-top:-5px;
  background-color:#a79d96;
  border:none;
  color:#000;
}
#resultModal .modal-body {padding-top:1em; padding-bottom:1em;}
#resultModal .modal-body img {margin:0 auto 1.5em; width:60px;}
#resultModal .modal-body h3 {margin-bottom:1em;}

@media (min-width: 768px) {
  .modal-dialog {
	right: auto;
	left: 50%;
	width: 80%;
	padding-top: 5%;
	max-width: 700px;
  }
  #resultModal .modal-dialog {max-width:500px;}
  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }
}

@media (max-height: 768px) {
	.modal-dialog {
		max-width: 700px;
		padding-top: 2%;
	}
}
