* {
    box-sizing: border-box;
    margin:0;
    padding:0;
    font-size:16px;
    font-family: Verdana, Arial, sans-serif;
}

header, main, footer, article, fieldset, legend, textarea {
    display:block;
}

main{
    width:600px;
    margin:20px auto 0 auto;
    border: 2px solid black;
    border-radius: 20px;
    box-shadow: 5px 5px HSL(0 0% 60%);
    box-shadow: 5px 5px lightgrey;
    padding: 20px;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, Time, serif;
}

h1 {
    font-size: 24px;
    text-align: center;
}

h2 {
    font-size: 22px;
    text-align: center;
    margin-top: 16px;
}

h3 {
    font-size: 20px;
    color:red;
    font-weight: bold;
    margin-top: 10px;
}

form {
    border: 1px solid white;
    padding-left: 50px;
    position: relative;
}

label, input, select {
    display: block;
    height:32px;
    margin-top: 8px;
    vertical-align: baseline;
}

label, select {
    float:left;
    padding-top: 6px;
}

select {
    margin-left: 20px;
}

input {
    margin-left: 250px;
    padding: 0 24px;
    width: 200px;
}

/* set $ before 'Loan Amount' */
main:before{
    content:'$';
    position: absolute;
    left:330px;
    top: 64px;
    z-index: 999;
}

/* set $ before 'Extra Payment Amount' */
form:before{
    content:'$';
    position: absolute;
    left:308px;
    top: 134px;
    z-index: 999;
}

/* set % after 'Annual Interest Rate' */
form:after {
    content:'%';
    position: absolute;
    left:476px;
    top: 96px;
    z-index: 999;
}

#submit {
    font-weight: bold;
    font-size: 20px;
    border-radius: 10px;
    margin-left: 140px;
    margin-top: 20px;
}

#asterisk {
    font-weight: bold;
    font-style: italic;
    font-size: 12px;
    margin-left:50px;
    margin-bottom: 8px;
}

ol.errors li {
    margin: 8px 30px;
    color: red;
}

p.data_sumary {
    margin: 16px 30px;
}

/* set up table CSS */
table {
    margin: 16px 10px;
}

tr:nth-of-type(2n+1) {
    background-color: HSL(0 0% 80%);
    background-color: lightgray;
}

tr:nth-of-type(1) {
    background-color: HSL(0 0% 60%);
    background-color: darkgray;
}

td {
    text-align: right;
    font-size: 12px;
    padding:4px 0;
}

td.payment_number, td.payment_date {
    text-align: center;
}