#modal {
  align-items: center;
  background-color: #ddd;
  border: 2px solid #000;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  left: 50vw;
  margin-left: auto;
  margin-right: auto;
  max-height: 100%;
  max-width: 400px;
  padding: 4px;
  position: fixed;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  z-index: 10;
}

#modal.wide-modal {
  max-width: none;
}

#modal button {
  align-items: center;
  display: flex;
  font-size: 1rem;
  justify-content: space-evenly;
  width: 7rem;
}

@media screen and (min-width: 430px) {
  #modal {
    font-size: 1.5rem;
    padding: 16px;
  }
}

@media screen and (min-width: 800px) {
  #modal {
    left: 50vw;
    transform: translate(-50%, -50%);
  }
}

#modal-overlay {
  background-color: #000;
  display: block;
  height: 100%;
  left: 0;
  margin: 0;
  opacity: 0.6;
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9;
}

/* specific to transfer request modal window */
#modal #modal-title {
  border: none;
  padding: 0 20px;
}

#modal h2 {
  font-size: 1rem;
}

#modal .tx-loc-container {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  margin: 8px 0;
  padding: 4px 0;
}

#modal .tx-loc-name {
  font-family: var(--font-secondary);
  font-size: 1.4rem;
}

#modal .tx-button-holder {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

#modal .tx-button-holder .icon-holder {
  display: flex;
  width: 22px;
}

#modal .close-modal {
  background-color: var(--white);
  border: 1px solid var(--grey-50);
  border-radius: 4px;
  padding: 0 1px;
  position: absolute;
  right: 4px;
  top: 4px;
  width: auto;
}

#modal .close-modal .icon-holder {
  width: 18px;
}
