/* *** CSS for small screens: phones *** */
body {
    background: #ddd;
    margin: 0 auto; padding: 0;
    width: 360px; height: calc(100vh + 120px);
    min-height: 700px;
    position: relative;
}
body * { font-family: Lato,"Trebuchet MS",sans-serif; }
*:focus { outline: 2px solid rgba(238,137,0, .7); }
a { color: #05a; }
#wrapper {
    width: 360px; height: calc(100vh + 20px);
    min-height: 600px; max-height: 755px;
    background: #fff;
    border-bottom: 4px solid #000;
}
#header {
    width: 100%;
    height: 60px;
    margin: 0 0 10px 0; padding: 0;
    background: #000;
    border-bottom: 2px solid #000;
    position: relative;
}
#header ul {
    list-style: none;
    font-family: Lato,"Trebuchet MS",sans-serif;
    font-size: 12px;
    position: absolute; top:23px; left:4px;
}
#header ul li {
    float: left;
    width: 119px; height: 21px;
    margin: 3px 0 0 1px; padding: 3px 0 0 0;
    background: #aaa;
    box-shadow: 0 -2px 4px rgba(150,150,150, .75);
    text-align: center;
}
#header ul li button {
    cursor: pointer;
    color: #333;
    font-size: 11px;
    text-decoration: none;
    display: block;
    width: 119px; height: 18px;
    margin: 0;
    border: none; background: none;
}
#header ul li button img {
    opacity: 0.6;
    width: 16px; height: 16px;
}
#header ul li.thisTab {
    background: #fff;
    background: linear-gradient(to top, #fff 5%, #ccc 100%);
    color: #000;
    font-size: 11px;
    box-shadow: 0 0 3px rgba(255,255,255, .5);
}
#header ul li#tab_colophon, #header ul li#tab_colophon button { width:29px; }
#header ul li.thisTab button img { opacity: 1; }
#intro { z-index: 90; }
#simulation_1 { z-index: 80; display: none; }
#colophon {
    z-index: 60;
    display: none;
    max-height: 490px;
    overflow-y: auto;
}
section.innerTab {
    margin: 0;  padding: 0 5px 5px 5px;
    height: calc(100vh - 60px); width: 350px;
    min-height: 520px; max-height: 675px;
    position: absolute;
    background: #fff;
}
h1.blackbarheading {
    color: #fff;
    font-size: 16px;
    position: absolute; top: 0;
    background: #000;
    width: 355px; text-align: center;
}
.sronly { 
    position: absolute; top: -999px;
    width: 1px; height: 1px; overflow: hidden;
}
#simulation_1 canvas {
    margin: 0; padding: 0;
    position: absolute; top: 43px; left: 8px;
}
canvas#canv_1 { background: #fff; width: 344px; height: 150px; }
canvas#canv_2{ width: 38px; height: 150px; left: 3px; }
p#canv_desc { width: 1px; height: 1px; overflow: hidden; }
div#txtMain {
    position: absolute; top: 195px;
    background: rgba(250,250,250, .85);
    border: 1px solid rgba(50,50,50, .75);
    margin: 3px; padding: 3px;
    overflow: hidden;
    height: calc(100% - 205px);
    transition: max-height 1s;
    max-height: 515px;
    width: 336px;
}
button#btnPopOpen { 
    float: right;
    width: 32px; height: 32px;
    font-size: 21px;
    margin: 0 0 3px 3px;
}
div#txtScroll {
    overflow-y: auto;
    height: calc(100% - 35px);
    min-height: 325px;
}
div#txtMore { display: none; }
div#txtMain h3 { margin: 0 0 5px 0 }
div#txtMain p, div#txtMain li { margin: 0 0 .75em 0; font-size: 14px; }
div#txtMain li { margin: 0 0 .4em 0; }
div.txtBlurb { text-align: center; }
div.txtInner h3 {
    border-bottom: 1px dotted #000;
    padding: 3px 0;
    margin: 7px 1em;
    clear: both;
}
div.txtBtns {
    margin: 7px 0 0 0; padding: 0;
    text-align: center;
    position: absolute; bottom: 0; left: 0;
    width: 100%;
}
div.txtBtns span { /*display: none;*/ clear: both;}
div.txtBtns span.btns_add_endergy button { width: 5.25em; }
div.txtBtns button { 
    width: 9em;
    min-height: 30px;
    font-size: 14px;
    margin: 5px 3px;
    color: #111;
}
div.txtInner button { 
    background: none;
    border: none;
    margin: 0; padding: 0;
    color: #05a;
    text-decoration: underline;
}

div#popMain {
    display: none;
    width: 100%; height: 100%;
    position: absolute;
    top: 0; left: 0;
    background: rgba(250,250,250, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 999;
}
div#popBox {
    width: 280px;
    border: 1px solid rgba(50,50,50, .75);
    margin: 5px auto; padding: 7px 11px;
    background: #fff;
    text-align: center
}
button#btnPopClose { 
    float: right;
    position:relative; top:-3px; right:-3px;
    width: 21px; height: 21px;
    font-size: 14px;
    margin: 0 0 3px 3px;
}
div#popBox h3 { margin: 10px 0; }
dl { width: 100%; margin: 7px auto;}
dl div { width: 250px; }
dt, dd { display: inline-block; }

div#scn6{
    display: none;
    position: absolute; top: 35px;
    background: rgba(250,250,250, .85);
    border: 1px solid rgba(50,50,50, .75);
    margin: 3px; padding: 7px 11px;
    height: calc(100% - 53px);
    transition: max-height 1s;
    overflow-y: auto;
}
div#scn6 li{ margin-bottom: 7px; text-align: left; }
div#scn6 p:has(button){ text-align: center; margin: 29px 0; }

ul#dom_canv{
    overflow: hidden;
    width: 1px; height: 1px;
    position: absolute; top: -100px;
    display: none;
}

button { cursor: pointer; }
div#footer {
    width: 100%;
    height: 50px;
    margin: 25px auto 20px auto;
    padding: 0;
    position: absolute; bottom: 10px;
    text-align: center;
    font-size: 11px;
    display: inline-block;
    float: left;
    clear: both;
}
div#footer p { width: 360px; margin: 0 auto; padding: 0; }
div.creditbar {
    border-bottom: 1px dotted #333;
    margin: 0;
    padding: 10px 5px;
    clear: both;
}
div.creditbar:first-of-type { /*height: 185px;*/ }
div.creditbar:last-child { border: none; font-size: 0.8em; }
div.creditbar img.creditbarimg { float: left; width: 60px; height: 60px; }
div.creditbar p {
    display: table-cell;
    vertical-align: middle;
    margin: 0;
    padding: 0 0 0 7px;
    line-height: 1.3em;
    font-size: 14px;
}
div.creditbar:last-child p {
    height: 65px;
    margin: 0; padding: 0 5px 0 67px;
    font-size: 11px;
}
div#intro_txt {
    margin: 5px;
    padding: 0;
    line-height: 1.25em;
    width: 340px; height: 100%;
    overflow-y: auto;
    font-size: 14px;
}
div#intro_txt img {
    box-shadow: rgba(0,0,0, .5) 1px 3px 7px;
    width: 240px; height: auto;
    margin: 1px 0 3px 0;
}
div#intro_txt h3 { margin: .8em 0 .1em 0; }
div#intro_txt ul { margin: 0 0 1em -1.25em; }
div#intro_txt li, div#intro_txt p { margin: .1em 0 .3em 0; }
#simulation_1 h3 {
    text-align: center;
    margin: 0;
    font-size: 16px;
}
span.nobreak, b, a { white-space: nowrap; }
img.new_win { width: 8px; height: 8px; }

div.eAcct p { padding-left: 3em; text-indent: -3em; }
div#navWrap {
    width: 100%;
    margin: 0; padding: 0;
    overflow-y: auto;
    position: absolute;
    top: 0; left: 0;
}
nav#navBtns {
    height: 35px;
    margin: 0 3px; padding: 0;
    white-space: nowrap;
    text-align: center;
}
nav#navBtns button {
    width: 80px; height: 24px;
    margin: 0 5px 5px 5px;
    font-size: 12px;
    border-radius: 15px;
    border: 1px solid grey;
}
nav#navBtns button.complete {
    background: #ccc;
    color: #333;
    font-style: italic;
    border: 1px solid #ccc;
}
nav#navBtns button.active {
    background: #333;
    color: #fff;
    font-style: italic;
    border: 3px solid #222
}

.hide { display: none; }

#certName input{ margin: .5em 0 0 0; }