/*
 * LaTeX Math in pure HTML and CSS -- No images whatsoever
 * v0.xa
 * by Jay and Han
 * Lesser GPL Licensed: http: //www.gnu.org/licenses/lgpl.html
 *
 * This file is automatically included by mathquill.js
 *
 */

@font-face {
  font-family: Symbola;
  src: url(font/Symbola.eot);
  src: local("Symbola Regular"), local("Symbola"),
    url(font/Symbola.ttf) format("truetype"),
    url(font/Symbola.otf) format("opentype"),
    url(font/Symbola.svg#Symbola) format("svg");
}

.mathquill-editable,
.mathquill-rendered-math,
.mathquill-rendered-math .cursor,
.mathquill-rendered-math .underline,
.mathquill-rendered-math .font,
.mathquill-rendered-math sup,
.mathquill-rendered-math sub,
.mathquill-rendered-math .fraction,
.mathquill-rendered-math .sqrt-prefix,
.mathquill-rendered-math .sqrt-stem,
.mathquill-rendered-math .paren,
.mathquill-rendered-math .array,
.mathquill-rendered-math .block {
  display: -moz-inline-box;
  display: inline-block;
  padding-top: .075em;
}
.mathquill-editable, .mathquill-embedded-latex .mathquill-editable {
  border: 1px solid gray;
  padding: 2px;
}
.mathquill-embedded-latex .mathquill-editable {
  margin: 1px;
}
.mathquill-textbox {
  overflow-x: auto;
  overflow-y: hidden; /*so IE8 won't show a vertical scrollbar*/
}

.mathquill-editable .textarea, .mathquill-rendered-math .textarea {
  position: relative;
  user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
}
.mathquill-editable .textarea textarea, .mathquill-rendered-math .textarea textarea, .mathquill-rendered-math .selectable {
  position: absolute;
  clip: rect(1em 1em 1em 1em); /* the only way to hide the textarea *and the blinking insertion point* in IE */
  user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
}

.mathquill-editable .cursor {
  border-left: 1px solid black;
  margin-right: -1px;
  position: relative;
  z-index: 1;
}
.mathquill-editable .cursor.blink {
  visibility: hidden;
}
.mathquill-editable.empty:after, .mathquill-textbox:after, .mathquill-rendered-math .empty:after {
  visibility: hidden;
  content: 'c';
}
/*separated from above because unrecognized pseudoclasses invalidate the entire selector*/
.mathquill-editable .cursor:only-child:after,
.mathquill-editable .textarea+.cursor:last-child:after,
.mathquill-editable .overline+.cursor:last-child:after,
.mathquill-editable .diacritic-char+.cursor:last-child:after {
  visibility: hidden;
  content: 'c';
}

.mathquill-rendered-math .matrixed,
.mathquill-rendered-math .matrixed span {
  display: inline-block;
  background: white;
  width: 1em;
}
.mathquill-rendered-math .matrixed {
  filter: progid:DXImageTransform.Microsoft.Chroma(color='white');
}

.mathquill-editable .selection,
.mathquill-rendered-math .selection,
.mathquill-editable .selection .mathquill-rendered-math,
.mathquill-rendered-math .selection .underline,
.mathquill-rendered-math .selection .font,
.mathquill-rendered-math .selection sup,
.mathquill-rendered-math .selection sub,
.mathquill-rendered-math .selection .fraction,
.mathquill-rendered-math .selection .sqrt-prefix,
.mathquill-rendered-math .selection .sqrt-stem,
.mathquill-rendered-math .selection .paren,
.mathquill-rendered-math .selection .array,
.mathquill-rendered-math .selection .block {
  background: #B4D5FE;
  background: Highlight;
  color: HighlightText;
  border-color: HighlightText;
}
.mathquill-rendered-math .selection .matrixed,
.mathquill-rendered-math .selection .matrixed span {
  /*
    the Chroma filter doesn't support the 'Highlight' keyword,
    but only used in IE 8 and below anyway, so just use
    default Windows highlight color. Even if the highlight
    color of the system has been customized, it's not that big
    a deal, most of this blue is chroma keyed transparent,
    this just affects the anti-aliased fringe around
    matrix filter stretched text.

    If you use IE 8 or below and customized your highlight
    color, and after the effort I put into making everything
    else in MathQuill work in IE 8 and below have the *gall*
    to complain about the blue fringe that appears in selections
    around the otherwise beautifully stretched square roots
    and stuff, and you have no ideas for how to solve the problem,
    only a complaint, then I'd like to politely suggest that you go
    choke on a dick. Unless you're into that, in which case,
    go do something that would make you unhappy instead.
  */
  background: #39F;
  filter: progid:DXImageTransform.Microsoft.Chroma(color='#3399FF');
}
.mathquill-editable .selection.blur,
.mathquill-rendered-math .selection.blur,
.mathquill-editable .selection.blur .mathquill-rendered-math,
.mathquill-rendered-math .selection.blur .underline,
.mathquill-rendered-math .selection.blur .font,
.mathquill-rendered-math .selection.blur sup,
.mathquill-rendered-math .selection.blur sub,
.mathquill-rendered-math .selection.blur .fraction,
.mathquill-rendered-math .selection.blur .sqrt-prefix,
.mathquill-rendered-math .selection.blur .sqrt-stem,
.mathquill-rendered-math .selection.blur .paren,
.mathquill-rendered-math .selection.blur .array,
.mathquill-rendered-math .selection.blur .matrixed,
.mathquill-rendered-math .selection.blur .matrixed span,
.mathquill-rendered-math .selection.blur .block {
  background: #D4D4D4;
  color: black;
  border-color: black;
  filter: progid:DXImageTransform.Microsoft.Chroma(color='#D4D4D4');
}
.mathquill-editable .selection .selection.blur,
.mathquill-rendered-math .selection .selection.blur,
.mathquill-editable .selection .selection.blur .mathquill-rendered-math,
.mathquill-rendered-math .selection .selection.blur .underline,
.mathquill-rendered-math .selection .selection.blur .font,
.mathquill-rendered-math .selection .selection.blur sup,
.mathquill-rendered-math .selection .selection.blur sub,
.mathquill-rendered-math .selection .selection.blur .fraction,
.mathquill-rendered-math .selection .selection.blur .sqrt-prefix,
.mathquill-rendered-math .selection .selection.blur .sqrt-stem,
.mathquill-rendered-math .selection .selection.blur .paren,
.mathquill-rendered-math .selection .selection.blur .array,
.mathquill-rendered-math .selection .selection.blur .matrixed,
.mathquill-rendered-math .selection .selection.blur .matrixed span,
.mathquill-rendered-math .selection .selection.blur .block {
  background: #ABF;
  filter: progid:DXImageTransform.Microsoft.Chroma(color='#ABF');
}
.mathquill-editable .selection.blur .selection.blur,
.mathquill-rendered-math .selection.blur .selection.blur,
.mathquill-editable .selection.blur .selection.blur .mathquill-rendered-math,
.mathquill-rendered-math .selection.blur .selection.blur .underline,
.mathquill-rendered-math .selection.blur .selection.blur .font,
.mathquill-rendered-math .selection.blur .selection.blur sup,
.mathquill-rendered-math .selection.blur .selection.blur sub,
.mathquill-rendered-math .selection.blur .selection.blur .fraction,
.mathquill-rendered-math .selection.blur .selection.blur .sqrt-prefix,
.mathquill-rendered-math .selection.blur .selection.blur .sqrt-stem,
.mathquill-rendered-math .selection.blur .selection.blur .paren,
.mathquill-rendered-math .selection.blur .selection.blur .array,
.mathquill-rendered-math .selection.blur .selection.blur .matrixed,
.mathquill-rendered-math .selection.blur .selection.blur .matrixed span,
.mathquill-rendered-math .selection.blur .selection.blur .block {
  background: #AAA;
  background: rgba(0, 0, 0, .15);
  filter: progid:DXImageTransform.Microsoft.Chroma(color='#AAA');
}

.mathquill-editable, .mathquill-rendered-math {
  cursor: text !important;
  white-space: pre-wrap !important;
  font-family: Symbola, "Times New Roman", serif !important;
}
.mathquill-rendered-math {
  font-variant: normal !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 115% !important;
  line-height: 1 !important;
}
.mathquill-rendered-math var, .mathquill-rendered-math .text, .mathquill-rendered-math .nonSymbola {
  font-family: "Times New Roman", Symbola, serif !important;
}
.mathquill-rendered-math * {
  font-size: inherit !important;
  font:inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border-color: black !important;
  user-select: none !important;
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
}
.mathquill-editable.hasCursor,
.mathquill-rendered-math .latex-command-input.hasCursor {
  border-color: ActiveBorder !important;
}
.mathquill-editable.hasCursor, .mathquill-editable .hasCursor {
  -webkit-box-shadow: #68B4DF 0 0 3px 2px !important;
  -moz-box-shadow: #68B4DF 0 0 3px 2px !important;
  box-shadow: #68B4DF 0 0 3px 2px !important;
}

.mathquill-rendered-math .empty {
  background: #ccc !important;
}
.mathquill-rendered-math.empty {
  background: transparent !important;
}

.mathquill-rendered-math .text {
  font-size: 87% !important;
}

.mathquill-rendered-math .font {
  font: 1em "Times New Roman", Symbola, serif !important;
}
.mathquill-rendered-math .font * {
  font-family: inherit !important;
  font-style: inherit !important;
}

.mathquill-rendered-math b,
.mathquill-rendered-math b.font {
  font-weight: bolder !important;
}
.mathquill-rendered-math var,
.mathquill-rendered-math i,
.mathquill-rendered-math i.font {
  font-style: italic !important;
}
.mathquill-rendered-math var.florin { /* florin looks so much better than italic f */
  margin: 0 -.1em !important;
}

.mathquill-rendered-math big {
  font-size: 125% !important;
}

.mathquill-rendered-math .roman {
  font-style: normal !important;
}

.mathquill-rendered-math .sans-serif {
  font-family: sans-serif, Symbola, serif !important;
}

.mathquill-rendered-math .monospace {
  font-family: monospace, Symbola, serif !important;
}

.mathquill-rendered-math .underline {
  border-bottom: 1px solid black !important;
  margin-bottom: 1px !important;
}

.mathquill-rendered-math .diacritic {
  position: relative !important;
}
.mathquill-rendered-math .diacritic-char,
.mathquill-rendered-math .overarrow,
.mathquill-rendered-math .widehat {
  font-family: Symbola, "Times New Roman", serif !important;
  position: absolute !important;
  top: -.2em !important;
  right: 0 !important;
}
.mathquill-rendered-math .diacritic-char {
  text-align: center !important;
  left: -.1em !important;
}
.mathquill-rendered-math .lowercase.diacritic-char {
  top: .1em !important;
  left: -.3em !important;
}
.mathquill-rendered-math .only-lowercase-t.diacritic-char {
  top: -.1em !important;
  left: -.2em !important;
}
.mathquill-rendered-math .widehat {
  left: -.1em !important;
  -webkit-transform-origin: .15em !important;
  -moz-transform-origin: .15em !important;
  -ms-transform-origin: .125em !important; /* I have no idea why it's slightly off in IE9 */
  -o-transform-origin: .15em !important;
  transform-origin: .15em !important;
}
.mathquill-rendered-math .lowercase.widehat {
  top: .15em !important;
}
.mathquill-rendered-math .only-lowercase-t.widehat {
  top: -.1em !important;
}
.mathquill-rendered-math .overarrow {
  left: -.1em !important;
  -webkit-transform-origin: .0535em !important;
  -moz-transform-origin: .0535em !important;
  -ms-transform-origin: .0535em !important;
  -o-transform-origin: .0535em !important;
  transform-origin: .0535em !important;
}
.mathquill-rendered-math .lowercase.overarrow {
  top: .15em !important;
}
.mathquill-rendered-math .only-lowercase-t.overarrow {
  top: -.1em !important;
}

.mathquill-rendered-math .overline {
  border-top: 1px solid black !important;
  margin-top: 1px !important;
  position: absolute !important;
  top: -.2em !important;
  left: 0 !important;
  right: -.2em !important;
}
.mathquill-rendered-math .lowercase.overline {
  top: .1em !important;
  right: -.1em !important;
}
.mathquill-rendered-math .only-lowercase-t.overline {
  top: 0 !important;
  right: -.15em !important;
}

.mathquill-rendered-math sup, .mathquill-rendered-math sub {
  position: relative !important;
  font-size: 90% !important;
}
.mathquill-rendered-math sup {
  vertical-align: .5em !important;
}
.mathquill-rendered-math sub {
  vertical-align: -.4em !important;
}
.mathquill-rendered-math sup.nthroot {
  margin-right: -.6em !important;
  margin-left: .2em !important;
  min-width: .5em !important;
}
.mathquill-rendered-math sup.limit, .mathquill-rendered-math sub.limit,
.mathquill-rendered-math sup.nthroot {
  font-size: 80% !important;
}
.mathquill-rendered-math sup.limit, .mathquill-rendered-math sup.nthroot {
  vertical-align: .8em !important;
}
.mathquill-rendered-math sub.limit {
  vertical-align: -.6em !important;
}

.mathquill-rendered-math .binary-operator {
  padding: 0 .2em !important;
}
.mathquill-rendered-math .unary-operator {
  padding-left: .2em !important;
}
.mathquill-rendered-math sup .binary-operator,
.mathquill-rendered-math sub .binary-operator {
  padding: 0 .1em !important;
}
.mathquill-rendered-math sup .unary-operator,
.mathquill-rendered-math sub .unary-operator {
  padding-left: .1em !important;
}

.mathquill-rendered-math .fraction {
  font-size: 90% !important !important;
  text-align: center !important;
  vertical-align: -.5em !important;
  padding: 0 .1em !important;
}
.mathquill-rendered-math .fraction, x:-moz-any-link { /* Firefox 2 (and older?) only */
  display: -moz-groupbox !important; /* because display:inline-block is FUBAR in Gecko < 1.9.0 */
}
.mathquill-rendered-math .fraction, x:-moz-any-link, x:default { /* Firefox 3+ (Gecko 1.9.0+) */
  display: inline-block !important;
}
.mathquill-rendered-math .numerator, .mathquill-rendered-math .denominator {
  display: block !important;
  padding-top: .075em !important;
  text-align:center;
}
.mathquill-rendered-math .numerator {
  padding-left: .1em !important;
  padding-right: .1em !important;
}
.mathquill-rendered-math .denominator {
  border-top: 1px solid !important;
  float: right !important; /* take out of normal flow to manipulate baseline */
  width: 100% !important;
}

.mathquill-rendered-math sup .fraction, .mathquill-rendered-math sub .fraction {
  font-size: 70% !important;
  vertical-align: -.4em !important;
}
.mathquill-rendered-math sup .numerator, .mathquill-rendered-math sub .numerator {
  padding-bottom: 0 !important;
}
.mathquill-rendered-math sup .denominator, .mathquill-rendered-math sub .denominator {
  padding-top: 0 !important;
}

.mathquill-rendered-math .latex-command-input {
  color: inherit !important;
  font-family: "Courier New", monospace !important;
  border: 1px solid gray !important;
  padding-right: 1px !important;
  margin-right: 1px !important;
  margin-left: 2px !important;
}
.mathquill-rendered-math .latex-command-input.empty {
  background: transparent !important;
}

.mathquill-rendered-math .sqrt-prefix {
  padding-top: 0 !important;
  position: relative !important;
  top: .1em !important;
  vertical-align: top !important;
  -webkit-transform-origin: top !important;
  -moz-transform-origin: top !important;
  -ms-transform-origin: top !important;
  -o-transform-origin: top !important;
  transform-origin: top !important;
}
.mathquill-rendered-math .sqrt-stem {
  border-top: 1px solid !important;
  margin-top: 1px !important;
  padding-left: .15em !important;
  padding-right: .2em !important;
  margin-right: .1em !important;
}

.mathquill-rendered-math .paren {
  padding: 0 .1em !important;
  vertical-align: bottom !important;
  -webkit-transform-origin: bottom !important;
  -moz-transform-origin: bottom !important;
  -ms-transform-origin: bottom !important;
  -o-transform-origin: bottom !important;
  transform-origin: bottom !important;
}

.mathquill-rendered-math .array {
  vertical-align: middle !important;
  text-align: center !important;
}

.mathquill-rendered-math .array > span {
  display: block !important;
}

.mathquill-rendered-math .non-italicized-function {
  padding-right: .2em !important;
}

/*.mathquill-rendered-math .not {
  margin-right: -.75em;
}*/

.feditor{
  width: 98% !important;
  height: 4.8em !important;
}
.symbols>.ui-button{
  vertical-align: top !important;
}
span.ui-button>img,
.mqb>img
{
  height: 12px !important;
}
