/* generics */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  background: black;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, serif;
  display: flex;
  flex-flow: row nowrap;
  height: 94%;
  width: 98%;
  padding: 1%;
  font-size: 16px;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 12px 0;
}
h1 {
  color: rgb(255,254,191);
  font-size: 200%;
  text-align: center;
}

a, a:visited, a:active, a:hover {
  color: yellow;
  text-decoration: none;
}
small a {
  font-weight: bold;
}

ul, ol {
  margin: 0;
}
li {
  margin: 4px 0;
}

input, button {
  border: 0;
  padding: 0;
  margin: 0;
  transition: background-color .1s ease-out;
  transition: border-color .1s ease-out;
}
button * {
  pointer-events: none;
}
button:disabled {
  cursor: not-allowed;
}

section {
  height: 99%;
  width: 49%;
  margin: auto;
  display: flex;
  flex-flow: column nowrap;
  background: rgb(64,64,64);
  color: white;
  border: 1px solid silver;
  border-radius: 2%;
  padding: 1%;
  box-sizing: border-box;
}

small {
  opacity: 0.7;
  font-size: 75%;
}

/* classes */

section.informational {
  overflow: hidden;
  padding: 0;
  border-top: none;
}

div.tab-content {
  overflow: auto;
  padding: 1%;
  scrollbar-width: thin;
}

section.informational > * {
  margin-bottom: 8px;
}
section.informational figure {
  margin: 0 auto;
  width: 50%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  font-style: italic;
  color: silver;
}
section.informational figure > img {
  width: 100%;
  height: auto;
}

section.optional {
  overflow: hidden;
}

div.settings-subcontainer {
  min-height: 1%;
  overflow: auto;
  scrollbar-width: thin;
  display: flex;
  flex-flow: column nowrap;
  padding: 2px 2px 2px 0;
  font-size: 90%;
  width: 100%;
}

div.input-group {
  max-width: 100%;
  display: flex;
  flex-flow: row nowrap;
}
div.input-group > * {
  border-radius: 0;
  flex: 1;
}
div.input-group > *:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
div.input-group > *:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
div.input-group > input[type="range"] {
  width: auto;
  flex: 1;
  filter: saturate(0);
}
.input-summary {
  flex: 0 !important;
  min-width: 4rem;
  width: auto;
  text-align: right;
  color: #b3b480;
  font-weight: bold;
}
.input-condensed {
  min-width: unset;
  width: auto;
  max-width: unset;
}
.input-condensed > .input-group {
  width: 95%;
}
.input-condensed input {
  width: 100%;
}

input.link-text {
  font-size: 100%;
  width: auto;
  height: 2em;
  padding: 0 4px;
}
button.link-copy {
  flex: 0 auto;
  vertical-align: middle;
  text-align: center;
  padding: 0 4px;
  border: 1px solid #A0A26F;
  background-color: #7F8042;
  color: white;
  font-weight: bold;
}
button.link-copy:hover {
  cursor: pointer;
  border-color: #FFD800;
}
button.link-copy:disabled {
  cursor: default;
  opacity: 1 !important;
  border-color: transparent !important;
  text-shadow: 0px 0px 1px white;
}

div.input-container {
  display: flex;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
div.ic-horizontal {
  flex-flow: row nowrap;
  width: 100%;
}
div.ic-vertical {
  flex-flow: column nowrap;
}
div.ic-conjoined {
  padding-bottom: none;
  margin-bottom: none;
  border-bottom: none;
}

div.input-container > label {
  flex: 0 auto;
  width: 20%;
  margin-right: 1%;
  margin-left: 1%;
}
div.input-container > label:first-child {
  margin-left: 0;
}
div.input-option {
  max-width: 79%;
  flex: 1 0 auto;
  display: flex;
  flex-flow: column nowrap;
}
div.ic-unlimited {
  max-width: 100%;
}
div.input-option-hz {
  flex-flow: row nowrap;
}

input.option-text {
  font-size: 100%;
  height: auto;
  padding: 4px;
  background-color: white;
  color: black;
}
input[type="color"] {
  margin-right: 80%;
  padding: 1px 1%;
}
input.option-toggle {
  width: auto;
  flex: 0 auto;
  margin: 0;
  align-self: center;
  cursor: pointer;
}
div.input-group label {
  cursor: pointer;
  user-select: none;
  vertical-align: baseline;
}

.input-blocky {
  flex: 1;
  display: inline-flex;
  flex-flow: column nowrap;
  border: 1px solid rgb(156,154,117);
  cursor: pointer;
  background-color: rgb(215,215,200);
  color: black;
  transition: background-color .154s linear;
}
.input-blocky > * {
  margin: auto;
  flex: 1 0 auto;
  pointer-events: none;
}
.input-blocky-container {
  display: flex;
}
.input-blocky-container > * {
  margin: auto;
}
span.button-label {
  flex: 0 auto;
}
.selected-option {
  background-color: rgb(255,250,207);
}

label.required::after {
  content: " *";
  color: red;
  font-size: 67%;
  vertical-align: super;
}

.input-advanced-subheader:hover {
  cursor: pointer;
  color: rgb(254,255,222);
}
.input-advanced-subheader::before {
  margin: 0 4px;
  display: inline-block;
  content: " ⌂ ";
  vertical-align: sub;
  font-size: 150%;
  transform: rotate(90deg);
  transition: transform .25s ease, vertical-align .25s ease;
}
.input-ash-open::before {
  transform: rotate(180deg);
}
div.input-advanced {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

input.custom-input-rgx {
  border: 1px solid transparent;
}
input.custom-input-rgxflags {
  max-width: 18%;
  border-left: 2px solid gray;
}
.danger-text {
  color: orange;
}
.rgx-error {
  color: rgb(255,195,153);
}
.danger-decoration {
  border: 1px solid orange !important;
  color: rgba(128,0,0,1) !important;
}

/* custom checkboxes and radios */

.custom-checkbox {
  display: block;
  position: relative;
  overflow: hidden;
  z-index: -1;
  opacity: 0;
}
.custom-checkbox+label {
  display: inline-flex;
  align-items: center;
  user-select: none;
  margin-left: -0.8em;
}
.custom-checkbox+label::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  flex-grow: 0;
  border: 1px solid #adb5bd;
  border-radius: 0.25em;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
  background-color: rgb(87,83,67);
}
.custom-checkbox:checked+label::before {
  border-color: #A0A26F;
  background-color: #7F8042;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
.custom-checkbox:not(:disabled)+label:hover::before {
  border-color: #FFD800;
}
.custom-checkbox:not(:disabled):active+label::before {
  box-shadow: 0 0 0 0.1rem rgba(255,246,0,.7);
}
.custom-checkbox:focus+label::before {
  box-shadow: 0 0 0 0.1rem rgba(255,246,0,.25);
}
.custom-checkbox:focus:not(:checked)+label::before {
  border-color: #F8FF80;
}
.custom-checkbox:disabled+label {
  background-color: transparent;
  cursor: default;
  opacity: 0.5;
}

.custom-radio {
  display: block;
  position: relative;
  overflow: hidden;
  z-index: -1;
  opacity: 0;
}
.custom-radio+label {
  display: inline-flex;
  align-items: center;
  user-select: none;
  margin-left: -0.8em;
}
.custom-radio+label::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  flex-grow: 0;
  border: 1px solid #adb5bd;
  border-radius: 50%;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
  background-color: rgb(87,83,67);
}
.custom-radio:not(:disabled)+label:hover::before {
  border-color: #FFD800;
}
.custom-radio:not(:disabled):active+label::before {
  box-shadow: 0 0 0 0.1rem rgba(255,246,0,.7);
}
.custom-radio:focus+label::before {
  box-shadow: 0 0 0 0.1rem rgba(255,246,0,.25);
}
.custom-radio:focus:not(:checked)+label::before {
  border-color: #F8FF80;
}
.custom-radio:checked+label::before {
  border-color: #A0A26F;
  background-color: #7F8042;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.custom-radio:disabled+label {
  background-color: transparent;
  cursor: default;
  opacity: 0.5;
}

::-webkit-scrollbar {
  width: 8px;
  height: 16px;
}
::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 8px;
  border: 1px solid gray;
}
::-webkit-scrollbar-thumb {
  background-image: linear-gradient(45deg,
    rgba(252,223,69,.24) 33%,
    rgba(255,230,0,.28) 45%,
    rgba(255,230,0,.28) 55%,
    rgba(252,223,69,.24) 67%
  );
  border-radius: 8px;
  border: 1px solid rgba(255,244,162,.61);
}
section.informational::-webkit-scrollbar-track {
  background: transparent;
  border-color: transparent;
}

div.tabs {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  padding: 0;
  background-color: rgb(0,0,0);
}
div.tab-name {
  flex: 2 0 0;
  font-size: 1em;
  padding: 0 1.5%;
  border: 1px solid rgb(96,96,96);
  border-top-color: silver;
  border-bottom-color: rgb(128,128,128);
  border-radius: 1vh 1vh 0 0;
  background-color: rgb(96,96,96);
  color: rgb(192,192,192);
  cursor: pointer;
  user-select: none;
}
div.tab-name:hover {
  color: rgb(255,255,193);
}
div.tab-name > img {
  display: inline-block;
  width: 1.2vw;
  height: 1.2vw;
  margin-right: .7vw;
  pointer-events: none;
}
div.tab-name-active {
  font-weight: bold;
  background-color: rgb(64,64,64);
  border: 0;
  border: 1px solid rgb(128,128,128);
  border-top-color: silver;
  border-bottom: none;
  color: white;
}

div.tab-spinner {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}
#changelogTitle {
  text-align: center;
  color: rgb(194,181,165);
  font-size: 2em;
}

img.changelog-unit-icon {
	width: 1.3em;
	height: auto;
	vertical-align: text-bottom;
}

#dChangelog h6 {
  color: silver;
  font-size: 14px;
  font-style: italic;
  margin: .3em 0 .3em 2em;
}

/* mobile frogs */

@media all and (orientation:portrait) {
  body {
    flex-flow: column nowrap;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
  }
  section {
    width: 100%;
    height: auto;
    overflow: unset !important;
    margin: 0;
    margin-bottom: 16px;
    border-radius: 0;
  }
  section.informational figure {
    width: 75%;
  }
}
