     /* Camera button Styling */
     #cameraButtonContainer {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }
   #cameraButtonContainer button {
          padding: 20px;
        border: none;
       background-color: transparent;
        border-radius: 0%;
        cursor: pointer;
        display:flex;
       align-items:center;
       justify-content:center;
        transition: background-color 0.3s ease;
       box-shadow: none; /* Remove the box-shadow*/
   }
    #cameraButtonContainer button:hover {
        background-color: rgba(255, 0, 0, 0); /*Remove background hover*/
     }
    #cameraButtonContainer button svg{
       fill: white;
   }
      /* Circle progress bar styling */
    .progress-ring {
         position: relative;
       width: 80px;
       height: 80px;
    }

    .progress-ring__circle {
         transform: rotate(-90deg);
      transform-origin: 50% 50%;
      fill: transparent;
     }
   .progress-ring__track {
         stroke: rgba(255, 255, 255, 0.3);
      stroke-width: 5px;
    }
    .progress-ring__bar {
       stroke: rgb(255, 0, 0); /*Green Color for the progress bar*/
       stroke-width: 5px;
        stroke-linecap: round;
         fill:transparent;
       stroke-dasharray: 226; /* Set the stroke dash array to the circumference of the progress bar*/
      stroke-dashoffset: 226;
        transition: stroke-dashoffset 0.1s linear; /* animation of the offset*/
    }
      /* Camera icon and red dot */
   .camera-icon {
       position: absolute;
       top: 50%;
        left: 50%;
         transform: translate(-50%, -50%);
      display:flex;
       align-items:center;
       justify-content:center;

    }

    .camera-icon svg{
         fill: white;
         width: 30px;
         height: 30px;
    }

    .red-dot {
       width: 20px;
       height: 20px;
         background-color: red;
         border-radius: 50%;
         position: absolute;
           display: none; /* hide by default */
    }

     #cameraButtonContainer button.recording .red-dot{
        display:block;
         animation: pulse 1s linear infinite; /* Apply animation */
   }

   @keyframes pulse {
      0% {
           transform: scale(1);
        }
    50% {
          transform: scale(1.4); /* Scale up in the middle*/
       }
      100% {
         transform: scale(1);
       }
   }
  body { font-family: 'Roboto', sans-serif; letter-spacing: 0.05em; font-size: max(2vw, 2vh); color:white; overflow: hidden} /*Prevent scroll bars*/

  /* Modernized Custom CSS for Zappar Save and Share UI */

/* Base styles */
#ZapparSnapshotContainer {
    background-color: rgba(0, 0, 0, 0.75) !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Roboto', sans-serif !important; /* Modern font */
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10000 !important;
    overflow: auto !important; /* Allow scrolling */
}

/* Enhanced Close Button Styles with Shadow */
#zapparCloseAref {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important; /* Added shadow transition */
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Added subtle shadow */
}

#zapparCloseAref:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: rotate(90deg) !important;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important; /* Shadow becomes a bit more prominent on hover */
}

#zapparCloseAref svg {
    stroke: #fff !important;
    width: 24px !important;
    height: 24px !important;
    transition: stroke 0.2s ease-in-out !important;
}

#zapparCloseAref:hover svg {
    stroke: #fff !important;
}

/* Video preview styles */
#ZapparPreviewVideo {
    width: 90% !important;
    max-width: 600px !important; /* Limit max-width */
    margin: 20px auto 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Button styles */
#zapparSaveButton, #zapparShareButton {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 160px !important;
    height: 60px !important;
    margin: 10px !important;
    border-radius: 12px !important; /* Less rounded corners */
    background-color: #e74c3c !important;  /* Use a slightly richer red */
    color: #fff !important; /* White text */
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important; /* Smooth transition */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important; /* Lighter shadow */
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 24px !important; /* More reasonable font size */
    font-weight: 600 !important; /* Slightly bolder text */
    font-family: 'Roboto', sans-serif !important; /* Modern font */
}

#ZapparSnapshotContainer a svg {
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
      vertical-align: middle !important;
      overflow: visible !important;
  }
  
  #ZapparSnapshotContainer a svg > g > * {
      display: none !important;
  }
  
  #ZapparSnapshotContainer a text {
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.8em !important;
    fill: white !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
   text-align: center !important;
      x: 0 !important;
    y: 50% !important;
    transform: translateY(-40%) !important;
    white-space: nowrap !important;
   max-width: 100% !important;
    overflow: hidden !important;
   font-weight: bold !important;
}

#zapparSaveButton:hover, #zapparShareButton:hover {
    background-color: #c0392b !important; /* Slightly darker hover color */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important; /* Slightly larger shadow */
}


/* Instruction text styles */
#zapparInstructionsp {
    color: #e0e0e0 !important; /* Lighter text color */
    margin-bottom: 20px !important;
    text-align: center !important;
    font-size: 1.1em !important;
    max-width: 90% !important;
    font-family: 'Roboto', sans-serif !important;  /* Modern font */
    line-height: 1.6 !important;  /* Improved readability */
    font-weight: 400 !important; /* Regular font weight */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    #zapparSaveButton, #zapparShareButton {
        width: 120px !important;
        height: 50px !important;
        font-size: 20px !important; /* Smaller font size */
    }

     #ZapparSnapshotContainer a svg {
        width:50px !important;
        height:50px !important;
    }
    #zapparInstructionsp {
        font-size: 0.9em !important;
    }
    #ZapparPreviewVideo {
         max-width: 100% !important;
    }
}
