html, body {
  height: 100%;
}

body {
  margin: 0px;
  padding: 0px;
  font-weight: normal;
  font-size: 14px;
  font-family: "MS Sans Serif", "Tahoma", "Arial", sans-serif;
  color: #c5c5c5;
  line-height: 1.3;
  background-color: #121212; /* Dark retro background */
}

h1 {
  display: block;
  margin: 0px;
  padding: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  background-color: #000080; /* Classic Title bar blue */
  color: #ffffff;
  border: 1px solid #444444;
}

div {
  display: block;
  box-sizing: border-box;
}

table {
  margin-bottom: 10px;
  table-layout: auto;
  border-collapse: collapse;
  background-color: #181818;
  border: 2px inset #444444;
}

table, td {
  padding: 4px 8px;
  border: 1px solid #444444;
  color: #c5c5c5;
}

textarea {
  display: block;
  width: 100%;
  margin: 0px 0px 10px 0px;
  padding: 6px;
  overflow: scroll;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.4;
  color: #33ff33; /* Retro terminal green */
  background-color: #0a0a0a; /* Pure black textarea */
  border: 3px inset #444444; /* Dark inset border */
  outline: none;
  resize: none;
  box-sizing: border-box;
}

textarea:hover, textarea:focus {
  border: 3px inset #555555;
}

input {
  display: inline-block;
  height: auto;
  vertical-align: middle;
  font-family: inherit;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.2;
  outline: none;
  box-sizing: border-box;
}

input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input[type='radio'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  margin: 0px 4px 0px 0px;
  padding: 0px;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  background-color: #0a0a0a;
  border-radius: 50%;
  border-top: 2px solid #111111;
  border-left: 2px solid #111111;
  border-right: 1px solid #555555;
  border-bottom: 1px solid #555555;
  box-shadow: inset 1px 1px 0px #000, 1px 1px 0px #444;
  position: relative;
  outline: none;
  cursor: pointer;
}

input[type='radio']:checked::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 6px;
  background-color: #33ff33; /* Neon green dot */
  border-radius: 50%;
  box-shadow: 0 0 3px #33ff33; /* Subtle glow effect */
}


input[type='checkbox'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  margin: 0px 4px 0px 0px;
  padding: 0px;
  vertical-align: middle;
  width: 13px;
  height: 13px;
  background-color: #0a0a0a;
  border-top: 2px solid #111111;
  border-left: 2px solid #111111;
  border-right: 1px solid #555555;
  border-bottom: 1px solid #555555;
  box-shadow: inset 1px 1px 0px #000, 1px 1px 0px #444;
  position: relative;
  outline: none;
  cursor: pointer;
}

input[type='checkbox']:checked::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 7px;
  border: solid #33ff33; /* Neon green tick mark */
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}



input[type='text'] {
  display: block;
  width: 100%;
  margin: 0px 0px 10px 0px;
  padding: 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #ffff99; /* Retro terminal yellow */
  background-color: #0a0a0a;
  border: 3px inset #444444;
}

input[type='text']:hover {
  border: 3px inset #555555;
}

select {
  display: block;
  width: 100%;
  margin: 0px 0px 10px 0px;
  padding: 6px;
  font-family: "MS Sans Serif", "Tahoma", "Arial", sans-serif;
  font-size: 14px;
  color: #c5c5c5;
  background-color: #0a0a0a;
  border: 3px inset #444444;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

select:hover {
  border: 3px inset #555555;
}


input[type='button'] {
  -webkit-appearance: none;
  font-family: "MS Sans Serif", "Tahoma", "Arial", sans-serif;
  box-shadow: inset 1px 1px 0px #555555, inset -1px -1px 0px #1a1a1a;
}

input[type='button'].inline_blue {
  margin: 0px 10px 10px 0px;
  overflow: hidden;
  padding: 6px 12px;
  color: #ffffff;
  background-color: #2b2b2b;
  border: 3px outset #555555;
  cursor: pointer;
  font-weight: bold;
}

input[type='button'].inline_blue:hover {
  border: 3px outset #666666;
}

input[type='button'].inline_blue:active {
  border: 3px inset #555555;
  box-shadow: none;
}

input[type='button'].block_blue {
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 10px 0px 10px 0px;
  padding: 8px 12px;
  color: #ffffff;
  background-color: #1a1a54; /* Dark Windows blue button */
  border: 3px outset #444499;
  cursor: pointer;
  white-space: normal;
  font-weight: bold;
}

input[type='button'].block_blue:hover {
  border: 3px outset #5555aa;
}

input[type='button'].block_blue:active {
  border: 3px inset #444499;
  background-color: #101036;
}

input[type='file'] {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  padding: 0px;
  margin: 0px;
  opacity: 0;
  cursor: pointer;
}

input[type='file']::-webkit-file-upload-button {
  cursor: pointer;
}

a {
  color: #4da6ff; /* High-contrast blue link for dark mode */
  text-decoration: underline;
}

a:visited {
  color: #a855f7;
}

a.block_blue {
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 10px 0px 10px 0px;
  padding: 8px 12px;
  color: #ffffff;
  background-color: #004d00; /* Dark green button */
  border: 3px outset #338833;
  cursor: pointer;
  white-space: normal;
  text-decoration: none;
  height: auto;
  font-size: 14px;
  vertical-align: middle;
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
  box-sizing: border-box;
  user-select: none;
}

a.block_blue:hover {
  border: 3px outset #44aa44;
}

a.block_blue:active {
  border: 3px inset #338833;
}

a.block_blue_active {
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 10px 0px 10px 0px;
  padding: 8px 12px;
  color: #ffffff;
  background-color: #660000; /* Dark red button */
  border: 3px outset #993333;
  cursor: pointer;
  white-space: normal;
  text-decoration: none;
  height: auto;
  font-size: 14px;
  vertical-align: middle;
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
  box-sizing: border-box;
  user-select: none;
}

a.block_blue_active:hover {
  border: 3px outset #bb4444;
}

a.block_blue_active:active {
  border: 3px inset #993333;
}

img.logo {
  display: inline-block;
  vertical-align: middle;
  margin-top: -4px;
}

#mobile {
  display: none;
  position: fixed;
  bottom: 0px;
  left: 0%;
  width: 100%;
  padding: 5px 10px 10px 10px;
  background-color: #1e1e1e;
  cursor: pointer;
  user-select: none;
  border-top: 3px outset #444444;
}

#mobile.display {
  display: block;
  z-index: 1;
}

div.mobile_display_btn_open {
  width: 48%;
  padding: 10px 0px;
  text-align: center;
  color: #ffffff;
  background-color: #004d00;
  border: 3px outset #338833;
}

div.mobile_display_btn_open:hover {
  border: 3px outset #44aa44;
}

div.mobile_display_btn_open:active {
  border: 3px inset #338833;
}

div.mobile_display_btn_close {
  width: 48%;
  padding: 10px 0px;
  text-align: center;
  color: #ffffff;
  background-color: #660000;
  border: 3px outset #993333;
}

div.mobile_display_btn_close:hover {
  border: 3px outset #bb4444;
}

div.mobile_display_btn_close:active {
  border: 3px inset #993333;
}

#left {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 15%;
  height: 100%;
  margin: 0px;
  padding: 0px 10px 0px 10px;
  overflow: scroll;
  border-right: 3px outset #444444;
  background-color: #1e1e1e; /* Darker panel background */
}

#left.mobile_closed {
  display: none;
}

#left.mobile_open {
  display: block;
  z-index: 1;
  position: absolute;
  top: 0%;
  left: 0%;
  width: 200px;
  height: 100%;
  margin: 0px;
  padding: 0px 10px 0px 10px;
  overflow: scroll;
  border-right: 3px outset #444444;
  background-color: #1e1e1e;
}

#right {
  position: absolute;
  top: 0%;
  left: 85%;
  width: 15%;
  height: 100%;
  margin: 0px;
  padding: 0px 10px 0px 10px;
  overflow: scroll;
  border-left: 3px outset #444444;
  background-color: #1e1e1e;
}

#right.mobile_closed {
  display: none;
}

#right.mobile_open {
  display: block;
  z-index: 1;
  position: absolute;
  top: 0%;
  left: auto;
  right: 0%;
  width: 200px;
  height: 100%;
  margin: 0px;
  padding: 0px 10px 0px 10px;
  overflow: scroll;
  border-left: 3px outset #444444;
  background-color: #1e1e1e;
}

#textbox {
  position: absolute;
  top: 0%;
  left: 15%;
  width: 70%;
  height: 40%;
  margin: 0px;
  padding: 8px 10px 8px 10px;
  overflow: scroll;
  border: 0px;
  border-bottom: 3px inset #444444;
}

#textbox.mobile {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 40%;
  margin: 0px;
  padding: 8px 10px 8px 10px;
  overflow: scroll;
  border: 0px;
  border-bottom: 3px inset #444444;
}

#bottom {
  position: absolute;
  top: 40%;
  left: 15%;
  width: 70%;
  height: 60%;
  margin: 0px;
  padding: 10px;
  overflow: scroll;
  border-top: 3px outset #444444;
  background-color: #121212;
}

#bottom.mobile {
  position: absolute;
  top: 40%;
  left: 0%;
  width: 100%;
  height: 60%;
  margin: 0px;
  padding: 10px 10px 10px 10px;
  overflow: scroll;
  border-top: 3px outset #444444;
  background-color: #121212;
}

#logo {
  display: inline-block;
  vertical-align: middle;
  margin: 0px 5px 0px 0px;
  padding: 0px;
  border: 0px;
}

div.show {
  display: block;
}

div.hide {
  display: none;
}

div.hr-10 {
  width: 100%;
  height: 0px;
  margin: 10px 0px 10px 0px;
  padding-top: 4px;
  border-bottom: 2px inset #444444;
}

div.hr-t10 {
  width: 100%;
  height: 0px;
  margin: 10px 0px 0px 0px;
  padding-top: 4px;
  border-bottom: 2px inset #444444;
}

div.hr-b10 {
  width: 100%;
  height: 0px;
  margin: 0px 0px 10px 0px;
  padding-top: 4px;
  border-bottom: 2px inset #444444;
}

div.tm10 {
  margin-top: 10px;
  font-weight: bold;
  color: #a0a0a0;
}

div.bm10 {
  margin-bottom: 10px;
}

div.indexlink {
  display: block;
  padding: 5px 0px 5px 0px;
  color: #a0a0a0;
}

span.nowrap {
  white-space: nowrap;
}

span.tbb {
  display: inline-block;
  margin-bottom: 10px;
  vertical-align: middle;
}

span.bbg {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1e3a8a;
  background-color: #93c5fd;
  border: 1px solid #444444;
}

span.gbg {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  color: #064e3b;
  background-color: #a7f3d0;
  border: 1px solid #444444;
}

span.rbg {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  color: #7f1d1d;
  background-color: #fca5a5;
  border: 1px solid #444444;
}

span.ybg {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  color: #78350f;
  background-color: #fde047;
  border: 1px solid #444444;
}

span.jlink {
  color: #4da6ff;
  text-decoration: underline;
  cursor: pointer;
}

textarea.wrap {
  white-space: pre-wrap;
}

textarea.nowrap {
  white-space: pre;
}

textarea.inline {
  display: inline-block;
  width: auto;
  white-space: pre;
  margin: 0px 10px 10px 0px;
}

textarea.sample {
  white-space: nowrap;
  margin: 0px 0px 0px 0px;
  padding: 10px;
  border: 3px inset #444444;
  background-color: var(--textarea-bg);
  width: 99%;
}

#bottomtable {
  width: 100%;
  height: 60%;
  border: 0px;
  background-color: #121212;
}

#bottomtabletd1 {
  width: 25%;
  height: 100%;
  padding: 0px 10px 0px 0px;
  vertical-align: top;
  border: 0px;
  background-color: #121212;
}

#bottomtabletd2 {
  height: 100%;
  padding: 0px;
  border: 0px;
  background-color: #121212;
}

table.il50 {
  width: 100%;
  border: 0px;
  background-color: #121212;
}

td.il50l {
  width: 50%;
  padding: 0px 7px 0px 0px;
  border: 0px;
  background-color: #121212;
}

td.il50r {
  width: 50%;
  padding: 0px 0px 0px 7px;
  border: 0px;
  background-color: #121212;
}

table.il33 {
  width: 100%;
  border: 0px;
  background-color: #2b2b2b;
}

td.il33l {
  width: 33.3%;
  padding: 0px 7px 0px 0px;
  border: 0px;
  background-color: #121212;
}

td.il33c {
  width: 33.3%;
  padding: 0px 0px 0px 0px;
  border: 0px;
  background-color: #121212;
}

td.il33r {
  width: 33.3%;
  padding: 0px 0px 0px 7px;
  border: 0px;
  background-color: #121212;
}

td.cntpad {
  padding: 7px 15px 7px 15px;
  background-color: #1e1e1e;
  border: 1px solid #444444;
}

div.li_title {
  background-color: #000080; /* Windows 95 Title Bar */
  color: #ffffff;
  font-weight: bold;
  padding: 5px;
  border: 1px solid #444444;
}

::-webkit-input-placeholder {
  color: #666666;
  font-style: italic;
}
:-moz-placeholder {
  color: #666666;
  font-style: italic;
  opacity: 1;
  white-space: pre-line;
}
::-moz-placeholder {
  color: #666666;
  font-style: italic;
  opacity: 1;
  white-space: pre-line;
}
:-ms-input-placeholder {
  color: #666666;
  font-style: italic;
  white-space: pre-line;
}
:placeholder-shown {
  color: #666666;
  font-style: italic;
  white-space: pre-line;
}