title: Align overlay button with button on another div
body: <p>So check this out:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//Code for button a donde quieres ir 
  //Start var
  var nearby_search;
  function nearby_choose(choice){
    nearby_search = choice;
  }
  //Overlay code
  function nearby_search_on() {
    document.getElementById("nearby_search").style.display = "block";
  }
  
  function nearby_search_off() {
    document.getElementById("nearby_search").style.display = "none";
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>@font-face {
      font-family: biolinum;
      src: 'fonts/LinBiolinum_R.ttf';
  }
  @font-face {
      font-family: biolinum;
      src: 'fonts/LinBiolinum_RB.ttf';
      font-weight: bold;
  }
  @font-face {
      font-family: biolinum;
      src: 'fonts/LinBiolinum_RI.ttf';
      font-style: italic;
  }
  body {
      background-color: #FCF7F8;
      font-size: 62.5%;
      height: 100%;
      margin: 0px;
  }
  p {
      margin-block-start: 0rem;
      margin-block-end: 0rem;
  }
  h1 {
      margin-block-start: 0rem;
      margin-block-end: 0rem;
  }
  .domainhome {
      font-family: biolinum;
      font-size: 2rem;
      text-align: center;
      color: #1D263B;
      background-color: #FCF7F8;
      border: none;
  
      cursor: pointer;
      outline:none;
  
      margin-top: 2rem;
      margin-left: 5rem;
  }
  a:link {
      color: #1D263B;
      background-color: transparent;
      text-decoration: none;
  }
  a:visited {
      color: #1D263B;
      background-color: transparent;
      text-decoration: none;
  }
  .flex-container {
      display: flex;
      flex-shrink: 0;
      /* background-color: DodgerBlue; */
      margin-top: 4rem;
  }
  .left-bar {
      flex-direction: column;
      margin-left: 5rem;
  }
  
  .right-bar {
      flex-direction: column;
      margin-left: 5rem;
      margin-right: 5rem;
  
      height: 100%;
      width: 100%;
      
  }
  
  button {
      transition: 0.4s;
  }
  button:hover {
      transform: rotate(-1deg) translate(0px, -8px);
  }
  .adondequieresir {
      font-family: biolinum;
      font-size: 1.66rem;
      text-align: center;
      color: #FCF7F8;
      background-color: #1D263B;
      border: none;
      width: 275px;
      height: 75px;
  
      cursor: pointer;
      outline:none;
  
      margin-bottom: 3rem;
  }
  .agregarubicacion {
      font-family: biolinum;
      font-size: 1.33rem;
      text-align: center;
      color: #FCF7F8;
      background-color: #1D263B;
      border: none;
      width: 275px;
      height: 50px;
      border-radius: 50px;
  
      cursor: pointer;
      outline:none;
  
      margin-bottom: 3rem;
  }
  .personasunidas {
      font-family: biolinum;
      font-size: 1.33rem;
      text-align: center;
      color: #FCF7F8;
      background-color: #1D263B;
      border: none;
      width: 275px;
      height: 50px;
      border-radius: 50px;
  
      cursor: pointer;
      outline:none;
  
      margin-bottom: 3rem;
  }
  .icons {
      float: left; 
      margin-left: 7px;
      margin-right: 10px;
  }
  
  #map {
      height: 400px;
  }
  
  #nearby_search {
      position: fixed; 
      display: none;
      width: 100%; 
      height: 100%; 
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0,0,0,0.5);
      z-index: 2; 
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="flex-container"&gt;
          &lt;div class="left-bar"&gt;
  
              &lt;div&gt;
                  &lt;button onClick="nearby_search_on()" class="adondequieresir"&gt;&lt;p&gt;¿a dónde quieres ir?&lt;/p&gt;&lt;/button&gt;
  
                  &lt;div id="nearby_search"&gt;
                      &lt;button onClick="nearby_search_off()" class="adondequieresir" style="background-color: #A288E3;"&gt;&lt;p&gt;¿a dónde quieres ir?&lt;/p&gt;&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I'm trying to create something like a dropdown menu, but more stylish. So I decided not to use a  tag and instead use javascript variables and buttons to accomplish my goal. But the point is, when the button is clicked, I want it to turn to lighter, darken everything behind and (eventually) add other buttons with options to choose from. And the snippet above is my (faultish) approach. For example, I actually used <em>two</em> buttons to try and simulate the color change of virtually the same &quot;¿a donde quieres ir&quot; button. How can I responsively align these two buttons? What would be the cleanest way to accomplish what I want as a whole? I would kindly appreciate any help :)</p>