/* Typography & Base Styles */
body, p, h1, h2, h3, h4, a {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
p { margin: 5px 0 8px; }
img { border: 0; }

h1, h2, h3, h4 {
    color: #006633;
    font-weight: bold;
    margin: 12px 0 8px;
}
h1 { font-size: 20pt; }
#resulth1 {
    background-color: #ffefe7;
    border-top: 1px dotted #930;
    padding: 0 5px;
}
h2 { font-size: 18pt; margin-bottom: 2px; }
h3 { font-size: 16pt; }
h3 a { color: #417516; }
h3 a:hover, a:hover { text-decoration: none; }
h4 { font-size: 13pt; margin: 0; }

a {
    color: #063;
    text-decoration: underline;
}

/* Layout */
#clear {
    clear: both;
    margin: auto;
    height: 1px;
}

#headerout, #occontent, #octitle {
    background: #006633;
    color: #fff;
}

#header, #contentout, #footerin {
    width: 990px;
    margin: 0 auto;
    overflow: auto;
    text-align: left;
}

#header {
    height: 60px;
    padding: 0;
    text-align: left;
}
#logo {
    float: left;
    width: 300px;
    padding: 16px 0 0;
}
#content { float: left; width: 620px; padding-bottom: 15px; }
#right { float: right; width: 336px; text-align: center; }

#footer {
    background: #e1e1e1;
    padding: 25px 0;
    font-size: 13px;
    color: #555;
    text-align: center;
}
#footer a {
    color: #444;
}

/* Navigation */
#menu, #menuon {
    font-size: 16px;
    margin: 5px auto;
    padding-top: 2px;
    border-bottom: 1px solid #888;
    text-align: left;
}
#menu ul, #menuon ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
#menu li, #menuon li { display: inline; }

#menu a, #menuon a {
    padding: 8px;
    border: 1px solid #888;
    text-decoration: none;
    font-weight: bold;
}
#menu a {
    background: #006633;
    color: #fff;
    border-bottom: 0;
}
#menu a:hover {
    background: #eee;
    color: #006633;
}
#menuon a {
    background: #eee;
    color: #006633;
    border-bottom: 1px solid #eee;
}

/* Other Calculators Box */
#othercalc {
    border: 1px solid #006633;
    margin: auto;
    text-align: left;
}
#octitle {
    padding: 6px 12px;
    font-size: 17px;
}
#octitle a {
    color: #fff;
    text-decoration: none;
}
#octitle a:hover {
    text-decoration: underline;
}
#occontent a {
    display: block;
    padding: 6px 12px;
    background: #eee;
    color: #006633;
    font-size: 15px;
    text-decoration: none;
}
#occontent a:hover {
    background: #ddd url('/images/down-arrow.svg') no-repeat right 6px center;
}
.occontenton {
    padding: 6px;
    background: #eee;
    color: #006633;
}
.occontenton a {
    color: #006633;
}
#ocsubnav {
    background: #fff;
    font-size: 13px;
    font-weight: normal;
}
#ocsubnav a {
    display: inline-block;
    width: 150px;
    padding: 5px 2px 5px 14px;
    color: #006633;
    text-decoration: none;
}
#ocsubnav a:hover {
    text-decoration: underline;
}

/* Calculator Table */
#uctable, #undctable {
    background: #eee;
    border-radius: 4px;
}
#uctable { width: 620px; }
#undctable {
    border: 1px solid #ccc;
    padding: 8px;
    margin-top: 15px;
}
.uccell { padding: 1.2ex 1.5ex; width: 230px; }

.ucinput, .ucdcinput {
    padding: 8px;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: 2px 2px 3px #666;
    font-size: 20px;
}
.ucinput { width: 258px; }
.ucdcinput { width: 200px; }

.ucdcsubmit {
    padding: 6px 15px;
    font-size: 18px;
    background: #006633;
    color: #fff;
    font-weight: bold;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: 2px 2px 3px #666;
}
.ucdcsubmit:hover {
    background: #fff;
    color: #006633;
}
.ucselect {
    width: 100%;
    padding: 3px;
    font-size: 16px;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: 2px 2px 3px #666;
}
.ucresulttext {
    padding: 5px 10px;
    font-size: 18px;
}

/* Table */
.datatable {
    font-size: 16px;
}
.datatable th {
    background: #406b04;
    color: #fff;
    padding: 3px 10px;
    border: 1px solid #000;
}
.datatable td {
    padding: 3px 10px;
    border: 1px solid #ccc;
}

/* Other */
.allunits { font-size: 16px; }
.allunits li { padding-top: 8px; }

#calResults, #ucresult {
    border-radius: 5px;
    text-align: center;
    padding: 10px 5px;
    margin: 2px 0;
}

#findutoc {
    padding: 1px 10px 0;
    background: #e2f4eb;
    border: 1px solid #669966;
}
#futcResult {
    padding: 15px 0;
}
#futcResult div {
    margin-bottom: 5px;
    padding: 8px;
    background: #fff;
    border-radius: 5px;
}
#futcResult div i {
    font-weight: bold;
    color: red;
    font-size: 16px;
}
#futcResult div span {
    padding-left: 20px;
    color: #406b04;
}

/* Scientific Calculator */
#sciout {
    padding: 2px 5px 5px;
    border: 1px outset #ccc;
    border-top: 1px solid #ccc;
    background: #eee;
}
#sciInPut {
    width: 530px;
    font-size: 16px;
    color: #000;
    text-align: right;
    padding: 5px 10px 0 0;
}
#sciOutPut {
    font-size: 17px;
    padding: 3px;
    background: #333;
    color: #fff;
    text-align: right;
    border: 1px solid #333;
}

.scifunc, .sciop, .scinm, .scieq {
    display: inline-block;
    vertical-align: middle;
    width: 50px;
    height: 28px;
    margin: 1px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border-radius: 3px;
}
.scifunc {
    background: #ddd;
    color: #000;
    border: 1px solid #aaa;
}
.scifunc:active {
    background: #000;
    color: #fff;
}
.sciop {
    background: #ccc;
    color: #000;
    border: 1px solid #888;
}
.sciop:active {
    background: #000;
    color: #fff;
}
.scinm, .scieq {
    background: #333;
    color: #fff;
    border: 1px solid #333;
}
.scieq:active {
    background: red;
    color: #fff;
}
.scinm:active {
    background: #aaa;
    color: #000;
}
.scird {
    display: inline-block;
    vertical-align: middle;
    height: 28px;
    margin: 1px;
    font-size: 13px;
    color: #262626;
    border: 1px solid #eee;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 800px) {
    #logo { width: 200px; padding: 6px 0 0 6px; }
    #logo img { width: 216px; height: 21px; }
    #header, #contentout, #footerin { width: auto; }
    #content { width: auto; }
    #right { width: 100%; }
}

@media (max-width: 610px) {
    .ucdcinput { width: 160px; }
    .ucdcsubmit { font-size: 17px; padding: 6px 10px; }
    #uctable { width: 400px; }
    .uccell { width: 200px; padding: 0.5ex; }
    .ucinput { width: 180px; }
    #menu, #menuon { font-size: 13px; }
    #qcscif { display: none; }
    #sciInPut { width: auto; }
}

@media (max-width: 430px) {
    .uclabel { display: none; }
    #uctable { width: 320px; }
    .uccell { width: 160px; }
    .ucinput { width: 145px; }
    #menu a, #menuon a { padding: 8px 3px; }
    #qcscif, #sciInPut { display: none; }
}
