.modal {
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* 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_input input {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.modal_input {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.modal_input:hover,
.modal_input:focus {
  background-color: #ccc;
}

/* Modal Content */
.modal_content {
  position: relative;
  background-color: darkgrey;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  border-radius: 5px;
  overflow: hidden;
  width: 80%;
  max-width: 580px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.modal_animation {
  -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 {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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

.modal_header {
  padding: 7px 14px 7px 7px;
  background-color: #444444;
  color: white;
}

.modal_header h3 {
  margin-top: 7px;
  margin-bottom: 7px;
}

.modal_body {
  padding: 7px 7px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.modal_footer {
  padding: 7px 7px;
  background-color: #444444;
  min-height: 14px;
  color: white;
  display: flex;
  justify-content: space-evenly;
}

.modal_button {
  flex-grow: 1;
  padding: 7px 7px;
  text-align: center;
  margin-right: 7px;
  cursor: pointer;
  border: orange solid 1px;
  border-radius: 5px;
  color: orange;
  background-color: gray;
}

.modal_button:hover,
.modal_button:focus {
  color: white;
  background-color: orange;
}

.modal_button:last-child {
  margin-right: 0px;
}