/* html font-family removed to let Next.js fonts work */

.math-editor-context {
  color: #1a1a1a;
}

/* Ensure MathQuill content is dark */
.mathquill-rendered-math,
.mq-editable-field,
.mq-root-block,
.mq-math-mode * {
  color: #1a1a1a !important;
}

.math-editor-context header {
  background-color: #f5ba13;
  margin: auto -16px;
  padding: 16px 32px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}

.math-editor-context header h1 {
  color: #fff;
  font-family: "McLaren", cursive;
  font-weight: 200;
}

.math-editor-legacy-container {
  margin: 5px auto;
}

.math-editor-divider {
  flex-shrink: 0;
}

.math-editor-row-2 {
  display: flex;
}

.sidebar-scroll {
  background: #ebe8e8;
  width: 700px;
  height: 600px;
  overflow-y: auto;
}

@font-face {
  font-family: "OpenSymbol";
  src: url("/fonts/CambriaMath.ttf") format("truetype");
}

.content-scroll {
  font-family: 'OpenSymbol';
  font-size: 1.2em;
  line-height: 28px;
  background: #fff;
  margin-left: 5px;
  width: 700px;
  height: 600px;
  overflow-y: auto;
}

.mce-content-body {
  height: 600px;
  padding: 5px;
  outline-style: none;
}

@media (min-height: 670px) {

  .sidebar-scroll,
  .content-scroll,
  .mce-content-body {
    height: 90vh;
  }
}

@media (min-width: 500px) {

  .sidebar-scroll,
  .content-scroll,
  .mce-content-body {
    width: 80vh;
  }
}

.problem-primary {
  border: 1px solid black;
  text-align: left;
  background-color: #ddd9d9;
  margin: 5px;
  display: flex;
}

.problem-secondary {
  display: inline-flexbox;
  vertical-align: auto;
  margin: 2px 2px;
  color: #812215;
}

.problem-primary .square-tag {
  margin-top: 7px;
  height: 20px;
  width: 20px;
  background-color: #812215;
}

.math-editor-context #tools-tab {
  background-color: #807f7b;
  color: #fff;
  padding: 0;
  min-height: 36px;
  margin-left: -16px;
  margin-right: -16px;
}

#math-input {
  width: 100%;
  min-height: 50px;
}

#math-input .mq-root-block {
  background-color: #fff;
  border: 1px solid #fff;
  -webkit-box-shadow: #a7aaac 0 0 3px 2px;
  -moz-box-shadow: #a7aaac 0 0 3px 2px;
  box-shadow: #a7aaac 0 0 3px 2px;
  min-height: 50px;
  padding: 10px;
  cursor: text;
}

button>.mq-math-mode {
  pointer-events: none;
  cursor: default;
}
