/************************************
 *  MAIN.CSS CASCADING STYLE SHEET  *
 ************************************/

html, body {
	padding: 0;
	margin: 0;
	overflow: hidden;
	outline: none;
	font-size: 16px;
}

/* Generates checkard board background. */
body::before {
	content: "";
	position: fixed;
	height: 100vh;
	width: 100vw;
	top: 0px;
	left: 0px;
	z-index: -2;
	background-image: 	linear-gradient(45deg, #555 25%, transparent 25%),
						linear-gradient(-45deg, #555 25%, transparent 25%),
						linear-gradient(45deg, transparent 75%, #555 75%),
						linear-gradient(-45deg, transparent 75%, #555 75%);
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
	background-size: 20px 20px;
	background-color: #333;
}

/* Generates a radial gradient over the checkard board. */
body::after {
	content: "";
	position: fixed;
	height: 100vh;
	width: 100vw;
	top: 0px;
	left: 0px;
	z-index: -1;
	background: radial-gradient(transparent, rgb(45 75 115 / 50%));
}

/********************************
 *	GENERAL LAYOUT STYLING		*
 ********************************/

* {
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

::selection {
	background: rgba(255, 0, 0, 0.5);
	color: #FFF;
}

.right { text-align: right; }
.center { text-align: center; }

a {
	opacity: 0.75;
	outline: none;
	color: #FFF;
	text-decoration: underline;
	transition: all 0.5s;
}

a:hover { 
	opacity: 1;
}

h1, h2, h3 {
	color: #FFF;
	text-align: center;
	font-size: 50px;
	text-shadow: 0 0 25px #333, 0 0 25px #333, 0 0 25px #333;
	font-family: sans-serif;
	font-variant: small-caps;
	letter-spacing: 5px;
}

h2 { font-size: 42px; }
h3 { font-size: 34px; }

p.error, p.success, p.notice {
		border-radius: 15px;
		padding: 10px;
		margin: 10px 0;
		color: #FFF;
}

p.error { background: linear-gradient(0, rgba(80, 0, 0, 1), rgba(255, 0, 0, 1)); }
p.success { background: linear-gradient(0, rgb(15 60 15), rgb(0 210 115)); }
p.notice { background: linear-gradient(0, rgb(110 120 45), rgb(255 255 170)); color: #000; }

p.important {
	font-weight: bold;
	font-size: 18px;
	color: red;
	text-shadow: 1px 1px 3px #000;
}

img.round {
	border-radius: 15px;
}

table.master {
	height: 100vh;
	width: 100vw;
	min-width: 500px;
	border-collapse: collapse;
	table-layout: fixed;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

table.master > tbody > tr > td { padding: 0; }
table.master > tbody > tr:last-child > td {	height: 100%; }

table.master div.body {
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
}

/************************************
 *		CONTENT BODY STYLING		*
 ************************************/

div.wrapper {
	width: 80vw;
	padding: 10px;
	margin: 35px auto 0 auto;
	box-shadow: 0px 0px 10px 2px #fff, inset -3px -3px 10px #2d5a7f;
	box-sizing: border-box;
	border-radius: 10px;
	background: rgb(65 80 100 / 50%);
}

div.wrapper.full {
	padding: 10px 0px;
	border-radius: 0px;
	width: 100vw;
}

div.wrapper.full div.section {
	border-radius: 0px;
}

div.wrapper div.section + div.section {
	margin-top: 10px;
}

div.wrapper.wide { width: 95vw; }

div.wrapper.small {
	width: 50vw;
	max-width: 500px;
}

div.wrapper div.section {
	border-radius: 20px;
	box-sizing: border-box;
	overflow-x: auto;
	background: rgba(51, 51, 51, 0.75);
	border: solid 2px #333;
	padding: 20px;
	color: #FFF;
}

div.wrapper * {	
	user-select: text;
	-webkit-user-select: text;
}

/****************************
 *		FORM STYLING		*
 ****************************/

/*
//Disabling form styling due to conflicts with Material UI.
form {
	width: 100%;
	max-width: 350px;
	margin: 0 auto;
}

form label {
	display: block;
	padding: 5px 0;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form textarea {
	width: 90%;
	display: block;
	padding: 5px 5%;
	margin: 5px 0;
	border-radius: 5px;
	border: none;
	outline: none;
	transition: all 0.2s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus,
form textarea:focus,
form input[type="text"]:active,
form input[type="password"]:active,
form input[type="email"]:active,
form textarea:active {
	background-color: rgb(255, 255, 200);
}

input[type="button"],
form input[type="submit"] {
	background: linear-gradient(0deg, rgb(0, 60, 155), rgb(0, 160, 255));
	box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.75);
	text-shadow: 1px 1px #000;
	transition: all 0.2s ease;
	opacity: 0.8;
	color: #FFF;
	padding: 5px 25px;
	outline: none;
	margin: 0 auto;
	border: none;
	border-radius: 15px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input[type="button"]:hover,
form input[type="submit"]:hover {
	opacity: 1;
	box-shadow: 3px 3px 5px 2px rgba(0, 0, 0, 0.5);
	text-shadow: 2px 2px #333;
}

input[type="button"]:disabled,
form input[type="submit"]:disabled {
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	filter: grayscale(100%);
}
*/

form div.controls {
	width: 75%;
	margin: 0 auto;
	display: flex;
	padding: 10px 0;
}

form div.error, form div.success, form div.notice {
	width: 90%;
	border-radius: 15px;
	padding: 5px 5%;
	margin: 10px 0;
	box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.75);
}

form div.error { background: linear-gradient(0deg, rgb(70, 0, 0), rgb(255, 0, 0)); }
form div.success { background: linear-gradient(0deg, rgb(0, 70, 30), rgb(0, 255, 30)); }
form div.notice { background: linear-gradient(0deg, rgb(0, 20, 70), rgb(0, 150, 255)); }

/********************************
 *		SCROLLBAR STYLING		*
 ********************************/
 
table.master div.body::-webkit-scrollbar {
	width: 12px;
}

table.master div.body::-webkit-scrollbar-track {
	box-shadow: inset 0 0 10px #000;
}

div.wrapper div.section::-webkit-scrollbar {
	height: 12px;
}

div.wrapper div.section::-webkit-scrollbar-track {
	box-shadow: inset 0 0 10px #000;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

table.master div.body::-webkit-scrollbar-thumb,
div.wrapper div.section::-webkit-scrollbar-thumb {
	background-color: #AAA;
	border-radius: 10px;
	box-shadow: inset 0 0 10px #000;
}

/********************************
 *			NAV BAR				*
 ********************************/
 
table.header {
	width: 100%;
	padding: 0;
	margin-bottom: 15px;
	background: #FFF;
	border-collapse: collapse;
}

table.master table.header { margin-bottom: 0px; }

table.header td { padding: 0px; }

table.header table.head {
	width: 100%;
	padding: 5px;
	margin: 0;
	border-collapse: collapse;
	max-height: 65px;
	display: block;
}

table.header table.head td.max {
	width: 100%;
}

table.header table.head div.dropdown {
	display: inline;
}

table.header table.head div.dropdown .section,
table.header table.head .option {
	transition: all 0.5s;
	display: inline-flex;
	/* justify-content: center; */
	/* align-items: center; */
	padding: 15px 0px;
	min-width: 100px;
	border-radius: 10px;
	position: relative;
}

table.header table.head div.dropdown .section.active {
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
}

table.header table.head div.dropdown .section:hover,
table.header table.head div.dropdown .section.active,
table.header table.head .option:hover {
	background: #333;
}

table.header table.head div.dropdown span.title {
	font-size: 18px;
	margin: 0 auto;
}

table.header table.head div.dropdown .section:hover span.title,
table.header table.head div.dropdown div.section.active span.title,
table.header table.head .option:hover {
	color: #FFF;
	opacity: 1;
}

table.header table.head div.dropdown div.section span.title::after {
	content: "\25bc";
	font-size: 12px;
	position: relative;
	left: 5px;
	top: -1px;
}

table.header table.head div.dropdown div.section.active span.title::after {
	content: "\25b2";
}

table.header table.head div.dropdown div.section.icon span.title img,
table.header table.head .option.icon img {
	height: 45px;
	width: 45px;
	margin: 0 auto;
}

table.header table.head div.dropdown div.section.icon.small span.title img,
table.header table.head .option.icon.small img {
	height: 35px;
	width: 35px;
	margin-top: 5px;
}

table.header table.head div.dropdown div.section.icon.smaller span.title img,
table.header table.head .option.icon.smaller img {
	height: 25px;
	width: 25px;
	margin-top: 10px;
}

table.header table.head div.dropdown div.section.icon.frame span.title img,
table.header table.head .option.icon.frame img {
	border: solid #333 2px;
	box-sizing: border-box;
}

table.header table.head div.dropdown div.section.icon.round span.title img,
table.header table.head .option.icon.round img {
	border-radius: 8px;
}

table.header table.head div.dropdown div.section.icon span.title::after {
	top: -12px;
}

table.header table.head div.dropdown div.section a {
	outline: none;
	text-decoration: none;
	color: #000;
	font-weight: bold;
	font-size: 18px;
}

table.header table.head div.dropdown div.section div.items {
	display: flex;
	height: 0px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	/* top: 55px; */
	top: 45px;
	left: 0px;
	/* width: 92vw; */
	width: 300px;
	z-index: 3;
	background: linear-gradient(0, #111, #333);
	flex-direction: column;
	transition: all 0.5s;
	/* margin: 0 1vw; */
	/* padding: 0px 3vw; */
	padding: 0px 0 0px 30px;
	border-radius: 10px;
}

/* table.header table.head div.dropdown.right { position: relative; } */

table.header table.head div.dropdown div.section.active div.items {
	/* padding: 25px 3vw; */
	padding: 20px 0 20px 30px;
	opacity: 1;
	height: auto;
}

table.header table.head div.dropdown div.section.icon,
table.header table.head .option.icon {
	padding: 3px 0px;
	min-width: 75px;
	text-decoration: none;
}

table.header table.head .option.icon.back::after {
	content: "\276E";
	font-size: 35px;
	margin: 0 auto;
	position: relative;
	color: #000;
	top: -3px;
}

table.header table.head .option.icon.back:hover::after {
	color: #FFF;
}

table.header table.head div.dropdown div.section.icon span.username {
	position: absolute;
	top: 35%;
	right: 105%;
	animation: fadeInAnimation ease 1.5s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

table.header table.head .option.icon { min-width: 75px; }

table.header table.head div.dropdown div.section.icon div.items {
	max-width: fit-content;
	min-width: 100px;
}

table.header table.head div.dropdown.right div.section div.items/*,
table.header table.head div.dropdown.left div.section div.items*/ {
	left: auto;
	right: 0px;
	top: 42px;
	text-align: left;
	margin: 0px;
}

table.header table.head div.dropdown.left div.section div.items {
	left: 0px;
	right: auto;
}

table.header table.head div.dropdown div.section div.items a {
	color: #FFF;
	margin-bottom: 10px;
}

table.header table.head div.dropdown div.section div.items a:last-child {
	margin-bottom: 0px;
}

table.header table.head div.dropdown div.section div.items a.title {
	border-bottom: solid #FFF 1px;
}

table.header table.head div.dropdown div.section div.items a:not(.title)::before {
	content: "\25b2";
	font-size: 12px;
	display: inline-block;
	transform: rotate(90deg);
	position: relative;
	top: -3px;
	left: -8px;
}

table.header div.navbar {
	height: 50px;
	width: 100vw;
	background: linear-gradient(0, #111, #333);
	padding: 15px 50px;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
}

table.header div.navbar a, table.header div.navbar span {
	outline: none;
	text-decoration: none;
	color: #DDD;
	font-weight: bold;
	font-size: 18px;
	height: 20px;
	min-width: 100px;
	padding: 0px 20px;
	opacity: 1;
}

table.header div.navbar a:hover.item {
	color: #000;
	text-shadow: 0 0 5px #FFF, 1px 0 5px #FFF, 0 1px 5px #FFF, 1px 1px 5px #FFF;
}

table.header div.navbar span:first-child {
	left: 0;
	text-align: right;
}

table.header div.navbar span.scroll:last-child {
	right: 0;
	text-align: left;
}

table.header div.navbar div.container {
	height: 60px;
	overflow-x: scroll;
	overflow-y: hidden;
	white-space: nowrap;
}

table.header div.navbar span.scroll {
	min-width: auto;
	position: absolute;
	top: 0;
	opacity: 0.5;
	padding: 15px 15px;
	margin: 0px;
	background: #000;
	z-index: 1;
}

table.header div.navbar span.scroll:hover { opacity: 1; }

table.header div.navbar span.scroll::after {
	content: "\25b2";
	display: inline-block;
	transform: rotate(90deg);
}

table.header div.navbar span.scroll:first-child::after {
	content: "\25bc";
}

/********************************
 *			FOOTER				*
 ********************************/
 
 div.footer {
	 width: 100vw;
	 padding: 25px 0px 150px 0px;
	 text-align: center;
	 font-size: 12px;
	 color: #FFF;
	 font-weight: bold;
 }
 
/********************************
 *		MOBILE / EXCEPTIONS		*
 ********************************/
 
 @media all and (min-width: 0px) and (max-width: 650px) {
	table.header table.head div.dropdown .section {
		position: inherit !important;
	}
	 
	table.header table.head div.dropdown div.section div.items {
		width: 100vw !important;
		max-width: 100vw !important;
		padding: 0px 0px 0px 30px;
		border-radius: 0px !important;
		left: 0px !important;
		top: 55px !important;
	}
	
	div.wrapper {
		padding: 10px 0px !important;
		border-radius: 0px !important;
		width: 100vw !important;
		margin: 35px 0 0 0 !important;
		max-width: 100% !important;
	}
	
	div.wrapper div.section { border-radius: 0px !important; }
 }
  
 /***********************
  *		ANIMATIONS		*
  ***********************/
  
 @keyframes fadeInAnimation {
    0% { opacity: 0; }
	100% { opacity: 1; }
}

/********************************
  *		Material UI Helpers		*
  *******************************/

/*.MuiFormControl-root {
	margin-bottom: 10px !important;
}

.MuiFilledInput-root {
	background: #FFF !important;
}*/