/*modal
{
}*/
.modal
{
	position: fixed;
	height: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 19999999;
	pointer-events: none;
	max-width: 100vw;
	max-height: 100vh;
	box-sizing: border-box;
	/*+border-radius: 0;*/
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	-khtml-border-radius: 0;
	border-radius: 0;
	opacity: 0;
}
.modal .background
{
	width: 100%;
	height: 100%;
	bottom: 0px;
	left: 0px;
	position: absolute;
	z-index: 20181;
	pointer-events: none;
	pointer-events: none;
}
.modal.stateActive
{
	pointer-events: auto;
	display: flex;
	height: ;
	opacity: 1;
}
.modal.stateActive .background
{
	pointer-events: auto;
	backdrop-filter:blur(3px);
	opacity: 1;
	/*background-color: olive;*/
	z-index: 2000;
	backdrop-filter::blur(40px);
	background-color: rgba(191, 191, 191, 0.828);
	position: absolute;
}
/*BODY:not(.launch) .modal .background
{
	display: none;
}*/
body:not(.launch) .modal
{
	display: none;
}
.modal .outerframe
{
	width:max(70%, 100vw - 400px);
	z-index: 1000000;
	position: absolute;
	/*padding: 0;*/
	margin-left: auto;
	margin: 0;
	display: grid;
	justify-content: center;
	align-items: center;
	/*height:max(80%, 100vh - 200px);*/
	/*height:max(80%, 100vh - 200px);*/
	/*height:max(80%, 100vh - 200px);*/
	/*height: calc(100% - 100vw);*/
	max-height:max(100% - 150vw, 100vh *.85);
	grid-template-columns: 1fr calc(var(--defaultInterval)*2);
	/*grid-template-rows: calc(var(--defaultInterval)*2) auto;*/
	grid-template-rows: calc(var(--defaultInterval)*2) 1fr;
	grid-template-areas: ". closeButton" "contents  contents";
	/*pointer-events: auto;*/
	justify-content: center;
	justify-items: center;
	align-items: center;
	align-content: ;
	min-height: ;
}
.modal .outerframe > *
{
}
.modal.stateActive .contents.wrapper
{
	width: 100%;
	/*justify-content: start;*/
	justify-items: start;
	align-items: start;
	height: 100%;
	position: relative;
	display: grid;
	grid-area: contents;
	/*+border-radius:var(--defaultBorderRadius) 0 var(--defaultBorderRadius) var(--defaultBorderRadius);*/
	-moz-border-radius: var(--defaultBorderRadius) 0 var(--defaultBorderRadius) var(--defaultBorderRadius);
	-webkit-border-radius: var(--defaultBorderRadius) 0 var(--defaultBorderRadius) var(--defaultBorderRadius);
	-khtml-border-radius: var(--defaultBorderRadius) 0 var(--defaultBorderRadius) var(--defaultBorderRadius);
	border-radius:var(--defaultBorderRadius) 0 var(--defaultBorderRadius) var(--defaultBorderRadius);
	overflow: hidden;
	z-index: 20000;
	flex-direction: row;
	pointer-events: all;
	grid-template-rows: auto auto;
	align-content: start;
	padding: 0px;
}
/*modal close ack
{
}*/
#SD .modal .button.close
{
	width: 100%;
	height: 100%;
	grid-area: closeButton;
	position: relative;
	z-index: 19980;
	border-top-right-radius:var(--defaultBorderRadius);
	border-top-left-radius:var(--defaultBorderRadius);
	display: flex;
	justify-content: start;
	align-items: center;
	flex-direction: column;
	padding-right: 0px;
	padding: calc(var(--defaultInterval)*1) calc(var(--defaultInterval)*.25) calc(var(--defaultInterval)*.25);
	box-sizing: border-box;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	background-color:var(--colA);
	transition:var(--defaultTransition);
	cursor: pointer;
	bottom: 0px;
	margin-bottom: 0px;
	/*opacity: 0;*/
}
#SD .modal .button.close:hover
{
	background-color:var(--colB);
}
.modal .button.close .bar
{
	background-color: white;
	width: calc(var(--defaultInterval)*1.25);
	height: calc(var(--defaultInterval)*.25);
	border-radius: 10px;
	position: absolute;
	transition:var(--defaultTransition);
	opacity: 0;
}
.modal .button.close.active .bar
{
	opacity: 1;
}
.modal .button.close.active .bar:nth-child(1)
{
	transform: rotate(45deg);
}
.modal .button.close.active .bar:nth-child(2)
{
	transform: rotate(-45deg);
}
@media only screen and (max-width: 700px)
{
	.modal .outerframe
	{
		width:max(90%, 100vw - 400px);
	}
}
