:root {
    --badgeBorderRadius: 15px;
    --min-sidebar-width: 100px;
    --search-form-margin: 200px;
    --scrollbar-width: 32px;
    --side-toolbar-height: 64px;
    --main-menu-button-width: 24px;
    --dark-brown-color: #2b2917;
    --darkest-color: #0f0f00;
    --accent-text-color: lightblue;
    --text-color: white;
    --gray-background: #35373B;
    --light-gray-background: #DFDFDF;
    --light-gray-background-transparent-70: #DFDFDF7F;
    --dark-gray-background: #35373B;
    --dark-gray-background-transparent-70: #35373B70;
    --instanote-info-bg: #ffffbf;

    @media (prefers-color-scheme: light) {
        --semitransparent-background: rgba(248, 248, 248, 0.8);
        --focusOutline: 3px solid #8d82ff;
    }

    @media (prefers-color-scheme: dark) {
        --semitransparent-background: rgba(33, 33, 33, 0.8) !important;
        --focusOutline: 3px solid #ff9f8a;
    }
}

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

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

html,
body {
    font-family: "Calibri", -apple-system, BlinkMacSystemFont, sans serif;
    font-weight: 300;
    scrollbar-width: thin;
    scroll-padding-top: calc(var(--MainToolbar_height) + var(--NoteEditor_margin));
    scroll-padding-bottom: var(--NoteEditor_margin);
}

body {
    max-width: 100vw;
    overflow-x: hidden;
}

.noLineHeight {
    line-height: 0 !important;
}

.searchKeywordHighlightSubtle {
    font-weight: bold;
}

.searchKeywordHighlight {
    display: inline-block;
    background: yellow;
    border-radius: 0.4em;
    box-shadow: 0 0 30px 30px #FFFF007F;
    z-index: 100000;

    @media (prefers-color-scheme: dark) {
        color: black;
    }
}

.toolButton {
    color: #777;
}

.thinScrollbar {
    scrollbar-width: thin;
}

.thinScrollbar::-webkit-scrollbar {
    width: 9px;
}

.thinScrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.thinScrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 20px;
    border: transparent;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.space {
    display: inline-block;
    width: 10px;
}

.siteLogin {
    border-radius: 10px;
    margin: 20px auto;
    padding: 50px;
    max-width: 600px;

    @media (prefers-color-scheme: dark) {
        background: var(--dark-brown-color) !important;
    }
}

.dateHeader {
    margin-top: 20px;
    font-size: 24px;
    padding: 3px 5px;
    text-align: center;
    background: rgba(229, 229, 229, 0.5);
    position: sticky;
    opacity: 1;
    top: 50px;
    z-index: 1;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* todo move to SettingsPopup */
.tagLink {
    margin-right: 20px;
    color: grey;
    display: inline-block;
}

.tag.label.label-info {
    /*background: #337ab7;*/
    background: grey;
}

input[type=text], input[type=email], input[type=password] {
    border-radius: 0;
}

.btn, .btn-xs, .btn-sm, .btn-lg {
}

 .btn-flat,
a.btn-flat,
a.btn-flat:visited,
a.btn-flat:active,
a.btn-flat:disabled,
._
{
    text-decoration: none !important;
    border: none;
    background: transparent;
}

.translateButton {
    min-width: 150px;
}

.tag.label.label-info::before {
    content: '#';
}
.tag.label.label-info {
    color: lightgrey;
    font-weight: normal;
    background: transparent;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

span[data-role=remove] {
    margin-left: 2px !important;
}

span[data-role=remove]:after {
    content: '×' !important;
}

.alert {
    border-radius: 0;
    border: none;
}

.dropElementAnimation {
    animation-timing-function: ease-in;
    animation-name: dropElementAnimation;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
    animation-delay: 0s;
}

@keyframes dropElementAnimation {
    from {
        opacity: 1;
        z-index: 1000000;
        position: absolute !important;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        z-index: 1000000;
        position: absolute !important;
        display: none;
        transform: translateY(500px);
    }
}

.popover-body {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}


.tag-index, .tag-update, .tag-create {
    /* adding background because wallpaper might make it hard to read texts and see other UI elements */
    padding: 20px;
    background: var(--bs-body-bg);
}






/* DARK MODE */







@media (prefers-color-scheme: dark) {
    /* Unfortunately Safari doesn't support @import with queries so we had to move dark styles from dark.css to here */

    * {
        color-scheme: dark; /* force dark scroll bars */
    }

    body {
        background: var(--dark-gray-background);
        color: var(--text-color);
    }

    .navbar {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: var(--darkest-color) !important;
    }

    .pagination, .pagination li, .pagination li a, .pagination li span {
        background: var(--dark-brown-color) !important;
    }

    code {
        background: var(--dark-brown-color) !important;
        color: lightgreen;
    }
}

.btnSidebar_toolbar {
    background: transparent;
    border-color: #7f7f7f1f !important;
}

.btnSidebar_toolbar * {
    color: #7f7f7f;
}

.Grid_tableHeader th {
    top: calc(var(--MainToolbar_height) - 1px);
}
