html, body {
    padding: 0;
    margin: 0;
    background: #387AC1;
    font-size: 18px;
    color: #E2F0FF;
    line-height: 1.4em;
}

body, h1, h2, h3 {
    font-family: 'Lato', 'Helvetica', 'Open Sans Condensed', sans-serif;
    font-weight: 300;
}

a:link { color:#E76465; }
a:visited { color:#E76465; }
a:hover { color:#79E7FF; }
a:active { color:#79E7FF; }

.m-1 { margin: 1em; }
.m-t-1 { margin-top: 1em; }
.m-r-1 { margin-right: 1em; }
.m-b-1 { margin-bottom: 1em; }
.m-l-1 { margin-left: 1em; }

.m-2 { margin: 2em; }
.m-t-2 { margin-top: 2em; }
.m-r-2 { margin-right: 2em; }
.m-b-2 { margin-bottom: 2em; }
.m-l-2 { margin-left: 2em; }

p {
    margin: 0 0 1em;
}

header {
    background: white;
    padding: 1em  0;
    text-align: center;
}

#logo {
    width: 400px;
}



section {
    padding: 2.5em 0 3.5em 0;
    background-image: -webkit-linear-gradient(top, rgba(0,20,50,0.1) 0%, rgba(0,20,50,0) 300px); /* Chrome10+,Safari5.1+ */
    background-image:    -moz-linear-gradient(top, rgba(0,20,50,0.1) 0%, rgba(0,20,50,0) 300px); /* FF3.6+ */
    background-image:         linear-gradient(top, rgba(0,20,50,0.1) 0%, rgba(0,20,50,0) 300px); /* W3C */
}

section h1 {
    font-weight: 500;
    color: white;
    margin-bottom: 20px;
}

section h2 {
    margin: 40px 0 30px 0;
    text-align: center;
    color: #215790;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(107, 173, 245, 0.6);
    font-size: 50px;
}


.main {
    background-color: #1A3E65;
}


.form-group .form-control {
    color: white;
    height: auto;
    background-color: rgb(11, 41, 74);
    border: 1px solid #092A4C;
    /*box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);*/
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}
.form-group .form-control:focus {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 8px rgba(102,175,233,.6);
}


.tax-inputs .form-control {
    font-weight: 400;
    font-size: 30px;
    text-align: center;
}

.tax-inputs input.form-control {
    height: 1.6em;
    line-height: 1.6em;
    padding: 0;
}

.tax-inputs select.form-control {
    height: 1.6em;
}

.form-group .form-control::placeholder { color: #4A5E85; }
.form-group .form-control::-webkit-input-placeholder { color: #4A5E85; }
.form-group .form-control:-moz-placeholder { color: #4A5E85; }
.form-group .form-control:-ms-input-placeholder { color: #4A5E85; }

.help-text {
    font-size: 14px;
    padding: 0 5px;
    margin-top: -10px;
    opacity: 0.75;
}



#result {
    opacity: 0.4;
}
#result.more,
#result.less {
    opacity: 1;
}

#diff-amount {
    display: block;
    text-align: center;
    font-size: 60px;
    font-weight: 700;
    line-height: 60px;
    margin-top: 40px;
}
#result.more #diff-amount {
    color: #79FF7D;
}

#result-description {
    padding: 0.5em 0 0 0;
    font-size: 24px;
    line-height: 28px;
}
#result-description > em {
    font-weight: 700;
}
#result.less #result-description > em {
    color: #FF7F7F;
}
#result.more #result-description > em {
    color: #79FF7D;
}




.brackets tbody td:first-child {
    padding-left: 0;
    padding-right: 0;
    width:130px;
}
.brackets tbody td:nth-child(2) {
    padding-left: 4px;
    padding-right: 0;
    width:130px;
}
.brackets tbody td:nth-child(3) {
    padding-left: 0;
    width:70px;
}


.default.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgb(46, 106, 171);
}

.default.table > tbody > tr > td,
.default.table > tbody > tr > th,
.default.table > thead > tr > td,
.default.table > thead > tr > th {
    border-top: none;
    white-space: nowrap;
}

.default.table th {
    border-bottom: 2px solid rgb(107, 173, 245);
}
.default.table th small {
    font-weight: 300;
    font-style: italic;
    white-space: nowrap;
}

.default.table tr.sub > th {
    font-size: 0.75em;
    font-weight: 300;
}

.default.table th.bord,
.default.table td.bord {
    border-right: 1px solid rgb(107, 173, 245);
}

.default.table tr.bord-top td {
    border-top: 1px solid rgb(107, 173, 245);
}

.default.table tfoot td {
    border-top: 2px solid rgb(107, 173, 245);
    font-weight: 500;
}

.table tr.emph td {
    background-color: #1A3E65;
}


.subtotals.table {
    margin-top: 2em;
}

.subtotals.table thead th {
    font-weight: 300;
}
.subtotals.table thead th > span {
    font-weight: 500;
}

.subtotals.table tbody td:not(:first-child):not(:last-child) {
    padding-left: 0;
    padding-right: 0;
}




ol.small {
    font-size: 14px;
    line-height: 16px;
    padding-inline-start: 1.5em;
}

.white {
    background-color: white;
    color: #666;
}




section.about {
    padding-top: 3em;
}

.big-quote {
    font-size: 150px;
    line-height: 65px;
    position: absolute;
    left: 0px;
}




footer {
    padding: 1em 0 4em 0;
    background-color: #1A3E65;
}

footer h4 {
    margin-top: 2em;
}

footer h5 {
    margin-top: 2em;
    margin-bottom: 0;
}

footer p {
    font-size: 16px;
    line-height: 1.25em;
    color: #9EB3CA;
}

footer .disclaimer {
    text-transform: uppercase;
    font-size: 11px;
}



@media (max-width: 450px) {

    #logo {
        width: 250px;
    }
    .tax-inputs .form-control {
        font-size: 20px;
    }
    #diff-amount {
        font-size: 50px;
    }
    .default {
        font-size: 14px;
    }
    .default td:first-child,
    .default td:nth-child(2) {
        width:90px;
    }
    .default td:nth-child(3) {
        width:55px;
    }
}

@media (max-width: 768px) {

    .main h2 {
        font-size: 40px;
        margin-top: 2em;
    }

    .main h3 {
        font-size: 20px;
        text-align: center;
    }

}

@media (max-width: 991px) {

    .default {
        font-size: 16px;
    }

    section h2 {
        font-size: 40px;
    }

}