body {
    margin: 0px;
    margin-top: 30px;
    background: #f1f1f1;
    text-align: left;
    font: 14px/18px OverlockRegular;
}

img {
    border: 0px;
}

h1 {
    font: 50px/70px OverlockBold;
    color: #296497;
    text-shadow: 0px 1px 1px #ffffff;
    filter: dropshadow(color=#ffffff, offx=0, offy=1);
    float: left;
}

.inside {
    margin: 0px auto;
    width: 940px;
}

#top a,
#top a:active,
#top a:link,
#top a:visited {
    font: 16px/60px OverlockRegular;
    color: #296497;
    text-decoration: none;
    margin-left: 30px;
    padding-top: 40px;
    float: right;
}

#top a:hover {
    text-decoration: underline;
}

#header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    background: #f1f1f1;
    text-align: justify;
    font: 18px/28px OverlockRegular;
    color: #474b4f;
    filter: Shadow(Color=Red, Direction=0, Strength=1);
    text-shadow: 0px 1px 1px #ffffff;
    filter: dropshadow(color=#ffffff, offx=0, offy=1);
    border-bottom: 1px dotted #d7d7d7;
}

#siminput {
    float: left;
}

button::-moz-focus-inner {
    border: 0;
}

button.button-blue {
    background-color: #306b9c;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #306b9c), color-stop(100%, #255c8f));
    background-image: -webkit-linear-gradient(top, #306b9c, #255c8f);
    background-image: -moz-linear-gradient(top, #306b9c, #255c8f);
    background-image: -ms-linear-gradient(top, #306b9c, #255c8f);
    background-image: -o-linear-gradient(top, #306b9c, #255c8f);
    background-image: linear-gradient(top, #306b9c, #255c8f);
    border: 1px solid #1c4f7b;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 0 0 #3d7eb6;
    -moz-box-shadow: inset 0 1px 0 0 #3d7eb6;
    box-shadow: inset 0 1px 0 0 #3d7eb6;
    -webkit-box-shadow: inset 0 1px 0 0 #3d7eb6;
    color: #f1f1f1;
    font: 18px/28px OverlockBold;
    text-align: center;
    text-shadow: 0px 1px 2px #333333;
    filter: dropshadow(color=#333333, offx=0, offy=1);
    margin-bottom: 5px;
}

button.small {
    font: 13px/23px OverlockBold;
}

button.button-blue:hover {
    background-color: #3671a1;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #3671a1), color-stop(100%, #22578a));
    background-image: -webkit-linear-gradient(top, #3671a1, #22578a);
    background-image: -moz-linear-gradient(top, #3671a1, #22578a);
    background-image: -ms-linear-gradient(top, #3671a1, #22578a);
    background-image: -o-linear-gradient(top, #3671a1, #22578a);
    background-image: linear-gradient(top, #3671a1, #22578a);
    border: 1px solid #1b466a;
    cursor: pointer;
    text-decoration: underline;
}

button.button-blue:active {
    border: 1px solid #1b466a;
    text-decoration: underline;
    -webkit-box-shadow: inset 0 0px 0 0 #000000;
    -moz-box-shadow: inset 0 0px 0 0 #000000;
    box-shadow: inset 0 0px 0 0 #000000;
    -webkit-box-shadow: inset 0 0px 0 0 #000000;
}

#status {
    font: 18px/40px OverlockRegular;
    color: #474b4f;
    background: #f1f1f1;
    text-shadow: 0px 1px 1px #ffffff;
    filter: dropshadow(color=#ffffff, offx=0, offy=1);
    float: right;
}

#simchart {
    height: 500px;
    width: 610px;
    float: right;
    position: relative;
    z-index: 10;
}

#results {
    font: 16px/22px OverlockBold;
    color: #296497;
    text-shadow: 0px 1px 1px #ffffff;
    filter: dropshadow(color=#ffffff, offx=0, offy=1);
    visibility: hidden;
    z-index: 100;
}

.ResultValue {
    margin-right: 30px;
    font: 14px/22px OverlockBold;
    color: #474b4f;
    text-shadow: 0px 1px 1px #ffffff;
    filter: dropshadow(color=#ffffff, offx=0, offy=1);
}

.formbox {
    margin-bottom: 30px;
    width: 300px;
    background: #296497;
    border: 5px solid #296497;
    font: 14px/28px OverlockBold;
    color: #f1f1f1;
    text-shadow: 0px 1px 1px #1d4d76;
    filter: dropshadow(color=#1d4d76, offx=0, offy=1);
}

.formtitle {
    margin-left: 8px;
    width: 166px;
    float: left;
}

.formbox input {
    padding-right: 5px;
    width: 65px;
    height: 24px;
    border: 1px solid #1d4d76;
    font: 14px/24px OverlockRegular;
    color: #474b4f;
    background: #f1f1f1 url('images/formarrow.png') no-repeat left center;
    text-align: right;
    float: left;
}

.formdatatype {
    margin-left: 8px;
    float: left;
}

#footer {
    margin: 0px auto;
    margin-top: 50px;
    width: 100%;
    height: 180px;
    padding-top: 30px;
    background: #ffffff;
    border-top: 1px solid #d7d7d7;
}

.footerbox {
    float: left;
}

#footer a,
#footer a:active,
#footer a:link,
#footer a:visited {
    font: 16px/70px OverlockRegular;
    color: #296497;
    text-decoration: none;
    /* margin-left: 30px; */
    margin-left: 25px;
    padding-top: 20px;
}

#footer a:hover {
    text-decoration: underline;
}

#rEntryContainer {
    position: absolute;
    width: 400px;
    right: 10%;
    height: 70%;
    top: 15%;
    background-color: #fff;
    visibility: hidden;
    z-index: 9999;
    border: 1px solid #333;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 3px 3px 10px 1px #777;
    -moz-box-shadow: 3px 3px 10px 1px #777;
    box-shadow: 3px 3px 10px 1px #777;
}

#rEntries {
    position: absolute;
    bottom: 70px;
    top: 70px;
    width: 100%;
    overflow: auto;
}

#rEntryButtons {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.REntryElement {
    margin: 5px;
    padding: 3px;
    background-color: #eee;
    border: 1px solid #1c4f7b;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    float: left;
    clear: left;
    -webkit-box-shadow: 1px 1px 2px 1px #aaa;
    -moz-box-shadow: 1px 1px 2px 1px #aaa;
    box-shadow: 1px 1px 2px 1px #aaa;
}

.REntryElement input {
    padding-right: 5px;
    width: 65px;
    height: 24px;
    border: 1px solid #1d4d76;
    font: 14px/24px OverlockRegular;
    color: #474b4f;
    background: #f1f1f1 url('images/formarrow.png') no-repeat left center;
    text-align: right;
    float: left;
}

.REntryElement button {
    margin-left: 20px;
    margin-right: 10px;
    float: left;
}

.REntryElement span {
    margin: 5px;
    float: left;
}

#wrapper a {
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-decoration: underline;
}

.overlaybox {
    background-color: #ffffff;
    font: 18px/30px OverlockRegular;
    color: #296497;
    height: 520px;
    left: 110%;
    padding: 20px;
    position: fixed;
    right: 30%;
    top: 25%;
    width: 940px;
    z-index: 101;
    border: 5px solid #888888;
    border-radius: 10px;
    -moz-border-radius: 10px;
}

.overlay {
    background: #000000;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
    opacity: 0.5;
}

a.boxclose {
    cursor: pointer;
    float: left;
    height: 26px;
    left: -33px;
    position: relative;
    top: -33px;
    width: 26px;
}