.container{
    min-width:520px;
    overflow: hidden;
}
.navbar-inverse{
    background-color: black;
}
.navbar-brand img{
    width:25px;
    height:25px;
    margin-right:8px;
}
figure{
    text-align: center;
}
.modal-footer{
    border-top: none;
    padding-top: 0;
}

.alert.alert-info {
    background-color: white;
}
.alert.alert-info a {
    color: green;
    font-weight:inherit;
}
.tabs-title {
    pointer-events:none;
    color: #333 !important;
    font-weight:bold;
    padding-left: 0 !important;
}
.page-header {
  margin-top: 22px;
}
.breadcrumb{
  display: none;
}
.footer {
  width: 100%;
  margin-bottom: 0;
  margin-top:2.5em;
  background-color:transparent;
  border: none;
  border-top: 1px solid #e7e7e7;
}

textarea{
  min-height: 15em;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

/*.form-group.required label:after {
    content:"*";
}*/

::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}

::file-selector-button {
    font: inherit;
    -webkit-appearance: button;
}

.form-control[type=file] {
    overflow: hidden;
}
.form-control[type=file]:not(:disabled):not([readonly]) {
    cursor: pointer;
}

.form-control::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    -webkit-margin-end: 0.75rem;
    margin-inline-end: 0.75rem;
    color: var(--bs-body-color);
    background-color: var(--bs-tertiary-bg);
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: var(--bs-border-width);
    border-radius: 0;
    -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    -webkit-margin-end: 0.75rem;
    margin-inline-end: 0.75rem;
    color: var(--bs-body-color);
    background-color: var(--bs-tertiary-bg);
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: var(--bs-border-width);
    border-radius: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .form-control::-webkit-file-upload-button {
        -webkit-transition: none;
        transition: none;
    }
    .form-control::file-selector-button {
        transition: none;
    }
}

.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
    background-color: var(--bs-secondary-bg);
}
.form-control:hover:not(:disabled):not([readonly])::file-selector-button {
    background-color: var(--bs-secondary-bg);
}

.loading:after {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    -webkit-animation: ellipsis steps(4,end) 900ms infinite;      
    animation: ellipsis steps(4,end) 900ms infinite;
    /*content: "\2026"; /* ascii code for the ellipsis character */
    content: "...";
    width: 0px;
}

@keyframes ellipsis {
    to {
    width: 1.25em;    
    }
}

@-webkit-keyframes ellipsis {
    to {
    width: 1.25em;    
    }
}


/* entry */
.entry{
    margin-bottom: 3em;
}
.comment{
    margin-top: 1em;
    margin-bottom: 2em;
}
.entry-content {
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.entry-title, .entry-content, .editor-preview, .navbar-brand, .by, .to, #comment a {
    /*font-family: Georgia,Cambria,"Times New Roman",Times,serif;*/
    font-family: Georgia, "Times New Roman", Times, serif;
}

.draft .entry-title::after{
    content:" (draft)";
}

.entry-meta>ul>li>span:first-child {
    vertical-align: -0.125em;
    font-size: 1em;
}
ul.category-list>li::marker {
    vertical-align: -0.125em;
    margin-right: 2px;
}
.entry-meta>ul>li {
    color:#777;
}

a.text-muted:hover {
    color:#333;
}

ul.entry-list>li{
    padding-top: 1em;
    
}
ul.entry-list>li>*{
    min-width:520px;
    max-width:574px;
    margin:auto;
}
ul.entry-list>li>a{
    color: black;
    display: block;
}
ul.entry-list>li>a>.entry-title{
    margin-top:0.25em;
}
ul.no-author>li>.entry-meta>ul>li.by{
    display:none;
}

ul.category-list{
    list-style-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="%23777" class="text-muted bi bi-folder" viewBox="0 0 16 16"><path d="M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a2 2 0 0 1 .342-1.31zM2.19 4a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4zm4.69-1.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139q.323-.119.684-.12h5.396z"/></svg>');/*Copyright (c) 2011-2024 The Bootstrap Authors, Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)*/
}
.category{
    margin-bottom:1em;
    border-bottom:1px solid #ccc;
}
.category form{
    padding-bottom:0.25em;
}

/* math */
/*.navbar, .footer{
    min-width: 567px;
}*/
body {
    min-width:fit-content;
}
.wrapper {
    width: 100%;
    min-width: min-content;
    max-width:832px;
    margin:auto;
}
.entry-content .entry-content-wrapper, .editor-preview .entry-content-wrapper{
    margin:auto;
    width:min-content;
    color:black;
}
.entry-content-wrapper .center{
    text-align: center;
}
.parser-message{
    padding: 0.5em 1em;
    display: none;
}
.editor-information .parser-message{
    display: block;
}
.editor-information{
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
}

.math{
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    overflow-x:auto;
    overflow-y:hidden;
}
.display.math{
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    overflow:unset;
}
ul .display.math span, ol .display.math span, blockquote .display.math span{
    float: right;
}
.display.math svg{
    overflow: unset;
}
/*
.display.math{
    display: flex; 
    justify-content: center;
    text-align: center; 
    margin: 0.5rem auto;
    overflow: hidden;
}
*/
div.mark{
    padding: 1em 2em 0.5em;
}

.theorem-like-lable{
    margin-right:0.5em;
}
/*
.theorem-like-label{
    font-weight: bold;
}
.theorem-like-title{
    margin-right: 0.5em;
}
.theorem-like-title:empty::after{
    content:".";
}
.theorem-like-title:not(:empty) {
    margin-left: 2px; 
}
.theorem-like-title:not(:empty)::before {
    content:"(";
}
.theorem-like-title:not(:empty)::after {
    content:").";
}
*/
.proof-like>*:last-child::after{ 
    content: "\25FB";
    float: right;
}
blockquote{
    font-size:inherit;
}
  
/* CSS for citations */
div.csl-bib-body {
    margin-bottom: 10.5px;
}
div.csl-entry {
    margin-bottom: 0.5em;
    clear: both;
}
.hanging-indent div.csl-entry {
    margin-left:2em;
    text-indent:-2em;
}
div.csl-left-margin {
    min-width:2em;
    float:left;
}
div.csl-right-inline {
    margin-left:2em;
    padding-left:1em;
}
div.csl-indent {
    margin-left: 2em;
}


.or{
    text-align:center;
    margin:1em 0 1.5em;
    border-bottom: 1px solid #dce4ec; 
    line-height: 1px;
}
.or span{
    padding:0 1em; 
    background-color: white;
}
@media screen and (min-width: 574px){
    body, .or span, .modal-content{
        background-color: #f5f5f5;
    }
    .entry-content, .editor-preview{
        background-color: white;
        border: 1px solid #ccc;
    }
    .entry-content {
        padding: 1em 0.5em 0.5em;
    }
}

/* modal */
.modal.flex-center {
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.modal.flex-center .modal-dialog {
  margin: 0; 
}

/* editor */
.editor-toolbar{
    min-width: max-content;
}
select[name="format"]{
    max-width: 13em;
    display: inline-block;
    width:fit-content;
}
.format-wrapper{
    display:inline-block;
    margin-left:0.5em;
    margin-right:0.5em;
}
.format-wrapper::before{
    content:"(";
    color:#777;
}
.format-wrapper::after{
    content:")";
    color:#777;
}

.editor-preview .entry-content-wrapper:empty{
    display:none;
}

.editor-focus{
    border-color: #008000!important;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(0, 128, 0, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(0, 128, 0, 0.6);
}

.editor-toolbar>ul{
    margin:0;
}
.editor-toolbar>ul>li>a{
    display:inline-block;
    padding:0.75em;
}

.ace_editor{
    height:16em;
    border: 1px solid #ccc;
}

.ace_mobile-menu{
    display:none;
}

html:has(.editor-full-screen){
    overflow: hidden;
}

.editor-full-screen{
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 'header header' 'editor preview';    
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    width: 100%;
    height: 100vh;
}

.editor-full-screen .editor-toolbar{
    grid-area: header;
}
.editor-full-screen .ace_editor{
    grid-area: editor;
    height: 100%;
}
.editor-full-screen .editor-preview{
    grid-area: preview;
    overflow-y: auto;
    border: 1px solid #ccc;
}

/*@media screen and (max-width: 574px){
    .editor-full-screen{
        grid-template-rows: auto 1fr 1fr;
        grid-template-columns: 1fr;
        grid-template-areas: 'header' 'editor' 'preview';    
    }
}*/

/* CSS for syntax highlighting */
html { -webkit-text-size-adjust: 100%; }
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
/*.sourceCode { overflow: visible; }*/
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
    { counter-reset: source-line 0; }
pre.numberSource code > span
    { position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
    { content: counter(source-line);
    position: relative; left: -1em; text-align: right; vertical-align: baseline;
    border: none; display: inline-block;
    -webkit-touch-callout: none; -webkit-user-select: none;
    -khtml-user-select: none; -moz-user-select: none;
    -ms-user-select: none; user-select: none;
    padding: 0 4px; width: 4em;
    color: #aaaaaa;
    }
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa;  padding-left: 4px; }
div.sourceCode
    {   }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { color: #008000; } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #777777; font-style: italic; } /* Comment */
code span.cv { color: #777777; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { color: #008000; font-weight: bold; } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */