@media print {
  #Results {
    width: 100%;
  }
}

@media screen {
  body {
    background: #f3f3f3;
  }

  #Print {
    display: none;
  }

  #Results {
    margin-left: 2em;
    border: 1px solid #666;
    color: darkgreen;
    font-weight: bold;
    background: #f4f4f4;
  }

  table.Stats div, div.interpretation, tr.interpretation div {
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
  }
}

#caesBranding {
  font-size: 18px;
}

#Main {
  background: white;
  border: 1px solid #aaa;
  padding: 0;
  box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
}

#Main h1 {
  font-size: 120%;
  color: #369;
  text-align: center;
  background: #f8f8f8;
  margin: 0;
  padding: 0.5em;
}

#Main h1 div {
  font-size: 90%;
  color: brown;
}

#Main section {
  display: none;
  padding-bottom: 3em;
}

#Main h2 {
  margin-top: 1em;
}

#Main h4 {
  color: #369;
}

#Main h4 span {
  font-weight: normal;
}

#Main nav {
  display: flex;
  flex-direction: row;
}

#Main nav div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(100%/2);
  border: 2px solid white;
  box-sizing: border-box;
  font: bold 14px verdana;
  line-height: 1.5em;
  text-align: center;
  background: #333;
  color: #eee;
  height: 8.5em;
  border: ridge;
  cursor: pointer;
  padding: 0.5em;
}

#Main nav div.selected {
  background: gold;
  color: #246;
}

#Main div.footer {
  padding: 1em;
  padding-top: 0;
  background: #f8f8f8;
  border-top: 1px solid #ccc;
  margin-top: 1em;
}

#Main h2 {
  text-align: center;
  text-transform: none;
  color: #369;
}

#Main h3 {
  text-align: center;
  text-transform: none !important;
  color: #369;
  font-size: 15px;
}

input[type=number] {
  background: lightyellow;
  text-align: right;
}

input[type=date],
select {
  background: lightyellow;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

#Inputs {
  width: 35em;
}

#Inputs td {
  text-align: right;
}

#Inputs td:nth-child(2),
#Inputs th:nth-child(2) {
  border-left: 1px solid black;
}

.main th {
  background: #def;
}

#Results table {
  width: 100%;
}

#Results td {
  width: 25%;
}

#Results, #Results table {
  text-align: center;
}

.nopadding {
  padding: 0 !important;
}

#Results td:nth-child(1) {
  text-align: left;
}

#Paste {
  display: none;
  position: absolute;
  opacity: 0;
}

.main .links td {
  font: 13px arial;
}

.main .links td:nth-child(1) {
  white-space: nowrap;
}

.main .links strong {
  color: red;
}

#Intro {
  padding: 0 10%;
}

.Flowchart {
  font: 13px verdana;
}

.Questions {
  padding: 0 5%;
}

.question tr:nth-child(1) {
  background: gold;
}

.question tr:nth-child(2) {
  background: #faa;
}

.question tr:nth-child(3) {
  background: #ddd;
}

.question tr:nth-child(4) {
  background: #ccc;
}

.question tr:nth-child(5) * {
  background: #246;
  color: white !important;
}

.question tr:nth-child(6) * {
  background: #44f;
  color: white !important;
}

.question tr:nth-child(7) {
  background: gold;
  font-weight: bold;
  text-align: center;
}

.question td:nth-child(2) {
  white-space: nowrap;
}

.Questions .question p {
  color: #666;
  font-size: 80%;
}

.Questions .question span {
  font-size: 80%;
}

.question strong {
  color: #246;
  font-size: 120%;
}

.Questions .question td {
  vertical-align: middle;
}

.Questions label:hover {
  color: blue;
  cursor: pointer;
}

.Questions .question td:nth-child(2) p {
  font-size: 110%;
}

#Intro .Questions td:nth-child(3) {
  display: none;
}

.Questions td:nth-child(3) p {
  font-size: 110%;
}

#Intro .Questions tr:nth-child(n+2) {
  display: none;
}

.Questions td:nth-child(1) {
  width: 25em;
}

table.Stats {
  width: 50em;
  display: none;
  margin: 1em 2em;
  background: #eee;
  border: 1px solid #aaa;
}

table.Stats tr.days {
  display: none;
}

table.Stats td:nth-child(1) {
  width: 13em;
}

table.Stats tr {
  display: table-row;
}

table.Stats div {
  display: none;
}

th.unit {
  font-weight: normal;
  text-align: left;
}

#Calculator {
  display: none;
  zposition: fixed;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
  overflow: auto;
  padding: 0.5em;
  margin: 1em auto;
  margin: 0;
  background: #eee;
  zborder: 1px solid #bbb;
  zbox-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
}

#Calculator > table {
  margin: auto;
  border: none;
}

#Calculator table td {
  border: none;
}

#Calculator table table td {
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #bbb;
}

#Calculator table table {
  background: white;
}

#Calculator td:nth-child(3) {
  width: 6em;
}

#Calculator input[type=text] {
  width: 8em;
  background: lightyellow;
}

#Calculator td:nth-child(5) {
  text-align: center;
}

#Calculator td:nth-child(n+1) {
  padding: 0;
}

#Calculator td input[type=text],
#Calculator td input[type=number],
#Calculator td select {
  width: calc(100% - 1px);
  height: calc(100% - 1px);
  box-sizing: border-box;
  border: 1px solid #eee;
}

#Calculator #Results td {
  padding: 0.5em;
}

#Results td:nth-child(2) {
  width: 7em;
}

.needed span {
  font-size: 40px;
}

div.CFRsource, div.CFRstage, div.CFRresult,
div.AGRsource, div.AGRstage, div.AGRresult,
div.interpretation {
  display: none;
}

.disabled {
  pointer-events: none;
  color: silver;
}

.disabled input {
  zdisplay: none;
  visibility: hidden;
}

#Covered {
  font-size: 110%;
}

#Covered .Questions label {
  display: block;
  box-sizing: border-box;
  padding: 0.5em 2em;
  text-indent: -18px;
  transform: translateX(20px);
}

label.selected {
  background: #bfb;
  border: 1px solid #ccc;
  border-radius: 5px;
}

table.Stats div, div.interpretation, tr.interpretation div {
  padding: 1em;
  margin: 0.5em;
  text-indent: 0;
  background: lightyellow;
  border-radius: 5px;
  border: 1px solid #ccc;
}

tr.interpretation {
  display: none;
}

div.note {
  padding: 1em 2em;
  margin-top: 2em;
}

div.note em {
  color: red;
}

div.note strong em {
  color: inherit;
}

.indent {
  padding-left: 2em;
}

div.left {
  display: inline-block;
  padding-right: 3em;
  width: 40%;
  vertical-align: top;
  border-right: 1px solid #ddd;
}

div.right {
  display: inline-block;
  width: 40%;
}

#Main.quote .quote {
  background: #eee;
  color: brown !important;
  font-style: italic;
}

button.calculated, button.calculator {
  font-size: 120%;
}

#Covered input:focus {
  background: yellow;
}

#Covered input {
  text-align: left;
}

div.note table {
  font-size: 80%;
}

div.agreement {
  position: absolute;
  z-index: 1;
  left: 50%;
  ztop: 50%;
  transform: translatex(-50%);
  background: #f8f8f8;
  border: 1px solid black;
  box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
  padding: 3em;
  border-radius: 20px;
  font-size: 110%;
}

div.agreement li {
  margin-bottom: 1em;
}

div.agreement button {
  display: block;
  margin: auto;
  font-size: 120%;
}

div.program {
  visibility: hidden;
}

span.note {
  color: brown !important;
}

.left {
  text-align: left;
}

ul.buttons li {
  border-bottom: 1px solid gray;
  margin-bottom: 1em;
}

.main table td {
  font-size: 14px;
}

table.misc td {
  padding: 0.5em !important;
}

tr.applicable, tr.applicableYes, .applicableNo {
  display: none;
}

button.print {
  float: right;
  font-size: 120%;
}

#Print .Inputs {
  page-break-after: always;
}

#Print .Disclaimer {
  font-size: 14px;
  margin-top: 2em;
}

#Print h2 {
  font-size: 110%;
}

#Print table * {
  font-size: 14px;
}

#Print table {
  margin-bottom: 2em;
}

#Print input, #Print select {
  border: none;
  background: transparent;
}

#Print h1 {
  text-align: center;
  font-size: 16px;
}

@-moz-document url-prefix() { 
  .noFirefox {
    display: none;
  }
}

a.link {
  text-decoration: underline !important;
  color: inherit !important;
}

#Main h1 {
  position: relative;
}

#LSpan {
  font-size: 90%;
  z-index: 1;
}

#Main * {
  font: 10pt verdana;
}

#Main {
  width: 1200px;
  margin: auto;
}