/* https://vladocar.github.io/Basic.css  */

* {box-sizing: border-box}

:root { 
	--sans: 1em/1.3 "Arial Narrow", "Liberation sans", "PT sans", system-ui,
		-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu,
		Cantarell, Droid Sans, Helvetica Neue, Fira Sans, sans-serif; 
	--mono: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier,
		'Courier New', monospace; 
	--myblue: #0432ff;
	--myyellow: #eeee66;
	--greyalmostwhite: #f4f4f4;
	--badbg: #ffe8e8; 
	--goodbg: #d8ffd8; 
	--m1: 4px; 
	--rc: 8px;
}

html {
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

/* General settings */
body {
	margin: 0;
	font: var(--sans);
	font-weight: 400;
	font-stretch: 50%;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	background-color: white;
	color: black;
}

main, footer {
	margin: 0 auto;
	width: 98%;
	text-align: left;
	padding: 0 10px;
}

main {min-height: 500px;}

img, iframe {
	border: none;
	max-width: 100%;
}

a {
	color: var(--myblue);
	text-decoration: none;
}

a:hover {
	color: var(--myblue);
	text-decoration: underline;
}

pre {
	font: 1em;
	/* background: var(--myyellow); */
	overflow: auto;
	margin: 0;
}

code {font: 1em/1.6 var(--mono);}

blockquote {
	border-left: 5px solid var(--myyellow);
	padding: 1em 1.5em;
	margin: 0;
}

hr {
	border: 0;
	margin: 0;
	border-bottom: 1px solid black;
}

ul, ol {margin: 0.2em 0;}

/* Headlines */
h1, h2, h3, h4, h5, h6 {
	margin: 0.3em 0;
	font-weight: normal;
}

h1 {
	font-size: 2.5em;
	line-height: 1.05;
}

h2 {
	font-size: 1.375em;
	line-height: 1.05;
}

h3 {
	font-size: 1.25em;
	line-height: 1.03;
}

h4 {
	font-size: 1.125em;
	line-height: 1.03;
}

h5 {
	font-size: 1.0625em;
	font-weight: bold;
}

h6 {
	font-size: 0.9375em;
	font-weight: bold;
}

small, [small] {font-size: 0.83em;}

tiny, [tiny] {font-size: 0.70em;}

/* Table */
table {
	border-collapse: collapse;
	border-spacing: 0;
	margin: 1em 0;
}

tbody tr:nth-child(even) td{background: var(--greyalmostwhite);}

th, td, caption {
	vertical-align: middle;
	border: 1px solid black;
	padding: 0.4em;
}

th {text-align: center;}

td[required]:after {
	content: " *";
	color: red;
}

thead, tfoot, caption {
	background: var(--myyellow);
	color: var(--myblue);
	font-weight: bold;
}

caption {padding: 0.5em;}

/* Rounded Corners*/
pre, code, input, select, textarea, button, img {border-radius: var(--rc);}

/* Forms */
input, select, textarea {
	font-size: 0.95em;
	color: black;
	background: var(--myyellow);
	border: 0;
	padding: 0.3em;
	margin: 0.2em;
}

textarea{
	font: var(--sans);
    height: 6em;
    width: 50em;
}

input:disabled {
	color: #555555;
	background-color: #ffdddd;
}

button, input[type=submit], input[type=reset], input[type="button"] {
	-webkit-appearance: none;
	font-size: 1em;
	display: inline-block;
	color: white;
	background: var(--myblue);
	border: 0;
	margin: 4px;
	padding: 0.6em;
	cursor: pointer;
	text-align: center;
	font-weight: bold;
}

button:hover, button:focus, input:hover, textarea:hover, select:hover {opacity: 0.75;}

input[type=text] {size: 20;}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {-moz-appearance: textfield;}

/* Infinite Grid */
section {
	display: flex;
	flex-flow: row wrap;
}

fieldset {
	width: max-content;
	height: 8em;
	overflow: scroll;
	display: inline-block;
	padding: 0 0.5em 0 0.5em;
	vertical-align: middle;
}

[style*="--c:"], section>section, aside, article {
	flex: var(--c, 1);
	margin: var(--m1);
}

/* Cards */
article {
	background: var(--myyellow);
	border-radius: var(--rc);
	padding: 1em;
	box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3);
}

[style*="--c:"]:first-child, section>section:first-child, article:first-child {margin-left: 0;}

section>section {
	color: black;
	background-color: var(--myyellow);
	border-radius: var(--rc);
	padding: 8px;
	margin: 5px 4px 5px 4px;
	text-align: left;
}

div[infobox]{
	float: right;
	border: 1px solid black;
	margin: 15px;
	padding: 10px;
}

span[filterbox] {
	border: 1px solid;
	padding: 0.4em;
	vertical-align: top;
	height: 8em;
	overflow: scroll;
	display: inline-block;
}

[bold] {font-weight: bold;}
[full] {width:100%;}
[center] {text-align: center;}
[right] {text-align: right;}

table[center]{
	margin-left:auto;
	margin-right:auto;
}

table[fixed] {table-layout: fixed;}

th[nowrap], td[nowrap] {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

span[right], div[right] {float: right;}

button[icon] {
	border-radius: 0;
	margin: 2px;
	padding: 0;
	background-color: transparent;
}

button[stud] {
	border-radius: var(--m1);
	font-size: 0.9em;
	margin: 3px;
	padding: 0.3em;
	font-weight: 600;
}

button[maroon] {background: maroon;}
button[orange] {background: darkorange;}
button[purple] {background: purple;}
button[green]  {background: green;}
button[olive]  {background: olive;}

[grey] {color: #79886D;}
[red]  {color: red;}
[blue] {color: var(--myblue);}
