body {
  background-color:#131F28;
}
#header, .mobile-menu {
  animation-delay:0s;
}  
  
#calculator {
  position: relative;
  margin:0;
  padding: 8rem 1rem;
  padding-bottom:3rem;
}

#calculator:before {
  content: ' ';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  background-color: #867B69;
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: cover;
}
#calculator .title {
  padding:0;
}
#calculator .title h1 {
  width: 580px;
  text-align: left;
  margin:0;
  font-size:1.8rem;
}
#calculator .title h1:before {
  left:0rem;
  top:3.5rem;
  width:300px;
}

.summaryContent .title h1:before {
  left:0rem !important;
  top:4rem !important;
  width:80px !important;
  left: calc(50% - 40px) !important;
  transform:rotate(180deg);
}

.select2-results__option span {
  margin-left:0;
  justify-content: center;
}

#calculatorContent {
  box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.35);
  -webkit-box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.35);
  -moz-box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.35);
  color:#222;
  width:92vw;
  max-width:1200px;
  margin:0 auto;
  padding:2rem;
  overflow: hidden;
  background:#efefef;
  text-align: center;
}

#calculatorContent .desc{
  font-size:14px;
  margin:2rem 0;
  margin-bottom:0;
  padding:0;
  text-align: left;
}

#calculatorContent h2 {
  margin-bottom:3rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color:#867B69;
}

#calculatorContent .btn {
  font-size: 17px;
  margin: 0;
  margin-top: 2rem;
  position: relative;
  width: 195px;
  color:#fff;
  border-radius: 60px;
  letter-spacing: .05em;
  justify-content: right;
  box-shadow: 0 0 25px 1px rgba(255, 255, 255, 0.95);
  -webkit-box-shadow: 0 0 25px 1px rgba(255, 255, 255, 0.95);
  -moz-box-shadow: 0 0 25px 1px rgba(255, 255, 255, 0.95);
}

#calculatorContent .content {
  margin-top:3rem;
  padding:0;
}
#calculatorContent .summary {
  padding:2rem;
  padding-top:3rem;
  text-align:center;
}

#calculatorContent .summary label {
  text-align:center;
}

#calculatorContent label {
  color:#222;
} 

/* slider */
input[type=range] {
  height: 27px;
  -webkit-appearance: none;
  margin:0;
  width: 100%;
  background:transparent;
  border:none !important;
  }
  input[type=range]:focus {
  outline: none;
  }
  input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 1px 1px 1px #333333;
  background: #333333;
  border-radius: 15px;
  border: 0px solid #E0E0E0;
  }
  input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 1px #c89500;
  border: 1px solid #c89500;
  height: 20px;
  width: 15px;
  border-radius: 15px;
  background: #c89500;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8.5px;
  }
  input[type=range]:focus::-webkit-slider-runnable-track {
  background: #093b60;
  }
  input[type=range]::-moz-range-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 1px 1px 1px #093b60;
  background: #333333;
  border-radius: 15px;
  border: 0px solid #E0E0E0;
  }
  input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 1px #c89500;
  border: 1px solid #c89500;
  height: 20px;
  width: 15px;
  border-radius: 15px;
  background: #c89500;
  cursor: pointer;
  }
  input[type=range]::-ms-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
  }
  input[type=range]::-ms-fill-lower {
  background: #093b60;
  border: 0px solid #E0E0E0;
  border-radius: 30px;
  box-shadow: 1px 1px 1px #093b60;
  }
  input[type=range]::-ms-fill-upper {
  background: #093b60;
  border: 0px solid #E0E0E0;
  border-radius: 30px;
  box-shadow: 1px 1px 1px #093b60;
  }
  input[type=range]::-ms-thumb {
  margin-top: 1px;
  box-shadow: 0px 0px 1px #c89500;
  border: 1px solid #c89500;
  height: 20px;
  width: 15px;
  border-radius: 15px;
  background: #c89500;
  cursor: pointer;
  }
  input[type=range]:focus::-ms-fill-lower {
  background: #093b60;
  }
  input[type=range]:focus::-ms-fill-upper {
  background: #093b60;
  }
  
  .summaryContent {
    position: absolute;
    right: -105%;
    top: 0;
    height: 100%;
    width: 100%;
    max-width:100%;
    transition:all .35s ease-in-out;
    background: linear-gradient(0deg,#0a314e 0%, #131F28 40%);
    z-index:1;
  }

  .summaryContent h1 {
    background-image: linear-gradient(270deg,#fff, #ffc315);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    width: 200px !important;
    text-align: center !important;
    margin: 0 auto !important;
    font-size: 2.5rem !important;
  }

  
  .summaryContent .close-link {
    right: 1.5rem;
    top: 1rem;
    z-index:2;
  }

  .summaryContent .close-link img {
    width: 20px;
   filter: invert(1);
  }

  .summaryContent .close-link:hover img {
    filter: invert(.8);
  }

  .right0 {
    right:0 !important;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
    -webkit-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
  }

  .summaryContent .summary {
    height: 100%;
    margin: 0 !important;
  }

  .summaryContent .summary {
    color:#fff;
  }

  #summaryChart {
    margin:3rem 0;
    filter: drop-shadow(0px 0px 10px #777);
  }

  .summaryContent .summary td {
    padding:.5rem 2rem;
  }

  .principal {
    background-color: #15bd73;
    border-top-right-radius: 30%;
    border-top-left-radius: 30%;
    width: 30px !important;
    filter: drop-shadow(0px 0px 6px #777);
  }

  .interest {
    background-color: #df3327;
    border-top-right-radius: 30%;
    border-top-left-radius: 30%;
    width: 30px !important;
    filter: drop-shadow(0px 0px 6px #777);
  }

  .info p {
    margin:0;
    letter-spacing: .05em;
  }
  .summaryContent .summary .info td {
    padding:1.65rem .5rem;
    border-color:#666;
  }

  .summaryContent .summary .info tr:last-child td {
    border:none;
  }

  .summaryContent .summary .info td:last-child  {
    text-align: right;
  }

  .info td i {
    color:#ffc315;
  }
  .info td:first-child {
    color:#ddd;
  }

  .credit {
    padding-left:60px !important;
  }

  .select2 {
    width:50px !important;
    height:35px;
    position: absolute;
    left: 2rem;
  }

  .select2-results__options, .select2-results__option {
    overflow: hidden;

  }
  .select2-results__options {
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
    -webkit-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
  }
  .select2-results__options div {
    width:30px;
    height:30px;
    border-radius:50%;
    overflow:hidden;
    display:flex;
    align-items: center;
    margin:.25rem;
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
    -webkit-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
  }

  .select2-results__options span span {
    display:none;
  }

  .select2-results__options li:last-child div {
    justify-content: center;
  }
  .select2-results__options li {
    border-top:1px solid #ddd;
    text-align: center;
  }
  .select2-results__options div img {
    width:auto;
  }
  .select2-dropdown {
    border:none;
  }
  .select2-container {
    color:#0a314e;
    font-weight:600;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
    -webkit-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
  }

  .select2-container--default .select2-selection--single {
    background-color: #0a314e;
    border:none;
    border-radius: 0;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 35px;
    top: 0;
    right:2px;
  }

  .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color:#093b60;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent;
  }
  .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #fff transparent;
  }
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffc315;
    font-size: 16px;
    padding-bottom: 1px;
    line-height: 28px;
  }

.info table thead {
  display:none;
}
@media only screen and (min-width: 768px) {
  #calculator {
    padding: 14rem 1rem;
    padding-bottom:4rem;
  }
  #calculatorContent {
  padding:4rem !important;
  }
  #calculatorContent .content {
    padding-right:3rem !important;
  }
  #calculatorContent .summary {
    border-top:none !important;
  }
  #calculator .title h1 {
    font-size:2.75rem;
  }
  #calculator .title h1:before {
    top:5rem;
  }
  .summaryContent {
    right: -45%;
    width: 40%;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }
  .summary table.legend {
    margin-bottom:1rem;
  }
  .summaryContent .summary .info td {
    padding:1.5rem .5rem;
  }
  .select2 {
    left: 4rem;
  }
}