
:root {
	--modal-header-size: 40px;
	--modal-font-size: 16px;
	--section-margin-top: 10px;
	--section-margin-left: 20px;
}


.is-collapsed {
	display: none !important;
}
.is-hidden {
	visibility: hidden !important;
}


.center {text-align: center!important}

.w3-blue	{color:#fff!important; background-color:#2196F3!important}
.w3-green	{color:#fff!important; background-color:#4CAF50!important}
.w3-red		{color:#fff!important; background-color:#f44336!important}


#modal {
	background-color: rgba(0,0,0,0.4);
	color: white;
	height: 100vh;
	left: 0;
	position: fixed;
	text-align: center;
	top: 0;
	width: 100vw;
	z-index: 3;
}	
	
#modal section {
	background-color: transparent;
	color: black;
	display: inline-block;
	height: calc(100vh - 2 * var(--section-margin-top));
	margin: var(--section-margin-top) var(--section-margin-left);
	outline: 0;
	padding: 0;
	position: relative;
	text-align: left;
	width: calc(100vw - 2 * var(--section-margin-left));
}

#modal header,
#modal footer{
	background-color: #4CAF50;
	font-size: var(--modal-font-size);
	height: var(--modal-header-size);
	line-height: calc(var(--modal-header-size) / 2 + var(--modal-font-size));
	text-align: center;
}

#modal article {
	background-color: white;
	color: black;
	height: auto;
	max-height: calc (100vh - 2 * var(--modal-header-size));
	min-height: var(--modal-header-size);
	overflow-x: hidden;
	overflow-y: auto;	
	padding: 5px;
}

#modal article p {
	margin: 3px 0;
}
#modal article table {
	margin: auto;
}
#modal article table.raster {
	border-collapse: collapse;
}
#modal article table.raster td {
	border: 1px solid gray;
	padding: 0 3px;
}
/* #modal article img { */
	/* max-height: 100vh; */
	/* width: auto; */
/* } */



#close,
.control {
	cursor: pointer !important;
	height: 32px;
	position: absolute;
	right: 0;
	top: 2px;
	width: 32px;
}


#modal .arrow {
	background-color: white;
	opacity: 0.4;
	position: absolute;
	top: 50%;
	width: 50px;
}
#modal .right {
  right: 22px;
}
#modal .left {
  left: 22px;
}


/*
#arrowL,
#arrowR {
	opacity: 0.5;
	position: absolute;
	top: calc(50% - var(--modal-header-size) / 2);
	z-index: 4;
}
#arrowL {
	left: 50px;
}
#arrowR {
	right: 50px;
}
*/

/*
#arrowL,
#arrowR {
	opacity: 0.5;
	position: relative;
	top: calc(-50% + var(--modal-header-size) / 2);
	z-index: 4;
}
#arrowL {
	left: 37px;
}
#arrowR {
	right: 37px;
}
*/


