@import url("https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap");

:root {
  --background-color: white;
  --growwBlue: #5367ff;
  --growwGreen: #00d09c;
  --growwtext: #44475b;
}
.sticky-wrapper{
	top: 0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  justify-content: center;
  align-items: center;
  font-family: "Roboto", sans-serif;
  background-color: var(--background-color);
  color: #44475b;
}

.calculator {
  padding: 1em;
  width: 325px;
  background-color: white;
  border-radius: 5px;
}

input[type="range"] {
  -webkit-appearance: none;
  margin: 18px 0;
  width: 100%;
}
input[type="range"]:focus {
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: #5367ff;
  border-radius: 5px;
  opacity: 0.9;
}
input[type="range"]::-webkit-slider-thumb {
  height: 36px;
  width: 16px;
  border-radius: 10px;
  background: #5367ff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -17px;
}
input[type="range"]:focus::-webkit-slider-runnable-track {
  background: #5367ff;
  opacity: 1;
}
input[type="range"]::-moz-range-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: #5367ff;
  border-radius: 5px;
}
input[type="range"]::-moz-range-thumb {
  height: 36px;
  width: 16px;
  border-radius: 10px;
  background: #5367ff;
  cursor: pointer;
}
input[type="range"]::-ms-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}
input[type="range"]::-ms-fill-lower {
  background: #5367ff;
  border-radius: 5px;
  opacity: 0.9;
}
input[type="range"]::-ms-fill-upper {
  background: #5367ff;
  border-radius: 5px;
  opacity: 0.9;
}
input[type="range"]::-ms-thumb {
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #5367ff;
  cursor: pointer;
}
input[type="range"]:focus::-ms-fill-lower {
  background: #5367ff;
  opacity: 1;
}
input[type="range"]:focus::-ms-fill-upper {
  background: #5367ff;
  opacity: 1;
}

/* Hide Number Arrow */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield !important;
}

/*Groww Logo on mobile*/
@media (max-width: 768px) {
  .groww-logo {
    width: 100px;
    height: 25px;
  }
}

/* New */

.main_container {
  box-shadow: 0 1px 7px 0 rgba(0, 0, 0, 0.1);
  margin: 5px;
  display: block;
  padding: 1em 0;
  border-radius: 5px;
  margin-top: 8em;
}

#heading {
  font-size: 18px;
  margin-bottom: 1.5em;
  margin-top: 1em;
  text-align: center;
  color: #44475b;
}

form {
  width: 50%;
  float: left;
}

.chart {
  width: 50%;
  float: right;
  /* clear: both; */
}

.i_row {
  color: #44475b;
}

.i_row span {
  float: right;
}

.i_container .i_row span input {
  font-size: 16px;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 0 5px;
  text-align: right;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.i_container .i_row span input:focus {
  outline: none;
}

.i_container {
  margin-bottom: 30px;
}

.r_value {
  text-align: center;
}

.o_row {
  display: inline-block;
  width: 100%;
}

.o_row:not(:last-child) {
  margin: 20px 0;
}

.o_row div {
  width: 50%;
  float: left;
}

.o_row .r_title {
  text-align: center;
  margin-bottom: 5px;
  font-size: 14px;
  color: #44475b;
  opacity: 0.75;
}

.o_row .r_value {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #44475b;
  overflow: scroll;
  -ms-overflow-style: none;  
  scrollbar-width: none; 
}

.r_value::-webkit-scrollbar { 
  display: none;
}

.o_row .left {
  width: 50%;
  float: left;
}

.o_row .right {
  width: 50%;
  float: right;
  clear: both;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta .cta_btn {
  border: none;
  font-size: 16px;
  letter-spacing: 0.2px;
  padding: 12px 35px;
  color: white;
  background-color: #00d09c;
  border-radius: 5px;
  font-family: "Roboto", sans-serif;
}

.cta .cta_btn:hover {
  cursor: pointer;
  transform: scale(1.02);
  outline: none;
}

.cta .cta_btn:focus {
  outline: none;
}

.f_title {
  text-align: center;
  color: #44475b;
  font-size: 14px;
}

.f_value {
  font-size: 20px;
  margin-left: 5px;
  font-weight: bold;
  overflow: scroll;
  -ms-overflow-style: none;  
  scrollbar-width: none; 
}

.f_value::-webkit-scrollbar { 
  display: none;
}



#myChart {
  margin: 15px 0 20px 0;
}

@media (max-width: 576px) {
  .main_container {
    width: 100%;
    display: block;
    padding: 1em 0.5em;
  }
  form {
    width: 100%;
    float: unset;
  }
  .calculator {
    padding: 1em;
    width: 100%;
    margin: 0;
  }
  .chart {
    width: 100%;
  }
}

#inputPrincipal {
  width: 85px;
}
#inputROI {
  width: 50px;
}
#inputTenure {
  width: 35px;
}

/*Dropdown Menu*/
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
  border: 0 !important;
  background: #f1f2f3;
  background-image: none;
}

/* Remove IE arrow */
select::-ms-expand {
  display: none;
}

/* Custom Select */
.select {
  position: relative;
  display: flex;
  width: 100%;
  height: 3em;
  line-height: 3;
  background: #f9fafa;
  overflow: hidden;
  border-radius: 0.25em;
  margin-top: 10px;
  margin-bottom: 10px;
}

select {
  flex: 1;
  padding: 0 1em;
  color: #44475b;
  cursor: pointer;
}

/* Arrow */
.select::after {
  content: "\25BC";
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 1em;
  background: #5367ff;
  cursor: pointer;
  pointer-events: none;
  -webkit-transition: 0.25s all ease;
  -o-transition: 0.25s all ease;
  transition: 0.25s all ease;
}

/* Transition */
.select:hover::after {
  color: #00d09c;
}

.bottom {
  width: 100%;
  padding: 0 1em 1em 1em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  width: 30%;
  display: inline-block;
  padding: 0 5px;
}

.m_title {
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 5px;
}

.m_value {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.2px;
  overflow: scroll;
  -ms-overflow-style: none;  
  scrollbar-width: none; 
}

.m_value::-webkit-scrollbar { 
  display: none;
}

@media (min-width: 577px) {
  .o_row, .f_row {
    display: none;
  }
}

@media (max-width: 576px) {
  .bottom {
    display: none;
  }
}
