.body-inner {
  font-family: sans-serif;
  /* padding: 4rem 0.75rem 2rem; */
  padding: 4rem 0 2rem;
  color: #acacac;
  max-width: 50rem;
  width: 100%;
  position: relative;
}

body {
  margin: 0;
  font-family: "IBMPlexMono-Light";
  background: #010109;
  max-height: 100%;
  display: flex;
  justify-content: center;
  font-size: 1rem;
  justify-content: normal;
  padding: 0 0.375rem;
  max-width: calc(100% - 0.75rem);
}

@media screen and (min-width: 768px) {
  body {
    max-height: 100%;
    position: relative;
    background-size: cover;
  }
}

h3 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
}

input {
  font-family: Hack, Menlo, Monaco, "Courier New", Courier, monospace;
  font-size: 0.875rem;
}

#profitChart {
  margin-bottom: 2rem;
  width: 100% !important;
  height: auto !important;
  max-height: 400px;
}

.global-settings-toggle-wrap {
  width: 100%;
  margin-bottom: 0.75rem;
}
.settings-toggle-link {
  margin-top: 0 !important;
}
.settings-toggle-link[aria-expanded="false"] {
  margin-bottom: 0 !important;
}
/* 
.settings-toggle-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #47d4f2;
  font-size: 0.875rem;
  font-family: inherit;
  text-decoration: none;
}

.settings-toggle-link:hover {
  text-decoration: underline;
} */

.settings-toggle-chevron {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.settings-toggle-link[aria-expanded="true"] .settings-toggle-chevron {
  transform: rotate(180deg);
}

.global-inputs-panel {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  margin-bottom: 2rem;
  opacity: 1;
  transition:
    grid-template-rows 0.4s ease-out,
    opacity 0.35s ease,
    margin-bottom 0.35s ease;
}

.global-inputs-panel.global-inputs-panel--collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.global-inputs-panel > #global-inputs {
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .global-inputs-panel {
    transition-duration: 0.01ms;
  }
}

#global-inputs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 0;
  gap: 1rem;
}

#global-inputs > * {
  width: calc(20% - 2.5rem);
  min-width: 7.5rem;
  box-sizing: border-box;
  flex-grow: 1;
}

/* Miner setting range sliders: green track, red thumb */
#global-inputs input[type="range"] {
  --range-track: #03a9f41a;
  --range-thumb: #1c97fe;
  width: 100%;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

#global-inputs input[type="range"]:focus {
  outline: none;
}

#global-inputs input[type="range"]:focus-visible {
  outline: 2px solid var(--range-thumb);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

#global-inputs input[type="range"]::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--range-thumb) 0,
    var(--range-thumb) var(--range-fill-pct, 0%),
    var(--range-track) var(--range-fill-pct, 0%),
    var(--range-track) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.25);
}

#global-inputs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: calc(0.375rem / 2 - 1rem / 2);
  border-radius: 50%;
  background: var(--range-thumb);
  border: 2px solid #010109;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#global-inputs input[type="range"]::-moz-range-track {
  height: 0.375rem;
  border-radius: 999px;
  background: var(--range-track);
  border: 1px solid rgba(0, 0, 0, 0.25);
}

#global-inputs input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--range-thumb);
  border: 2px solid #010109;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#global-inputs input[type="range"]::-moz-range-progress {
  height: 0.375rem;
  border-radius: 999px 0 0 999px;
  background: var(--range-thumb);
}

/* header > div {
  max-width: 50rem !important;
} */

.global-field-wrapper {
  padding: 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  row-gap: 0.25rem;
  font-size: 0.875rem;
  text-align: center;
}

.global-value {
  letter-spacing: 1px;
  font-weight: 600;
  /* color: #ff00ba; */
  /* color: #00ffc6; */
  color: #6efce2;
  text-shadow: 0 0 14px;
  font-size: 1rem;
}

/* #btcPriceLabel,
#networkLabel {
  color: #ff00ba;
  text-shadow: none;
} */

.global-input-field {
  display: flex;
  flex-direction: column;
  /* background: #00041d; */
  background: #1a1d30;
  border: 1px solid #203129;
  border-radius: 0.375rem;
  overflow: hidden;
  padding: 0.75rem 0.5rem 0.5rem;
  font-weight: 400;
  font-size: 1rem;
}

.global-input-field h4 {
  font-weight: 400;
  font-size: 0.75rem;
  margin: 0 0 0.25rem;
  border-bottom: none;
  padding: 0;
  text-align: center;
  /* color: #acacacd4; */
  color: #93989e;
}

.global-input-field label {
  display: block;
  margin-top: 0.25rem;
}

#availablePower {
  flex-grow: 1;
}

#miner-container {
  margin-top: 1.5rem;
}

fieldset {
  border: none;
  padding: 0.625rem 0.5rem;
  margin: 0;
  height: auto;
  max-height: 6rem;
  transition: all 0.2s ease-out;
  overflow: hidden;
  background-color: #001d2f;
  border: 1px solid #003f5a;
  border-radius: 0.375rem;
  position: relative;
}

fieldset.hidden {
  max-height: 1.75rem;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  background-color: #67676720;
  border: 1px solid #6767673b;
  cursor: pointer;
}
fieldset.hidden .delete-miner,
fieldset.hidden .miner-product-link {
  opacity: 0.25;
  /* pointer-events: none; */
}

fieldset.hidden input.miner-name {
  border: 1px solid transparent;
  background-color: transparent;
  /* color: #78828c; */
  color: #9ca5ac;
  pointer-events: none;
  cursor: inherit;
}

fieldset button .show {
  display: none;
}
fieldset button .hide {
  display: block;
}

fieldset.hidden button.toggle-miner .hide {
  display: none;
}
fieldset.hidden button.toggle-miner .show {
  display: block;
}

fieldset + fieldset {
  margin-top: 0.75rem;
}

.miner-name-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
}

.miner-name {
  font-family: sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  flex-grow: 1;
}

.miner-calculations {
  display: flex;
}
.miner-calculations div {
  margin-top: 0.5rem;
  display: flex;
  font-size: 0.75rem;
  column-gap: 0.5rem;
}
.miner-calculations span {
  /* box-shadow: inset 0 0 1px #ff00ba; */
  /* box-shadow: inset 0 0 1px #00ffc6; */
  overflow: hidden;
  display: flex;
  /* column-gap: 0.375rem; */
  border-radius: 0.25rem;
  padding-left: 0.375rem;
  align-items: center;
  background-color: #16836a;
  font-weight: 600;
  color: black;
}
.miner-calculations b {
  color: white;
  /* background-color: #ff00ba; */
  background-color: #15836a;
  padding: 0.125rem 0.375rem;
  font-weight: 500;
}

.miner-quantity-decimal {
  opacity: 0.5;
  font-style: normal;
}

.miner-inputs-wrapper {
  display: flex;
  column-gap: 0.5rem;
  grid-template-columns: 1fr 1fr 1fr;
}

.miner-inputs-wrapper input {
  flex-grow: 1;
  width: 100%;
}

fieldset input {
  padding: 0.25rem 0.5rem;
  border: 1px solid #3a434d;
  border-radius: 0.375rem;
  background: #efefef;
}

.button-wrapper {
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
}

button {
  border: none;
  color: white;
  padding: 0;
  background-color: #00b7ff;
  border-radius: 99rem;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}

.text-link {
  display: inline-flex;
  color: #47d4f2;
  text-decoration: none;
  font-size: 0.875rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.text-link:hover {
  text-decoration: underline;
}

button svg {
  /* display: flex; */
  width: 14px;
  height: 14px;
}

.button-icon-left svg {
  margin-left: -0.25rem;
  margin-right: 0.25rem;
}

.button-icon-right svg {
  margin-left: 0.25rem;
  margin-right: -0.25rem;
}

.input-wrapper {
  display: flex;
}

.toggle-miner .show .chevron {
  transform: rotate(180deg);
}

.delete-miner,
.toggle-miner {
  background-color: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 0.25rem;
  line-height: 0;
  height: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* .toggle-miner {
  color: #ffb900;
} */

.delete-miner {
  margin-right: -0.5rem;
  padding-right: 0.75rem;
  color: #47d4f2;
}

.delete-miner svg {
  width: 1.125rem;
  height: 1.125rem;
}

.delete-miner svg path {
  fill: currentColor;
}

.miner-product-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #47d4f2;
  text-decoration: none;
  padding: 0.25rem;
  margin-left: 0.125rem;
  border-radius: 0.25rem;
  line-height: 0;
}

.miner-product-link svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

.miner-product-link svg path {
  fill: currentColor;
}

.miner-product-link:hover {
  opacity: 0.85;
}

.toggle-miner svg {
  width: 1.25rem;
  height: 1.25rem;
}

.input-price,
.input-hashrate,
.input-power {
  position: relative;
  display: flex;
}

.input-price label,
.input-hashrate label,
.input-power label {
  position: absolute;
  background: #7b8085;
  color: #fff;
  height: 100%;
  display: flex;
  padding: 0 0.5rem;
  align-items: center;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.75rem;
}

.input-price label {
  left: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-hashrate label,
.input-power label {
  right: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.input-price input {
  padding-left: 1.875rem;
}

.copyright {
  margin-bottom: 0;
  font-size: 0.75rem;
  font-family: Hack, Menlo, Monaco, "Courier New", Courier, monospace;
  text-align: center;
}

.copyright a {
  text-decoration: none;
  color: #47d4f2;
}

#clipboard-feedback {
  pointer-events: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#clipboard-feedback-text {
  margin: 0;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0);
  border-radius: 0.5rem;
  color: white;
  opacity: 1;
  transition: opacity 0.15s ease-out;
}

#clipboard-feedback-text.is-hidden {
  opacity: 0;
}

#clipboard-feedback-text.is-failure {
  color: #ff4646;
}
