html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html, section#main {
  width: 100%;
  height: 100%;
}

/* define vars */
:root {
  --main-ff: "Cascadia Mono";
}

body {
  width: 100%;
  height: 100%;
  font-family: var(--main-ff), monospace;
}

input, select {
  font-family: var(--main-ff), monospace;
  padding: 5px;
  outline: none;
  border: 0;
  border: 2px solid rgb(200,200,200);
}

select {
  padding-top: 3px !important;
}

section#terminal {
  display: flex;
  flex-flow: column;
  width: 100%;
  height: 100%;
}

section#terminalTopbar {
  display: flex;
  justify-content: space-between;
  flex: 0 1 auto;
  width: 100%;
  background-color: rgb(240,240,240);
  border-bottom: 2px solid rgb(200,200,200);
}

section#terminalTopbar > * {
  padding: 6px;
}

section#terminalConnect {
  display: flex;
}

section#terminalConnect > * {
  margin-right: 4px;
  font-size: 12pt;
}

div#terminalBranding {
  cursor: pointer;
}

p#terminalLogo {
  padding-top: 5px;
  vertical-align: center;
  font-size: 1.5em;
  font-weight: bolder;
}

div#terminalPort {

}

.terminalButton {
  background-color: rgb(240,240,240);
  border: 2px solid rgb(200,200,200);
  padding: 4px;
  padding-bottom: 2px;
  cursor: pointer;
}

.terminalButton.active {
  border: 2px solid rgb(100,100,100);
}

.terminalButton:hover {
  background-color: rgb(255,255,255);
}

.terminalButton:active {
  background-color: rgb(200,200,200);
}

.terminalButton.disabled {
  background-color: rgb(220,220,220);
  border: 2px solid rgb(200,200,200);
  cursor: default;
}

section#terminalInputBar {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

section#terminalInputBar > * {
  margin: 6px;
}

input#terminalInput {
  width: calc(100% - 70px - 24px)
}

div#terminalEnter {
  width: 70px;
  text-align: center;
}

section#terminalFeaturesBar {
  width: 100%;
  display: flex;
  overflow-x: auto;
}

section#terminalFeaturesBar > * {
  margin: 6px;
  margin-top: 0;
  text-wrap: nowrap;
}

section#terminalData {
  width: 100%;
  overflow-y: auto;
  height: 0px;
  flex: 1 1 auto;
}

section#terminalBottomBar {
  flex: 0 1 auto;
  background-color: rgb(240,240,240);
  border-top: 2px solid rgb(200,200,200);
}

.terminalMessage {
  white-space: pre;
}

.terminalMessage.echo {
  color: rgb(120,120,120);
}

.terminalMessage.type_connectivity {
  padding: 6px;
  color: rgb(180,0,0);
  font-weight: bold;
}

.terminalMessage.type_webterm {
  padding: 6px;
  color: rgb(0, 72, 180);
  font-weight: bold;
}

.terminalMessage.type_command {
  padding: 6px;
  color: rgb(17, 146, 0);
  font-weight: bold;
}

.terminalMessage:hover {
  background-color: rgb(230,230,230);
}