/* =========================
   MODAL OVERLAY
   ========================= */
/*
  1. By default, the container is hidden (display: none).
  2. The “.active” class (or showing via JS) changes it to display: flex.
  3. You can rename these classes if you want to keep consistency with the old .modal IDs.
*/

.modal-container {
    display: none; /* Hidden by default; shown by JS toggling .active */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure on top of most elements */
  }
  
  .modal-container.active {
    display: flex; /* Show when .active is applied */
  }
  
  
  /* =========================
     MODAL CONTENT WRAPPER
     ========================= */
  /*
    - A card-like container for the modal's content.
    - Mobile-friendly widths with max-width constraints.
    - Centered flex layout for content.
  */
  
  .modal-content {      /* Good default for mid-sized screens */
    margin: 0 20px;         /* Some horizontal margin for small screens */
    padding: 20px 30px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    gap:5px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  
  /* =========================
     CLOSE BUTTON
     ========================= */
  .modal-close-btn, .modalClose, .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    font-weight: bold;
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  
  .modal-close-btn:hover,
  .modalClose:hover,
  .modalClose:focus,
  .close:hover,
  .close:focus {
    color: #444;
  }
  
  
  /* =========================
     MODAL BODY TEXT / HEADINGS
     ========================= */
  .modal-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .modal-content p {
    text-align: center;
    margin: 0.5rem 0;
  }
  
  
  /* =========================
     MODAL OPTIONS WRAPPER
     ========================= */
  /*
    If you have a container for option buttons or links,
    you can style them in a row or column flex layout:
  */
  
  .modal-options,
  .modalOptionsContainer {
    display: flex;
    flex-direction: column; /* or row, depending on preference */
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 1rem;
  }
  
  .modal-options button,
  .modalOptionsContainer button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    border: none;
  }
  
  .modal-option,
  .modalOption {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    background-color: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  

  .modal-option:hover,
  .modalOption:hover {
    background-color: #eaeaea;
  }
  
  /* (Optional) If each modal option has an icon or image inside an .iconContainer: */
  .iconContainer img {
    width: 72px;
    height: 72px;
    object-fit: contain; /* Keep aspect ratio */
  }
  
  

  
  /* =========================
     MEDIA QUERIES
     ========================= */
  /*
     Adjust modal sizing / spacing on very small devices if needed.
  */
  
  @media (max-width: 480px) {
    .modal-content {
      max-width: 90%; /* Let it shrink further on very small screens */
      padding: 15px;
    }
    
    .modal-content h2 {
      font-size: 1.3rem;
    }
  
    .modal-option,
    .modalOption {
      font-size: 1rem;
      padding: 8px;
    }
  }
  