<div id="mainPageId" aria-hidden="false">
  <a href="#modalId" id="trigger">trigger1</a>
</div>

<div id="modalId" class="modal" aria-hidden="true">
  <button id="close-modal">X</button>
  <input type="text" id="text-input">
  <input type="submit" id="submit">
</div>