/* The modal-box (background) */
.modal-box {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  color: #303030;
  font-size: 1em;
  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 */
}

/* modal-box Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  /*box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);*/
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.12);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* 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}
}

/* The Close Button */
.close {
  float: right;
  font-size: 1.8em;
  line-height: 1.2em;
  opacity: 0.4;
  cursor: pointer;
  text-decoration: none;
}

.close:hover {
  opacity: 0.6;

}
.close:active {
  opacity: 0.8;
}

.modal-header {
  padding: 1.2em 1.8em 1em 1.8em;
  background-color: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0.6em 0.6em 0 0;
}

.modal-content {
    max-width: 700px;
    width: 80%;
    background: #fff;
    margin: 0 auto;
    border-radius: 0.6em;
}

.modal-body {
  padding: 1.5em 1.8em 2em 1.8em;
  text-align: left;
  border-radius: 0 0 0.6em 0.6em;
}
@media(max-width: 767px) {
  .close {
    font-size: 2em;
  }
  .modal-box {
    padding: 3em 2em;
  }
  .modal-content {
    width: 100%;
  }
}