.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  padding-top: 6%; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #fefefe;


}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 2% 5% 5%;
  border: 1px solid #888;
  width: 80%;
  height: auto;
  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
}

@-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}
}

.close {
  color: #fefefe;
  font-size: 50px;
  font-weight: bold;
  position: absolute;
  top: 0;
  right: 0;
  margin-top: -2px;
  margin-right: 2px;
}

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

.modal-header {
  background-color: #e1011b;
  position: fixed;
  width: 80%;
  top: 0;
  margin-left: -5%;
}

.modal-header h5 {
  color: #fefefe;
}

.modal-footer {
  padding: 1px 2px;
  margin-top: 3%;
  background-color: #e1011b;
  color: #fefefe;
}

@media screen and (max-width: 319px) {
  .modal-body {
    padding-top: 50%;
  }
}

@media screen and (min-width: 320px) and  (max-width: 480px) {
  .modal-body {
    padding-top: 25%;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .modal-body {
    padding-top: 10%;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .modal-body {
    padding-top: 5%;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1200px) {
  .modal-body {
    padding-top: 5%;
  }
}

@media screen and (min-width: 1201px) {
  .modal-body {
    padding-top: 2%;
  }
}