.eqEdEquation {
    position: relative;
    line-height: 1;
    display: inline-block;
    border: 1px solid black;
    border-radius: 5px;
    /* min-width: 250px!important; */
   
}
/* #equation_editor_div{
    height: 160px;
} */
/* .equation-editor{

} */
#addtoeditor{
    padding: 7.8px 60px;
    margin-left: 18px;
    background: #27c2fd;
    color: white;
    font-size: 9.6pt;
    border-style: none;
    border-radius: 7px;
    cursor: pointer;
}

.activeContainer .hoverContainer {
    background: #B5B5B5;
}

.hoverContainer {
    background: #E8E8E8;
}

.eqEdEquation div,
.eqEdEquation span,
.eqEdEquation svg,
.eqEdEquation img {
    position: absolute;
    top: 0em;
    left: 0em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /* Try to prevent highlighting */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

.fontTest {
    visibility: hidden;
}

.fontSizeNormal {
    font-size:17.3px;/*18.5px;*/
}

.fontSizeSmaller {
    font-size: 15.3px;/* fontSizeNormal * 0.7802 */
}

.fontSizeSmallest {
    font-size: 14.3px;/* fontSizeNormal * 0.6703 */
}

.fontSizeMessage {
    font-size: 12.3px;
    color: #A9A9B1;
    font-family: Arial, Helvetica, sans-serif;
}

.MathJax_MathItalic {
    font-family: 'MathJax_Math';
    font-style: italic;
}

.MathJax_Main {
    font-family: 'MathJax_Main';
}

.MathJax_MainItalic {
    font-family: 'MathJax_Main';
    font-style: italic;
}

.MathJax_Size1 {
    font-family: 'MathJax_Size1';
}

.MathJax_Size2 {
    font-family: 'MathJax_Size2';
}

.MathJax_Size3 {
    font-family: 'MathJax_Size3';
}

.MathJax_Size4 {
    font-family: 'MathJax_Size4';
}

.MathJax_AMS {
    font-family: 'MathJax_AMS';
}

div.cursor {
    background-color: #000000;
    /* The cursor should always be on top */
    z-index: 50;
}

div.normalCursor {
    width: 1.2px;
    height: 54%;
    top: 3%;
    left: 0px;
}

div.squareCursor {
    width: 48%;
    height: 48%;
    top: 6%;
    left: 6%;
}

.cursorOff {
    visibility: hidden;
}

.highlight {
    background: #5266FF;
}

.highlighted div {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.highlighted .stackedFractionHorizontalBar,
.highlighted .squareRootOverBar,
.highlighted .nthRootOverBar {
    background: #FFFFFF;
}

.highlighted path {
    fill: #FFFFFF;
}

.highlighted rect {
    stroke: #FFFFFF;
}

.eqEdContainer {
    cursor: text;
    z-index: 3;
}

div.activeContainer {
    background: #CFCFCF;
}

.squareEmptyContainer {
    cursor: pointer;
    border: solid #000000;
}

.eqEdWrapper {
    z-index: 3;
}

/* This overflow must be hidden, because brackets extend past
   equation boundaries, and mess up mouse interactions. */
.bracketWrapper {
    overflow: hidden;
}

.activeContainer .topLevelEmptyContainerWrapper {
    background: #CFCFCF;
}
/*
.topLevelEmptyContainerWrapper {
    background: #EDEDED;
}
*/
.stackedFractionHorizontalBar {
    background: #000000;
}

.squareRootOverBar {
    background: #000000;
}

.nthRootOverBar {
    background: #000000;
}

.nthRootRadical {
    z-index: 7;
}

.accentSymbol {
    z-index: 8;
}

.dotAccent {
    clip: rect(0.075em, 0.33em, 0.28em, 0.15em);
}

.dotAccentIE {
    clip: rect(-0.5em, 0.85em, 0em, 0.1em);
}

.hatAccent {
    clip: rect(0.05em, 0.4em, 0.29em, 0.1em);
}

.hatAccentIE {
    clip: rect(-0.5em, 0.85em, 0em, 0.1em);
}

.barAccent {
    clip: rect(0.21em, 0.45em, 0.28em, 0.05em);
}

.barAccentIE {
    clip: rect(-0.1em, 0.45em, 0em, 0.05em);
}

.nonHighlightVersion {
    visibility: visible;
}

.highlightVersion {
    visibility: hidden;
}

.eqImg {
    width: 60%;
    height: 60%;
}

.submission-scroll {
    border: 1.2px solid #A9A9B1;
    border-radius: 5px;
    margin: 18px;
    padding: 3px;
    overflow: auto;
    max-height: 60px;
    max-width: 210px;
}

.submission-dynamic {
    border: 1.2px solid #A9A9B1;
    border-radius: 5px;
    padding: 3px;
    display: inline-block;
}

#loadingMessageOuter {
    width: 60px; 
    height: 38.4px;
}

.eqEdMenuItem {
    width: 21px;
    height: 21px;
    background-color: #E8E8E8;
    display: inline-block;
    margin-right: 1.5px;
    margin-bottom: 1.5px;
}

.eqEdMenuItem:hover {
    background-color: #B5B5B5;
    cursor: pointer;
}

/* Menu CSS */
/*----- Tabs -----*/
.tabs {
    width:60%;
    display:inline-block;
}
 
/*----- Tab Links -----*/
/* Clearfix */
.tab-links:after {
    display:block;
    clear:both;
    content:'';
}

.tab-links {
    margin-bottom: 0px;
    padding-left: 4.2px;
    white-space: nowrap;
}

.tab-links li {
    margin-left: 1.8px;
    margin-right: 1.8px;
    margin-top:3.6px;
    margin-bottom: 0px;
    /*float:left;*/
    display:inline-block;
    list-style:none;
}
 
.tab-links a {
    padding:5.4px 9px;
    display:inline-block;
    background:#E0E0E0;
    font-size:16px;
    color:#000;
    text-decoration:none;
}

.outer-tab-links a:hover {
    background:#BABABA;
}

.inner-tab-links a:hover {
    background:#8A8A8A;
}

.outerTab.active a, .outerTab.active a:hover {
    background: #9C9C9C;
}

.innerTab.active a, .innerTab.active a:hover {
    background: #707070;
}

.top-level-tab {
    background:#9C9C9C;
}
/*----- Content of Tabs -----*/
.tab-content {
    padding: 9px 1.5%;
}

.tab-content-nested {
    background: #707070;
}

#tab-content-top {
    width: 420px;
    background: #9C9C9C;
}
 
.tab {
    display:none;
}

.tab.active {
    display:block;
}

.innerTabImg {
    height: 20.4px;
}

.menuItem {
    background: transparent;
    margin-right: 6px;
    margin-bottom: 6px;
    padding: 3px;
    vertical-align: top;
}

.menuItem:hover {
    cursor: pointer;
}

.tab.outer > .menuItem:hover {
    background-color: #707070;
}

.tab.inner > .menuItem:hover {
    background-color: #545454;
}