/*lcompile*/
/*
*  L's MATH NOTEBOOK
*  -----------------
*/


@font-face {
    font-family: 'Open Sans';
    src: url('font/OpenSans-Regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('font/OpenSans-Bold-webfont.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('font/OpenSans-Italic-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('font/OpenSans-BoldItalic-webfont.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Inconsolata';
    src: url('font/Inconsolata-Regular.ttf');
}

body {
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
}

h1, h2, h3, h4 {
    margin: 10px;
    padding: 0px;
}

p {
    margin: 15px;
    padding: 0px;
}

hr {
    width: 100%;
    height: 1px;
    border: none;
    background: #bfbfbf;
}

.link {
    color: Blue;
    text-decoration: underline;
    cursor: pointer;
}

.link:active {
    color: Mediumblue;
}

#_window_container {
    width: 100vw;
    height: 100vh;
    display: block;
    position: relative;
}

#_top {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 150px;
    background: #fff2f9;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.4);
}

#menu-bar {
    background: #fff2f9 !important;
}

#_left {
    position: absolute;
    top: 150px;
    left: 0px;
    width: 250px;
    height: calc(100vh - 185px);
    background: #fff2f9;
    border-right: 1px solid rgba(0,0,0,0.4);
}

#_work_area {
    position: absolute;
    top: 150px;
    left: 250px;
    width: calc(100vw - 250px);
    height: calc(100vh - 180px);
    box-shadow: inset 0px 0px 5px rgba(0,0,0,0.5);
    border-top: 1px solid Black;
}

#_content {
    overflow-y: scroll;
    height: calc(100% - 7px);
}

#_default_box {
    padding: 10px;
    padding-bottom: 100px;
}

#_bottom_row {
    position: absolute;
    left: 250px;
    bottom: 0px;
    border-top: 1px solid Black;
    width: calc(100vw - 250px);
    height: 35px;
    background: #fff2f9;
}

#_work_tabs {
    padding: 5px;
}

#_work_tabs .tab-icon {
    display: block;
}

#_work_tabs .tab-icon.active {
    background: rgba(110, 156, 226, 0.73);
}


#_bottom_row table tr td {
    vertical-align: middle;
}

#_work_tabs {
}

#tab_accordion {
    overflow-y: scroll;
    height: 100%;
}

#tab_accordion .page, .page-list .page {
    display: block;
    overflow-y: visible;
    height: 20px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
}

.move-icon {
    transition: ease-in-out .2s transform;
}

.page:hover .move-icon {
    font-weight: bold;
    transform: scale(1.3);
}

.page-list {
    display: block;
    height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.page-list .page {
    margin-top: 1px;
    margin-bottom: 1px;
}

#tab_accordion .page:hover, .page-list .page:hover {
    background: rgba(0,0,0,0.03);
}

#tab_accordion .page.active, .page-list.right .page {
    background: rgba(110, 156, 226, 0.73);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
}

#tab_accordion .page .page-left {
    float: left;
}

#tab_accordion .page .page-right {
    float: right;
}


#tab_accordion .page .page-action {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    opacity: 0.0;
    visibility: hidden;
    margin-left: 3px;
    margin-right: 3px;
    vertical-align: middle;
}

#tab_accordion .page.active:hover .page-action {
    opacity: 0.3;
    visibility: visible;
}

#tab_accordion .page.active .page-action:hover {
    opacity: 0.7;
    visibility: visible;
}

#spinner_dimmer {
    z-index: 90000;
    display: block;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    position: fixed;
    top: 0px;
    left: 0px;
}

#spinner {
    z-index: 90002;
    display: block;
    width: 64px;
    height: 64px;
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translateX(-50%) translateY(-50%);
}


.icon-edit { background-image: url('assets/edit.png'); }
.icon-trash { background-image: url('assets/trash.png'); }
.icon-up { background-image: url('assets/arrow-up.png'); }
.icon-down { background-image: url('assets/arrow-down.png'); }
.icon-cog { background-image: url('assets/cog.png'); }




.tab-icon {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.tab-icon:hover {
    background: rgba(0,0,0,0.05);
}

.tab-icon.active {
    background: rgba(110, 156, 226, 0.73);
}


.smallbutton {
    padding: 3px;
    min-width: 30px;
    outline: none;
}

.smallbutton:active {
    background: rgb(180,180,180);
    border-color: rgb(140,140,140);
}

.ui-select {
    border: 1px solid #c5c5c5;
    background: #f6f6f6;
    font-weight: normal;
    display: inline-block;
    position: relative;
    line-height: normal;
    margin-right: .1em;
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: visible;
    padding: 3px;
    min-width: 30px;
    outline: none;
}


select, select.ui-select {
    -webkit-appearance: none !important;
    border: 1px solid rgba(0,0,0,0.2);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4ggdEDccnXuLoQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAu0lEQVQ4y+3SIWvCcRDG8c8UBpMlMSxYZtA/2ERYMy/bDAOLNtOS2ZdgNg59ETZBGGIyrKwOFnwFBmc54Y+4gbMYvHIc37vnx++54xpnR/agfkIF39jiNvK+7wFF1PF5THCOBcp4PMI7wRe4gUwK3uMrXnzDXYpl0Ec36nf8HH5hgxWqyKMZg0u8oB19U7z+5sEaHyFSQA0ltIJPMPjLxLRIA7kQgBGGp2wowTgM6/13zc+YnXsryWWf8g7I3B1AuI3tmgAAAABJRU5ErkJggg==');
    background-repeat: no-repeat;
    background-position: calc(100% - 6px) 4px;
    background-size: 12px;
    padding: 4px;
}

#_work_area .tab {
    font-family: 'Open Sans', sans-serif;
    font-size: 12pt;
}


.form-part {
    display: block;
    margin-bottom: 15px;
}

.form-part label {
    display: block;
    margin: 5px;
    font-weight: bold;
}

.form-part input[type="text"], .form-part input[type="password"], .form-part input[type="number"] {
    border: 1px solid rgb(200, 200, 200);
    border-radius: 5px;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    padding: 6px;
    width: calc(100% - 12px);
}

.form-part select {
    border: 1px solid rgb(200, 200, 200);
    border-radius: 5px;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    padding: 6px;
    width: calc(100% - 12px);
}

.form-part textarea {
    border: 1px solid rgb(200, 200, 200);
    border-radius: 5px;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    padding: 6px;
    width: calc(100% - 12px);
}

.lastfiles tr {
    margin: 0px;
    padding: 0px;
}

.lastfiles td {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    margin: 0px;
    padding: 7px;
}

.lastfiles td:hover {
    background: rgba(0,0,0,0.1);
}

.dialog-title {
    display: block;
    margin-bottom: 5px;
    font-size: 14pt;
    font-weight: bold;
}

.dialog-text {
    display: block;
}


.editor-action.active {
    border-color: rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.1);
    box-shadow: inset 0px 0px 5px rgba(0,0,0,0.3);
}



.color-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    vertical-align: middle;
    margin-left: 3px;
    margin-right: 2px;
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 2px;
    background-color: #ffffff;
}




.lmath-editor-text-tool {
    
    padding-left: 15px;
    padding-right: 15px;
    
    padding-top: 8px;
    padding-bottom: 8px;
    
}


.lmath-editor-text-tool table {
    /*
    background-color: rgba(255,255,255,0.3);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    */
   border-spacing: 0px;
   margin: 0px;
   padding: 0px;
}


.rich-text-editor-tools {
    position: relative !important;
    top: 0px !important;
    left: 0px !important;
    
    box-shadow: none !important;
    background: #fff2f9 !important;
    background-color: #fff2f9 !important;
}

/* */
.rich-text-editor-focus .rich-text-editor-tools {
     display: block !important;
     transition: top .15s ease-in !important;
     top: 0px !important;
}

/* prevent hiding the new equation button when focused */
.math-editor-focus .rich-text-editor-new-equation {
    display: inline-block !important;
}

.math-editor-focus .rich-text-editor-new-equation {
    display: inline-block !important;
}

/* prevent showing the blue outline when focused on an answer box */
 .rich-text-editor:focus, .rich-text-editor.rich-text-focused, .rich-text-editor .mq-editable-field.mq-focused, .rich-text-editor textarea:focus {
    outline: none !important;
}

/* prevent showing white background on the rich text editor */
.rich-text-editor-tools-row:nth-child(even), .rich-text-editor-tools-row:nth-child(odd) {
    background-color: transparent !important;
    background: transparent !important;
}

.rich-text-editor-button {
    transition: ease-in-out .2s background !important;
}

.rich-text-editor-button:hover {
    background-color: rgba(0,0,0,0.1) !important;
}

.rich-text-editor-tools-button-wrapper {
    /*display: none !important;*/
}

.rich-text-editor-new-equation.rich-text-editor-button.rich-text-editor-button-action {
    display: none !important;
}





.switch {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 24px;
    margin-right: 8px;
}

.switch input {display:none;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #64a554;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

[data-js="newEquation"] {
    opacity: 0 !important;
    display: none !important;
    cursor: default !important;
}



/* Typed.js cursor */
.typed-cursor {
    display: none;
    opacity: 0;
}


ul.ui-menu { max-height: 420px !important; }



.lds-dual-ring {
  display: inline-block;
  width: 64px;
  height: 64px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 46px;
  height: 46px;
  margin: 1px;
  border-radius: 50%;
  border: 5px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}




/*  --------------  */

#_minicalc {
    position: fixed;
    top: calc(50% - 175px);
    left: calc(50% - 150px);
    border: 1px solid rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.5);
    z-index: 10000;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
    opacity: 0.8;
}

#_minicalc:hover, #_minicalc.focused {
    background: rgba(255,255,255,0.9);
    opacity: 1;
}

#_minicalc .calc-top {
    cursor: move;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    overflow-y: auto;
}

#_minicalc .calc-exit {
    float: right;
    display: block;
    width: 10px;
    height: 10px;
    background-image: url('data:image/gif;base64,R0lGODlhGAAYAIABADY2Nv///yH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAAEALAAAAAAYABgAAAJFjI+pC8sMmjtR0mphvTijHnGYAnrlB2pjcDplO73rZMge/dIkrLNy77PpbLNdp5YyFnnBIvL4dIo20RuKyulhP0BWt1sAADs=');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: 1;
}

.calc-exit:hover {
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

#_minicalc .calc-content {
    padding: 3px;
    width: calc(100% - 6px);
    height: 100%;
}

#_minicalc .calc-box {
    display: block;
    overflow-y: scroll;
    overflow-x: hidden;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 5px;
}

#_minicalc .calc-input {
    height: 50px;
    text-align: center;
}

#_minicalc .calc-math-input {
    
    width: calc(100% - 10px);
    padding: 3px;
    font-family: 'Inconsolata', monospace;
    font-size: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    outline: none;
    margin-top: 2px;
    
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: calc(100% - 2px) 4px;
    background-image: url('assets/return.png');
    
}

#_minicalc .calc-math-input:focus {
    border: 2px solid #7fa2db;
}

#_minicalc .calc-answer-input, #_minicalc .calc-answer-output {
    display: block;
    font-family: 'Inconsolata', monospace;
}

#_minicalc .calc-answer-input {
    border-top: 1px solid rgba(0,0,0,0.2);
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 5px;
}

#_minicalc .calc-answer-output {
    color: #510c35;
    margin-left: 25px;
    margin-bottom: 8px;
}

.calc-answer-output img, .calc-answer-input img {
    border: 1px solid transparent;
    cursor: pointer;
}

.calc-answer-output img:hover, .calc-answer-input img:hover {
    border: 1px dotted rgba(0,0,0,0.4);
}

.ui-resizable-handle {
    background-image: none;
}
