


html {
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  color:#fff;
  text-shadow: 1px 1px 1px #000;
  /* background: rgb(231, 172, 8); */
  background: #1e0f52;
  background-position: right;

}
input[type="checkbox"] {
  width: 44px;
  height: 22px;
}

.mi_left {
  text-align: left;
  padding-left: 25px;
}

#bg {
  position: fixed;
  z-index: -1;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background-image: linear-gradient(0deg, transparent 0%, transparent 9px, rgba(255, 255, 255, 0.2) 9px, rgba(255, 255, 255, 0.2) 10px, transparent 10px, transparent 19px, rgba(255, 255, 255, 0.1) 19px, rgba(255, 255, 255, 0.1) 20px, transparent 20px, transparent 29px, rgba(255, 255, 255, 0.1) 29px, rgba(255, 255, 255, 0.1) 30px, transparent 30px, transparent 39px, rgba(255, 255, 255, 0.1) 39px, rgba(255, 255, 255, 0.1) 40px, transparent 40px, transparent 49px, rgba(255, 255, 255, 0.1) 49px, rgba(255, 255, 255, 0.1) 50px), linear-gradient(-90deg, transparent 0%, transparent 9px, rgba(255, 255, 255, 0.2) 9px, rgba(255, 255, 255, 0.2) 10px, transparent 10px, transparent 19px, rgba(255, 255, 255, 0.1) 19px, rgba(255, 255, 255, 0.1) 20px, transparent 20px, transparent 29px, rgba(255, 255, 255, 0.1) 29px, rgba(255, 255, 255, 0.1) 30px, transparent 30px, transparent 39px, rgba(255, 255, 255, 0.1) 39px, rgba(255, 255, 255, 0.1) 40px, transparent 40px, transparent 49px, rgba(255, 255, 255, 0.1) 49px, rgba(255, 255, 255, 0.1) 50px);
  background-size: 50px 50px;
  pointer-events: none;
}

.icon {
  position: absolute;
  right: -12px;
  top: -15px;
  width: 32px;
  height: 32px;
}
#icon_flip {
  transform: rotate(180deg);
  float: right;
}

#header_n {
  position: absolute;
  left: 0px;
}
#header_p {
  position: absolute;
  right: 0px;
}
#header {
  position: fixed;
  z-index: 1;
  width: 600px;
  left: 50%;
  top: 0px;
  font-size: 1em;
  margin-left: -300px;
  text-align: center;
  user-select: none;
  text-shadow: 0px 0px 5px #ddd;
  background: rgba(255, 255, 255, .82);
}
#welcomer {
  display: inline-block;
  position: relative;
  /* background: rgba(255, 255, 255, 0.08); */
  padding: 7px;
  margin: 17px;
  text-align: center;
  width: 250px;
}
#helper_tutor {
  /* background: rgb(255 255 255 / 82%); */
  background: rgba(231, 172, 8, .86);
  position: relative;
  padding: 7px;
  margin: 11px;
  text-align: left;
  word-break: break-word;
  color: black;
  text-shadow: none;
}
#helper_tutor li {
  padding-bottom: 6px;
}

#footer {
  position: absolute;
  z-index: -1;
  right: 28px;
  bottom: 0px;
  height: 91px;
  width: 333px;
  user-select: none;
  pointer-events: none;
  background-image: url(/images/perseverance.png);
  background-size: contain;
  background-repeat: no-repeat;
}
#footer img {
  width: 555px;
  float: right;
  padding-bottom: 9px;
  z-index: -1;
  pointer-events: none;
}
#perseverance{
}
#footer_name {
  position: absolute;
  bottom: 2px;
  right: 42px;
  text-align: right;
  font-size: .7em;
  font-family: monospace;
}
button{
  background: none;
	color: #000;
	border: none;
	padding: 0;
	font: inherit;
  text-shadow: 0px 0px 5px #777;
	font-size: 13pt;
  font-weight: 900;;
  margin-left: -5px;
  cursor: pointer;
  -webkit-tap-highlight-color: #0000;
  white-space: nowrap;
  display: inline-block;
}
button:before{
  content:" \300C";
}
button:after{
  content:" \300D";
}
button:hover {
  color: #0f0;
  text-shadow: 0px 0px 5px #fff;
}
button:active {
  color: #ff00d2;
  text-shadow: 0px 0px 5px #fff;
}

/* Active page button styling */
button.active-page {
  color: #ff00d2;
  text-shadow: 0px 0px 5px #fff;
}
button.active-page:hover {
  color: #0f0;
}
button.active-page:active {
  color: #ff00d2;
}
a {
  color: #0f0;
  text-decoration: none;
}
a:visited {
  color: #0f0;
}
a[href^="mailto"] {
  color: #0f0;
}
.info{
  cursor: help;
  border:1px solid white; 
  border-radius: 50%;
  width:17px;
  height: 17px; 
  display: inline-block;
  text-align: center;
  line-height: 15px;
  font-size: 12px;
  font-style: italic;
  margin-left: 5px;
  vertical-align: middle;
}
#b_home {
  cursor: pointer;
  font-weight: bold;
  -webkit-tap-highlight-color: #0000;
}
#b_home:hover {
  color: #0f0;
}
#b_home:active {
  color: #ff00d2;
}

.page {
  position: fixed;
  left: 0px;
  right: 0px;
  top: 53px;
  bottom: 0px;
/*   
  width: 100vw;
  height: 100vh; */
}

.page_content {
  position: absolute;
  top: -5px;
  left: 2px;
  bottom: 1px;
  right: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  /* border: 1px solid #ddd; */
  text-align: center;
  padding: 6px;
  background-color: #0001;
}

#page_welcome {
  display: block;
}
#page_training {
  display: none;
  z-index: 1;
}
#page_repository {
  display: none;
}
#page_control {
  display: none;
}

/* Mode visibility classes */
.mode-hidden {
  display: none !important;
}

.mode-visible {
  display: block !important;
}

/* Interactive elements */
.clickable {
  cursor: pointer;
}
.how_to {
  /* width: 100%; */
  text-align: center;
  user-select: none;
  margin: 0 auto;
  display: table;
}
.how_to td {
  width: 27%;
  /* border: 1px solid #fff; */
}
#how_desc td {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #0000;
}
#how_desc td:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: #31245d;
  transition: background-color 0.1s ease-in-out;
}
#how_desc td:active {
  background-color: #d8fbd3;
  transition: background-color 0.1s ease-in-out;
}
/* Control Header - Connection Controls */
#control_header {
  padding: 15px 0;
  text-align: center;
}

.mode_header {
  margin-bottom: 10px;
}

.mode_label {
  font-size: 18px;
  font-weight: 600;
  color: #f1ec14;
}

.mode_switch {
}

.mode_switch_btn {
  font-size: 11px;
  padding: 4px 10px;
  color: #888;
}

.mode_switch_btn:hover {
  color: #fff;
}

.connect_buttons {
}

.connect_buttons input[type="text"] {
  width: 130px;
  padding: 10px 12px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
}

.connect_btn {
  padding: 2px;
  font-size: 15px;
  font-weight: 500;
}

.devices_placeholder {
  text-align: center;
  color: #eee;
  padding: 30px;
  font-style: italic;
}

#connection_status:empty {
  display: none;
}

#connection_status {
  text-align: center;
  padding: 8px;
  font-size: 13px;
}
#repo_table {
  width: 98%;
}
td {
  vertical-align: top;
  padding: 1px;
}
td li {
  text-align: left;
  padding-bottom: 9px;

}
.img_cell {
  border: 1px solid #fff;
  text-align: center;
  vertical-align: middle;
  background-color: #fff6;
}
.repo_title {
  font-weight: bold;
}
ol {
  padding-left: 21px;
}
select {

  width: 100%;
  height: 31px;
}
#project_select {
}

#project_logo {
  min-width: 140px;
  width: 100%;
}
#project_board {
  width: 100%;
}
#project_board img {
  /* width: inherit; */
  max-width: 140px;
  max-height: 108px;
}

#page_help {
  display: none;
}

#code_out {
  resize: none;
  width: 99%;
  min-height: 60vh;
  padding: 7px; 
  text-wrap: wrap;
  font-size: 1em;
  background-color: rgba(255, 255, 255, 0.7);
}

.page_content button {
  color: white;
}



/* Legacy mote_w styles - kept for backwards compatibility, replaced by device_card */
.mote_w { display: none; }

/* Connection type badge */
.conn_type {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 5px;
  margin-right: 6px;
  border-radius: 3px;
  text-transform: uppercase;
  background: #444;
  color: #fff;
  vertical-align: middle;
}

.conn_type.usb { background: #f7931e; }
.conn_type.ble { background: #2196F3; }
.conn_type.wifi { background: #4CAF50; }
.conn_type.ws { background: #9C27B0; }

#connection_status {
  font-size: 12px;
  padding: 4px 8px;
  min-height: 20px;
}

/* ===== NEW DEVICE CARD SYSTEM ===== */
#devices_container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  text-align: left;
}

.device_card {
  width: 100%;
  border: 1px solid #444;
  border-radius: 6px;
  background: #1a1a1a;
  overflow: hidden;
  transition: all 0.2s ease;
}

.device_card.online {
  border-color: #4CAF50;
}

.device_card.offline {
  border-color: #f44336;
  opacity: 0.7;
}

.device_card_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #252525;
  cursor: pointer;
  user-select: none;
}

.device_card_header_left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}

.device_card_header_center {
  flex: 1;
  text-align: center;
}

.device_card_header_right {
  min-width: 80px;
  text-align: right;
}

.device_card_header:hover {
  background: #2a2a2a;
}

.device_card_toggle {
  font-size: 12px;
  color: #888;
  transition: transform 0.2s;
}

.device_card.expanded .device_card_toggle {
  transform: rotate(90deg);
}

.device_card_name {
  font-weight: 500;
  color: #fff;
}

.device_card_status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #333;
  color: #888;
}

.device_card.online .device_card_status {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.device_board_type {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #444;
  color: #aaa;
  font-family: monospace;
  margin-right: 8px;
}

.device_card_content {
  display: none;
  padding: 12px;
  border-top: 1px solid #333;
}

.device_card.expanded .device_card_content {
  display: block;
}

.device_card_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 800px) {
  .device_card_inner {
    grid-template-columns: 1fr;
  }
}

.device_abilities {
  background: #222;
  border-radius: 4px;
  padding: 10px;
  min-height: 150px;
}

.device_abilities_title {
  font-size: 11px;
  text-transform: uppercase;
  color: #667;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.device_log {
  background: #111;
  border-radius: 4px;
  padding: 10px;
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 11px;
  color: #aaa;
}

.device_log_entry {
  padding: 2px 0;
  border-bottom: 1px solid #222;
}

.device_log_entry:last-child {
  border-bottom: none;
}

.device_log_time {
  color: #667;
  margin-right: 8px;
}

/* Device Card Footer */
.device_card_footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #333;
}

.device_btn {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #444;
  background: #2a2a2a;
  color: #aaa;
  transition: all 0.15s;
}

.device_btn:hover {
  background: #333;
  color: #fff;
}

.device_btn_disconnect {
  border-color: #c62828;
  color: #ef5350;
}

.device_btn_disconnect:hover {
  background: #c62828;
  color: #fff;
}

.device_btn_reconnect {
  border-color: #2e7d32;
  color: #66bb6a;
}

.device_btn_reconnect:hover {
  background: #2e7d32;
  color: #fff;
}

.device_btn_remove {
  border-color: #555;
  color: #888;
}

.device_btn_remove:hover {
  background: #444;
  color: #fff;
}

/* ===== CALIBRATION PANEL ===== */
.calib_panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .calib_panel {
    grid-template-columns: 1fr;
  }
}

.calib_section {
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
}

.calib_section_header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #252525;
  border-bottom: 1px solid #333;
}

.calib_section_icon {
  font-size: 14px;
}

.calib_section_title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #888;
}

.calib_features .calib_section_header {
  border-left: 3px solid #6c5ce7;
}

.calib_section_content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calib_feature {
  background: #222;
  border-radius: 4px;
  padding: 10px;
  border-left: 3px solid #555;
}

.calib_feature_sensor {
  padding: 0; /* Sensors have their own padding */
  background: transparent; /* Sensors have their own background */
}

.calib_feature_servo {
  border-left-color: #f7931e;
}

.calib_feature_led_knob,
.calib_feature_led_toggle {
  border-left-color: #4CAF50;
}

.calib_feature_motor {
  border-left-color: #2196F3;
}

.calib_feature_label {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
  text-transform: capitalize;
  font-weight: 500;
}

.calib_feature_content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calib_loading, .calib_error, .calib_empty {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: #667;
  font-style: italic;
}

.calib_error {
  color: #f88;
}

/* Control groups */
.calib_group {
  width: 100%;
  background: #222;
  border-radius: 4px;
  padding: 10px;
}

.calib_group_title {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

/* ===== ROTARY KNOB ===== */
.calib_knob_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: #222;
  border-radius: 6px;
  min-width: 80px;
}

.calib_knob {
  width: 60px;
  height: 60px;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.calib_knob.active {
  cursor: grabbing;
}

.calib_knob_track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -135deg,
    #333 0deg,
    #444 270deg,
    #333 270deg
  );
  border: 2px solid #444;
}

.calib_knob_dial {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3a3a3a, #252525);
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.1);
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.05s ease-out;
}

.calib_knob.active .calib_knob_dial {
  transition: none;
}

.calib_knob_indicator {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 12px;
  margin-left: -2px;
  background: #f7931e;
  border-radius: 2px;
  box-shadow: 0 0 6px #f7931e;
}

/* LED knobs have green indicator */
.calib_knob[data-control-type="led"] .calib_knob_indicator {
  background: #4CAF50;
  box-shadow: 0 0 6px #4CAF50;
}

.calib_knob_label {
  font-size: 11px;
  color: #aaa;
  text-transform: capitalize;
}

.calib_knob_value {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  font-family: monospace;
}

/* ===== LED TOGGLE ===== */
.calib_led {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #2a2a2a;
  border-radius: 4px;
}

.calib_led_indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #444;
  cursor: pointer;
  transition: all 0.15s;
}

.calib_led_indicator:hover {
  border-color: #667;
}

.calib_led_indicator.on {
  background: #4CAF50;
  border-color: #4CAF50;
  box-shadow: 0 0 12px #4CAF50;
}

.calib_led_label {
  color: #aaa;
  font-size: 12px;
  text-transform: capitalize;
}

/* LED Toggle Switch */
.calib_led_toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #2a2a2a;
  border-radius: 4px;
}

.toggle_switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle_switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle_slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  border: 2px solid #444;
  border-radius: 24px;
  transition: all 0.2s;
}

.toggle_slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #888;
  border-radius: 50%;
  transition: all 0.2s;
}

.toggle_switch input:checked + .toggle_slider {
  background-color: #3a6a3a;
  border-color: #4CAF50;
}

.toggle_switch input:checked + .toggle_slider:before {
  transform: translateX(20px);
  background-color: #4CAF50;
  box-shadow: 0 0 8px #4CAF50;
}

.toggle_switch:hover .toggle_slider {
  border-color: #667;
}

/* LED Knobs Row */
.calib_knob_row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

/* LED Brightness Slider (legacy) */
.calib_led_slider {
  width: 100%;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 4px;
}

.calib_led_value {
  font-family: monospace;
  font-size: 11px;
  color: #888;
  min-width: 30px;
  text-align: right;
}

/* ===== MOTOR SLIDER ===== */
.calib_slider_wrap {
  width: 100%;
  padding: 10px;
  background: #222;
  border-radius: 4px;
}

.calib_slider_label {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}

.calib_slider {
  width: 100%;
  margin: 8px 0;
}

.calib_slider_value {
  text-align: center;
  font-family: monospace;
  color: #fff;
}

/* ===== SENSOR DISPLAY ===== */
.calib_sensor {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #222;
  border-radius: 4px;
  width: 100%;
}

.sensor_icon {
  font-size: 16px;
}

.sensor_name {
  font-size: 12px;
  color: #888;
  text-transform: capitalize;
}

.sensor_value {
  font-family: monospace;
  font-size: 14px;
  font-weight: 500;
  color: #4CAF50;
}

.sensor_value.on {
  color: #4CAF50;
}

.sensor_value.off {
  color: #667;
}

.sensor_bar {
  grid-column: 1 / -1;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.sensor_bar_fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 2px;
  transition: width 0.1s ease-out;
}

/* Keep old styles for backwards compat, hide them */
#available_mobs {
  display: none;
}

#project_functions {
  display: none;
}


#control_monitor{
  resize: none;
  width: 99%;
  min-height: 23vh;
  padding: 7px; 
  text-wrap: wrap;
  font-size: 1em;
  background-color: rgba(255, 255, 255, 0.7);
}


#controls {
  position: absolute;
  z-index: 2;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

#text_entry {
  background: rgba(0,0,0,.85);
  z-index: 8;
  color: #fff;
  font-family: cursive;
  font-size: .8em;
  text-align: center;
  padding: 5px;
  position: absolute;
  resize: none;
  bottom: 223px;
  right: 40px;
  overflow: hidden;
  outline: none;
  width: 100px;
  height: 37px;
}
#text_entry:hover {
  /* background: rgba(255,255,255,.5); */
}
#text_entry:focus {
  right: 1px;
  bottom: 206px;
  height: 65px;
  width: 88%;
}





#text_in_w {
  position: absolute;
  left: 0px;
  right: 0px;
  width: 70%;
}
#text_in_w textarea {
  background-color: rgba(0,0,0,.555);
  color: #fff;
  font-family: cursive;
  font-size: 2em;
  padding: 10px;
  position: absolute;
  resize: none;
width: 100%;

}

#text_in_w textarea:hover {
  background-color: rgba(0,0,0,.9);
}

#text_in_w textarea:focus {
  background-color: rgba(0,0,0,.9);
}

#text_in_w button {
  position: absolute;
  right: 0px;
  bottom: 0px;
  z-index: 8;
}
#text_submit {
  position: absolute;
  bottom: 229px;
  right: 1px;
  z-index: 8;
}

#vitals {
  font-family: monospace;
  z-index: 1;
}

#vitals_title {
  position: fixed;
  top: -14px;
  font-size: 1.2em;
  font-weight: 600;
  right: 50px;
  text-align: center;
  pointer-events: none;
}
#vital_1 {
  position: absolute;
  left: 0px;
  top: 19px;
  width: 100%;
  height: 9px;
  background-color: #ffffff69;
}

#mot_out {
  height: 53%;
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  margin: 22px;
  z-index: 1;
  pointer-events: auto;
  font-size: .9em;
  font-family: monospace;
  color: black;
  text-shadow: none;
  display: block;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: nowrap;
}
#form_factor {
  background-color: #00000084;
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  z-index: -1;
  border: 14px solid #00000074;
  border-radius: 6px;
  border-bottom-right-radius: 43px; 
}
#form_factor_screen {
  background: radial-gradient(ellipse 151% 84% at center, rgb(216 251 211) 55%, rgb(198 246 201) 58%, rgb(198 246 201 / 84%) 62%, rgb(198 246 201 / 47%) 65%, rgb(198 246 201 / 21%) 68%);
  height: 51%;
  position: absolute;
  top: 14px;
  left: 36px;
  right: 36px;
  z-index: 0;
  padding-top: 22px;
  border: 2px solid #ffffff14;
  border-style: groove;
  border-radius: 5px;
  box-shadow: 0px 0px 5px aquamarine;
}
#directional_pad {
  position: absolute;
  bottom: 98px;
  left: 3px;
  pointer-events: none;
}
#ignition {
  width: 33px;
  height: 33px;
  position: absolute;
  right: -2px;
  top: 2px;
  z-index: 2;
  padding: 4px;
  stroke: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-filter: drop-shadow(1px 1px 1px #000);
  filter: drop-shadow(0px 0px 1px #000);
  -webkit-tap-highlight-color: #0000;
}
#ignition:hover {
  stroke: #ff0;
}

.hud_l {
  display: inline;
  float: left;
  padding-left: 12px;
  font-family: monospace;
  font-size: 1.2em;
  cursor: default;
}

.hud_r {
  display: inline;
  float: right;
  padding-right: 48px;
  font-family: monospace;
  font-size: 1.2em;
  font-weight: 900;
  cursor: default;
}

.in_b {

}

#space_b {
  position: fixed;
  left: 0px;
  padding: 4px;
}

#symbol_set {
  padding: 9px;
  text-align: left;
  width: 168px;
  max-height: 240px;
  position: absolute;
  pointer-events: auto;
  left: 0px;
  bottom: 0px;
}
.sym {
  display: inline-block;
  width: 33px; 
  height: 17px;
  text-align: center;
  margin-top: 9px;
  border: 2px ridge #0086c3;
  cursor: pointer;
}
.sym:hover {
  border-color: red;
}

.mm_in {
  display: inline-block;
  width: 36px;
  pointer-events: all;
  height: 36px;
  padding: 5px;
  border: 2px solid #ffffff99;
  border-style: outset;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  border-radius: 7px;
}
.mm_in:hover {
  border-style: inset;
}
.mm_in:active {
  background: rgba(255,255,255,.3);
  border-style: inset;
}

#slider_w {
  /* touch-action: none; */
  position: absolute;
  pointer-events: all;
  right: 13px;
  width: 120px;
  bottom: 24px;
  /* display: inline-block; */
  /* transform: rotate(-90deg); */
}
#slider_w:hover {
  /* border: 2px solid red; */
}
#slider_w:active {
  /* background: rgba(255,255,255,.3); */
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  width: 100%;
  border: 2px solid #ffffff4a;
  background-color: #ffffff00;
  border-radius: 3px;
  border-style: inset;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 40px;
  background-color: #0000;
  border: 1px solid #777;
  border-radius: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: #0000;
  border-style: outset;
}
input[type=range]::-webkit-slider-thumb:hover {
  background-color: #0005;
}
input[type=range]::-webkit-slider-thumb:active {
  background-color: #33ff0055;
}



#ternary_in {
  pointer-events: all;
  font-size: 1.5em;
  position: absolute;
  bottom: 127px;
  right: -6px;
  transform: rotate(-45deg);
  font-family: monospace;
  font-variant-caps: petite-caps;
}

#ternary_in span {
  cursor: pointer;
  border: 4px solid red;
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border-style: double;
  background: #5c1034;
  -webkit-tap-highlight-color: #0000;
}
#ternary_in span:hover {
  border-style: dotted;
}
#ternary_in span:active {
  border-color: white !important;
  background: #333;
  border-style: dotted;
}

#binary_in {
  pointer-events: all;
  font-size: 1.5em;
  position: absolute;
  bottom: 91px;
  right: -8px;
  transform: rotate(-45deg);
  font-family: monospace;
  font-variant-caps: petite-caps;
}

#binary_in span {
  display: inline-block;
  cursor: pointer;
  border: 4px solid red;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border-style: double;
  background: #5c1034;
  -webkit-tap-highlight-color: #0000;
}
#binary_in span:hover {
  border-style: dotted;
}
#binary_in span:active {
  border-color: white !important;
  background: #333;
  border-style: dotted;
}


#privacy_poli {
  font-size: .8em;
  text-align: right;
  height: 100px;
  margin-left: 17%;
  width: 67%;
  color: black;
  text-shadow: none;
  background: lightsteelblue;
  overflow: auto;
}





