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

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

a {
  text-decoration: none;
}

header {
  height: 50px;
  max-width: 100%;
  background-color: #bbbbbb;
  position: relative;
  overflow-x: hidden;
}

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

#input-wrapper {
  max-width: 100%;
  background-color: #ffb33f;
  padding: 1px;
}

#input-content {
  max-width: 961px;
  min-height: 187px;
  margin: 42px auto;
  background-color: #ffffff;
  border-radius: 20px;
  -moz-border-radius: 20px;
  box-shadow: 0 0 10px 2px #f47f1d;
  -moz-box-shadow: 0 0 10px 2px #f47f1d;
  -o-box-shadow 0 0 10px 2px #f47f1d;
  overflow: hidden;
  font-family: 'PT Serif', 'Georgia', 'Times', 'serif';
}

#form-title {
  line-height: 39px;
  font-size: 37px;
  font-weight: normal;
  color: #8e8e8e;
  margin: 0;
  padding-top: 9px;
}

#share ul {
  padding-left: 0;
}

.orange {
  color: #ff831f;
}

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

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

#input-form {
  display: block;
  max-width: 910px;
  margin: 20px auto;
  padding: 1px;
  position: relative;
}

#input-prompt {
  font-size: 17px;
  color: #8d8d8d;
  padding-left: 4px;
  padding-top: 10px;
  display: block;
}

#calc-input {
  margin-top: 7px;
  margin-left: 4px;
  font-size: 16px;
  color: #444;
  line-height: 16px;
  border: none;
  z-index: 1;
  width: 93%;
}

#fbad {
  font-family: Arial, Helvetica, sans-serif;
}

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

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

#input-box {
  border: 1px solid #fa6800;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-box-shadow: 0 0 0 2px #fed36e, 0 0 0 4px #ffc104, 2px 2px 4px 4px #ccc;
  -webkit-box-shadow: 0 0 0 2px #fed36e, 0 0 0 4px #ffc104, 2px 2px 4px 4px #ccc;
  -o-box-shadow: 0 0 0 2px #fed36e, 0 0 0 4px #ffc104, 2px 2px 4px 4px #ccc;
  box-shadow: 0 0 0 2px #fed36e, 0 0 0 4px #ffc104, 2px 2px 4px 4px #ccc;
  height: 35px;
  width: 100%;
  margin-top: 10px;
}

#submit-calc {
  width: 15px;
  height: 15px;
  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: 11px;
  right: 11px;
}

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

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

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

#main-content p {
  font-size: 13px;
  line-height: 30px;
}

#main-left-col {
  max-width: 558px;
  width: 100%;
  display: inline-block;
  box-shadow: 1px 0 rgba(68,122,153,0.3);
  padding-right: 20px;
}

#main-left-top {
  border-bottom: 1px solid rgba(68, 122, 153, 0.2);
  padding: 20px 0;
}

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

#main-right-col {
  display: inline-block;
  max-width: 360px;
  width: 100%;
  padding-left: 17px;
  vertical-align: top;
  padding-top: 20px;
}

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

.title {
  color: #447A99;
  margin-bottom: 15px;
  margin-top: 12px;
}

.large {
  font-size: 25px;
}

.medium {
  font-size: 18px;
  line-height: 25px;
}

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

#main-content .line-height-small {
  line-height: 22px;
}

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

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

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

.mathjax-typeset {
  visibility: hidden;
}

form.calculate {
  position: relative;
}

form.calculate span.example-input {
  color: #313131;
  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.4;
}

form.calculate span:hover, form.calculate:hover span.example-input {
  cursor: pointer;
  box-shadow: 0 0 10px #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: -22px;
  line-height: 28px;
  height: 28px;
  font-size: 17px;
}

#extra-wrapper {
  width: 100%;
  background-color: #f6f6f6;
  padding: 35px 0;
  border-bottom: 1px solid rgba(126,126,126,0.2);
}

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

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

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

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

.extra-row-col {
  width: 47.5%;
  display: inline-block;
  vertical-align: top;
  padding-right: 20px;
}

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

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

.grey {
  color: #7e7e73;
}

span.title.medium.grey {
  display: block;
}

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

.white-box .white-box-content {
  margin-top: 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;
}

@media (max-width: 1038px) {
  #input-content {
    margin: 42px 4vw;
  }

  .pagewidth {
    margin: 0 40px;
  }

  #input-form {
    margin: 20px 18px;
  }
}

@media (max-width: 461px) {
  #calc-input {
    width: 88%;
  }
}

@media (max-width: 850px) {
  #queryBar {
    display: none;
  }
}

@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;
  }
}

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

  #main-left-col {
    width: 55%;
  }

  #main-right-col {
    width: 40%;
  }

  .subcolumn {
    max-width: 45.5%;
  }

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

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

@media (max-width: 983px) {
  .extra-row-col {
    width: 46.5%;
    padding-right: 15px;
  }
}

@media (max-width: 923px) and (min-width: 784px) {
  #main-right-col {
    width: 39%;
  }
}

@media (max-width: 785px) {
  #main-right-col {
    width: 37%;
  }
}

@media (max-width: 670px) {
  #main-left-col {
    width: 100%;
    box-shadow: none;
  }

  #main-right-col {
    display: none;
  }

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

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

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

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

#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: Arial;
  color: #ffffff;
}

a#redirectLink{
  float: left;
  font-style: normal;
  font-size: 15px;
  font-family: Arial;
  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
