:root {
	/*// colors //*/

	/*--main: */
	--accent: #b79a26;
	--background: #EEEEEE;
	--backgroundInactive: #C0C0C0;
	--matteDark: #404040;
	--matteLight: #e0e0e0;
	--shadow: #40404080;
	--line: #404040;
	/*--button: */
	--text: #202020;
	--textInactive: #606060;


	/*// fonts //*/

	--display: Helvetica light, Microsoft Yahei light, STXihei, sans-serif;
	--monospace: Consolas, Courier, monospace;
	/*--strong: */
	--input: Arial, Microsoft Jhenghei, STXihei, sans-serif;

	/*// numbers //*/

	--borderRadius: 4px;
	--matteBlur: 1.5px;

	/*// application specific //*/

	--blue: #269ab7;
	--green: #26b79a;
	--red: #d52049;
	--yellow: #b79a26;
	--purple: #8c64c4;
	--orange: #b76426;
	--pink: #fba3bc;
	--grey: #808080;

}

/*//////////////////////////////DESIGN ELEMENTS//////////////////////////////*/

body, input, textarea, select, option {
	font-family: var(--display);
	font-size: 12pt;
	color: var(--text);
}

body {
	display: grid;
	grid-template-rows: min-content 1fr;
	grid-template-columns: min-content 1fr;
	margin: 0;
	height: 100vh;
	width: 100vw;
	grid-gap: 8px;
}

input, textarea, select, option {
	font-family: var(--input);
	font-size: 10pt;
}
input::-webkit-calendar-picker-indicator {
	max-width: 8px;
}

.dev {
	background-color: #dda;
}
.sandbox {
	background-color: #dff;
}

.link {
	color: blue;
	text-decoration: underline;
	cursor: pointer;
	user-select: none;
}

.button {
	display: inline-block;
	position: relative;
	text-align: center;
	vertical-align: top;
	cursor: pointer;
	margin: 2px;
	color: #000;
	font-size: 12pt;
	text-decoration: none;
	user-select: none;
	background-color: #ccc;
}
.button span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	text-align: inherit;
}
.error {
	background-color: var(--red);
}
.tiny {
	width: 12px;
	height: 12px;
	line-height: 12px;
	font-weight: bold;
}
.small {
	width: 40px;
	height: 20px;
	line-height: 20px;
	font-weight: bold;
}
.square {
	width: 40px;
	height: 40px;
	line-height: 40px;
	font-weight: bold;
}
.long {
	width: 108px;
	height: 20px;
	line-height: 20px;
	font-weight: bold;
	white-space: pre;
}
.big {
	width: 108px;
	height: 40px;
//	line-height: 40px;
	font-weight: bold;
}
.full {
	width: 108px;
	height: 142px;
}
.navigation {
	width: 40px;
	height: 40px;
	line-height: 40px;
	font-weight: bold;
	color: white;
	font-size: 24pt;
	text-align: center;
	border-radius: 50%;
}

.jumbo {
	width: 160px;
	height: 40px;
	margin: 4px 12px;
	color: #FFF;
	border-top: solid 1px #FFF;
}
.giant {
	width: 160px;
	height: 160px;
	color: #FFF;
	border-radius: 80px;
	display: flex;
	align-items: center;
} .giant span {
	text-align: center;
}
.deactivated {
	opacity: 0.4;
	pointer-events: none;
}
.animated {
	transition: .4s;
}

select{
	background-color: inherit;
	border: none;
}

/*
.spinner:after {
  width: 60px;
  height: 60px;
  background: #eee;
  content: " ";
  display: block;
  position: relative;
  top: 20px;
  left: 20px;
  border-radius: 50%;
}
.spinner {
	display: block;
	margin: auto;
	vertical-align: top;
  width: 100px;
  height: 100px;
  background-image: linear-gradient(#b79a26, #eee, #eee);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
.baby {
	width: 20px;
	height: 20px;
}
.baby:after {
	width: 10px;
	height: 10px;
	top: 5px;
	left: 5px;
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
*/

.fab {
	position: fixed;
	bottom: 12px;
	right: 24px;
	width: 50px;
	height: 50px;
	border-radius: 25px;
	color: #FFF;
	text-align: center;
	line-height: 50px;
	font-size: 24pt;
	font-weight: bold;
	z-index: 20;
	transition: 0.4s;
	overflow: hidden;
	cursor: pointer;
}
.fab .formContainer {
	font-size: 12pt;
	line-height: initial;
	font-weight: initial;
	margin: 26px 8px 8px 8px;
	color: initial;
}
.close {
	border-radius: 50%;
	border: solid 2px #FFF;
	color: #FFF;
	margin: 4px 12px;
	clear: both;
}
.note {
	position: fixed;
	border-radius: 10px;
	border: solid white 1px;
	padding: 2px;
	color: white;
	z-index: 20;
	animation: note 2s ease-out forwards;
}
@keyframes note {
	0% {

	}
	20% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(0, -20px);
	}
}

/*//////////////////////////////TREE//////////////////////////////*/
.tree {
	/* width: 640px;
	height: 480px;
	background-color: #e8e8e8; */
	padding: 2px;
}
.tree .toolbar {
	/* width: 632px;
	height: 36px; */
	margin: 4px;
	background-color: #d8d8d8;
}
.tree .control {
	max-width: 36px;
	max-height: 36px;
	margin: 0 4px;
}
.tree .control.inactive {
	opacity: 0.5;
	filter: grayscale(1);
}
.tree .grid {
	/* width: 633px;
	height: 432px; */
	min-width: 80px;
	min-height: 100px;
	overflow-y: auto;
	margin: 4px;
	background-color: #d8d8d8;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	border-radius: 8px;
}
.tree .icon {
	width: 80px;
	min-height: 100px;
	margin: 4px;
	background-color: #ffffff;
	border-radius: 8px;
}
.tree .icon.selected {
	background-color: #a8a8a8;
}
.tree .sprite {
	max-width: 80px;
	max-height: 80px;
}
.tree .nameField {
	display:block;
	width: 80px;
	min-height: 16px;
	text-align: center;
	cursor: arrow;
	user-select: none;
}
.tree .nameInput {
		width: 80px;
		min-height: 16px;
}


/*//////////////////////////////INPUTS//////////////////////////////*/
input.checkbox {
	width: 18px;
	height: 18px;
}

/*//////////////////////////////PAGE ELEMENTS//////////////////////////////*/

#banner, #leftColumn, #content {
	position: relative;
	z-index: 0;
}

#content.shifted {
	margin-left:180px;
	max-width:calc(100% - 180px);
}

#banner {
	/*top: 0;
	left: 0;
	width: 100%;
	height: 72px;*/
	grid-column: span 2;
	border-bottom: solid 1px;
	transition: all .4s, height .15s;
	overflow-y: hidden;
}
#leftColumn {
	/*top: 80px;
	left: 0;
	width: 144px;
	padding-top: 12px;
	padding-left: 20px;*/
	padding: 0 8px;
	transition: .4s;
}
.leftNavAccess.closed {
	backdrop-filter: none;
	height: 50px;
	width: 50px;
	font-size: 35px;
	line-height: 50px;
}
#navigation {
	display: grid;
	grid-template-rows: min-content min-content 1fr;
}
#messageAccessButton.notify, #messagePanel .notify {
	animation-name: notify;
	animation-duration: 2s;
	animation-iteration-count: infinite;
}
@keyframes notify {
	0%, 100% {background-color: var(--accent);}
	50% {background-color: var(--matteLight);}
}
#messageAccessButton.closed {
	left: 54px;
}
#messagePanel, #messageAccessButton {
	/*--menuWidth: min(480px, calc(100vw - 24px));*/
	--menuWidth: 480px;
}
body .leftNavAccess, body .leftNav {
	--menuWidth: 160px;
	background-color: var(--matteLight);
	border-radius: inherit;
}
#messagePanel .tabControl {
	height: calc(100% - 84px);
}
#messagePanel .peopleLabel {
	max-width: 35px;
	max-height: 35px;
}
#messagePanel .chat {
	height: calc(100% - 10px);
	width: calc(100% - 10px);
}

#chatSearch {
	display: grid;
	grid-template-rows: min-content 1fr;
	grid-template-columns: min-content 1fr;
	height: 100%;
}
#chatSearchInput {
	display: grid;
	grid-template-columns: 1fr min-content;
}
#chatList {
	overflow-y: auto;
}
#chatSearch .card {
	display: inline-block;
	position: relative;
	width: calc(50% - 8px);
	height: 40px;
	margin: 4px;
	transition: .4s;
	user-select: none;
	cursor: pointer;
}
#chatSearch .info {
	position: absolute;
	left: 20px;
	top: 0;
	width: calc(100% - 18px);
	height: 40px;
	border-top: solid 1px;
	background-color: var(--matteLight);
}
#chatSearch .name1, #chatSearch .name2 {
	font-size: 12pt;
	padding-left: 28px;
	width: calc(100% - 28px);
	height: 20px;
	overflow: hidden;
}
#chatSearch .thumbnail {
	position: absolute;
	width: 100%;
	height: 100%;
	max-width: 36px;
	max-height: 36px;
	border-radius: 20px;
	background-color: #FFF;
	transition: .4s;
	border: solid 2px #00000000;
	background-size: cover;
}
#onlineNow:not(:empty){
	width: 200px;
	border-right: 2px solid var(--line);
	overflow-y: auto;

}

#content {
	/*top: 80px;
	left: 160px;
	width: calc(100% - 160px);
	height: calc(100% - 92px);
	padding-top: 12px;*/
	overflow-y: auto;
	transition: .4s;
}

#challenge {
	background-color: var(--background);
}
#challenge .signupPrompt {
	margin-top: 12px;
	border-top: solid 1px var(--line);
	font-size: 12px;
	font-style: italic;
	grid-column: span 2;
}

#title {
	text-align: center;
	clear: both;
}
.title {
	font-size: 16pt;
	font-weight: bold;
}

#debugConsolePane {
	position: fixed;
	pointer-events: none;
	width: 400;
	height: 250;
	right: 4;
	bottom: 4;
	background-color: #e7e7e780;
	overflow: auto;
}

.multiModuleLoader {
	/*
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	*/
	margin: auto;
	width: 240;
	background-color: var(--matteLight);

}
.multiModuleLoader .loadingMessage {
	font-weight: bold;
}
.multiModuleLoader .moduleLabel {
	border-bottom: solid 1px var(--line);
}
.multiModuleLoader .moduleLabel.pending::before {
	content: "\2713";
	visibility: hidden;
}
.multiModuleLoader .moduleLabel.complete::before {
	content: "\2713";
}

/*//////////////////////////////LAYOUT MODIFIERS//////////////////////////////*/

.floatRight {
	float: right;
	clear: both;
}

.columnContainer {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: start;
}
.formContainer {
	display: grid;
}
.formContainer input, .formContainer select, .formContainer section {
	grid-column: 2;
	padding: 4px;
	width: fit-content;
}
.formContainer label {
	max-width: 108px;
	text-align: left;
	margin: 4px 0;
}
.formContainer .wide {
	grid-column: span 2;
}

.fab.hidden {
	display:none;
}
.fab.invisible {
	opacity:0;
}
.fab.visible {
	opacity: 1;
	animationName:fadeIn;
	animation-duration: .4s;
}
@keyframes fadeIn{
	0% {opacity:0;}
	100% {opacity: 1;}
}

/*//////////////////////////////COLORS//////////////////////////////*/

.white {
	background-color: #FFFFFF;
}

.blue {
	background-color: var(--blue);
} .blueShadow {box-shadow: 0 0 10px 3px var(--blue);
}
.green {
	background-color: var(--green);
} .greenShadow {box-shadow: 0 0 10px 3px var(--green);
}
.red {
	background-color: var(--red);
} .redShadow {box-shadow: 0 0 10px 3px var(--red);
}
.yellow {
	background-color: var(--yellow);
} .yellowShadow {box-shadow: 0 0 10px 3px var(--yellow);
}
.purple {
	background-color: var(--purple);
} .purpleShadow {box-shadow: 0 0 10px 3px var(--purple);
}
.orange {
	background-color: var(--orange);
} .orangeShadow {box-shadow: 0 0 10px 3px var(--orange);
}
.pink {
	background-color: var(--pink);
} .pinkShadow {box-shadow: 0 0 10px 3px var(--pink);
}
.grey {
	background-color: var(--grey);
} .greyShadow {box-shadow: 0 0 10px 3px var(--grey);
}

/*//////////////////////////////BREAKPOINT//////////////////////////////*/

@media only screen and (max-width: 1200px) {

}

/*//////////////////////////////BREAKPOINT//////////////////////////////*/

@media only screen and (max-width: 768px) {
	body {
		grid-template-rows: min-content min-content 1fr;
		grid-template-columns: auto;
	}
	#banner {
		grid-column: auto;
	}
	#content {
		margin: 0 8px;
	}
	#content.shifted {
		margin-left:auto;
		max-width:100%
	}
	/*
	#banner {
		position: relative;
		height: 60px;
		left: auto;
		top: auto;
	}
	#leftColumn {
		position: relative;
		left: auto;
		top: 0;
		width: calc(100% - 20px);
		clear: both;
	}
	#content {
		position: relative;
		left: auto;
		top: auto;
		bottom: 0;
		width: calc(100% - 10px);
		height: calc(100% - 135px);
		clear: both;
		overflow-x: hidden;
	}
	*/
	.title {
		font-size: 12pt;
	}
	#title {
		font-size: 8pt;
	}
	.fab {
		position: fixed;
	}
	.leftNavAccess.closed {
		width: 30px;
		font-size: 25px;
	}
	#messageAccessButton.closed {
		left: 34px;
	}
}

/*//////////////////////////////BREAKPOINT//////////////////////////////*/

@media only screen and (max-width: 504px) {
	#messagePanel, #messageAccessButton {
		--menuWidth: calc(100vw - 24px);
	}
}

/*//////////////////////////////BREAKPOINT//////////////////////////////*/

.printOnly {
	display: none;
	visibility: hidden;
}

@media print {
	#leftNavAccess, .leftNavAccess {
		visibility: hidden;
	}

	.printOnly {
		display: inherit;
		visibility: inherit;
	}

	#content {
		width: 100vw;
		height: 100vh;
		position: absolute;
		top: 0;
		left: 0;
		overflow: visible;
	}
}
