#modalWrap {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000000020;
  background: rgba(0,0,0,0.9);
}

#modalWrap .modalContent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: left;
  background: #ffffff;
  color: #000000;
  padding: 1em 1em 3em 1em;
  overflow: auto;
}
#modalWrap .modalContent p {
  color: black;
}

#modalWrap .modalContent button {
  font-size: 1em;
  line-height: 1em;
  padding: .25em 0.5em;
  width: auto;
  vertical-align: middle;
  align-self: flex-start;
  cursor: pointer;
}

#modalWrap .modalContent .flex-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#modalWrap .modalContent .actions {
  margin-top: 2em;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
#modalWrap .modalContent .actions button {
  margin: 0 0.5em;
}

#modalWrap .close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  display: block;
  width: 1em;
  height: 1em;
  z-index: 5;
  border-radius: 50%;
  color: #000000;
}

#modalWrap .close:hover {
  color: #666666;
}

@media screen and (min-width:740px) {
  #modalWrap .modalContent {
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    transform: translate(-50%, -50%);
    padding: 2em;
  }

  #modalWrap .close {
    top: 1em;
    right: 1em;
    background: rgba(0,0,0,0.25);
    color: #ffffff;
  }
}
