/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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;
}

:root {
  --color-bad: #ff3000;
  --color-good: green;
  --color-highlighted-bg: #2f2f2f;
  --color-highlighted-border: #000000;
  --color-banner-bg: #000013;
  --color-fg: lightgray;

  --color-lightdark: #303030;

  --paragraph-margin-bottom: 0.5em;
}

* {
  box-sizing: border-box;
}

h1 {
  font-size: 200%;
}

h2 {
  font-size: 185%;
}

h3 {
  font-size: 160%;
}

h4 {
  font-size: 145%;
}

h5 {
  font-size: 130%;
}

h6 {
  font-size: 115%;
}

.game_view {
  display: grid;
}

.game_view table td {
  padding-top: 0.05em;
  padding-left: 0.05em;
  padding-right: 0.2em;
}

.game_view table tr.active td {
  background-color: var(--color-highlighted-bg);
  font-weight: bold;
}

table td input {
  font-size: smaller;
}

.game_content {
  grid-column: 1;
  grid-row: 1;
}

.game_hud_topright {
  font-size: 1em;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.game_hud_left {
  font-size: 1em;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: end;
}

.game_hud_right {
  font-size: 1.5em;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: end;
}

input,
textarea,
select {
  background-color: rgb(0, 0, 0, 60%);
  color: white;
  font-size: 1em;
  border: dashed 1px;
  margin: 1px;
}

.game_hud_content input {
  margin: 0;
  padding: 0;
  width: 100%;
}

.game_hud_content select {
  margin: 0;
  padding: 0;
}

.game_hud_maximize_minimize {
  color: rgb(255, 255, 255, 50%);
  width: 2em;
  height: 2em;
  margin: 0.3em;
}

.game_hud_content thead tr td {
  font-weight: bold;
}

.game_hud_content td {
  vertical-align: top;
}

.upgrades_table {
  font-size: smaller;
  text-wrap: nowrap;
}

.game_hud_content {
  background-color: rgb(0, 0, 0, 30%);
  color: rgb(255, 255, 255, 70%);
  padding: 0.2em;
  width: min-content;
}

.noten {
  font-size: smaller;
}

.widget {
  color: black;
  min-width: 6em;
  min-height: 6em;
  border: 1pt solid black;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 3em 1.5em auto;
  overflow: auto;
  scrollbar-width: thin;
  line-height: 1.5em;
}

.widget > .title {
  background-color: gray;
  text-align: center;
  line-height: 1em;
}

.widget > .actions {
  background-color: gray;
  border-top: 1pt solid;
  border-bottom: 1pt solid;

  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  grid-column-gap: 0.2em;
  grid-gap: 0.5em;

  font-size: small;
  align-items: center;
}

.widget > .actions > .splitter {
  border-left: 1pt solid black;
  height: 100%;
}

.widget > .actions > * {
  text-align: center;
}

.widget > .content {
  background-color: lightgray;
  padding: 0.2em;
}

.button {
  border: 1pt solid black;
  display: inline-block;
  padding: 0.5em;
  margin: 0.1em;
  cursor: pointer;
  user-select: none;
}

.button.unpressed {
  background-color: lightgrey;
}

.button.pressed {
  background-color: grey;
}

td .button {
  font-size: smaller;
  padding-bottom: 0.1em;
  padding-top: 0.1em;
}

.noten td {
  border: 0px solid transparent;
  background-clip: padding-box;
}

.noten tr > td + td {
  border-left-width: 0.2em;
}

.noten tr > td + td {
  border-left-width: 0.2em;
}

.widget table {
  margin-bottom: var(--paragraph-margin-bottom);
}

.widget table td {
  margin-bottom: var(--paragraph-margin-bottom);
  line-height: 1em;
}

.widget thead {
  font-weight: bolder;
}

.widget table,
.widget td {
  border: 1pt solid black;
  border-collapse: collapse;
  padding-left: 0.2em;
  padding-right: 0.2em;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

.documentation {
  background-color: white;
  color: black;
  h1 {
    font-size: 1.4em;
  }
  h2 {
    font-size: 1.2em;
  }
  h3 {
    font-size: 1em;
  }
  table {
    border-collapse: collapse;
    td,
    th {
      border: 1pt solid;
    }
  }
}

.content:has(> .whatsupp) {
  padding: 0;
}

.whatsupp {
  display: grid;
  grid-template-columns: minmax(10em, min-content) auto;
  grid-template-rows: auto min-content;

  width: calc(100%);
  height: calc(100%);
}

.whatsupp > .message_input > .choice_timeout_s {
  background-color: yellow;
  cursor: pointer;
  justify-self: center;

  border: 1pt solid black;
  border-radius: 3pt;
  padding: 0.2em;
  height: min-content;
  max-width: 90%;
}

.whatsupp > .contacts {
  border-right: solid 1pt black;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.whatsupp > .chat {
  display: grid;
  grid-auto-rows: min-content;
  grid-column: 2;
  grid-row: 1;
}

.message_input {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: auto;
  grid-auto-flow: row;
  grid-gap: 0.5em;
  padding: 0.2em;
  width: 100%;
  border-top: solid 1pt black;
}

.message_input > .answer {
  background-color: lightgreen;
  cursor: pointer;
  justify-self: center;
}

.chat > .message_sent,
.chat > .message_received,
.message_input > .answer {
  border: 1pt solid black;
  border-radius: 3pt;
  padding: 0.2em;
  height: min-content;
  max-width: 90%;
  margin: 0.2em;
}

.chat > .message_received {
  display: grid;
  grid-template-columns: auto min-content;
  grid-auto-flow: column;
  grid-gap: 0.2em;
}

.chat > .message_received > .edited {
  justify-self: end;
  align-self: end;
  font-size: x-small;
}

.chat > .message_sent {
  justify-self: end;
  background-color: lightgreen;
}

.chat > .message_received {
  justify-self: start;
  background-color: white;
}

.chat > .message_received.typing_indicator {
  align-items: center;
  display: flex;
  height: 17px;
}

.chat > .message_received.typing_indicator > .dot {
  animation: mercuryTypingAnimation 1.5s infinite ease-in-out;
  border-radius: 2px;
  display: inline-block;
  height: 3px;
  margin-left: 0.6px;
  margin-right: 0.6px;
  margin-bottom: -0.3em;
  width: 3px;
}

.chat > .message_received.typing_indicator > .dot {
  background-color: black;
}

.chat > .mission_info {
  justify-self: end;
  border-left: 1pt solid var(--color-lightdark);
  border-bottom: 1pt solid var(--color-lightdark);
  padding: 0.2em;
  color: var(--color-lightdark);
  height: min-content;
  width: 4em;
  text-align: center;
  max-width: 90%;
}

.whatsupp > .chat > hr {
  border: 0;
  border-bottom: 1px solid black;
  margin-top: 1em;
  margin-bottom: 0;
}

.whatsupp > .chat > hr:not(:last-child) {
  height: 1pt;
  width: 100%;
}

.whatsupp > .chat > hr:last-child {
  display: none;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
  }
  28% {
    transform: translateY(-0.25em);
  }
  44% {
    transform: translateY(0px);
  }
}

.chat > .message_received.typing_indicator > .dot:nth-child(1) {
  animation-delay: 200ms;
}

.chat > .message_received.typing_indicator > .dot:nth-child(2) {
  animation-delay: 300ms;
}

.chat > .message_received.typing_indicator > .dot:nth-child(3) {
  animation-delay: 400ms;
}

.contact {
  border-bottom: solid 1pt black;
  padding: 0.2em;
  cursor: pointer;
}

.contact.selected {
  background-color: gray;
}

.contact > .contact_name {
  font-weight: bold;
}

.contact > .contact_last_msg {
  line-height: 1em;
  height: 2.1em;
  font-size: smaller;
  overflow: hidden;
}

.page {
  background-image: url(/assets/banner5-ea98d551.webp);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: auto 50rem;
  background-color: var(--color-banner-bg);
  background-position-y: -40px;
  color: white;
  min-height: 100vh;
}

html:has(.page) {
  background-color: var(--color-banner-bg);
}

.page .logo {
  width: 100%;
  height: 16rem;
  font-size: 100pt;
  color: white;
  text-align: center;
}

.page .logo .text {
  padding-top: 6rem;
  text-wrap: nowrap;
}

.page a {
  color: var(--color-fg);
}

.page > .content {
  padding: 0.5em;
}

.page .content textarea {
  margin-bottom: var(--paragraph-margin-bottom);
}

.navigation {
  background-color: rgb(255, 255, 255, 30%);
  display: grid;
  grid-template-columns: 14em auto 14em;
  grid-template-rows: 1.5em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  grid-gap: 1em;
}

.navigation .nav ul {
  display: flex;
  gap: 0.4em;
  justify-content: center;
  flex-wrap: wrap;
}

.navigation .nav ul li {
  padding-left: 0.5em;
  padding-right: 0.5em;

  padding-top: 0.2em;
  padding-bottom: 0.3em;

  background-color: rgb(255, 255, 255, 30%);
}

.navigation .nav ul a li.active {
  background-color: rgb(255, 255, 255, 80%);
}

.navigation .nav ul a {
  color: black;
  text-decoration: none;
}

.navigation .nav {
  grid-row: 1;
  grid-column: 2;
}

.navigation .right {
  grid-row: 1;
  grid-column: 3;
  display: grid;
  grid-template-columns: min-content min-content;
  justify-content: end;
  grid-gap: 0.1em;
}

.navigation .right .connection_state {
  grid-row: 1;
  grid-column: 5;

  padding-top: 0.2em;
  padding-bottom: 0.3em;
}

.nowrap {
  text-wrap: nowrap;
}

pre {
  font: revert;
}

.button_in_line {
  font-size: 0.6em;
  margin: 0.25em;
  height: calc(100% - 0.5em);
}

.stage {
  display: grid;
  grid-template-columns: 2em auto;
  padding-bottom: 3em;
}

.stage .title {
  grid-row: 1;
  grid-column-start: 1;
  grid-column-end: 3;
  font-size: 2em;
}

.stage .content {
  grid-row: 2;
  grid-column-start: 1;
  grid-column-end: 3;
}

.test_title {
  font-size: 1.6em;
  margin-top: 1em;
  margin-bottom: 0.2em;
}

.stage .content .icon {
  margin-right: 0.2em;
}

.stage .content .ts {
  font-size: 0.8em;
}

.stage .stdout {
  background-color: var(--color-highlighted-bg);
  border-color: var(--color-highlighted-border);
  border-width: 1pt;
  border-style: dashed;
  padding: 0.2em;
  line-height: 1.2em;
}

.stage pre.stdout {
  margin-bottom: 0.3em;
}

.stage span.stdout {
  display: inline-block;
  line-height: 1em;
  padding-top: 0em;
  padding-bottom: 0em;
  text-wrap: nowrap;
}

.stage textarea {
  background-color: var(--color-highlighted-bg);
  border-color: var(--color-highlighted-border);
  border-style: dashed;
}

.stage pre {
  word-wrap: anywhere;
  text-wrap: auto;
}

p {
  margin-top: 0em;
  margin-bottom: 0.3em;
  line-height: 1.2em;
}

.stage table {
  border-collapse: collapse;
  border: solid 1pt;
  margin-bottom: 0.2em;
}

.stage table tr td {
  border: solid 1pt;
}

.stage table tr td {
  padding: 0.2em;
}

.page .content .login {
  display: grid;
  grid-template-columns: auto min-content auto;
}

.page .content .login form {
  grid-column: 2;
}
