* {
  font-family: "Open Sans", Helvetica, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#ui {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  max-height: 100vh;
  overflow: hidden;
}

.button {
  display: inline-block;
  margin-top: 10px;
  width: 70px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 12px;
  color: white;
  cursor: pointer;
  pointer-events: auto;
}

#clear-button {
  margin-left: 20px;
  background: rgb(220, 0, 40);
}

#clear-button:hover {
  background: rgb(210, 0, 30);
}

#clear-button:active {
  background: rgb(200, 0, 20);
}

#save-button {
  background: rgb(0, 170, 50);
  margin-left: 30px;
  margin-top: 4px;
}

#save-button:hover {
  background: rgb(0, 160, 40);
}

#save-button:active {
  background: rgb(0, 150, 30);
}

#lsystem-info {
  margin: 10px 0 10px 30px;
  width: 164px;
  box-sizing: border-box;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 12px;
  color: white;
  pointer-events: auto;
  line-height: 1.5;
  word-break: break-all;
}

.info-row {
  display: flex;
  gap: 4px;
  cursor: help;
}

.info-row[title]:hover {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.info-key {
  color: rgba(255, 255, 255, 0.5);
  min-width: 52px;
  flex-shrink: 0;
}

.info-val {
  color: white;
}

#color-picker-space {
  height: 200px;
  pointer-events: auto;
  cursor: help;
}

#color-label {
  margin-top: 10px;
}

.control-label {
  margin-left: 30px;
  margin-top: 9px;
  color: white;
  font-size: 12px;
  cursor: help;
  border-radius: 3px;
  pointer-events: auto;
}

.control-label[title]:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: underline dotted rgba(255, 255, 255, 0.5);
}

.button[title] {
  cursor: help;
}

.button[title]:hover {
  text-decoration: underline dotted rgba(255, 255, 255, 0.4);
}

.slider {
  margin-top: 3px;
  margin-left: 30px;
  position: relative;
  width: 150px;
  height: 15px;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  cursor: ew-resize;
  pointer-events: auto;
}

.input-row {
  margin-top: 5px;
  margin-left: 30px;
}

.inline-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

#scale-input {
  width: 50px;
  height: 18px;
  font-size: 11px;
  text-align: center;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid white;
  outline: none;
}

.buttons {
  margin-top: 7px;
  margin-left: 30px;
  height: 20px;
}

.buttons div {
  box-sizing: border-box;
  float: left;
  width: 50px;
  padding: 3px 0px;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  border-left: 1px solid white;
  font-size: 12px;
  text-align: center;
  pointer-events: auto;
}

.buttons div:first-child {
  border-left: 1px solid white;
}

.buttons div:last-child {
  border-right: 1px solid white;
}

#qualities div {
  width: 38px;
  font-size: 10px;
}

#canvas-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  height: auto;
}

#canvas-sizes div {
  width: 44px;
  font-size: 10px;
  float: none;
  border: 1px solid white;
}

#models div {
  width: 75px;
}

.button-selected {
  background: white;
  color: black;
  cursor: default;
}

.button-unselected {
  color: white;
  cursor: pointer;
}

#instructions {
  position: absolute;
  bottom: 24px;
  left: 20px;
  max-width: 180px;
  line-height: 16px;
  font-size: 12px;
  color: white;
  pointer-events: none;
}

#instructions span {
  font-weight: bold;
  color: #111111;
}

#footer {
  position: absolute;
  bottom: 24px;
  right: 30px;
  color: #111111;
  font-size: 12px;
  line-height: 16px;
}

#footer a {
  color: #111111;
}

#no-support-container {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: 14px;
  color: #333333;
  font-family: "Open Sans", Helvetica, sans-serif;
}

#error-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

#error {
  margin-bottom: 20px;
  font-size: 16px;
}

#browser-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

#browser-links span {
  font-size: 13px;
  color: #666;
}

#browser-links a {
  display: inline-block;
  padding: 8px 20px;
  background: #4285f4;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

#browser-links a:hover {
  background: #3367d6;
  cursor: pointer;
}

#open-edge {
  background: #0078d4;
}

#open-edge:hover {
  background: #106ebe;
}

#copy-msg {
  font-size: 12px;
  color: #4caf50;
  min-height: 18px;
  margin-top: 10px;
  text-align: center;
}

#current-browser {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

#no-support-container a {
  color: white;
}

#backlink {
  margin-top: 20px;
}

#lsystem-select {
  display: block;
  margin-top: 5px;
  margin-left: 30px;
  width: 164px;
  height: 24px;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-size: 11px;
  color: #222;
  background: white;
  border: 1px solid #999;
  border-radius: 2px;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}

#lsystem-select optgroup {
  font-weight: bold;
  font-style: normal;
  color: #555;
  background: #f0f0f0;
}

#lsystem-select option {
  font-weight: normal;
  color: #222;
  background: white;
  padding-left: 8px;
}

#lsystem-select:hover {
  border-color: #666;
}

#start-button {
  margin-left: 30px;
  margin-top: 8px;
  background: rgb(0, 170, 50);
}

#start-button:hover {
  background: rgb(0, 160, 40);
}

#start-button:active {
  background: rgb(0, 150, 30);
}

#start-button.stop-active {
  background: rgb(220, 0, 40);
}

#start-button.stop-active:hover {
  background: rgb(210, 0, 30);
}

#start-button.stop-active:active {
  background: rgb(200, 0, 20);
}

#reset-button {
  background: rgb(100, 100, 100);
  margin-left: 20px;
  margin-top: 8px;
}

#reset-button:hover {
  background: rgb(80, 80, 80);
}

#reset-button:active {
  background: rgb(60, 60, 60);
}

#fullscreen-button {
  background: rgb(30, 120, 200);
  margin-left: 30px;
  margin-top: 10px;
  margin-bottom: 4px;
  width: auto;
  padding: 0 12px;
  font-size: 11px;
}

#auto-resize-label {
  margin-top: 6px;
  font-size: 11px;
  cursor: pointer;
  gap: 4px;
}

#auto-resize-checkbox {
  pointer-events: auto;
  cursor: pointer;
  margin: 0;
}

#fullscreen-button:hover {
  background: rgb(20, 100, 180);
}

#fullscreen-button:active {
  background: rgb(10, 80, 160);
}


