/* Main content */
.main-content {
    text-align: center;
}

/* Overlay styles */
.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden; /* Nasconde l'overlay inizialmente */
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 99999999999999999; /* Sotto il popup */
}

/* Popup styles */
.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centro dello schermo */
    background: none;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Inizia invisibile */
    visibility: hidden; /* Nasconde il popup inizialmente */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Animazione di opacità */
    z-index: 999999999999 !important; /* Sopra l'overlay */
}

/* Close button styles */
.custom-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #000;
    cursor: pointer;
	background: #fff;
  height: 30px;
  width: 30px;
  border-radius: 50px;
}

.custom-close-btn:hover {
    color: #ff0000;
}

/* Popup content */
.custom-popup-content h2 {
    margin: 0;
    padding: 0;
}

.custom-popup-content p {
    margin-top: 10px;
}

/* Mostra overlay */
.custom-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* Mostra popup */
.custom-popup.show {
    visibility: visible;
    opacity: 1;
}


/*Responsive*/
@media only screen 
and (max-width : 1000px) 
and (min-width : 522px){
	#customPopup img{width: 93% !important;}
	.custom-popup{width: 100% !important;}
	.custom-close-btn{right: 30px !important;}
}

@media only screen 
and (max-width : 521px) {
	#customPopup img{width: 93% !important;}
	.custom-popup{width: 100% !important;}
	.custom-close-btn{right: 20px !important;}
}