jQuery(document).ready(function($) {
setTimeout(function() {
$('.popup-content').css('display', 'flex'); // Show the popup after a delay
}, 3000); // 3000 milliseconds = 3 seconds delay
// Close the popup when the close button is clicked
$('.popup-close').click(function() {
$('.popup-content').css('display', 'none');
});
// Optional: Close the popup when the overlay background is clicked
$('.popup-content').click(function(e) {
if ($(e.target).hasClass('popup-content')) {
$(this).css('display', 'none');
}
});
});