/* ******* Midsize Layout: 640px to 1007px. ******* */
@media only screen and (min-width: 640px) {

body {
    padding: 1vh 0 0 0;
    width: 640px;
    min-height: 480px;
    height: 99vh;
}
#wrapper {
    width: 640px; height: 400px;
    box-shadow: #333 0 0 35px;
}
#header {
    height: 39px;
    margin: 0;
}
#header ul {
    top:2px; left: auto; right:1px;
}
#header ul li, #header ul li button { width: 159px; }
section.innerTab { 
    height: 350px; width: 630px;
    padding: 5px;
}
h1.blackbarheading {
    left: 15px;
    width: 410px;
    text-align: left;
}
section#simulation_1 canvas {
    width: 315px; height: 210px;
    top: 81px; right: 3px;
}
div#alertMain {
    top: 81px; right: 3px;
    width: 317px; height: 212px;
}
div#alertBox {
    width: 290px; height: 282px;
    padding: 10px;
    top: -39px;
}
div#alertBoxInner{ width: 280px; height: 200px; }
div#alertBtns { bottom: 5px; }
div#alertBtns button { height: 70px; width: 85px; }
div#alertBtns button img { width: 25px; height: 25px; }
div.popTxtOnly{ margin: 0; }
div.popTxtOnly p{ margin: 0 0 8px 0; }
div#footer {
    margin: 5px auto;
    bottom: 0;
}
div#footer p {
    width: 100%;
    margin: 0;
}
div.creditbar {
    margin: 5px 5px 7px 5px;
    padding: 5px 5px 7px 5px;
    height: 65px;
    font-size: 12px;
}
div.creditbar:first-of-type { height: 110px; }
div.creditbar img.creditbarimg { margin: 0 10px 0 0; }
div.creditbar p {
    height: 55px;
    padding: 0 0 0 5px;
    font-size: 12px;
}
div.creditbar:last-child p {
    height: 20px;
    padding: 0 5px 0 75px;
    line-height: 1.15em
}
div#intro_txt {
    margin: 15px;
    width: 600px;
    font-size: 12px;
}
div#intro_txt img { 
    width: 300px;
    float: right;
    margin: 0 0 10px 15px;
}
#fieldNotes {
    width: 315px;
    top: 10px; left: 7px;
}
table#tbl { left: -1px; }
tbody td, tbody th { width: 40px; font-size: 11px; }
thead { width: auto; }
tbody#tbody {
    max-height: 277px;
    width: auto;
    position: relative; top: 1px;
}
tr.toprow th { font-size: 11px; width: 40px; }
td input { width: 34px; font-size: 11px; }
#btn_accToggle {
    transform: scale(1.2);
    margin: 5px 5px 0 1px;
}
/* *** Final Closing Brace for "@media only screen and (min-width: 640px)" *** */
}