body > canvas {
    width: 440px;
    height: 240px;
    position: fixed;
    top: 1px;
    right: 1px;
    z-index: 500;
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.6) !important;
}

body *:focus {
    outline: 3px solid rgba(238, 137, 0, 0.85);
    box-shadow: 0px 0px 0px 3px rgba(238, 137, 0, 0.85);
}
button.modalBtn:focus {
    outline: 3px solid rgba(238, 137, 0, 0.85);
}
button:disabled {
    cursor: default;
}

h1 {
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    left: -999999px;
}
h2::selection {
    background: transparent;
}
h2 em,
h2 span {
    font-weight: normal;
}

div#dom_atoms > ul {
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    display: none;
}
li.domAtom {
    background: rgba(255, 255, 255, 0.01);
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: grab;
}
li.domAtom:focus {
    outline: none;
    box-shadow: 0px 0px 0px 5px rgba(238, 137, 0, 0.67);
}
li.domAtom > p {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    top: 50%;
    line-height: 0;
}
li.domAtom div.domAtomInner {
    position: absolute;
    top: auto;
    left: -100000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
body {
    background: #ddd;
    height: 100vh;
    position: relative;
}
body * {
    font-family: Lato, "Trebuchet MS", sans-serif;
}
#vertwrap {
    position: relative;
    display: block;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}
#wrapper {
    width: 1100px;
    height: 740px;
    margin: auto;
    background: #fff;
    box-shadow: #333 0 0 35px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #000;
}
#header {
    width: 100%;
    height: 39px;
    margin: 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: 2px;
    right: 0;
}
#header ul li {
    float: left;
    width: 159px;
    height: 21px;
    margin: 3px 0 0 1px;
    padding: 3px 0 0 0;
    background: #aaa;
    box-shadow: 0 -2px 4px rgba(150, 150, 150, 0.75);
    text-align: center;
}
#header ul li button {
    cursor: pointer;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    display: block;
    width: 159px;
    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: 12px;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}
#header ul li#tab_colophon,
#header ul li#tab_colophon button {
    width: 29px;
}
#header ul li.thisTab button img {
    opacity: 1;
}

div#intro {
    z-index: 90;
}
div#simulation_1 {
    z-index: 80;
}
div#simulation_2 {
    z-index: 70;
}
div#colophon {
    z-index: 60;
    padding: 25px 5px 15px 5px;
}
div.innerTab {
    margin: 0;
    padding: 0;
    height: 700px;
    width: 1100px;
    position: absolute;
    background: linear-gradient(to bottom, #fff 50%, #b8c9d7 100%);
}
h2.blackbarheading {
    color: #fff;
    font-size: 16px;
    position: absolute;
    top: -42px;
    left: 15px;
    background: #000;
    width: 410px;
}

div#simulation_1 canvas,
div#simulation_2 canvas {
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
}

div#alertMain,
div#confirmMain {
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.65);
    width: 100%;
    height: 100%;
    display: none;
}
div#alertBox,
div#confirmBox {
    border-radius: 15px;
    padding: 15px;
    margin: auto;
    text-align: center;
    position: relative;
    background: #fff;
    box-shadow: 0 0 40px 5px rgba(0, 0, 0, 0.45);
    font-size: 16px;
}
div.popSmall {
    width: 480px;
    height: 240px;
    top: 200px;
}
div.popLarge {
    width: 540px;
    height: 360px;
    top: 150px;
}
div#alertMain div.popXL {
    width: 800px;
    height: 500px;
    top: 120px;
    text-align: left;
}
div.popXL h3 {
    text-align: center;
    font-size: 21px;
}
div.popXL li {
    margin-bottom: 0.85em;
}
div.popXL p {
    margin: 5px 0 10px 0;
}
div.popXL h4 {
    margin: 20px 0 5px 0;
    font-size: 18px;
}
button.modalBtn {
    font-size: 16px;
    height: auto;
    width: 150px;
    margin: 14px 0 0 0;
    padding: 5px;
    box-shadow: inset 0 1px 0 0 #fff;
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    cursor: pointer;
    color: #333;
    position: absolute;
    bottom: 14px;
}
div.popSmall button#alertDoneBtn {
    left: 180px;
}
div.popLarge button#alertDoneBtn {
    left: 210px;
}
div.popXL button#alertDoneBtn {
    left: 350px;
}
button#confirmYesBtn {
    left: 85px;
}
button#confirmNoBtn {
    right: 85px;
}

div.creditbar {
    border-bottom: 1px dotted #333;
    margin: 0 35px 10px 35px;
    padding: 5px;
    clear: both;
    height: 130px;
}
div.creditbar:last-child {
    border: none;
    font-size: 0.8em;
}
div.creditbar img {
    float: left;
}
div.creditbar p {
    height: 120px;
    display: table-cell;
    vertical-align: middle;
    margin: 0;
    padding: 0 0 0 50px;
    line-height: 1.3em;
}
div.creditbar:last-child p {
    height: 65px;
    margin: 0;
    padding: 0 5px;
}
div#intro_txt {
    margin: 60px 50px 15px 50px;
    padding: 0;
    line-height: 1.3em;
    width: 1000px;
}
div#intro_txt ul {
    margin: 0 0 1em -1.25em;
}
div#intro_txt li,
div#intro_txt p.ulPara {
    margin-bottom: 0.3em;
}
div#imgWrap {
    width: 360px;
    height: 288px;
    position: relative;
    top: 1.5em;
    float: right;
    margin: 5px 0 10px 20px;
    padding: 0;
    box-shadow: rgba(0, 0, 0, 0.5) 1px 3px 7px;
}
div#intro img {
    position: absolute;
}
div#intro button.btn_circ {
    color: #eee;
    background: #36a;
    width: 150px;
    height: 150px;
    border-radius: 150px;
    border: 1px solid #333;
    font-size: 22px;
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 80px;
}
button#btn_lo {
    left: 225px;
}
button#btn_acc {
    left: 475px;
}
button#btn_start {
    left: 725px;
}

p.pgInst {
    width: 100%;
    text-align: center;
    position: relative;
    top: -15px;
}

div#mol_list {
    width: 100%;
    height: 100px;
    background: rgba(250, 250, 250, 0.5);
    overflow-x: scroll;
    overflow-y: hidden;
    position: absolute;
    top: 600px;
}
ul#mol_inner {
    width: 1715px;
    margin: 15px;
    padding: 0;
}
ul#mol_inner li {
    list-style: none;
    float: left;
}
ul#mol_inner li button {
    width: 120px;
    height: 60px;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 30px;
    background: #36a;
    color: #eee;
    border: 1px solid transparent;
    font-style: italic;
}
ul#mol_inner li button abbr {
    font-size: 0.85em;
    font-style: normal;
    font-weight: bold;
}
ul#mol_inner button:focus {
    background: rgba(238, 137, 0, 0.15);
    color: #333;
}
ul#mol_inner button.curMol {
    border: 1px solid #333;
    background: #bbb;
    color: #333;
    cursor: default;
}
div#ptable {
    position: absolute;
    bottom: -375px;
    background: rgba(250, 250, 250, 0.5);
    display: none;
}
div#ptable * {
    margin: 0;
    padding: 0;
}
div#ptable table {
    border-spacing: 0;
    border-collapse: collapse;
    position: relative;
    left: 1px;
}
div#ptable tr {
    height: 70px;
    border: none;
}
div#ptable td {
    border: 1px solid #333;
    width: 60px;
    height: 75px;
    background: #fff;
}
div#ptable td button {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    position: relative;
}
div#ptable td button:focus {
    background: rgba(238, 137, 0, 0.15);
}
div#ptable p.abrv {
    position: absolute;
    top: 2px;
    left: 3px;
}
div#ptable p.anum {
    position: absolute;
    top: 2px;
    right: 3px;
}
div#ptable td img {
    width: 60px;
    height: 70px;
    position: relative;
    top: 5px;
}
div#ptable td.emptyCell {
    background: none;
    border: none;
    border: 1px dashed transparent;
}
div#ptable td.lastrow img {
    opacity: 0.4;
}
div#ptable td.lastrow p {
    color: rgba(0, 0, 0, 0.4);
}
div#ptable td.lastrow button {
    cursor: default;
}
div#ptable caption {
    width: 100%;
    position: absolute;
    top: 15px;
}
button.circBtn {
    width: 54px;
    height: 54px;
    border-radius: 27px;
    border: 1px solid transparent;
    background: rgba(17, 68, 153, 0.8);
    position: absolute;
    margin: 0;
    padding: 0;
}
button.circBtn p {
    position: absolute;
    left: -99999px;
}
button#atoms_down,
button#atoms_up {
    top: -5px;
    left: 523px;
}
button.circBtn:focus {
    background: #777d5e;
}
button.circBtn:disabled {
    background: rgba(0, 0, 0, 0.4);
}
div#mb_btns {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
}
#mode_mb {
    top: 15px;
    left: 10px;
}
#mode_fx {
    top: 15px;
    left: 70px;
}
#mode_ic {
    top: 15px;
    left: 130px;
}

#btn_showTut,
#btn_hideTut {
    top: 15px;
    right: 250px;
}
#btn_dir_show,
#btn_dir_hide {
    top: 15px;
    right: 190px;
}
#btn_undo {
    top: 15px;
    right: 130px;
}
#btn_reset_mb,
#btn_reset_fx,
#btn_del_atom {
    top: 15px;
    right: 70px;
}
#btn_chkans {
    top: 15px;
    right: 10px;
}

div#dir_pad {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 90px;
    right: -155px;
    width: 150px;
    height: 150px;
    background: rgba(55, 55, 55, 0.5);
    border: 1px solid transparent;
    border-radius: 75px;
}
div#dir_pad button {
    width: 44px;
    height: 44px;
}
div#dir_pad button img {
    width: 40px;
    height: 40px;
}
#dir_tab {
    top: 53px;
    left: 53px;
}
#dir_up {
    top: 5px;
    left: 53px;
}
#dir_down {
    top: 101px;
    left: 53px;
}
#dir_left {
    top: 53px;
    left: 5px;
}
#dir_right {
    top: 53px;
    left: 101px;
}

img.stickDiagram {
    position: absolute;
    top: 35px;
    right: 10px;
}

div#ions {
    position: absolute;
    bottom: -215px;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 230px;
    background: rgba(250, 250, 250, 0.5);
}
div#ions button.circBtn {
    top: 10px;
    left: 523px;
}
div#cations,
div#anions {
    float: left;
    margin: 0;
    padding: 0;
    width: 600px;
}
div#anions {
    width: 500px;
}
div#ions h3 {
    margin: 30px 0;
    text-align: center;
}
div#ions ul {
    list-style: none;
    margin: 0;
    padding: 5px;
    border-right: 1px dotted #000;
    float: left;
    width: 186px;
}
div#ions ul#i_plus1 {
    width: 279px;
}
div#ions ul#i_plus3 {
    width: 93px;
    border-right: 2px solid #333;
    padding-right: 9px;
}
div#ions ul#i_minus3 {
    width: 93px;
    border-right: none;
}
div#ions ul li {
    float: left;
}
div#cations button,
div#anions button {
    width: 85px;
    height: 45px;
    border-radius: 25px;
    background: #36a;
    color: #000;
    font-weight: bold;
    border: 1px solid #333;
    margin: 6px 4px;
}
div#cations button#ic4,
div#anions button#ic18 {
    margin-left: 52px;
}
ul#i_plus1 li button {
    background: #a89dee;
}
ul#i_plus2 li button {
    background: #9082ee;
}
ul#i_plus3 li button {
    background: #7968ee;
}
ul#i_minus1 li button {
    background: #f8d076;
}
ul#i_minus2 li button {
    background: #fcc64d;
}
ul#i_minus3 li button {
    background: #ffbc25;
}

div#tutMain {
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    //background: rgba(255, 255, 255, 0.15);
    width: 100%;
    height: 100%;
}
div#tutInner {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    width: 100%;
    height: 100%;
}
button#btn_hideTut {
    background: #36a;
    left: 796px;
}
div#tutMain p {
    position: absolute;
    width: 285px;
    min-height: 20px;
    margin: 0;
    padding: 5px 10px;
    background: #333;
    color: #eee;
    line-height: normal;
}
div#tutMain p svg {
    position: absolute;
}
div#tutMain p#tutTxt1 {
    top: 27px;
    left: 465px;
    color: #ee1;
    font-weight: bold;
}
p#tutTxt1 svg {
    top: 0px;
    right: -15px;
}

div#tutMain p#tutTxt2 {
    top: 95px;
    left: 23px;
    width: 255px;
}
p#tutTxt2 svg {
    top: -15px;
    left: 0px;
}

div#tutMain p#tutTxt3 {
    top: 95px;
    left: 618px;
    width: 260px;
}
p#tutTxt3 svg {
    top: -15px;
    right: 0px;
}

div#tutMain p#tutTxt4 {
    top: 160px;
    left: 742px;
    width: 195px;
}
p#tutTxt4 svg {
    top: -80px;
    right: 0px;
}

div#tutMain p#tutTxt5,
div#tutMain p#tutTxt10 {
    top: 206px;
    left: 803px;
    width: 195px;
}
p#tutTxt5 svg,
p#tutTxt10 svg {
    top: -126px;
    right: 0px;
}

div#tutMain p#tutTxt6 {
    top: 250px;
    left: 893px;
    width: 165px;
}
p#tutTxt6 svg {
    top: -170px;
    right: 0px;
}

div#tutMain p#tutTxt7 {
    top: 425px;
    left: 79px;
    width: 315px;
}
p#tutTxt7 svg {
    top: -15px;
    right: 0px;
}

div#tutMain p#tutTxt8 {
    top: 395px;
    left: 705px;
    width: 270px;
}
p#tutTxt8 svg {
    top: -15px;
    left: 0;
}

div#tutMain p#tutTxt9 {
    top: 550px;
    left: 191px;
    width: 225px;
}
p#tutTxt9 svg {
    bottom: -15px;
    left: 0;
}

div#tutMain p#tutTxt11 {
    top: 290px;
    left: 15px;
}
p#tutTxt11 svg {
    bottom: -15px;
    left: 0;
}

div#tutMain p#tutTxt12 {
    top: 420px;
    left: 36px;
    width: 300px;
}
p#tutTxt12 svg {
    bottom: -15px;
    left: 0;
}

div#tutMain p#tutTxt13 {
    top: 310px;
    left: 537px;
    width: 230px;
}
p#tutTxt13 svg {
    bottom: -15px;
    left: 0;
}

div#tutMain p#tutTxt14 {
    top: 420px;
    left: 535px;
}
p#tutTxt14 svg {
    bottom: -15px;
    left: 0;
}

div#tutMain p#tutTxt15 {
    top: 360px;
    left: 675px;
    width: 325px;
}
p#tutTxt15 svg {
    bottom: -238px;
    left: 176px;
}

svg polygon,
svg path {
    fill: #333;
}
svg line {
    stroke: #333;
}

div#stick_diagrams img {
    position: absolute;
    bottom: 110px;
    right: 10px;
    margin: 0;
    padding: 0;
    border: 1px solid #333;
    display: none;
    opacity: 0.8;
}

.sronly {
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    top: auto;
    left: -10000px;
}

#simulation_1,
#colophon,
#btn_reset_fx,
#btn_del_atom,
#atoms_up,
#ptable,
#ions_up,
#ions,
#dir_pad,
#btn_dir_hide {
    display: none;
}
