
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }

    body {
      background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-size: cover;
    }

    #overflowTest {
      max-height: 300px;
      padding: 15px;
      width: 100%;
      overflow-y: scroll;
      border: 1px solid #000000;
      font-weight: 900;
    }

    /* body {
        background: #000000;
        background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
      }
      #overflowTest {
        /* background: #4CAF50; */
    /* color: white; */
    /* max-height: 300px;
        padding: 15px;
        width: 100%; */
    /* height: 100px; */
    /*overflow-y: scroll;
        border: 1px solid #000000;
        font-weight: 900;
      } */

       /* Style for the error message */
        .error-message {
            color: red;
            font-weight: bold;
            margin-top: 20px;
        }
        /* Full-Screen Overlay */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); /* Dark background */
            display: none; /* Hidden by default */
            justify-content: center;
            align-items: center;
            z-index: 9999; /* Ensure it appears on top */
        }

        /* Popup Content */
        .popup-content {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            width: 80%;
            max-width: 500px;
        }

        /* Close Button */
        .close-btn {
            background-color: #ff4d4d;
            color: white;
            font-size: 18px;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 20px;
            transition: background-color 0.3s;
        }

        .close-btn:hover {
            background-color: #e43f3f;
        }

        /* Link Button */
        .popup-link {
            display: inline-block;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 10px;
            transition: background-color 0.3s;
        }

        .popup-link:hover {
            background-color: #45a049;
        }

        .pop_head {
            color: #333;
        }

        .pop_msg {
            font-size: 18px;
            color: #555;
        }

        /* LODER */
          .spinner {
            margin-top: 15px;
            width: 40px;
            height: 40px;
            border: 5px solid #ccc;
            border-top-color: #3399cc;
            border-radius: 50%;
            animation: spin 1s linear infinite;
          }
          @keyframes spin {
            to { transform: rotate(360deg); }
          }

          /*
           * IMPORTANT:
           * The site's older gallery CSS also defines a generic ".modal" with z-index:1.
           * Bootstrap's backdrop uses a much higher z-index, which would sit on top of
           * this photo editor and make every button look grey/unclickable.
           * These scoped rules restore Bootstrap behaviour ONLY for the photo editor.
           */
          #photoCropModal {
            z-index: 1065 !important;
            padding-top: 0 !important;
            background-color: transparent !important;
          }

          #photoCropModal .modal-dialog {
            pointer-events: none;
          }

          #photoCropModal .modal-content {
            width: 100% !important;
            max-width: none !important;
            pointer-events: auto;
            animation: none !important;
            -webkit-animation: none !important;
          }

          #photoCropModal .modal-body,
          #photoCropModal .modal-footer,
          #photoCropModal .modal-header {
            position: relative;
            z-index: 1;
          }

          .modal-backdrop {
            z-index: 1050 !important;
          }

          /* Participant photo capture / crop editor */
          .photo-choice-btn {
            min-width: 180px;
          }

          .photo-help {
            font-size: 0.92rem;
          }

          #photoReadyCard {
            display: none;
            margin-top: 14px;
            padding: 12px;
            border: 1px solid #ced4da;
            border-radius: 10px;
            background: #f8f9fa;
          }

          #preview {
            width: 160px;
            height: 160px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid #adb5bd;
            background: #fff;
          }

          .crop-stage {
            min-height: 320px;
            max-height: 62vh;
            background: #151515;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
          }

          #cropImage {
            display: block;
            max-width: 100%;
          }

          .photo-editor-controls .btn {
            min-width: 105px;
          }

          @media (max-width: 576px) {
            .photo-choice-btn {
              width: 100%;
            }

            .crop-stage {
              min-height: 260px;
              max-height: 52vh;
            }

            .photo-editor-controls .btn {
              flex: 1 1 calc(50% - 8px);
            }
          }
  