html {
    font-size: 15px;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999999;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.dark #loading {
    background: #fff;
}

html #notifications {
    position: fixed;
    top: 0;
    right: 0;
    width: 33%;
    text-align: right;
    z-index: 10000
}

#notifications div {
    padding: 1rem;
    margin: 1rem;
    background: #222;
    color: var(--white);
    font-size: 150%;
    font-weight: bold;
    border-radius: 4px;
}

input[type=file] {
    display: none;
}

ul {
    margin-bottom: 0;
}

.modal {
    z-index: 2000 !important;
}

.h-auto {
    height: auto !important;
}

.btn-light.active {
    color: var(--dark) !important;
    text-shadow: 0 1px 0 var(--white);
}

body {
    font-family: 'Open Sans Condensed', sans-serif;
    color: #222;
    background: url('/img/bg.jpg');
}

body.dark {
    filter: invert(1) hue-rotate(180deg) saturate(0.75);
    background: #222 !important;
    color: #222;
}

body.soft {
    filter: saturate(0.25) invert(0.34);
    background: #999 !important;
}

body.soft.dark {
    filter: invert(0.67) hue-rotate(180deg) saturate(0.2) brightness(0.5);
    background: #222 !important;
    color: #222;
}

.dark .text-muted {
    color: #444 !important;
}

.dark input {
    color: #222;
}

.dark,
.dark button,
.dark .popover,
.dark input,
.dark textarea {
    text-shadow: 0 0 0 #222 !important;
}

.dark label {
    color: #555;
}

.hue-15 {
    filter: hue-rotate(15deg);
}

.popover {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 85%;
    line-height: 125%;
    box-shadow: 0px 0px 20px 0px #444;
    color: #222;
    background: var(--white);
    pointer-events: none;
}

.popover-header {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 85%;
    padding: 0.25rem;
    color: #222;
}

.text-under-shadow {
    text-shadow: 0 1px #888;
}

*::-webkit-scrollbar-track {
    /*-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);*/
    background-color: transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: rgba(0.1, 0, 0.1, 0.2);
}

.dropdown-menu::-webkit-scrollbar {
    background-color: var(--gray);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: rgba(0.1, 0, 0.1, 0.2);
}

.card-columns {
    column-gap: 0.5rem;
}

.handle {
    cursor: pointer;
}

.layout-grid {
    display: grid;
    grid-template-columns: 300px auto;
}

.vh-100 {
    height: 100vh;
}

@media (max-width: 1860px) {
    .card-columns {
        column-count: 3;
    }
}

@media (max-width: 1480px) {
    .card-columns {
        column-count: 2;
    }
}

@media (max-width: 1100px) {
    .card-columns {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .vh-100 {
        height: auto !important;
        overflow: visible !important;
    }

    .layout-grid {
        display: block;
    }

    .grid-item {
        width: 385px;
    }
}

.btn-gray {
    background-color: #adb5bd;
    border-color: #adb5bd;
    color: var(--white);
}

.btn-gray:hover {
    color: var(--white);
    background-color: var(--gray);
    border-color: var(--gray);
}

.btn-outline-gray {
    border-color: #adb5bd;
    color: #adb5bd;
}

.btn-outline-gray:hover,
.btn-outline-gray.active {
    background-color: #adb5bd;
    border-color: #adb5bd;
    color: var(--white);
}

.btn-span {
    height: 100%;
    padding: 0;
    font-size: 130%;
}

.tiny {
    font-size: 60%;
}

.sidebar {
    flex: 0 0 300px;
    max-width: 300px;
}

.px-05 {
    padding-left: 0.125rem !important;
    padding-right: 0.125rem !important;
}

.mr-05 {
    margin-right: 0.125rem !important;
}

.grab {
    cursor: move;
}

.packery .grid-item {
    width: 385px;
}

.packery {
    margin-bottom: 2rem;
    min-height: 150vh;
}

[data-toggle='dropdown'],
[data-show='popover'] {
    cursor: pointer
}

h5.card-header,
.modal-title {
    font-family: 'Roboto Slab', serif;
    line-height: 1.2;
}

.modal-body {
    min-height: 80vh;
}

.modal-wide {
    min-width: 90vw;
}

select {
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}


.rot-45 {
    transform: rotate(45deg);
    vertical-align: middle;
}

.flip-y {
    transform: scaleY(-1) rotate(-15deg);
    vertical-align: middle;
}

.bg-0 {
    background-image: none !important;
}

.collapsing {
    transition: none;
}

.w-2 {
    width: 2rem !important;
}

.w-15 {
    width: 1.5rem !important;
}

img {
    width: 100%;
    object-fit: cover;
}

.empty {
    width: 0;
    height: 0;
    position: relative;
}

.border-black-25 {
    border: 1px solid rgba(0, 0, 0, .125)
}

.rpg {
    vertical-align: -0.05rem;
}

.text-gray {
    color: var(--gray);
}

.text-gray-dark {
    color: var(--gray-dark);
}

.empty .rpg {
    font-size: 2.5rem;
    padding: .25rem;
    margin: 0;
    top: -.8rem;
    left: -.15rem;
    position: absolute;
    border: 1px solid rgba(0, 0, 0, .125)
}

.text-monospace {
    font-family: 'Nanum Gothic Coding', monospace;
}

.dark-shadow {
    text-shadow: 1px 1px #222;
}

.text-pre {
    white-space: pre-wrap;
}

textarea.form-control {
    line-height: 1.2;
    font-size: 90%;
}

.squish {
    transform: scaleY(0.75);
}

.big {
    font-size: 125%;
}

label {
    transform: scaleY(0.7);
    background: url('/img/bg.jpg') #dadcde;
    padding: .25rem 1px;
    border-radius: 4px;
    color: var(--white);
    display: block;
    white-space: nowrap;
    transform-origin: center;
}

.pointer {
    cursor: pointer;
    border-radius: 2px;
}

.pointer-primary:hover {
    outline: 2px solid var(--primary);
}

label:empty {
    visibility: none;
    background: transparent;
}

.compress {
    letter-spacing: -0.08em;
}

.opacity-25 {
    opacity: 0.25;
}

.line-height-120 {
    line-height: 120%;
}

.line-height-0 {
    line-height: 0;
}

.twitter-typeahead {
    width: 100%;
}

.tt-menu {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 0px 5px 0px #444;
    color: var(--secondary);
}

.tt-suggestion {
    background: var(--white);
    padding: 0.25rem;
    cursor: pointer;
}

.tt-highlight {
    color: #222;
}

.row-hover {
    /*visibility: hidden;*/
    opacity: 0.2;
}

.form-row:hover .row-hover,
.row-hover .dropdown-menu {
    /*visibility: visible;*/
    opacity: 1;
}