@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500&display=swap");

#noscript-warning {
  color: #fff;
  font-weight: bold;
  background: #ae3333;
  padding: 10px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

img.publisher-logo {
  max-height: 100px;
}
img.project-logo {
  max-height: 200px;
  max-width: 150px;
  padding-bottom: 20px;
}

/* CODEMIRROR */
.CodeMirror-search-hint {
  display: block;
  padding-bottom: 3px;
}
.CodeMirror-activeline-background {
  background: #ddf !important;
}
.CodeMirror-gutter-wrapper > .CodeMirror-gutter-elt {
  cursor: pointer;
}
.remarks {
  width: 0.8em;
}
.fold_button {
  border: 1px solid black;
  text-align: center;
  width: 15px;
  height: 15px;
}
.cm-hidden {
  display: none;
}
.cm-xch {
  background: #f99;
}
.cm-snm {
  background: #008080;
  color: #ffffff;
}
.cm-index {
  background: #ffff99;
}
.cm-origbib {
  color: #bbb;
}
.cm-spell-error {
  background: #ffeecc;
}

.cm-sfind {
  background: #00cc00;
  color: #ffffff;
}
.label-author {
  background: #ccc234;
  color: #ffffff;
}
.label-editor {
  background: #539c53;
  color: #ffffff;
}
.label-LE {
  background: #5e85a5;
  color: #ffffff;
}
.fold_button.folded:after {
  content: "Show LaTeX preamble";
  font-weight: normal;
  padding: 2px;
  display: none;
  position: relative;
  top: -20px;
  right: -45px;
  width: 250px;
  text-align: center;
  color: #000;
  background-color: #fef4c5;
  border: 1px solid #d4b943;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  -ms-border-radius: 2px;
  border-radius: 2px;
  z-index: 1000;
}
.fold_button.unfolded:after {
  content: "Hide LaTeX preamble";
  font-weight: normal;
  padding: 2px;
  display: none;
  position: relative;
  top: -20px;
  right: -45px;
  width: 250px;
  text-align: center;
  color: #000;
  background-color: #fef4c5;
  border: 1px solid #d4b943;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  -ms-border-radius: 2px;
  border-radius: 2px;
  z-index: 1000;
}
.fold_button:hover:after {
  display: block;
}
.CodeMirror-gutter-wrapper > .CodeMirror-gutter-elt:after {
  content: "Click to add or edit remark";
  padding: 2px;
  display: none;
  position: relative;
  top: -20px;
  right: -45px;
  width: 250px;
  text-align: center;
  color: #000;
  background-color: #fef4c5;
  border: 1px solid #d4b943;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  -ms-border-radius: 2px;
  border-radius: 2px;
}
.CodeMirror-gutter-wrapper > .CodeMirror-gutter-elt:hover:after {
  display: block;
}
#diff-area .CodeMirror-gutter-wrapper > .CodeMirror-gutter-elt:hover:after {
  display: none;
}
.CodeMirror {
  line-height: 1.2em;
}

/* Additional CodeMirror rich text styles */
.cm-s-richtext .cm-bigtext1,
.cm-s-richtext .cm-bigtext2,
.cm-s-richtext .cm-bigtext3,
.skylatex-env-open,
.skylatex-env-close,
.cm-bigtext1 ~ .cm-rtitalic,
.cm-bigtext2 ~ .cm-rtitalic,
.cm-bigtext3 ~ .cm-rtitalic,
.cm-bigtext4 ~ .cm-rtitalic,
.cm-bigtext1 ~ .cm-rtbold,
.cm-bigtext2 ~ .cm-rtbold,
.cm-bigtext3 ~ .cm-rtbold,
.cm-bigtext4 ~ .cm-rtbold,
.cm-bigtext1 ~ .cm-smallcaps,
.cm-bigtext2 ~ .cm-smallcaps,
.cm-bigtext3 ~ .cm-smallcaps,
.cm-bigtext4 ~ .cm-smallcaps {
  line-height: 1.7em;
  color: #004d00;
  font-family: "Times New Roman", Times, serif;
  min-height: 1.2em;
}
.cm-s-richtext .cm-command {
  color: #170;
}
.cm-s-richtext .cm-bigtext1,
.cm-bigtext1 ~ .cm-rtitalic,
.cm-bigtext1 ~ .cm-rtbold,
.cm-bigtext1 ~ .cm-smallcaps {
  font-size: 1.7em;
}
.cm-s-richtext .cm-bigtext2,
.cm-bigtext2 ~ .cm-rtitalic,
.cm-bigtext2 ~ .cm-rtbold,
.cm-bigtext2 ~ .cm-smallcaps {
  font-size: 1.4em;
}
.cm-s-richtext .cm-bigtext3,
.cm-bigtext3 ~ .cm-rtitalic,
.cm-bigtext3 ~ .cm-rtbold,
.cm-bigtext3 ~ .cm-smallcaps {
  font-size: 1.2em;
}
.cm-s-richtext .cm-bigtext4,
.cm-bigtext4 ~ .cm-rtitalic,
.cm-bigtext4 ~ .cm-rtbold,
.cm-bigtext4 ~ .cm-smallcaps {
  font-size: 1.1em;
}
.skylatex-env-open {
  font-size: 1.2em;
}
.skylatex-env-hr {
  margin-top: 7pt;
  margin-bottom: 7pt;
  width: 100%;
  height: 4pt;
  background-color: rgb(109, 122, 128);
}
.cm-s-richtext span.cm-rtitalic {
  font-style: italic;
}
.cm-s-richtext span.cm-rtbold {
  font-weight: bold;
}

.cm-s-richtext .markedRange {
  font-style: normal;
}
.cm-s-richtext .cm-smallcaps,
.cm-s-richtext .cm-smallcaps-italic {
  font-variant: small-caps;
}
.cm-s-richtext .cm-smallcaps-italic {
  font-style: italic;
}
.cm-s-richtext .cm-supscript {
  vertical-align: super;
}
.cm-s-richtext .cm-subscript {
  vertical-align: sub;
}

/* SKYLATEX INTERFACE */
a.latest {
  background: #e3e3ff;
}
.pdf-page-counter {
  display: inline-block;
  margin-right: 5px;
}
#remark-dialog, #alt-text-dialog {
  position: absolute;
  display: none;
  z-index: 1000;
  background: white;
  padding: 0 5px 5px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
#dashboard {
  position: absolute;
  top: 50px;
  bottom: 48px;
  left: 0;
  right: 0;
}
#two-panes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
}
@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 7.5px -15px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .navbar-text {
        float: none;
        margin: 15px 0;
    }
    /* since 3.1.0 */
    .navbar-collapse.collapse.in { 
        display: block!important;
    }
    .collapsing {
        overflow: hidden!important;
    }
}
@media(max-width: 768px) {
    .modal-dialog.fullscreen {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    .modal-content.fullscreen {
        height: auto;
        min-height: 100%;
        border-radius: 0;
    } 
}
#menu {
  position: absolute;
  top: 37px;
  bottom: 0;
  overflow: hidden;
}
#splitter {
  border-width: 0;
  border-top-width: 1px;
  border-left-width: 1px;
  height: 100% !important;
}
#file-edit {
  overflow-y: auto;
  border-top: 1px solid #dcdcdc;
}
#file-preview {
  overflow-y: hidden;
}
#footerSlideContainer {
  z-index: 950;
  position: fixed;
  bottom: 0;
  width: 100%;
}
.footer-buttons {
  background: white;
  padding-top: 6px;
}
#footerSlider {
  position: fixed;
  display: block;
  left: 0;
  right: 0;
  height: 4px;
  background: #dcdcdc;
  cursor: ns-resize;
}
#footerSlideContent {
  float: left;
  background: #fff;
  width: 100%;
  height: 0px;
  overflow-y: scroll;
}
#footerSlideContent.animated,
#dashboard.animated {
  -webkit-transition: all 300ms 1s ease-in;
  -moz-transition: all 300ms 1s ease-in;
  -ms-transition: all 300ms 1s ease-in;
  -o-transition: all 300ms 1s ease-in;
  transition: all 300ms 1s ease-in;
}
#queries-button,
#remarks-button,
#log-button {
  background: #428bca;
  color: #fff;
}
/* #wrapper {
    height: 70%;
    width: 100%;
    overflow-y: auto;
    margin-top: 20px;
  } */
#tex-log {
  white-space: pre;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.8em;
}
#tex-log-button {
  background: #999999;
  color: #fff;
}
#tex-log .CodeMirror-gutter-wrapper > .CodeMirror-gutter-elt:hover:after {
  display: none;
}
.active #tex-log-button {
  background: #3a3a47;
  color: #fff;
}
#errors-button {
  background: #ce5d5d;
  color: #fff;
}
.active #errors-button {
  background: #a03636;
  color: #fff;
}
#log-badge {
  background: #918417;
}
.active #queries-button,
.active #remarks-button,
.active #log-button {
  background: #275488;
  color: #fff;
}
.tab-head {
  padding-left: 5px;
  padding-top: 5px;
  font-size: 16px;
  color: #404040;
}
.log-line {
  font-family: Consolas, Monaco, Lucida Console, Liberation Mono,
    DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
  margin: 0;
  padding-left: 5px;
}
#myModal {
  overflow-y: auto;
}
.modal-content.fullscreen {
  height: 100%;
}
.modal-body.fullscreen {
  padding: 5px;
  position: absolute;
  top: 60px;
  bottom: 5px;
  left: 5px;
  right: 5px;
}
@media(min-width: 769px) {
    .modal-dialog.fullscreen {
        padding: 0;
        width: auto;
        position: absolute;
        top: 55px;
        bottom: 55px;
        left: 70px;
        right: 70px;
    }
}
#note_dialog {
  position: absolute;
  display: none;
  z-index: 1000;
  background: white;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.diff-heading {
  padding-left: 10px;
  margin: 5px;
  font-weight: bold;
}
.compile-options {
  background: rgb(165, 165, 165);
  margin-right: -5px;
}
.compile-option-item-checked::before {
  position: absolute;
  left: 0.4rem;
  content: "✓";
  font-weight: 600;
}
.latex-error {
  background: #fdd;
}
#messages {
  position: relative;
  z-index: 1000;
}
div.remark {
  display: none;
}
p.remark-line {
  padding-left: 5px;
  margin: 2px;
}
p.remark-line > a.view-line {
  display: inline-block;
  min-width: 70px;
}
p.remark-line > a.view-log-line {
  display: inline-block;
  min-width: 70px;
}
.delete-file {
  display: inline-block;
}
button.query-edit {
  min-width: 100px;
}
#edit-change-modal,
#query-dialog,
#inline-query-dialog,
#editor-query-dialog {
  position: absolute;
  z-index: 1000;
  background: white;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.query_reply,
.query_text,
.file_note {
  white-space: pre-wrap;
}
a.active-version {
  background: #eee;
}
#overlay,
#overlay-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}
#overlay-background {
  background-color: #000;
  filter: alpha(opacity=20);
  -moz-opacity: 0.2;
  -khtml-opacity: 0.2;
  opacity: 0.2;
}
#tutorial-popup {
  z-index: 2000;
}
.remark_actions {
  white-space: nowrap;
}
.remark_actions > a {
  margin-left: 10px;
}

img.pdfpage {
  display: block;
  margin-bottom: 6px;
  -webkit-box-shadow: 0px 0px 3px 0px rgba(50, 50, 50, 0.5);
  -moz-box-shadow: 0px 0px 3px 0px rgba(50, 50, 50, 0.5);
  box-shadow: 0px 0px 3px 0px rgba(50, 50, 50, 0.5);
  background: white;
}
#pdfpages {
  overflow: auto;
}
#pdftoolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  height: 32px; /* 32px */
  top: 6;
  width: 100%;
  border-bottom: 1px solid #999;
  background-color: #474747;
  padding: 4px;
}
#pdfviewport {
  position: absolute;
  top: 40px; /* 40px */
  bottom: 0;
  width: 100%;
  overflow: auto;
  background: #ccc;
}
.popover-title {
  background: #f0ad4e;
}
.spinner-sm {
  width: 20px;
  height: 20px;
  opacity: 0.4;
}
.toggle-button {
  background: #cccccc;
}
.addq-button {
  background: #d8d64e;
  position: absolute;
  top: 50px;
  right: 115px;
}
.addq-button:hover {
  background: #f7ff68;
}
.addq-button:focus {
  background: #d8d64e;
}
.qm {
  background: #ff0000;
}
.qm:hover {
  background: #00ff00;
}
.delta-pdf {
  margin-top: 5px;
}

.mark-edit {
  cursor: pointer;
  background: #cce6ff;
  margin: 5px;
}

.mark-edit:hover {
  background: #0099cc;
}

/* Custom glyphicons */
.custom-icon {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 37px;
  width: 37px;
}
.panel-left {
  background-image: url(panel-left.png);
}
.panel-right {
  background-image: url(panel-right.png);
}
.panel-center {
  background-image: url(panel-center.png);
}
#recompile-mark {
  -webkit-transform-origin: 50% 58%;
  transform-origin: 50% 58%;
  -ms-transform-origin: 50% 58%; /* IE 9 */
  -webkit-animation: spin 1s infinite linear;
  -moz-animation: spin 1s infinite linear;
  -o-animation: spin 1s infinite linear;
  animation: spin 1s infinite linear;
}
@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Track changes */
.line-wrap-toggle {
  position: absolute;
  left: 50%;
  bottom: 50% !important; 
}

#line-wrap-toggle{
  position: relative;
  left: -50%;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

.CodeMirror-merge-scrolllock-wrap{
  bottom: 45% !important;
}

.change-unit {
  display: flex;
  align-items: center;
  margin: 5px;
  cursor: pointer;
  width: "100%";
}

.change-unit:hover {
  background-color: rgb(223, 223, 223);
}

.badge-success {
  background-color: #539c80;
}

.badge-danger {
  background-color: #e85a4f;
}

.badge-cancel {
  background-color: #f0cd33c4;
  color: rgb(49, 49, 49);
}

.badge-replaced {
  background-color: #4376b1;
}

#tch-modal-content-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.diff-versions-container {
  order: 2;
  margin-top: 2vh;
  font-size: 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.tch-table {
  font-family: "Roboto", sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: table;
}

.tch-table-container {
  max-height: 70vh !important;
  scrollbar-gutter: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  margin: 5px 10px;
}

.tch-header {
  font-weight: 400 !important;
  font-size: 15px;
  padding: 10px;
}

.tch-row {
  display: table-row;
  cursor: pointer;
  background: #f6f6f6;
}

.tch-row-selected {
  display: table-row;
  cursor: pointer;
  background: #8ad3f0a1;
}

.tch-row:nth-of-type(odd) {
  background: #e9e9e9;
}

.tch-data {
  padding: 4px;
  height: 20px;
}

.tch-text-data-field {
  display: flex;
}

.tch-buttons-field {
  display: flex;
  justify-content: flex-end;
  padding-right: 15px;
}

.tch-change-text {
  width: 200px;
  font-family: "Courier New", Courier, monospace;
  font-weight: lighter;
  resize: none;
  background-color: inherit !important;
  border: 1px solid #cecece86 !important;
  overflow: auto !important;
}

.tch-change-text:read-only {
  border: none !important;
  outline: none;
}

.tch-remove-change-button {
  font-size: 17px;
  border: none;
  color: #e85a4f;
  background-color: transparent;
  padding: 2px;
  margin-right: 3px;
}

.tch-add-change-button {
  font-size: 17px;
  border: none;
  color: #e85a4f;
  background-color: transparent;
  padding: 2px;
}

.tch-edit-change-button {
  font-size: 17px;
  border: none;
  color: #537f9c;
  background-color: transparent;
  padding: 2px;
}

.tch-find-change-button {
  font-size: 17px;
  border: none;
  color: #537f9c;
  background-color: transparent;
  padding: 2px;
}

.tch-cancel-change-button {
  border: none;
  color: #e85a4f;
  background-color: transparent;
}

.tch-reverse-button {
  border: none;
  color: #537f9c;
  background-color: transparent;
}

.tch-save-change-button {
  border: none;
  color: #539c80;
  background-color: transparent;
}

/* #tch-modal-content-container .CodeMirror {
  width: 30vw;
  height: 60vh;
  z-index: 0 !important;
} */

.tch-added-editor-text {
  background-color: #539c805e;
  color: #027737 !important;
}

.tch-removes-editor-text {
  background-color: #e8594f7c;
  color: #802923 !important;
}

.tch-removed-text {
  background-color: #b14d467c;
  color: #551c18 !important;
}

.tch-added-text {
  background-color: #3a6b585e;
  color: #034d24 !important;
}

.change-selection {
  background-color: #79a4ffa1;
}

.style-new {
  background-color: mediumslateblue;
}

.style-2 {
  background-color: white;
}

.tch-versions-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #6262623b;
  margin: 8px;
  padding: 6px;
}

.tch-version-title {
  font-size: 15px;
  font-weight: normal;
  color: #474747d0;
}

.tch-version-info-container {
  display: flex;
  flex-direction: column;
}

.tch-version-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  font-size: 14px;
  color: #404040;
  z-index: 100;
}

.tch-row-title {
  margin-right: 5px;
}

.modal-dialog {
  width: 98vw !important;
  height: 95vh !important;
}

#diff-area .CodeMirror {
  height: 70vh;
  z-index: 0;
  font-family: "Source Code Pro", monospace !important;
}

#diff-area .CodeMirror-merge {
  height: 70vh;
  z-index: 0;
}
.diff-view-container {
  flex-grow: 2;
  min-width: 60vw;
}
/*
#diff-area .CodeMirror-linenumber {
  padding: 0;
  width: 40px !important;
}
*/

#diff-area div.CodeMirror-gutter.CodeMirror-linenumbers {
  width: 40px;
}

#remarks-container .CodeMirror {
  height: 45vh;
}

#diff-area .CodeMirror-linenumber.plus-sign,
#diff-area .CodeMirror-linenumber.minus-sign {
  padding: 0;
  width: min-content !important;
  text-align: center;
}

.minus-sign {
  color: rgb(131, 0, 0) !important;
}

.plus-sign {
  color: #00530b !important;
}
/*
.CodeMirror-gutters {
  left: 0;
  width: 40px;
}
*/

.CodeMirror-selected {
  background-color: #2b2a2a8e !important;
}

.CodeMirror-linebackground {
  border-color: transparent !important;
}

.CodeMirror-merge-l-deleted {
  background-color: rgba(214, 0, 0, 0.397) !important;
  background-image: none !important;
}

.focus-on-deleted {
  background-color: rgba(131, 43, 43, 0.397) !important;
}

.CodeMirror-merge-l-inserted {
  background-color: rgba(1, 90, 1, 0.432) !important;
  background-image: none !important;
}

.diff-add-marker {
  background: #5de76f36 !important;
}

.diff-rem-marker {
  background: #e7725d44 !important;
}

.merge-line-symbol {
  width: 20px;
  cursor: default;
}

.tch-table-replace-container {
  display: flex;
  gap: 0px 10px;
}

.tch-table-text-container {
}

.tch-table-text-badge-container {
  display: flex;
  flex-direction: column;
  padding-bottom: 7px;
}

.tch-table-text-area {
  width: 100%;
  font-family: "Courier New", Courier, monospace;
  font-weight: lighter;
  resize: none;
  background-color: inherit !important;
  border: 1px solid #cecece86 !important;
  overflow: auto !important;
  overflow-wrap: anywhere;
}

.change-text {
  display: block;
  white-space: pre;
  font-family: "Courier New", Courier, monospace;
  font-weight: lighter;
}

.change-ldots {
  font-size: 14px;
  font-weight: bold;
}
/*  */

#curpage
{
  width: 35px;
  border: none;
  background-color: #666666;
}
#curpage:focus-visible{
  outline: none;
}