.calculator {
  box-shadow: 0px 0px 21px 0px rgba(0,0,0,0.1);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  max-width: 800px;
}

.calculator .loan_amount_container,
.calculator .loan_term_container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;

}

.calculator .result {
  font-size: 24px;
  color: #565656;
  font-weight: bold;
  line-height: 1.5em;
}

.calculator  .notice {
  font-size: 12px;
  color: #9b9b9b;
  line-height: 2em;
  display: flex;
  align-items: center;
}

.calculator span.notice {
  display: inline-block;
}

.calculator .res {
  color: #7ddc05;
}

.calculator .result_loan {
  color: #0052c2;
}

.calculator .result_container {
  border: 2px solid #7ddc05;
  border-radius: 5px;
  padding: 20px 70px;
  margin-top: 20px;
  background: url("../img/budget.png") no-repeat;
  background-position: 15px center;
}

.calculator input[type=number] {
  border: 2px solid #dedede;
  padding: 8px;
  border-radius: 4px;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  outline: none;
  width: 10%;
  margin: 0 10px;
}

.calculator input[type=number]:focus {
  border-color: #6ec205;
}

.calculator input[type=range] {
  -webkit-appearance: none;
  margin: 9px 10px;
  width: 80%;
  overflow: hidden;
  border-radius: 4px;
}

.calculator input[type=range]:focus {
  outline: none;
}

.calculator input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 16px;
  cursor: pointer;
  animate: 0.2s;
  background: rgba(123, 246, 33, 0.4);
  /*border: 1px solid #b4b4b4;*/
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.calculator input[type=range]::-webkit-slider-thumb {
  border: 1px solid #b4b4b4;
  height: 16px;
  width: 16px;
  border-radius: 4px;
  box-shadow: -100vw 0 0 99vw #6ec205;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
}

.calculator input[type=range]::-moz-range-track {
  width: 100%;
  height: 16px;
  cursor: pointer;
  animate: 0.2s;
  background: rgb(180, 180, 180);
  border: 0.2px solid #b4b4b4;
  border-radius: 4px;
}
.calculator input[type=range]::-moz-range-thumb {
  border: 1px solid #b4b4b4;
  height: 16px;
  width: 16px;
  border-radius: 4px;
  box-shadow: -100vw 0 0 100vw #6ec205;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
}
.calculator input[type=range]::-ms-track {
  width: 100%;
  height: 16px;
  cursor: pointer;
  animate: 0.2s;
  background: rgb(180, 180, 180);
  border: 0.2px solid #b4b4b4;
  border-radius: 4px;
}
.calculator input[type=range]::-ms-fill-lower {
  background: #0052c2;
  border: 0.2px solid #b4b4b4;
  border-radius: 4px;
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
}
.calculator input[type=range]::-ms-fill-upper {
  background: #6ec205;
  border: 0.2px solid #b4b4b4;
  border-radius: 4px;
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
}
.calculator input[type=range]::-ms-thumb {
  border: 1px solid #b4b4b4;
  height: 16px;
  width: 16px;
  border-radius: 4px;
  box-shadow: -100vw 0 0 100vw #6ec205;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
}

.calculator .loan_label {
  display: block;
  width: 100%;
  margin: 10px;
}

.calculator .inline_container {
  display: inline-block;
  width: 20%;
}

.calculator .inline_container input {
  width: 80%!important;
}

@media screen and (max-width: 768px) {
  .calculator input[type=number] {
    width: 30%;
  }

  .calculator input[type=range] {
    width: 60%;
  }

  .calculator .inline_container {
    display: inline-block;
    width: 30%;
  }
}


@media screen and (max-width: 550px) {
  .calculator input[type=number] {
    width: 100%;
  }

  .calculator input[type=range] {
    width: 100%;
  }

  .calculator .inline_container {
    display: inline-block;
    width: 50%;
  }

  .calculator .loan_label {
    font-size: 14px;
  }

  .calculator .result_container {
    border: 2px solid #7ddc05;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    background: none;
    /*background-position: 15px center;*/
  }

  .calculator .result {
    font-size: 20px;
  }

  .calculator .notice {
    margin-top: 10px;
  }
}
