:root {
        --color-dark: #21252E;
        --color-dark-gray: #384050;
        --color-light-gray: #9ea2adff;
        --color-gray-hover: #9198A1;

        --btn-size: 100%;
        --ico-size: 113% 113%;

        --menu-size: 300px;
        --top-box-height: 40px;

        --size-scroll: 6px;

        --text-font-size: 14px;
}

/* =========================
   BODY + BACKGROUND
   ========================= */

body {
        background-color: var(--color-dark);
        position: relative;
        min-height: 100vh;
        overflow: hidden;
}

:root {
        --bg-opacity: 0.2;
        --bg-blur: 0px;
        --bg-brightness: 2.1;
        --bg-contrast: 1;
        --bg-scale: 1;
}

body::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url(../img/004.jpg) center / cover no-repeat;
        opacity: var(--bg-opacity);
        filter: blur(var(--bg-blur)) brightness(var(--bg-brightness)) contrast(var(--bg-contrast));
        transform: scale(var(--bg-scale));
        z-index: -1;
}

/* =========================
   CONTAINERS
   ========================= */

.container {
        display: flex;
        width: 100vw;
        height: calc(var(--vh, 1vh) * 100);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        padding: 0 3px 0 3px;
        overflow: hidden;
}

.container-menu {
        width: var(--menu-size);
        border: 1px solid lightsalmon;
        overflow: hidden;
}

.elems-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 750px;
        height: 100%;
        background-color: var(--color-dark);
        overflow: hidden;
}

.bottom-box {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: var(--size-scroll) 0 7px var(--size-scroll);
        background: var(--color-dark-gray);
        border-radius: 6px;
        margin-bottom: 1px;
}

.scroll-box {
        overflow-y: scroll;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
}

.icon {
        height: var(--size-scroll);
}

.scroll-box::-webkit-scrollbar {
        width: var(--size-scroll);
}

.scroll-box::-webkit-scrollbar-thumb {
        background: #6B737E;
        border-radius: 50px;
}

.scroll-box::-webkit-scrollbar-track {
        background: var(--color-dark-gray);
}

/* =========================
   TEXT BOXES
   ========================= */

.text-box {
        position: relative;
        margin-bottom: 6px;
}

/* Один элемент */
.text-box:first-child:last-child {
        flex: 1;
}

/* Последний из нескольких */
.text-box:not(:only-child):last-child {
        flex: 1;
        margin-bottom: 0;
}

.text-container {
        height: 100%;
        min-height: 60px;
        display: block;
        padding: 10px 10px;
        padding-inline-start: 10px;
        color: var(--color-light-gray);
        outline: 0;
        font-size: var(--text-font-size);
        font-family: Consolas;
        white-space: pre-wrap;
        background-color: var(--color-dark);
        line-height: 20px;
        border-radius: 5px;
        box-sizing: border-box;
}

.text-container:focus {
        overflow: hidden;
        transition: all 0.1s;
}

.not-focused {
        background-color: #2e333e;
}

.text-container::before {
        content: '';
        float: right;
        width: 50px;
        height: 35px;
        shape-outside: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.text-box-active {
        background-color: #15191c;
}

/* =========================
   PREVIEW / MARK
   ========================= */

pre.easy-text-box {
        border: 1px solid var(--color-dark-gray);
        display: grid;
        border-radius: 6px;
        margin-bottom: 6px;
}

.easy-text-box span {
        border-radius: 6px;
        min-height: 60px;
}

mark {
        background: #00b5ff;
        color: #000000;
        padding: 0 2px;
        border-radius: 3px;
}

::highlight(search-hl) {
        background: #00b5ff;
        color: #000000;
        padding: 0 2px;
        border-radius: 3px;
}

::selection {
        background-color: #000000;
        color: #69ffbf;
}