.modal {
  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 */
  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 Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #928f8f;
  width: 40%;
  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: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 10px;
}

/* 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: 19px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 15px 15px;
  border-bottom: 1px solid #d2caca;
  text-align: center;
}

.modal-body {
  padding: 20px;
  text-align: center; 
}

.modal-footer {
  padding: 2px 16px;
}
li.anchor-li {
    display: inline-block;
    margin: 0 auto;
}
.btn.btn-sm.btn-default {
    border: 1px solid #ada6a6;
    padding: 7px;
    color: #5a5555;
    text-decoration: none;
    border-radius: 5px;
    width: 61px;
    margin-left: calc(50% - 43px);
    margin-right: 8px;
}
@media only screen and (min-width: 500px) and (max-width: 600px) {
.modal-content {   
    width: 60%;
}
li.anchor-li {
    width: 100%;
    margin-top: 8px;
}
.btn.btn-sm.btn-default {
margin-left: calc(50% - 38px);
}
}

@media only screen and (min-width: 320px) and (max-width: 499px){
.modal-content {   
    width: 60%;
}
.btn.btn-sm.btn-default {
margin-left: calc(50% - 38px);
}
li.anchor-li {
    width: 100%;
    margin-top: 8px;
}
    
    
}