:root {
  --dm-bg: #10141A;
  --dm-bg-2: #1D242B;
  --dm-bg-3: #2C3640;
  --dm-outline: #3B3E42;
  --dm-white: #FFFFFF;
  --dm-headline: #e7e9ef;
  --dm-body-text: #e7e9ef;
  --dm-blue: #2F84B2;
  --dm-light-blue: #64ACD5;
  --dm-green: #4D9AA2;
  --dm-green-2: #22A673;
  --dm-red: #D94A4A;
}

@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  src: url('../assets/fonts/notoserif-latin-normal-700.woff2') format('woff2');
  font-display: optional;
}

body.dark-mode {
    background-color: var(--dm-bg);
    color: var(--dm-body-text);
    font-family: 'Open Sans', sans-serif;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif', serif;
}

h2 {
  margin: 0 0 20px 0;
  font-size: 30px;
  line-height: 1.6;
  font-weight: 700;
  color: #084560;
}

p {
  font-size: 17px;
  line-height: 1.7;
}

table{border-spacing:0 !important;}

.static-container {
  max-width: 940px;
  margin: 100px auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .static-container {
    margin: 40px auto;
  }
  p {
    font-size: 16px;
    line-height: 1.625;
  }
  h1 {
    font-size: 24px;
    line-height: 1.4;
  }
  h2 {
    font-size: 20px;
    line-height: 1.4;
  }
}

.present-value td.datebig {
width: 100px;
text-align: right;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
}

.present-value td.date {
width: 75px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
}


.present-value td.datepv {
width: 95px;
text-align: right;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
}

.present-value td.datebv {
width: 95px;
text-align: right;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
}

.present-value td.datetop {
width: 75px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
background-color: #DEFEDE;
}

.present-value td.pmt {
width: 35px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
}

.present-value td.pmttop {
width: 35px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
background-color: #DEFEDE;
}

.present-value td.principal {
width: 75px;
text-align: right;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
}

.present-value td.principaltop {
width: 75px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
background-color: #DEFEDE;
}

.present-value td.interest {
width: 75px;
text-align: right;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
}

.present-value td.interesttop {
width: 75px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
background-color: #DEFEDE;
}

.present-value td.balance {
width: 75px;
text-align: right;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
}

.present-value td.balancetop {
width: 75px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
background-color: #fafafa;
}

.present-value tr.gray {
background-color: #fafafa;
}

.present-value tr:hover {
background-color: #ECF6FC;
}

.present-value-factors {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

.present-value-factors th,
.present-value-factors td {
  border: 1px solid rgba(223, 230, 233, 0.5);
  padding: 8px 16px;
  text-align: left;
}

.present-value-factors td {
  line-height: 1.063;
  padding: 16px;
}

.present-value-factors thead th {
  background-color: #084560;
  color: white;
  font-weight: bold;
  height: 50px;
}

.pv2 thead th {
  background-color: #2683B5;
}

.present-value-factors tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.present-value-factors tbody tr:hover {
  background-color: #eef6fb;
}

.example {
  margin: 2rem 0 40px 0;
  max-width: 600px;
}

.comparison {
border-top: 1px solid #121417;
border-right: 1px solid #121417;
}

.comparison td.one {
width: 55px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
padding: 3px;
}

.comparison td.onetop {
width: 55px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
background-color: #DEFEDE;
padding: 3px;
}

.comparison td.two {
width: 55px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
padding: 3px;
}

.comparison td.twotop {
width: 55px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
background-color: #DEFEDE;
padding: 3px;
}

.comparison td.three {
width: 100px;
text-align: center;
font-weight: bold;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
padding: 3px;
}

.comparison td.threetop {
width: 100px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
background-color: #DEFEDE;
padding: 3px;
}

.comparison td.four {
width: 100px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
padding: 3px;
}

.comparison td.fourtop {
width: 100px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
background-color: #DEFEDE;
padding: 3px;
}

.comparison td.five {
width: 150px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
padding: 3px;
}

.comparison td.fivetop {
width: 150px;
text-align: center;
border-bottom: 1px solid #121417;
border-left: 1px solid #121417;
background-color: #DEFEDE;
padding: 3px;
}

.comparison tr.gray {
background-color: #F5FFF5;
}

.comparison tr:hover {
background-color: #D0D4FF;
}

.journal-entry {
}

.journal-entry td.top {
border-bottom: 1px solid #121417;
font-weight: bold;
text-align: center;
padding: 3px;
}

.journal-entry td.gap {
width: 20px;
text-align: center;
padding: 3px;
}

.journal-entry td.entryl {
text-align: right;
width: 100px;
padding: 3px;
}

.journal-entry td.entryr {
text-align: left;
width: 100px;
padding: 3px;
}

.journal-entry td.numbl {
width: 45px;
text-align: center;
border-right: 1px solid #121417;
padding: 3px;
}

.journal-entry td.numbr {
width: 45px;
text-align: center;
padding: 3px;
}

.journal-entry td.numbul {
text-align: center;
width: 45px;
border-bottom: 1px solid #121417;
border-right: 1px solid #121417;
padding: 3px;
}

.journal-entry td.numbur {
text-align: center;
width: 45px;
border-bottom: 1px solid #121417;
padding: 3px;
}

.equation {
}

.equation td.indent {
width: 100px;
}

.equation td.left {
text-align: right;
padding: 3px;
}

.equation td.right {
text-align: left;
padding: 3px;
}

.time-line {
}

.time-line td.blank {
width: 100px;
text-align: center;
}


.time-line td.topleft {
width: 100px;
text-align: right;
}


.time-line td.topleftf {
width: 60px;
text-align: right;
}

.time-line td.rightf {
width: 60px;
text-align: center;
border-right: 1px solid #121417;
}

.time-line td.right {
width: 100px;
text-align: center;
border-right: 1px solid #121417;
}

.time-line td.topright {
width: 100px;
text-align: left;
}

.time-line td.double {
width: 100px;
text-align: right;
border-bottom: 1px solid #121417;
border-right: 1px solid #121417;
}

.time-line td.bottom {
width: 100px;
text-align: right;
border-bottom: 1px solid #121417;
}

.time-line td.middle {
width: 30px;
text-align: right;
border-bottom: 1px solid #121417;
}


.time-line td.middler {
width: 30px;
text-align: right;
border-bottom: 1px solid #121417;
border-right: 1px solid #121417;
}

.time-line td.middleb {
width: 30px;
text-align: right;
}

.time-line td.break {
width: 30px;
text-align: center;
}

.time-line td.breakright {
width: 30px;
border-right: 1px solid #121417;
text-align: center;
}

.time-line td.breakr {
width: 30px;
text-align: right;
}

.compounding {
border-top: 1px solid #121417;
border-right: 1px solid #121417;
}

.compounding td.threetop {
width: 120px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
background-color: #FEFCDA;
}

.compounding td.three {
width: 120px;
text-align: center;
border-left: 1px solid #121417;
border-bottom: 1px solid #121417;
padding: 3px;
background-color: #FDFCED;
}

.small {
font-size: 10px;
}

.smally {
font-size: 11px;
}

.smalls {
font-size: .9em;
}

/* Dark Mode Styles */
body.dark-mode .present-value-factors {
  color: #e5e7eb;
}

body.dark-mode .present-value-factors thead th {
  background-color: #2683B5;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .present-value-factors td {
  border-color: var(--dm-outline);
}

body.dark-mode .present-value-factors tbody tr:nth-child(even) {
  background-color: var(--dm-bg);
}

body.dark-mode .present-value-factors tbody tr:nth-child(odd) {
  background-color: var(--dm-bg-2);
}

body.dark-mode .present-value-factors tbody tr:hover {
  background-color: var(--dm-bg-3);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode p {
  color: #e5e7eb;
}