
:root {

/* General */	

	--global-font-family:		'Ubuntu', sans-serif;
	--global-font-size: 			15px;
	--global-line-height:		1.4em;

	--h1-font-family:				'Ubuntu', sans-serif;			/* Used for h1 headings. */
	--h1-font-size:				160%;									/* The relative size of h1 headings. */	
	--h1-line-height:				110%;									/* Best value depends on the font. */

	--title-font-family:			'Ubuntu Condensed', sans-serif;					/* Used for titles and h2 headings. */
	--title-font-size:			120%;									/* The relative size of titles and h2 headings. */	
	--title-line-height:			inherit;								/* Best value depends on the font. */

	--input-font-family:			'Open Sans Semibold', sans-serif;
	--input-font-size:			95%;	
	--input-line-height:			inherit;

	--mono-font-family:			'Dejavu Mono', monospace;		/* Used for the 'Published URL' display */
	--mono-font-size:				90%;									/* Can be used to scale the monospace text size. */
	--mono-line-height:			1.3;

	--global-border-color:		gray;									/* Borders around widgets, inputs, windows and submenus. */
	--error-border-color: 		red;									/* A border color to indicate wrong input. */

/* Colors */

	--input-backgnd:				white;
	
/* Widgets */	
	--widget-color:				inherit;
	--widget-backgnd:				linear-gradient(to bottom, #E6E6E5, #D1D1CF);
	--widget-disabled-color:	gray;									/* Text in disabled buttons and other widgets. */
	--widget-disabled-backgnd: lightgray;
	--widget-hover-backgnd:		linear-gradient(to bottom, #FAFAF9, #E6E6E3);
	--widget-active-backgnd:	linear-gradient(to bottom, #B8B8B8, #C5C5C5);
	--widget-border-radius:		4px;
	--widget-shadow: 				1px 1px 1px rgba(128, 128, 128, 0.7);

/* Special color gradients */
	--red-color:							#C70606;
	--red-gradient-top:					#B33D20;
	--red-gradient-bottom:				#510F00;
	--red-gradient-top-lit:				#CC5133;
	--red-gradient-bottom-lit:			#7A1C07;
	--red-backgnd:							#FDE9E9;

	--green-color:							#42902F;
	--green-gradient-top:				#6CB35B;
	--green-gradient-bottom:			#305927;
	--green-gradient-top-lit:			#85C576;
	--green-gradient-bottom-lit:		#437339;
	--green-backgnd:						#EBFFE6;
	
	--blue-color:							#2065BF;
	--blue-gradient-top:					#517DB5;
	--blue-gradient-bottom:				#253B57;
	--blue-gradient-top-lit:			#78ABF0;
	--blue-gradient-bottom-lit:		#314C6E;
	--blue-backgnd:						#EBF5FF;

	--orange-color:						#D46A00;
	--orange-gradient-top:				#d9720a;
	--orange-gradient-bottom:			#944900;
	--orange-gradient-top-lit:			#f2891f;
	--orange-gradient-bottom-lit:		#a6570a;
	--orange-backgnd:						#fff1e3;

	--cyan-color:							#2F8090;
	--cyan-gradient-top:					#497E8A;
	--cyan-gradient-bottom:				#1C4145;
	--cyan-gradient-top-lit:			#62949E;
	--cyan-gradient-bottom-lit:		#325F63;
	--cyan-backgnd:						#EEFAFA;

	--purple-color:						#A600A6;
	--purple-gradient-top:				#B362B3;  
	--purple-gradient-bottom:			#804680;
	--purple-gradient-top-lit:			#CC70CC;
	--purple-gradient-bottom-lit:		#995499;
	--purple-backgnd:						#F8F0FF;

	--gray-color:							#595959;
	--gray-gradient-top:					#808080;
	--gray-gradient-bottom:				#333333;
	--gray-gradient-top-lit:			#999999;
	--gray-gradient-bottom-lit:		#4F4F4F;
	--gray-backgnd:						#EBEBEB;

	--lightgreen-color:					#9CA100;
	--lightgreen-gradient-top:			#B3A720;
	--lightgreen-gradient-bottom:		#665D00;
	--lightgreen-gradient-top-lit:	#CCBF33;
	--lightgreen-gradient-bottom-lit:	#7A7007;
	--lightgreen-backgnd:					#FAFADA;
 
	--selected-color:				white;								/* For selected list entries. */
	--selected-backgnd:			linear-gradient(to bottom, #6B6B6B, #2B2B2B);	/* The background for the above. */
	--selected-border-color:	#2B2B2B;	/* The background for borders of selected elements, if a gradient is not applicable. */
	--accent-color:				var(--gray-color);

 	--inbound-color: 						var(--orange-color);
 	--outbound-color: 					var(--lightgreen-color);

	--cover-backgnd:				rgba(230, 230, 230, 0.5);
	--window-backgnd: 			#EEEEEE;
	--window-border-radius:		8px;
	--window-shadow:		 		3px 3px 10px 2px rgba(0, 0, 0, 0.5);
 	--title-color:					white;								/* For window and section titlebars. */
	--inactive-title-color:		#DDDDDD;
	--title-backgnd:				linear-gradient(to bottom, #6B6B6B, #2B2B2B); /*#384E63;								/* The background for the above. */
		
}


/************************************/
/*** Fonts                        ***/
/************************************/

@font-face {
    font-family: 'Ubuntu';
    src: url('./fonts/ubuntu-b-webfont.woff2') format('woff2'),
         url('./fonts/ubuntu-b-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;

}

@font-face {
    font-family: 'Ubuntu';
    src: url('./fonts/ubuntu-bi-webfont.woff2') format('woff2'),
         url('./fonts/ubuntu-bi-webfont.woff') format('woff');
    font-weight: bold;
    font-style: italic;

}

@font-face {
    font-family: 'Ubuntu';
    src: url('./fonts/ubuntu-r-webfont.woff2') format('woff2'),
         url('./fonts/ubuntu-r-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Ubuntu';
    src: url('./fonts/ubuntu-ri-webfont.woff2') format('woff2'),
         url('./fonts/ubuntu-ri-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Ubuntu Condensed';
    src: url('./fonts/ubuntu-c-webfont.woff2') format('woff2'),
         url('./fonts/ubuntu-c-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@font-face {
	font-family: 'Open Sans Semibold';
	src: url('./fonts/opensans-semibold.woff') format('woff');
	font-weight: normal;
	font-style: normal;

}

@font-face {
    font-family: 'Dejavu Mono';
    src: url('./fonts/dejavu-mono.woff') format('woff'),
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Dejavu Mono';
    src: url('./fonts/dejavu-mono-bold.woff') format('woff'),
    font-weight: bold;
    font-style: normal;
}


/*******************************/
/*** General element styling ***/
/*******************************/

* {
  box-sizing: border-box;
}

html {
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-family: var(--global-font-family);
	font-size: var(--global-font-size);
	line-height: var(--global-line-height); 
	background: var(--global-backgnd);
}

body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: auto;
}

table {
	font-family: var(--global-font-family);
	font-size: var(--global-font-size);
	line-height: var(--global-line-height);
	border-collapse:collapse; 
}

h1 {
	font-family: var(--h1-font-family);
	font-size: var(--h1-font-size);
	line-height: var(--h1-line-height);
	font-weight: bold;
	margin: 0.4em 0 0.4em 0;
}

h2 {
	font-family: var(--title-font-family);
	font-size: var(--title-font-size);
	line-height: var(--title-line-height);
	font-weight: normal;
	text-transform: uppercase;
	margin: 1em 0 0.5em 0;
}

h3 {
	font-family: var(--global-font-family);
	font-size: 100%;
	font-weight: bold;
	margin: 0.7em 0 0 0;
}

p {
	margin: 0.5em 0;
}

ul {
	margin: 0.5em 1.5em;
	padding: 0 0.5em;
}

li {
	margin: 0.5em 0;
}

li:first-child, li:last-child {
	margin: 0;
}

big {
	font-size: 120%;
	font-weight: bold;
}

code {
	font-family: var(--mono-font-family);
	font-size: var(--mono-font-size);
	line-height: var(--mono-line-height);
}

/*** Controls ***/

input[type='text'], textarea {
	display: inline-block;
	font-family: var(--input-font-family);
	font-size: var(--input-font-size);	
	line-height: var(--input-line-height);
	padding: 0.2em 0.3em;
	border: 1px solid var(--global-border-color);
	border-radius: var(--widget-border-radius);
}

input[type='checkbox'], input[type='radio'] {
	display: inline-block;
	margin: 0.5em;
}

label {
	display: inline-block;
	position: relative;
	top: -0.1em;
	cursor: default;
	user-select: none;
}

.button {
	display: inline-block;
	padding: 0.15em 0.5em 0.2em 0.5em;
	background: var(--widget-backgnd);
	border: 1px solid var(--global-border-color);
	border-radius: var(--widget-border-radius);
	box-shadow: var(--widget-shadow);
	text-align: center;
	cursor: default;
	user-select: none;
}

.menu-button {
	display: block;
	max-width: 20em;
	margin: 0.5em auto;
	text-align: center;
}

.round-menu-button {
	border-radius: 50%;
	width: 2em;
	height: 2em;
	font-size: 1.3rem !important;
	padding: 0.5em 0.4em !important;
	position: relative;
	top: -0.4em;
}

.button * {
	vertical-align: middle;
}

.button:not(.round-menu-button) .fa {
	margin-right: 0.5em;
}

.large-icon {
	font-size: 250% !important;
	text-shadow: 0px 0px 1px var(--global-color);
}

/************************************/
/*** Pop-ups                      ***/
/************************************/

.popup {
	position: absolute;
	z-index: 600;
	height: max-content;
	overflow: hidden;
	padding: 0.1em 0.8em;
	background-color: white;
	border: 1px solid var(--global-border-color);
	box-shadow: var(--window-shadow);
	line-height: calc(var(--global-line-height) * 0.9);
	cursor: default;
	user-select: none;
}

.popup h3 {
	font-size: 110%;
	margin: 0.5em 0 0.3em 0;
}

.popup br {
	display: block;
	content: " ";
	margin-bottom: 0.5em;
}

.control-popup {
	z-index: 400;
}

/************************************/
/*** Dialogs                      ***/
/************************************/

#modal-cover {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 210;
	background: var(--cover-backgnd);
}

#progress-cover {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 310;
	background: var(--cover-backgnd);
}

.modal {
	position: absolute;
	z-index: 220;
/*	left: 50%;
	top: 50%;
 	transform: translate(-50%, -50%); */
 	width: max-content;
 	height: max-content;
	min-width: 20em;
	max-width: 90%;
	max-height: 90%;
	padding-bottom: 0.3em;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr auto;
	background: var(--window-backgnd);
	background-repeat: repeat;
	border: 1px solid var(--global-border-color);
	box-shadow: var(--window-shadow);
/*	transition: left 0.1s, top 0.1s, width 0.1s, height 0.1s; */ 
}

.modal .titlebar {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.2em 0.2em 0.1em 0.2em;
	font-family: var(--title-font-family);
	font-size: var(--title-font-size);
	overflow: hidden;
	white-space: nowrap;
	background: var(--title-backgnd);
	color: var(--title-color);
	border-bottom: 1px solid var(--global-border-color);
	cursor: move;
	user-select: none;
}

.modal-title {
	display: inline-block;
	padding: 0.15em 0.4em 0.2em 0.4em;
	margin: 0;
	font-weight: normal;
	text-transform: uppercase;
}

.window-icon {
	float: right;
	padding: 0.08em 0.2em 0 0.2em;
	margin: 0;
	color: var(--inactive-title-color);
	cursor: default;
}

.window-icon:hover {
	color: var(--title-color);
}

.modal .window-icon {
	padding: 0.2em 0.3em;
}

.section-title .window-icon {
	width: 1.5em;
}

.modal-content {
	min-height: 4em;
	overflow: auto;
	padding: 0.8em 1.2em 0 1.2em;
}

.modal-content h1 {
	font-size: 150%;
}

.modal-content h2 {
	margin: 0.4em 0 0.5em 0;
}

.modal-content h3 {
	font-size: 110%;
	margin: 0 0 0.3em 0;
}

hr {
	margin: 0.4em 0 1em 0; 
}

.modal-content p {
	margin: 0.2em 0 0.6em 0;
}

.modal-content br {
	margin-bottom: 0.6em;
}

.modal-content p:last-child {
/*	margin-bottom: 0.4em; */
}

/* .wizard-content a[target='_blank']::before {
	font-family: 'FontAwesome';
	content: "\f08e\00a0";
	margin-left: 0.3em;
} */

.modal-content .shelf-icon {
	font-size: 65%;
	position: relative;
	top: -0.2em;
	margin-right: 0.5em;
}

.modal-content .icon {
	line-height: 0;
}

.modal-message {
	width: 100%;
	margin-bottom: 0.4em;
}

.modal-message > tr > td, .modal-message > tbody > tr > td {
	vertical-align: top;
}

.modal-message > tr > td:first-child, .modal-message > tbody > tr > td:first-child {
	padding-top: 0.5em;
	padding-right: 1em;
	width: 4em;
	text-align: center;
}

.modal-message > tr > td:last-child, .modal-message > tbody > tr > td:last-child {
	padding-right: 0.4em;
}

.modal-text {
	height: auto;
	overflow-y: auto;
	min-height: 6em;
	max-height: 20em;
	margin: 0.4em 0 0.3em 0;
	padding: 6px 8px;
	border: 1px solid var(--global-border-color);
	border-radius: var(--widget-border-radius);
	background-color: rgba(128, 128, 128, 0.07);
}

.modal textarea, .modal text-area {
	margin-bottom: 2px;	/* In the modal dialog, there is some inaccuracy in positioning that requires a minimal margin */
}

.modal .shelf-icon-cell {
	display: none;
}

.modal .toolbar {
	height: auto;
	overflow: visible;
	border: none;
	padding: 0.8em;
	text-align: right;
}

.modal .toolbar .button {
	margin: 0 0.4em;
	min-width: 6em;
}

.modal .toolbar a {
	display: inline-block;
	margin: 0.4em 0.6em 0 0.6em;
}

#modal-controls-extra {
	float: left;
} 

.wizard-content {
	display: flex;
	flex-flow: row nowrap;
	height: 100%;
/*	overflow: hidden; */
}

.wizard-content table td {
	padding-bottom: 0.5em;
}

.wizard-toc {
	margin: 0.5em 0;
	flex-grow: 1;
	flex-shrink: 1;
	width: 100%;
	border: 1px solid var(--global-border-color);
	overflow: hidden;
}

.wizard-toc-ul {
	position: relative;
	list-style: none;
	cursor: default;
	text-align: left;
	background: var(--input-backgnd);
	margin: 1px;
	padding: 0;
	height: 100%;
	width: 100%;
	overflow: auto;
}

.wizard-toc-li {
	margin: 2px 1px;
	padding: 0.3em 0.6em;
	cursor: default;
	user-select: none;
}

.wizard-toc-li:hover:not(.selected) {
	outline: 2px dotted var(--selected-border-color);
}

.wizard-toc-number {
	display: inline-block;
	color: var(--inactive-color);
	margin-right: 0.5em;
}

.wizard-toc-li.selected .wizard-toc-number {
	color: var(--selected-color);
}

.wizard-page {
	position: relative;
	flex-grow: 1;
	flex-shrink: 1;
	padding-right: 0.5em;
}

 #wizard-current {
	position: absolute;
	top: 0;
	right: 0;
	color: var(--inactive-color);
 }

.wizard-demo {
	margin-right: 1em;
	vertical-align: middle;
}

.wizard-demo-right {
	margin-left: 1em;
	vertical-align: middle;
}

#progress {
	left: 50%;
	top: 50%;
 	transform: translate(-50%, -50%);
	z-index: 330;
	min-width: 20em;
}

#progress-content {
	padding: 0.5em 1.2em 0.5em 0em;
}

.upload-progress-label {
	overflow: hidden;
}

.upload-progress-progressbar {
	width: 12em;
	height: 1em;
	margin: 0.5em 0 0 0;
}


/*******************************/
/*** General classes         ***/
/*******************************/

.red-text {
	color: var(--red-color);
}

/*** Color classes for buttons and keys ***/

.default {
	color: black;
	background: var(--widget-backgnd);
}

.default:active, .default.active {
	background: var(--widget-active-backgnd);
}

.red {
	color: white;
	background: linear-gradient(to bottom, var(--red-gradient-top), var(--red-gradient-bottom));
}

.red:active, .red.active {
	background: linear-gradient(to bottom, var(--red-color), var(--red-color));
}

.green {
	color: white;
	background: linear-gradient(to bottom, var(--green-gradient-top), var(--green-gradient-bottom));
}

.green:active, .green.active {
	background: linear-gradient(to bottom, var(--green-color), var(--green-color));
}

.blue {
	color: white;
	background: linear-gradient(to bottom, var(--blue-gradient-top), var(--blue-gradient-bottom));
}

.blue:active, .blue.active {
	background: linear-gradient(to bottom, var(--blue-color), var(--blue-color));
}

.orange {
	color: white;
	background: linear-gradient(to bottom, var(--orange-gradient-top), var(--orange-gradient-bottom));
}

.orange:active, .orange.active {
	background: linear-gradient(to bottom, var(--orange-color), var(--orange-color));
}

.cyan {
	color: white;
	background: linear-gradient(to bottom, var(--cyan-gradient-top), var(--cyan-gradient-bottom));
}

.cyan:active, .cyan.active {
	background: linear-gradient(to bottom, var(--cyan-color), var(--cyan-color));
}

.purple {
	color: white;
	background: linear-gradient(to bottom, var(--purple-gradient-top), var(--purple-gradient-bottom));
}

.purple:active, .purple.active {
	background: linear-gradient(to bottom, var(--purple-color), var(--purple-color));
}

.gray {
	color: white;
	background: linear-gradient(to bottom, var(--gray-gradient-top), var(--gray-gradient-bottom));
}

.gray:active, .gray.active {
	background: linear-gradient(to bottom, var(--gray-color), var(--gray-color));
}

.lightgreen {
	color: white;
	background: linear-gradient(to bottom, var(--lightgreen-gradient-top), var(--lightgreen-gradient-bottom));
}

.lightgreen:active, .lightgreen.active {
	background: linear-gradient(to bottom, var(--lightgreen-color), var(--lightgreen-color));
}

.info {
	color: var(--green-color);
}

.question {
	color: var(--blue-color);
}

.warning {
	color: var(--orange-color);
}

.error {
	color: var(--red-color);
}


/*** General classes ***/

.hidden, .nocontext {
	display: none !important;
}

.disabled, .disabled:active, .disabled.active {
	color: gray;
	background: lightgray; 
	box-shadow: none;
} 

.selected {
	color: var(--selected-color) !important;
	background: var(--selected-backgnd) !important;
}

.scroll {
	overflow: auto;
}

.bold {
	font-weight: bold;
}

.small {
	font-size: 80%;
}

.center {
	text-align: center;
}

.margin-left {
	margin-left: 0.3em;
}

.margin-right {
	margin-right: 0.3em;
}

.floatleft {
	float: left;
}

.floatright {
	float: right;
}


