*, :after, :before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #FAFAFB; /*$gray-50*/
  color: #18181B; /*$soft-gray-900*/
  font: 500 16px / 1.4 'Inter', sans-serif;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "case", "calt", "ccmp", "kern";
  -webkit-font-feature-settings: "case", "calt", "ccmp", "kern";
  -moz-font-feature-settings: "case", "calt", "ccmp", "kern";
}

.root-container {
  display: block;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}
@media(max-width : 1080px) {
  .root-container {
    padding-inline: 16px;
  }
} 

section.simulator {
  padding-block: 128px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.simulator-ui,
#tradeOutput,
#bankOutput {
  border-radius: 16px;
  overflow: hidden;
}

.simulator-ui {
  grid-column: 1/3;
  background: #fff;
}

.chart-container {
  position: relative;
  min-height: 500px;
  background: #F3F4F5;
  letter-spacing: 0;
  padding: 48px 32px;
}

.chart-inputs {
  display: flex;
  justify-content: space-between;
  padding: 40px 64px;
  gap: 32px;
}

.chart-inputs .inputs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-inputs .input {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.chart-inputs label {
  min-width: 180px;
  font-size: 14px;
  line-height: 32px;
  letter-spacing: -.01em;
  color: #52525B; /*$soft-gray-600 */
}

.chart-inputs label #baseProfitOutput {
  padding-left: 8px;
  color: #18181B; /*$soft-gray-900 */
}

.chart-inputs .input-element {
  min-width: 145px;
}

.chart-inputs select {
  min-width: 80px;
  height: 32px;
  border-radius: 5px;
  padding-left: 4px;
  text-overflow: ellipsis;
  border: 1px solid #D4D4D8; /*soft-gray-300*/
}

.chart-inputs select:hover {
  background: rgba(0,0,0,.04);
}

.chart-inputs .range-container {
  height: 32px;
  display: grid;
  place-items: center;
}

.chart-inputs #baseProfit {
  -webkit-appearance: none;
  width: 145px;
  height: 4px;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background-image: linear-gradient(#1B62F1, #1B62F1); /*$blue-600*/
  background-size: calc(100% / 11) 100%; /*range begin at 0.5 on 5, with range steps of 0.5*/
  background-repeat: no-repeat;
}

/* Thumb */
.chart-inputs #baseProfit::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  cursor: ew-resize;
  /* box-shadow: 0 0 2px 0 #555; */
  box-shadow: 0 2px 10px -5px rgb(0 0 0 / 44%), 0 1px 4px -1px rgb(0 0 0 / 14%), 0 0 0 1px rgb(0 0 0 / 5%);
}
.chart-inputs #baseProfit::-moz-range-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  cursor: ew-resize;
  /* box-shadow: 0 0 2px 0 #555; */
  box-shadow: 0 2px 10px -5px rgb(0 0 0 / 44%), 0 1px 4px -1px rgb(0 0 0 / 14%), 0 0 0 1px rgb(0 0 0 / 5%);
}
.chart-inputs #baseProfit::-ms-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  cursor: ew-resize;
  /* box-shadow: 0 0 2px 0 #555; */
  box-shadow: 0 2px 10px -5px rgb(0 0 0 / 44%), 0 1px 4px -1px rgb(0 0 0 / 14%), 0 0 0 1px rgb(0 0 0 / 5%);
}

/* Thumb:hover */
.chart-inputs #baseProfit::-webkit-slider-thumb:hover {
  background: #fff;
}
.chart-inputs #baseProfit::-moz-range-thumb:hover {
  background: #fff;
}
.chart-inputs #baseProfit::-ms-thumb:hover {
  background: #fff;
}

 /* Thumb:focus */
.chart-inputs #baseProfit:focus::-webkit-slider-thumb {
  box-shadow: 0 2px 10px -5px rgb(0 0 0 / 44%), 0 1px 4px -1px rgb(0 0 0 / 14%), 0 0 0 1px rgb(0 0 0 / 5%), 0 0 0 4px rgb(0 0 0 / 6%);
}
.chart-inputs #baseProfit:focus::-moz-range-thumb {
  box-shadow: 0 2px 10px -5px rgb(0 0 0 / 44%), 0 1px 4px -1px rgb(0 0 0 / 14%), 0 0 0 1px rgb(0 0 0 / 5%), 0 0 0 4px rgb(0 0 0 / 6%);
}
.chart-inputs #baseProfit:focus::-ms-thumb {
  box-shadow: 0 2px 10px -5px rgb(0 0 0 / 44%), 0 1px 4px -1px rgb(0 0 0 / 14%), 0 0 0 1px rgb(0 0 0 / 5%), 0 0 0 4px rgb(0 0 0 / 6%);
}

/* Track */
.chart-inputs #baseProfit::-webkit-slider-runnable-track  {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.chart-inputs #baseProfit::-moz-range-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.chart-inputs #baseProfit::-ms-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}


.chart-inputs .input-element#baseProfit {
  padding-left: calc(145px / 11);
}

#tradeOutput {
  background: #fff;
}

#bankOutput {
  background: #F5F5F7 /*$gray-100*/
}

#tradeOutput,
#bankOutput {
  padding: 40px 40px 48px;
}

.output-header {
  margin-bottom: 48px;
}

.output-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 19px;
  line-height: 32px;
  letter-spacing: -0.03em;
}

.output-color-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #A1A1AA; /*$soft-gray-400*/
}

#tradeOutput .output-color-dot {
  background: #22C55E; /*$green-500*/
}

#bankOutput .output-color-dot {
  background: #EC4899; /*$pink-500*/
}

.output-legend {
  font-size: 14px;
  line-height: 32px;
  letter-spacing: -.01em;
  color: #6B7280;   /*$cool-gray-500*/
}

.output-data {
  margin-bottom: 32px;
}

.output-data .data {
  display: flex;
  justify-content: space-between;
  box-shadow: inset 0px 1px 0px rgba(0, 0, 0, .1);
  padding-block: 12px;
}

.output-data .data:last-child {
  box-shadow: inset 0px 1px 1px #E4E4E7; /*$soft-gray-200*/
  box-shadow: inset 0px 1px 0px rgba(0, 0, 0, .1), inset 0px -1px 0px rgba(0, 0, 0, .1);
}

.output-data .data-label,
.output-data output {
  line-height: 24px;
  font-size: 15px;
  color: #18181B; /*$soft-gray-900*/
}

.output-data output {
  letter-spacing: 0;
}

#tradeOutput [name="percentStat"] {
  color: #15803D; /*$green-800*/
}

#bankOutput [name="percentStat"] {
  color: #D11063; /*$rose-700*/
}

.output-note {
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: -.005em;
  color: #52525B; /*$soft-gray-600*/
}

@media(max-width : 1000px) {
  .chart-container {
    padding: 32px 24px;
  }
  .chart-inputs {
    padding: 32px 24px;
  }

  #tradeOutput,
  #bankOutput {
    padding: 32px 24px 40px;
  }
}

@media(max-width : 800px) {
  .chart-inputs .input {
    gap: 4px;
  }
  .output-title {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -.02em;
  }
  .output-legend {
    font-size: 13px;
    line-height: 24px;
    letter-spacing: 0;
  }
  .output-header {
    margin-bottom: 32px;
  }

  .output-data .data-label, .output-data output {
    line-height: 20px;
    font-size: 14px;
  }
}

@media(max-width : 660px) {
  section.simulator {
    grid-template-columns: auto;
  }
  .simulator-ui {
    grid-column: auto;
  }
} 

@media(max-width : 500px) {
  .chart-inputs label {
    min-width: unset;
  }
  .chart-container,
  .chart-inputs {
    padding: 24px 16px;
  }
  #tradeOutput, #bankOutput {
    padding: 24px 16px 32px;
  }
}

@media(max-width : 440px) {
  .chart-inputs {
    flex-wrap: wrap;
    gap: 16px;
  }
  .chart-inputs .input {
      gap: 12px;
  }
  .chart-inputs .input-element {
    min-width: 120px;
  }
  .chart-inputs #baseProfit {
    width: 120px;
  }
  .chart-inputs .input-element#baseProfit {
    padding-left: calc(120px / 11);
  }
}