 style
 html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      font-family: Arial, sans-serif;
      background-color: #f4f4f4;
      overflow-y: auto;
    }
    .container {
      max-width: 1000px;
      margin: auto;
      padding: 20px;
      height: auto;
      border: 2px dashed #ccc;
      padding: 2rem;
      border-radius: 10px;
    }
    .upload-area {
      text-align: center;
      margin-bottom: 20px;
    }
    .upload-btn {
      padding: 12px 20px;
      font-size: 16px;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    
    #fileInput {
      display: none;
    }
    .image-preview {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      margin-top: 20px;
    }
    .img-wrapper {
      position: relative;
      width: 45%;
      height: 250px;
      border: 1px solid #ccc;
      border-radius: 5px;
      overflow: hidden;
      background: white;
      display: flex;
      align-items: center;
      justify-content: center;
      touch-action: none;
    }
    .img-wrapper img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      transform: rotate(0deg);
    }
    .icon-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      background: rgba(255, 255, 255, 0.7);
      padding: 3px 6px;
      border-radius: 50%;
      cursor: pointer;
      font-weight: bold;
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    }
    .rotate-btn {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255,255,255,0.7);
      padding: 4px 8px;
      border-radius: 10px;
      font-size: 12px;
      cursor: pointer;
    }
    /* Arrow button style for desktop view only */
    .arrow-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(255, 255, 255, 0.7);
      border: none;
      padding: 6px;
      cursor: pointer;
      font-size: 18px;
    }
    .arrow-btn-left {
      left: 5px;
    }
    .arrow-btn-right {
      right: 5px;
    }
    /* For mobile devices: hide the arrow buttons */
    @media (max-width: 768px) {
      .arrow-btn {
        display: none;
      }
    }
    .btn-group {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 15px;
      flex-wrap: wrap;
    }
    .btn {
      padding: 12px 20px;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .btn:hover {
      background: #0056b3;
    }
    .loading-icon {
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-top: 3px solid #ffffff;
      border-radius: 50%;
      width: 16px;
      height: 16px;
      animation: spin 1s linear infinite;
      display: none;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
/* Hide Desktop Guide on Mobile */
    @media (max-width: 767px) {
      .desktop-guide {
        display: none;
      }
      .mobile-guide {
        display: block;
        background-color: #f1f1f1;
        padding: 10px;
        border-radius: 5px;
        margin-top: 20px;
        font-size: 14px;
         display: grid;
      place-items: center; 
      min-height: 19vh;
        
      }
    }

    /* Hide Mobile Guide on Desktop */
    @media (min-width: 768px) {
      .mobile-guide {
        display: none;
      }
      .desktop-guide {
        display: block;
        background-color: #f1f1f1;
        padding: 10px;
        border-radius: 5px;
        margin-top: 20px;
        font-size: 14px;
         display: grid;
         place-items: center;
      min-height: 19vh;
      }

    }
  