body,
html {
  overflow-x: hidden;
  height: 100%;
}

body {
 margin: 0;
 max-width: 100%;
}

a {
  text-decoration: none;
}

header {
  max-width: 100%;
  background-color: #bbbbbb;
  position: relative;
}

header p {
  margin: 0 auto;
  padding: 16px;
  max-width: 207px;
  width: 100%;
}

#input-wrapper {
  max-width: 100%;
  background-color: #5489a9;
  padding: 1px;
  border-bottom: 8px solid #416d88;
}

#input-content {
  max-width: 961px;
  margin: 50px auto;
  background-color: #ffffff;
  border-radius: 10px;
  -moz-border-radius: 10px;
  box-shadow: none;
  -moz-box-shadow: none;
  -o-box-shadow: none;
  overflow: hidden;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

#form-title {
  line-height: 1.2em;
  font-size: 45px;
  font-weight: normal;
  color: #777777;
  margin: 0;
}

#share {
    height: 238px;
}

#share ul {
  padding-left: 0;
}

.orange {
  color: #ff7d00;
}

a span.orange:hover {
  color: #db0303;
}

div.subcolumn a:hover span {
  color: #db0303;
}

#input-form {
  display: block;
  max-width: 860px;
  margin: 48px auto;
  padding: 0 4px;
  position: relative;
}

#input-prompt {
  font-size: 17px;
  color: #777777;
  padding-left: 0px;
  padding-top: 20px;
  display: block;
}

#calc-input {
  margin-top: 9px;
  margin-left: 4px;
  font-size: 15px;
  color: #444;
  line-height: 1em;
  border: none;
  z-index: 1;
  width: 86%;
}

#fbad {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

#fbad a.fb {
  line-height: 24px;
}

#calc-input:focus {
  outline: none;
}

#input-box {
  border: 1px solid #ff9339;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -moz-box-shadow: 0 0 0 3px #ffc230;
  -webkit-box-shadow: 0 0 0 3px #ffc230;
  -o-box-shadow: 0 0 0 3px #ffc230;
  box-shadow: 0 0 0 3px #ffc230;
  height: 36px;
  width: 99.7%;
  margin-top: 10px;
}

#submit-calc {
  width: 20px;
  height: 19px;
  margin: 0;
  padding: 0;
  background: #fb6c1d;
  border: 0 none;
  border-radius: 2px;
  cursor: pointer;
  color: #ffffff;
  -webkit-appearance: none;
  z-index: 2;
  position: relative;
  float: right;
  top: 9px;
  right: 11px;
}

#submit-calc:hover {
    background: #db0303;
}

#submit-eq {
  z-index: 3;
  border: solid #ffffff;
  border-width: 2px 0px;
  height: 3px;
  margin-left: 5px;
  margin-top: 6px;
  position: relative;
  width: 10px;
}

#main-content-wrapper {
    background-color: #ffffff;
    margin: 50px 0;
    width: 100%;
}

#main-content {
  max-width: 961px;
  margin: 0 auto;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

#main-content p {
  color: #535353;
  font-size: 15px;
  line-height: 1.8;
}

#main-left-col {
  width: 100%;
  display: inline-block;
  border-right: 1px solid #d1d1d1;
  box-shadow: none;
  max-width: 540px;
  padding-right: 40px;
}

#main-left-top {
  border-bottom: 1px solid #d1d1d1;
  padding: 0 0 15px;
}

#main-left-bot {
  padding: 20px 0;
  max-width: 600px;
}

#main-right-col {
  display: inline-block;
  max-width: 310px;
  width: 100%;
  padding-left: 40px;
  vertical-align: top;
  padding-top: 2px;
}

h2 {
  line-height: 1.3em;
  font-weight: normal;
}

.title {
    color: #447A99;
    margin-bottom: 10px;
    margin-top: 0;
}

.large {
  font-size: 27px;
}

.medium {
  font-size: 22px;
  line-height: 1.5;
}

.subcolumn {
  max-width: 49.5%;
  display: inline-block;
  vertical-align: top;
}



.text.orange {
  line-height: 22px;
}

.small-equation-form {
  margin: 22px 0;
}

.small-equation-form p {
  margin: 0;
}

.mathjax-typeset {
  visibility: hidden;
}

form.calculate {
  position: relative;
}

form.calculate span.example-input {
  color: #535353;
  font-style: normal;
}

form.calculate span.example-input {
  border: 1px solid #c8c8c8;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -o-transition: all 0.2s;
  -transition: all 0.2s;
}

span.example-input {
  background-color: transparent;
  width: calc(100% - 20px);
  line-height: 16px;
  margin-top: 7px;
  margin-left: 0;
  padding: 5px 35px 5px 10px;
  color: #444;
  font-size: 12px;
  white-space: normal;
  word-wrap: break-word;
  resize: none;
  display: inline-block;
  line-height: 1.45;
}

form.calculate span:hover, form.calculate:hover span.example-input {
  cursor: pointer;
  border: 1px solid #ffa854;
  box-shadow: 0 0 2px #ffcb00;
}

img.equal-button-image {
  width: 13px;
  height: 14px;
  position: absolute;
  right: -18px;
  top: 15px;
  opacity: 0;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -o-transition: all 0.2s;
  -ms-transition: all 0.2s;
  transition: all 0.2s;
}

form.calculate input[type=submit] {
  background: none;
  border: none;
  color: #8d8d8d;
  position: absolute;
  top: 5px;
  right: -23px;
  line-height: 28px;
  height: 28px;
  font-size: 16px;
}

#extra-wrapper {
  width: 100%;
  background-color: #f6f6f6;
  padding: 35px 0;
  border-top: 1px solid #d1d1d1;
}

#extra-content {
  max-width: 961px;
  margin: 0 auto;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

.extra-row {
  border-bottom: 1px solid rgba(126,126,126,0.2);
  padding-bottom: 40px;

}

.extra-row a {
  color: #ff831f;
}

.extra-row a:hover{
  color: #db0303;
}

.extra-row:last-child {
  padding-top: 40px;
  border-bottom: none;
}

.extra-row-col {
  width: 46%;
  display: inline-block;
  vertical-align: top;
  padding-right: 3%;

}

.extra-row-col:last-child {
  padding-right: 0px;
  padding-left: 0px;
}

.extra-row p {
  font-size: 13px;
  line-height: 2.7em;
  margin: 0;
}

.grey {
  color: #7e7e73;
}

span.title.medium.grey {
  display: block;
  color: #777777;
  font-size: 20px;
    line-height:1.8;
}

.white-box {
  border: 1px solid rgba(126,126,126,0.2);
  background: #ffffff;
  margin-top: 40px;
  padding: 20px 20px 10px;
}

.white-box .white-box-content {
  margin-top: 10px;
  margin-bottom: 10px;
}

.white-box .spike-logo {
  width: 20px;
  margin-bottom: -5px;
}

.white-box .white-box-title {
  color: #447a99;
  font-size: 12px;
}

.subcolumn img {
  max-width: 100%;
}

.img-asset {
  max-width: 100%;
}

.links-no-wrap {
  white-space: nowrap;
}

.calculatorLinkCol {
  display: inline-block;
  vertical-align: top;
  padding-bottom: 10px;
  width: 300px;
}

@media (max-width: 1150px) {
  #share {
    display: none;
  }
}

@media (max-width: 1055px) {
  #main-content,
  #extra-content {
    margin: 0 4vw;
  }

  #main-left-col {
    width: 54%;
    padding-right: 4%;
}

  #main-right-col {
    width: 33%;
    padding-left: 4%;
}

  .subcolumn {
    max-width: 45.5%;
  }

  .subcolumn:last-child {
    margin-left: 10px;
  }
}


@media (max-width: 1038px) {

  .pagewidth {
    margin: 0 40px;
  }
    #input-content{
    margin: 6vw 4vw 6vw;
    padding: 0vw 4vw 2vw;
  }
}





@media (max-width: 850px) {
  #queryBar {
    display: none;
  }
      #main-left-col {
    width: 100%;
    max-width: 675px;
    box-shadow: none;
    border-right: none;
  }
    #main-right-col {
    width: 100%;
    max-width: 675px;
    padding-left: 0;
    border-top: 1px solid #d1d1d1;
    padding-top: 30px;
    margin-top: 15px;
}
    .small-equation-form {
    margin: 22px 20px 22px 0px;
}

}


@media (max-width: 670px) {

  .subcolumn:last-child {
    margin-left: 20px;
  }

  .extra-row-col {
    width: 100%;
    display: inline-block;
    padding: 0;
  }

  .extra-row-col:last-child {
    padding: 0;
  }

   #main-content-wrapper {
    margin: 8vw 0;
    }

   #input-prompt {
   padding-top: 4vw;
 }

}



@media (max-width: 650px) {
  #nav {
    display: none;
  }

  footer.common ul:not(.copy) {
    display: none;
  }

  footer.common ul.copy,
  ul.copy a:link {
    font-size: 11px !important;
  }

  footer.common ul.copy {
    padding-top: 20px !important;
  }

  footer.common {
    height: 60px !important;
  }

    #input-form {
    margin: 0 auto;
  }
    #input-content{
        padding: 4px 0;
    }

          #input-wrapper {
    background-color: #ffffff;
    border-bottom: 1px solid #d1d1d1;
  }

    span.title.medium.grey {
    font-size: 20px;
  }
}



@media (max-width: 366px) {
  .subcolumn {
    max-width: 44.5%;
  }
}





#redirectBanner {
  height: 40px;
  background: #ff892f;
}

#bannerContent {
  margin: auto;
  display: table;
  width: 961px;
  padding-top: 10px;
}

#bannerText {
  float:left;
  font-style: normal;
  font-size: 15px;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #ffffff;
}

a#redirectLink{
  float: left;
  font-style: normal;
  font-size: 15px;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #ffffff;
}

a#redirectLink:hover {
  color: #ffe2b5;
}

.MathJax nobr>span.math>span{border-left-width:0 !important}; //needed because we don't have the most recent version of mathjax
