/* keep your existing styles, just add the .active helper */
    /* The Modal (background) */
    .modal {
      display: none;               /* Hidden by default */
      position: fixed;             /* Sit on top */
      z-index: 1000;               /* Highest layer */
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;              /* Enable scroll if needed */
      background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    }
    
    /* Modal Content */
    .modal-content {
      position: relative;
      background-color: #fff;
      margin: 5% auto;             /* 5% from the top and centered */
      padding: 20px;
      border-radius: 40px;
      width: 600px;
      max-width: 90%;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    /* Close button */
    .modal-close {
      position: absolute;
      top: 8px;
      right: 12px;
      font-size: 28px;
      font-weight: bold;
      color: #333;
      cursor: pointer;
    }
    
    .modal-close:hover {
      color: #000;
    }