#ModalDialog {
	/*display:none;z-index:999;position:fixed;top:10%;right:30%;bottom:10%;left:30%;min-height:80%;height:80%;max-height:80%;padding:20px;line-height:150%;*/
	display:none;z-index:999;position:fixed;right:25%;left:25%;padding:20px 0 20px 20px;line-height:150%;max-height:94%;
	background-color:rgba(255, 255, 255, 1);border:solid 1px rgba(204, 204, 204, 1);
	box-shadow:0 0 20px rgba(0, 0, 0, 0.5);-moz-box-shadow:0 0 20px rgba(0, 0, 0, 0.5);-webkit-box-shadow:0 0 20px rgba(0, 0, 0, 0.5);-o-box-shadow:0 0 20px rgba(0, 0, 0, 0.5);
	font-size:1em;
}

#ModalDialogText {position:relative;overflow:auto;padding-right:20px;}
#ModalDialogText::-webkit-scrollbar {width:1px;}
#ModalDialogText::-webkit-scrollbar-track {-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.25);}
#ModalDialogText::-webkit-scrollbar-thumb {background-color:darkgrey;outline:1px solid slategrey;}

#ModalDialogText h1.ModalTitle {margin:0 0 5px 0;padding:0;font-size:1.5em;font-weight:normal;text-transform:uppercase;}
#ModalDialogText hr {clear:both;margin:0 0 10px 0;height:1px;border:none;border-bottom:solid 1px rgba(221, 221, 221, 1);}
#ModalDialogHide {position:absolute;top:-15px;right:-15px;padding:4px 5px 3px 5px;background-color:rgba(var(--blue), 1);border:solid 2px rgba(255, 255, 255, 1);border-radius:50%;color:rgba(255, 255, 255, 1);text-decoration:none;font-size:1.5em;}
#ModalDialogHide:hover {background-color:rgba(102, 102, 102, 1);}
#ModalDialogHide:active {background-color:rgba(51, 51, 51, 1);}

#WaitModal {
	z-index:999;position:fixed;top:0;left:0;padding:10px 20px;background:rgba(var(--white), 1);line-height:150%;
  box-shadow:0 0 10px rgba(0, 0, 0, 0.25);-moz-box-shadow:0 0 10px rgba(0, 0, 0, 0.25);-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.25);-o-box-shadow:0 0 10px rgba(0, 0, 0, 0.25);
}


/* INIZIO RESPONSIVE */
@media screen and (max-width:1060px) { /* Tablet Landscape */
	#ModalDialog {width:96%;margin-right:2%!important;margin-left:2%!important;right:0!important;left:0!important;}
}
@media only screen and (min-width: 1024px) and (max-width: 812px) {
	#ModalDialog {width:96%;margin-right:2%!important;margin-left:2%!important;right:0!important;left:0!important;}
}
@media only screen and (min-width: 768px) and (max-width: 812px) {
	#ModalDialog {width:96%;margin-right:2%!important;margin-left:2%!important;right:0!important;left:0!important;}
}
@media only screen and (min-width: 480px) and (max-width: 768px) {
	#ModalDialog {width:96%;margin-right:2%!important;margin-left:2%!important;right:0!important;left:0!important;}
}
@media only screen and (max-width: 768px) { /* Tablet Portrait */
	#ModalDialog {width:96%;margin-right:2%!important;margin-left:2%!important;right:0!important;left:0!important;}
}
@media only screen and (max-width: 600px) {
	#ModalDialog {width:96%;margin-right:2%!important;margin-left:2%!important;right:0!important;left:0!important;}
}
@media only screen and (max-width: 480px) {
	#ModalDialog {width:96%;margin-right:2%!important;margin-left:2%!important;right:0!important;left:0!important;}
}
/* FINE RESPONSIVE */
