body {
  --svg-background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600" version="1.1"><path d="M0 406L113 480L225 437L338 495L450 494L563 502L675 485L788 475L900 402L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%23eeeeee"></path><path d="M0 491L113 500L225 503L338 440L450 518L563 471L675 453L788 493L900 430L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%23e7e7e7"></path><path d="M0 543L113 462L225 473L338 518L450 473L563 522L675 462L788 504L900 477L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%23e1e1e1"></path><path d="M0 573L113 527L225 553L338 571L450 560L563 543L675 567L788 538L900 516L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%23dbdbdb"></path><path d="M0 577L113 589L225 551L338 580L450 539L563 566L675 530L788 557L900 583L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%23d5d5d5"></path></svg>');

  --gray-100: #f7f7f7; /* Lightest gray */
  --gray-200: #ededed;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e; /* Neutral gray */
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --gray-1000: #111111; /* Darkest gray */
  --blue: rgb(0, 168, 220);
  --red: rgb(255, 48, 49);
  --danger: #b72619;
  --default-background: #f7f7f7;

  --header-background: #1f1f1f;
  --border-color: #2b2b2b;
  --white: #fff;
  --header-text: #858585;
  --menu-background: #181818;
  --menu-text: #858585;
  --resizer-background: #cbd5e0;
  --iconlist-background: rgb(235, 234, 234);
  --link-color: black;
  --check-tick: black;
  --select-background: rgb(235, 234, 234);
  --text-color: black;
  --input-bordercolor: rgba(0, 0, 0, 0.1);
  --invalid: #ef8783;
  --link-underline: #97defb;
  --button-background: #4291bd;
  --all-ok: #9ed0ad78;
  --light-blue: rgba(128, 224, 255, 0.2);
}

body.dark {
  --svg-background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600" version="1.1"><path d="M0 406L113 480L225 437L338 495L450 494L563 502L675 485L788 475L900 402L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%23111111"></path><path d="M0 491L113 500L225 503L338 440L450 518L563 471L675 453L788 493L900 430L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%23181818"></path><path d="M0 543L113 462L225 473L338 518L450 473L563 522L675 462L788 504L900 477L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%231e1e1e"></path><path d="M0 573L113 527L225 553L338 571L450 560L563 543L675 567L788 538L900 516L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%23242424"></path><path d="M0 577L113 589L225 551L338 580L450 539L563 566L675 530L788 557L900 583L900 601L788 601L675 601L563 601L450 601L338 601L225 601L113 601L0 601Z" fill="%232a2a2a"></path></svg>');
  --gray-100: #111111; /* Darkest gray (was lightest) */
  --gray-200: #212121;
  --gray-300: #424242;
  --gray-400: #616161;
  --gray-500: #757575; /* Neutral gray */
  --gray-600: #9e9e9e;
  --gray-700: #bdbdbd;
  --gray-800: #e0e0e0;
  --gray-900: #ededed;
  --gray-1000: #f7f7f7; /* Lightest gray (was darkest) */
  --blue: rgb(0, 107, 140);
  --red: rgb(200, 0, 0);
  --default-background: #424242;
  background-color: var(--gray-300);
  color: var(--gray-800);
}

body {
  background-color: var(--default-background);
  background-image: var(--svg-background);
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-size: cover; /* Ensures the image covers the entire background */
  background-attachment: fixed; /* Keeps the background image fixed in place */
  background-position: bottom;
  margin: 0px;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}
/*
input[type="color" i] {
  appearance: auto;
  width: 48px;
  height: 32px;
  cursor: default;
  box-sizing: border-box;
  background-color: transparent;
  border-width: 1px;
  border-style: none;
}
*/

.external {
  text-decoration: none;
}
.external:link,
.external:visited {
  color: var(--gray-1000);
  border-bottom: 2px solid var(--blue);
}

#classification {
  height: 20px;
  text-align: center;
  background-color: darkgreen;
  color: #fff;
  font-size: 14px;
  align-content: center;
}

.classification {
  top: 50px !important;
}

header,
header a {
  color: var(--header-text);
}

header {
  width: 100%;
  height: 30px;
  background-color: var(--header-background);
  border-bottom: 1px solid var(--border-color);
  color: var(--header-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  vertical-align: middle;
  display: flex;
  flex-direction: row;
  z-index: 10000;
}
header div {
  margin: 5px;
  display: flex;
  align-items: center;
  flex-grow: 20;
}

header .bst {
  margin-left: 8px;
}

header #clear-all-browser-data {
  border: 1px solid transparent;
  border-color: var(--header-text);
  /* padding: 6px; */
  border-radius: 3px;
}
header #clear-all-browser-data:hover {
  background-color: var(--gray-800);
}

.menubar-menu {
  text-align: right;
  justify-content: end;
  font-size: 12px;
  color: var(--menu-text);
  padding-right: 5px;
  flex-grow: 0.1;
}

#confirm-clear-all {
  border: 1px solid transparent;
  border-color: var(--gray-400);
  background-color: var(--default-background);
  color: var(--gray-800);
  display: none;
  z-index: 5000;
  position: absolute;
  right: 0px;
  top: 30px;
  flex-direction: column;
  width: 200px;
  font-size: 15px;
  padding: 6px;
  border-radius: 5px;
}

.show-confirmation {
  display: flex !important;
}

#color-mode-toggle {
  flex-grow: 0.1;
  cursor: pointer;
}

#color-mode-toggle.dark .dark-mode {
  display: none;
}
#color-mode-toggle .light-mode {
  display: none;
}
#color-mode-toggle.dark .light-mode {
  display: inline;
}

#confirm-clear-all .button {
  display: block;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: auto;
  margin-right: auto;

  width: 80%;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  text-align: center;

  color: var(--white);
}
.ordinary-button {
  background-color: var(--blue);
}
.danger-button {
  background-color: var(--red);
}

.container {
  position: absolute;
  top: 30px;
  bottom: 0px;
  left: 50px;
  right: 0px;
  /*overflow: scroll;*/
  display: flex;
}
.menu {
  position: absolute;
  top: 30px;
  left: 0px;
  bottom: 0px;
  width: 50px !important;
  background-color: var(--menu-background);
  border-right: 1px solid var(--border-color);
  color: var(--menu-text);

  align-items: center;
  display: flex;
  flex-direction: column;
}
.menu-button {
  width: 100%;
  padding: 8px 0;
  border-left: 3px solid transparent;
  border-color: var(--menu-background);
  text-align: center;
  cursor: pointer;
}
.menu-button-hidden {
  display: none !important;
}

.menu-button:hover {
  color: white;
  /*background-color: rgba(255, 255, 255, 0.1);*/
}
.menu-button-active {
  border-left: 3px solid transparent;
  border-color: white;
  color: white;
}
.sidepanel-hidden {
  border-color: transparent !important;
}
/*
.menu svg {
  margin-top: 20px;
}
*/

.container-right {
  overflow-y: auto;
  width: 100%;
}
.unitgenerator-panel {
  max-width: 95%;
  width: 900px;
  margin: auto;
  padding: 8px;
}
.panel-hidden {
  /*display: none;*/
  position: absolute !important;
  opacity: 0;
  pointer-events: none;
}
.setting {
  margin-bottom: 10px;
}

.buy-more {
  border: 1px solid transparent;
  border-color: var(--gray-400);
  padding: 20px;
  background-color: var(--gray-200);
  color: var(--gray-1000);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.buy-more p {
  margin-block-start: 5px;
  margin-block-end: 7px;
}

.setting-heading {
  margin-top: 15px;
  font-size: 0.8em;
}
.setting small {
  color: var(--gray-600);
}

table,
td,
th {
  border: 1px solid var(--menu-text);
}

td {
  padding: 5px;
  width: 50%;
}

table {
  border-collapse: collapse;
  width: 90%;
  margin: 10px;
}

.resizer[data-direction="horizontal"] {
  border-left: 4px solid transparent;
  border-color: var(--gray-600);
  width: 0px;
}
.resizer[data-direction="horizontal"]:hover {
  /*border-left: 4px solid transparent;*/
  border-color: var(--gray-800);
  cursor: ew-resize;
}
.resizer[data-direction="vertical"] {
  background-color: var(--gray-600);
  cursor: ns-resize;
  height: 3px;
  width: 100%;
}

.search-input,
.option-text {
  width: calc(100% - 12px);
  font-size: large;
  border: 1px solid transparent;
  border-color: var(--input-bordercolor);
  padding: 6px;
  background-color: var(--default-background);
  color: var(--text-color);
  border-radius: 5px;
}

.input-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.input-container-static input,
.input-container input {
  margin-left: 5px;
  width: 100%;
  /*width: calc(100% - 12px);*/
  /*
  font-size: large;
  border: 1px solid transparent;
  border-color: var(--input-bordercolor);
  padding: 6px;
  background-color: var(--default-background);
  color: var(--text-color);
  border-radius: 5px; */
}

.symbol.draggable {
  cursor: move;
}

.setting-hidden,
.sidc-type-hidden {
  display: none !important;
}

.danger {
  color: var(--red);
}

.settings-clickable {
  cursor: pointer;
}

@media screen and (max-width: 1000px) {
  .pricing {
    flex-wrap: wrap;
  }
  .pricing-item + .pricing-item {
    border-left: none;
  }
}

@media screen and (max-width: 500px) {
  .orbat-button {
    display: none;
  }
  .icon-list {
    display: none;
  }
  .donations {
    display: none;
  }
  .resizer {
    display: none;
  }
  .container {
    flex-direction: column;
  }
  .container-left {
    width: 100%;
  }
  .radio-select-items {
    flex-wrap: wrap;
  }
  .radio-select-items div {
    flex-basis: 20%;
  }
}

@media print {
  html,
  body {
    margin: 0;
    padding: 0;
  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    page-break-after: avoid;
  }

  header,
  header a {
    background-color: var(--header-text);
    color: var(--header-background);
  }

  .spatial-logo {
    left: 0px !important;
    opacity: 0.4;
  }

  .spatial-illusions {
    display: none;
  }
  .bst {
    opacity: 0.5;
    /*padding-left: 5px;*/
  }
  .menu {
    display: none;
  }
  .panel-hidden {
    display: none;
  }
  .container {
    position: relative;
    top: 0px;
    bottom: 0px;
    left: 0px;
  }

  .container-left {
    display: none;
  }
  .resizer {
    display: none;
  }
  #clear-all-browser-data {
    display: none;
  }
}

#help svg {
  max-width: 100%;
}
