:root {
    /* --gltr-color : rgb(179,150,255) */
    --gltr-color: #b396ff;
    --gltr-background-color: #000;
    --gltr-contrast-color: #CADDF2;
    --mark-color: #F9DA78;
    --editor-color: #0094FF;
    --editor-select-color: #0070C0;
    --default-bbl-color: #000000;
    --default-bbb-color: #ffffff;
    --feedback-color: #f0f0f0;
    --contents-bg-color: #222;
    --sticky-green-color: #3DB952;
    --bbf-view-color1: #ffff00;
    --bbf-view-color2: #F9DA78;
    --bbf-edit-color1: #0094FF;
    --bbf-edit-color2: #7fd3ff;
    --select-border-size: 22px;
    --height-gltr-top-logo: 140px;
    --thickness-active-row-border: 13px;
    --bottom-toolbar-color: #D9D9D9;
    --height-navigation-bar: 100px;
    --height-navigation-bar-minimal: 90px;
    --height-glitz-top: 93px;
    --sticky-mark-width: 27%;
    --sticky-mark-height: 22%;
    --glitz-default-bubble-font: 'Poppins', 'Pretendard';
    --glitz-default-app-font: 'Poppins', 'Pretendard';
    --glitz-default-mark-font: 'Ownglyph Memo Okja';
    --gltr-max-width: 950px;
    --gltr-min-width: 700px;
    --zindex-selected-div: 1200;
    --zindex-button-on-cut: 1201;
    --zindex-tc-toolbar: 1201;
    --zindex-gltr-top: 2000;
    --zindex-edit-more: 2001;
    --zindex-mark-float-btn: 2002;
    --zindex-bottom-toolbar: 2105;
    --zindex-popup-menu: 2106;
    --zindex-dialogbox: 2107;
    --zindex-screen-cover: 2699;
    --zindex-message-overlay: 2700;
    --glitz-label-base-font-size: 32px;
}

/* this prevent image callout menu in ios */
* {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.noselect,
button,
input,
textarea {
    -webkit-user-select: none;
    user-select: none;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    position: fixed;
    padding: 0;
    margin: 0;
    color: white;
    font-family: var(--glitz-default-app-font);
    background-color: var(--gltr-background-color);
    user-select: none !important;
    touch-action: pan-x pan-y;
}

.gltr-body-desktop {
    max-width: var(--gltr-max-width);
    min-width: var(--gltr-min-width);
    border-right: 5px solid rgba(30, 30, 30, 0.7);
}

.gltr-scroll-container {
    overflow-y: auto;
    height: 100%;
    overscroll-behavior: contain;
}

.gltr-scroll-container #glitz-contents-container,
.gltr-scroll-container #glitz-list-container {
    max-width: inherit;
}

.gltr-top-logo {
    height: var(---height-gltr-top-logo);
}

.gltr-top {
    width: 100%;
    position: absolute;
    top: 0px;
    z-index: var(--zindex-gltr-top);
    background-color: var(--gltr-background-color);
}

.tabbuttonbar {
    overflow: hidden;
    margin-left: 10px;
    position: relative;
}

.tabbuttonbar button {
    border-radius: 10px;
    position: relative;
    margin-right: 10px;
    float: left;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 15px;
    font-size: 30px;
    color: rgba(192, 192, 192, 0.8);
    background-color: #2d2d2d;
    box-sizing: border-box;
    border: 3px solid rgba(192, 192, 192, 0.8);
    font-weight: normal;
}

.tabbuttonbar button.active {
    color: #ffffff;
    background-color: var(--gltr-background-color);
    border: 3px solid rgba(255, 255, 255, 1);
    font-weight: bold;
}

.tabcontent {
    display: none;
    padding: 0px;
    border-top: none;
    top: 0px;
    position: relative;
    color: #ffffff;
    background-color: var(--gltr-background-color);
}

.textbutton {
    border-radius: 10px;
    vertical-align: top;
    display: inline-block;
    position: relative;
    margin-right: 10px;
    outline: none;
    cursor: pointer;
    padding: 10px;
    font-size: 25px;
    box-sizing: border-box;
    font-weight: normal;
    color: #ffffff;
    background-color: var(--gltr-background-color);
    border: 3px solid rgba(192, 192, 192, 1);
}

.username-image {
    width: 55px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Needed for absolute positioning of label */
}

.username-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-username-image-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: var(--glitz-default-app-font);
    background: rgba(0, 0, 0, 1);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    pointer-events: none;
    /* Allows clicks to pass through to the image */
    line-height: 1.1;
    z-index: 2;
}

.glitz-username-image-small {
    padding: 0px 1px 0 1px;
    width: 1.6em;
    height: auto;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glitz-username-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clipped-image {
    clip-path: ellipse(75% 100% at 50% 0%);
}

a,
a:link,
a:visited,
a:focus,
a:hover,
a:active {
    color: inherit;
    text-decoration: none;
    outline: none;
    background-color: inherit;
    user-select: none !important;
}

.disable-doubletap-to-zoom {
    touch-action: none;
    /* disable double-tap zoom */
}

.sortable-handler {
    touch-action: none;
    /* disable double-tap zoom (safari) */
}

/* disable moving during scrolling zoom (safari) */
.Element-header {
    transform: translate3d(0, 0, 0);
}

.Element-header--fixed {
    top: 0;
    position: fixed;
}

.gltr-logo {
    width: 110px;
    padding: 24px;
}

.gltr-logo-small {
    width: 6%;
    margin: 2%;
}

.btn-close-top-right {
    position: absolute;
    right: 40px;
    top: 20px;
    width: 40px;
    filter: invert(100%);
}

.edit-button-on-studio-list {
    position: absolute;
    width: 30px;
    filter: invert(100%) drop-shadow(0 0 3px #fff);
    padding: 15px;
    margin-right: 7px;
    margin-left: 7px;
    z-index: 1100;
}

.bottom-toolbar {
    position: absolute;
    opacity: 100%;
    bottom: 0;
    height: var(--height-navigation-bar);
    width: 100%;
    display: flex;
    justify-content: space-around;
    z-index: var(--zindex-bottom-toolbar);
    max-width: inherit;
}

.gltr-nav {
    background: var(--gltr-background-color);
}

.gltr-nav-minimal {
    height: var(--height-navigation-bar-minimal);
}

.gltr-nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gltr-nav-icon img {
    width: 60px;
    filter: invert(1.0);
}

.bottom-toolbar-white {
    background: var(--bottom-toolbar-color);
    visibility: hidden;
}

.bottom-toolbar-white img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
}

.disable-css-animations {
    animation: none !important;
}

.hflip-float-button {
    position: absolute;
    padding: 0;
    width: 8%;
    min-width: 30px;
    max-width: 60px;
    text-align: center;
    border: 0px;
    z-index: 2000;
    visibility: hidden;
    background-color: transparent;
}

.hflip-float-button img {
    width: 100%;
    height: 100%;
    filter: invert(1.0) drop-shadow(2px 4px 6px black);
}

.svg-filter-grayout {
    opacity: 0.4;
    filter: grayscale(100%) contrast(30%);
}

.gltr-general-button {
    font-size: 25px;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border: 0px;
    padding: 10px;
}

.glitz-menu-button {
    position: relative;
    width: 40px;
    padding-left: 15px;
    padding-right: 15px;
    filter: invert(100%);
}

.gltr-top-back-button {
    width: 70px;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
}

.gltr-top-back-button img {
    position: absolute;
    width: 40px;
    filter: invert(100%);
    top: 50%;
    transform: translateY(-50%);
    margin-left: 5px;
    margin-right: 5px;
}

.gltr-file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.glitz-detail-title {
    text-align: left;
    color: white;
    font-size: 1em;
    margin-left: 10px;
    display: inline-block;
    user-select: all;
}

.glitz-detail-title-edit:empty:before {
    content: attr(title-hint);
    color: #aaa;
    position: absolute;
    width: 100%;
    min-width: 200px;
}

.glitz-author-container {
    color: white;
    font-size: 0.7em;
    gap: 10px;
    display: flex;
    margin-top: 1%;
    margin-bottom: 1%;
}

.label-right {
    text-align: right;
    justify-content: flex-end;
    margin-right: 0px;
}

.label-left {
    text-align: left;
    justify-content: flex-start;
    margin-left: 0px;
}

.gltr-vertical-bar {
    width: 2px;
    margin: 10px;
    background-color: lightgray;
    height: auto;
}

.glitz-search-container {
    position: absolute;
    top: 40px;
    right: 30px;
    display: flex;
    align-items: center;
}

.glitz-search-input {
    width: 0;
    padding: 0px;
    font-size: 38px;
    border: none;
    background-color: white;
    transition: width 0.2s ease-in-out;
    border-radius: 35px 0 0 35px;
    user-select: all;
}

.glitz-search-button {
    background-color: transparent;
    margin-left: 10px;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
}

.glitz-search-button img {
    width: 45px;
    height: 45px;
    filter: invert(1);
}

.expanded .glitz-search-input {
    width: 250px;
    padding: 5px 5px 5px 30px;
}

.glitz-feedback {
    color: var(--feedback-color);
    font-size: 0.5em;
    display: flex;
}

.glitz-feedback img {
    width: 1.0em;
    margin-right: 5px;
}

.gltr-popup-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 250px;
    transform: translate(-50%, -50%);
    background: var(--gltr-color);
    font-size: 130%;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: var(--zindex-popup-menu);
}

.gltr-popup-menu-item {
    display: flex;
    padding: 15px 20px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.gltr-popup-menu-item img {
    width: 30px;
    height: auto;
    margin-right: 10px;
}

.gltr-popup-menu-item img[src$=".svg"] {
    filter: invert(1);
}

.gltr-popup-menu-item img[src$=".png"] {
    filter: none;
}

.gltr-popup-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gltr-popup-menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.gltr-text-dialog-screen {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--zindex-screen-cover);
}

.gltr-dialog {
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
    position: absolute;
    color: white;
    left: 50%;
    transform: translateX(-50%);
}

.gltr-text-dialog {
    background: var(--gltr-color);
    min-width: 400px;
}

.gltr-text-dialog-label {
    color: white;
    background-color: transparent;
    margin-bottom: 10px;
    font-size: 32px;
}

.gltr-text-dialog-edit {
    background: var(--gltr-color);
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

[contenteditable] {
    outline: 0px solid transparent;
}

.grl-image-container {
    width: auto;
    padding: 5px;
}

.grl-image-container img {
    object-fit: contain;
}

.debug-canvas {
    left: 0px;
    top: 0px;
    position: absolute;
    z-index: var(--zindex-screen-cover);
    pointer-events: none;
}

.debug-canvas-text {
    left: 0px;
    bottom: calc(var(--height-navigation-bar) + 10px);
    width: 100%;
    height: 100px;
    position: absolute;
    z-index: var(--zindex-screen-cover);
}

.div-with-hole {
    --shape: 0 0, 100% 0, 50% 100%, 0 0;
    aspect-ratio: 1;
    clip-path: polygon(var(--shape));
}

.div-hole-invert {
    --s: -2px;
    padding: calc(-1*var(--s));
    box-sizing: content-box;
    clip-path:
        polygon(evenodd, var(--s) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) var(--s), var(--shape)) content-box;
}

.default-files-dragover {
    filter: invert(100%);
}

.grayscale {
    filter: grayscale(100%);
}

[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

[type=radio]+img {
    border-bottom: 4px solid transparent;
}

[type=radio]:checked+img {
    border-bottom: 4px solid var(--editor-color);
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked+.gltr-checkbox:after {
    display: block;
}

input[type="checkbox"]:checked+.gltr-checkbox {
    background-color: var(--editor-color);
}

input[type="checkbox"]:disabled:checked+.gltr-checkbox {
    background-color: #ccc;
    cursor: not-allowed;
}

input[type="checkbox"]:disabled+.gltr-checkbox {
    background-color: #eee;
    cursor: not-allowed;
}

.gltr-checkbox-label {
    text-align: left;
    padding: 5px 5px;
}

.gltr-checkbox {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #eee;
    border-radius: 5px;
    cursor: pointer;
}

.gltr-checkbox:after {
    content: '';
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.context-button-out {
    position: absolute;
    z-index: 1102;
}

.context-button-out img {
    width: 40px !important;
    filter: drop-shadow(0 0 3px #fff);
}

.cb-out-top-left {
    top: -40px;
    left: -35px;
}

.cb-out-top-right {
    top: -40px;
    right: -35px;
}

.cb-out-bottom-left {
    bottom: -55px;
    left: -35px;
}

.cb-out-bottom-right {
    bottom: -55px;
    right: -35px;
}

.context-button-in {
    position: absolute;
    width: 8% !important;
    height: 20px;
    cursor: pointer;
    z-index: 1;
}

.context-button-in img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
    filter: drop-shadow(1px 1px 1px white) drop-shadow(-1px -1px 1px white);
}

.context-button-in img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.cb-in-top-right {
    top: 13px;
    right: 13px;
}

.cb-in-top-left {
    top: 13px;
    left: 13px;
}

.cb-in-bottom-left {
    bottom: 13px;
    left: 13px;
}

.cb-in-bottom-right {
    bottom: 13px;
    right: 13px;
}

.slider {
    /*-webkit-appearance: none;*/
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

input[type=range] {
    width: 100%;
}

/* WebKit (Chrome, Safari) */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    border: 2px solid white;
    margin-top: -5px;
    /* Adjust for track alignment */
}

/* Firefox */
.slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

/* IE and Edge */
.slider::-ms-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.div-editable {
    min-height: 10px;
    min-width: 20px;
    position: relative;
}

.div-editable:empty::before {
    content: "enter yours";
    color: gray;
    position: absolute;
    pointer-events: none;
}

.outlined-text {
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
}

.android-edit-div {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.horizontal-center-in-div {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes element-n-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.element-n-blinking {
    animation: element-n-blink 0.6s step-end 3;
}