/*Edit: Hassan Alsaadi / 18/07/2017 */
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  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.4); /* Black w/ opacity */
}

/*small modal*/
.modal-sm{
 top:10%;
}

/* Modal Content/Box */
.modal-content {
  background-color: #424242;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 2px solid #545454;
  border-radius: 4px;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* Modal title */
.modal-title {
  margin-top: 8px;
}

/* The Close Button */
.close {
 color: rgba(255,255,255,0.12) !important;
 text-shadow: 0 1px 0 rgba(255,255,255,0.12);
 float: right;
 font-size: 28px;
 font-weight: 700;
 margin-top: -5px;
 margin-right: -1px;
 filter: alpha(opacity=80);
 opacity: .8;
}

.close:hover,
.close:focus {
 color: #FF9800 !important;
 text-shadow: 0 1px 0 #FF9800;
 outline: none;
 cursor: pointer;
}

/* works with btn teel and btn-dark-grey*/
.btn-modal-footer {
  font-size: 12px;
  margin-top: 8px;
  min-width: 100px;
}

/* modal for quick messages */
.message-modal{
  max-height: 200px; overflow: auto;
}