html {
    font-size: 14px;
    height: 100%;
    margin: 0;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
    background-color: dimgrey;
    margin: 0;
}

.card {
    border-radius: 0 !important;
    background-color: #212529;
    color: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.nav {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.nav-link.disabled {
    color: #6c757d !important;
}

.nav-item {
    width: 100%;
}

.field-validation-error {
    color: red;
}

.nav-border-top {
    border-top: 1px solid grey;
}

.nav-border-bottom {
    border-bottom: 1px solid grey;
}

.topbar {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 250px;
}

.content {
    margin-left: 250px;
}

@media screen and (max-width: 700px) {
    .topbar {
        display: block;
    }

    .sidebar {
        display: none;
        width: auto;
    }

    .sidebar.show {
        display: block;
    }

    .content {
        margin-left: 0;
    }
}

.nav-item:not(.disabled):hover {
    background-color: rgb(45, 45, 45);
}

.card-header h1, .card-header h2 {
    margin-bottom: 0;
}

label {
    font-weight: bold;
}

.vote-button {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0.25rem 0.5rem;
}

.vote-button .vote-icon-filled {
    display: none;
}

.vote-button:hover .vote-icon-outline,
.vote-button:focus-visible .vote-icon-outline {
    display: none;
}

.vote-button:hover .vote-icon-filled,
.vote-button:focus-visible .vote-icon-filled {
    display: inline-block;
}

.vote-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.markdown-editor {
    color: inherit;
}

.markdown-editor__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.markdown-editor__hint,
.markdown-editor__footer {
    color: #6c757d;
    font-size: 0.8rem;
}

.markdown-editor__shell {
    position: relative;
}

.markdown-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-bottom: 0;
    border-radius: 0.375rem 0.375rem 0 0;
}

.markdown-editor__toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding-right: 0.4rem;
    margin-right: 0.2rem;
    border-right: 1px solid #ced4da;
}

.markdown-editor__toolbar-group--right {
    margin-left: auto;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.markdown-editor__block-select {
    min-width: 8.5rem;
}

.markdown-editor__button {
    min-width: 2.15rem;
    color: #212529;
}

.markdown-editor__button:hover,
.markdown-editor__button:focus-visible,
.markdown-editor__button.active {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.markdown-editor__surface {
    min-height: 220px;
    max-height: 520px;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    color: #10233f;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0 0 0.375rem 0.375rem;
    outline: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.markdown-editor__surface:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.markdown-editor__surface:empty::before {
    color: #6c757d;
    content: attr(data-placeholder);
    pointer-events: none;
}

.markdown-editor__surface h1,
.markdown-editor__surface h2,
.markdown-editor__surface h3,
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.markdown-editor__surface p,
.markdown-content p {
    margin-bottom: 0.75rem;
}

.markdown-editor__surface p:last-child,
.markdown-content p:last-child {
    margin-bottom: 0;
}

.markdown-editor__surface blockquote,
.markdown-content blockquote {
    padding-left: 0.85rem;
    margin: 0.75rem 0;
    color: #495057;
    border-left: 0.25rem solid #adb5bd;
}

.markdown-editor__surface pre,
.markdown-content pre {
    padding: 0.75rem;
    overflow-x: auto;
    color: #f8f9fa;
    background-color: #212529;
    border-radius: 0.25rem;
}

.markdown-editor__surface code,
.markdown-content code {
    padding: 0.1rem 0.25rem;
    color: #842029;
    background-color: #f8d7da;
    border-radius: 0.2rem;
}

.markdown-editor__surface pre code,
.markdown-content pre code {
    padding: 0;
    color: inherit;
    background-color: transparent;
}

.markdown-editor__surface ul,
.markdown-editor__surface ol,
.markdown-content ul,
.markdown-content ol {
    padding-left: 1.75rem;
}

.markdown-editor__task-checkbox {
    margin-right: 0.45rem;
    vertical-align: middle;
}

.markdown-editor__source,
.markdown-content__source {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.markdown-editor__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.35rem;
}

.markdown-editor--compact .markdown-editor__surface {
    min-height: 140px;
    max-height: 320px;
}

.markdown-editor--expanded {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: auto;
    background-color: #212529;
    color: whitesmoke;
}

.markdown-editor--expanded .markdown-editor__shell {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.markdown-editor--expanded .markdown-editor__surface {
    flex: 1;
    max-height: none;
}

.markdown-editor--expanded .markdown-editor__footer {
    color: #adb5bd;
}

@media screen and (max-width: 700px) {
    .markdown-editor__toolbar-group--right {
        margin-left: 0;
    }

    .markdown-editor__surface {
        min-height: 180px;
    }
}
