.modal {
  text-align: center;
  background-color: white;
  width: 300px;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%)
}

.modalOverlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(84, 82, 19, 0.25);

}

.fileName {
  display: block;
  padding: 10px;
  font-weight: 400;
}

.modal {
  text-align: center;
  background-color: white;
  width: 300px;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%)
}

.modalOverlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(84, 82, 19, 0.25);

}

.fileName {
  display: block;
  padding: 10px;
  font-weight: 400;
}

Fix positioning of modal overlay
Fix positioning of modal overlay

