@charset "UTF-8";

:root, [data-bs-theme=light] {
    --gebook-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    --gebook-background-color-rgb: 255, 255, 255;
    --gebook-background-color: #FFFFFF;
    --gebook-background-1-color-rgb: 249, 249, 249;
    --gebook-background-1-color: #F9F9F9;
    --gebook-background-2-color-rgb: 233, 233, 233;
    --gebook-background-2-color: #E9E9E9;
    --gebook-gray-1: #F9F9F9;
    --gebook-gray-2: #E9E9E9;
    --gebook-gray-3: #ADADAD;
    --gebook-gray-4: #878787;
    --gebook-gray-5: #5F5F5F;
    --gebook-gray-6: #4B4B4B;
    --gebook-gray-7: #282828;
    --gebook-text-color-rgb: 95, 95, 120;
    --gebook-text-color: #5F5F78;
    --gebook-text-color-light-rgb: 142, 142, 180;
    --gebook-text-color-light: #8E8EB4;
    --gebook-logo-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    --gebook-logo-font-weight: 400;
    --gebook-logo-color-rgb: 195, 140, 195;
    --gebook-logo-color: #C38CC3;
    --gebook-logo-g-color-rgb: 148, 0, 211;
    --gebook-logo-g-color: #9400D3;
    --gebook-logo-e-color-rgb: 63, 211, 0;
    --gebook-logo-e-color: #3FD300;
    --gebook-hihglited-event-color: #E3F6ED;
    --gebook-tag1-bg-color: #D0ECF2;
}

[data-bs-theme=dark] {
    --gebook-background-color-rgb: 40, 40, 40;
    --gebook-background-color: #282828;
    --gebook-background-1-color-rgb: 20, 20, 20;
    --gebook-background-1-color: #141414;
    --gebook-background-2-color-rgb: 0, 0, 0;
    --gebook-background-2-color: #000000;
    --gebook-text-color-rgb: 222, 226, 230;
    --gebook-text-color: #DEE2E6;
    --gebook-text-color-light-rgb: 139, 185, 254;
}

.container-minw-fit {
    min-width: fit-content
}

.container-minw-sm {
    min-width: var(--bs-breakpoint-sm);
}

.container-minw-md {
    min-width: var(--bs-breakpoint-md);
}

.container-minw-lg {
    min-width: var(--bs-breakpoint-lg);
}

.container-minw-xl {
    min-width: var(--bs-breakpoint-xl);
}

.container-minw-xxl {
    min-width: var(--bs-breakpoint-xxl);
}

.container-maxw-sm {
    max-width: var(--bs-breakpoint-sm);
}

.container-maxw-md {
    max-width: var(--bs-breakpoint-md);
}

.container-maxw-lg {
    max-width: var(--bs-breakpoint-lg);
}

.container-maxw-xl {
    max-width: var(--bs-breakpoint-xl);
}

.container-maxw-xxl {
    max-width: var(--bs-breakpoint-xxl);
}

.gebook-logo {
    color: var(--gebook-logo-color);
    font-weight: var(--gebook-logo-font-weight);
    font-style: normal;
    font-family: var(--gebook-logo-font-family);
    font-optical-sizing: auto;
    white-space: nowrap;
}

.gebook-logo img {
    width: var(--bs-body-font-size);
    height: var(--bs-body-font-size);
}

.gebook-logo .letter-g {
    color: var(--gebook-logo-g-color);
}

.gebook-logo .letter-e {
    color: var(--gebook-logo-e-color);
}

.gebook-tag1 {
    color: var(--gebook-text-color) !important;
    background-color: var(--gebook-tag1-bg-color) !important;
}

/* Summernote rewrites */

.note-editor .dropdown-toggle::after {
    all: unset;
}

.note-editor .note-dropdown-menu {
    box-sizing: content-box;
}

.note-editor .note-modal-footer {
    box-sizing: content-box;
}

.note-editor.note-airframe, .note-editor.note-frame {
    border: 1px solid !important;
}

.note-editor.note-airframe.fullscreen, .note-editor.note-frame.fullscreen {
    background: var(--gebook-background-color) !important;
}

.note-frame {
    color: inherit !important;
    font-family: inherit !important;
}

.note-toolbar {
    background-color: inherit !important;
    color: inherit !important;
}

.note-btn {
    background-color: inherit !important;
    color: inherit !important;
}

/* Bootstrap rewrites */

:root {
    --bs-link-color-rgb: var(--gebook-text-color-rgb);
    --bs-link-hover-color-rgb: var(--gebook-text-color-light-rgb);
    --bs-body-color: var(--gebook-text-color);
    --bs-body-color-rgb: var(--gebook-text-color-rgb);
    --bs-body-bg: var(--gebook-background-color);
    --bs-body-bg-rgb: var(--gebook-background-color-rgb);
    --bs-body-font-family: var(--gebook-font-family);
    --bs-emphasis-color-rgb: var(--gebook-text-color-rgb);
    --bs-emphasis-color: var(--gebook-text-color);
    --td-font-color: var(--gebook-text-color);
}
