.mod {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 150px; /* Location of the box */
  padding-left: 10px;
  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.5); /* Black w/ opacity */
}

/* Modal Content */
.mod_wrap {
  position: relative;
  background-color: #ffffff;
  padding: 0;
  width: 400px;
  border-radius: 10px;
  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: animatetop;
  -webkit-animation-duration: 1s;
  animation-name: animatetop;
  animation-duration: 1s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

.mod_head {
  font-size: 18px;
  font-weight: bold;
  min-height: 20px;
  padding: 8px 20px 8px 30px;
  background-color: #4356D8;
  color: white;
  border-radius: 10px 10px 0 0;
}

.mod_close {
  text-align: center;
  color:#ffffff;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 0px;
  padding-top:10px;
  cursor:pointer;  
  height: 40px;
  width: 50px;
}

.mod_err {
  padding: 10px 10px 0 35px;
  font-size: 14px;
  font-weight: bold;
  color: #ff0000;
}

.mod_body {
  padding: 10px 35px;
  font-size: 16px;
  min-height: 60px;  
  max-height: 700px;
  overflow-y: scroll;
  
}

.mod_body li {
  font-size: 14px;
  padding-bottom: 10px;
}

.mod_foot {
  text-align: right;
  padding: 0 20px 5px 0;
}