@font-face {
    font-family: "Inter";
    src: url('/assets/Inter-VariableFont_opsz,wght-0a77e23a8fdbe6caefd53cb04c26fabc.ttf?vsn=d') format('truetype-variations');
    font-weight: 100 900;
    /* ДИАПАЗОН насыщенности (от тонкого к жирному) */
    font-style: normal;
    /* font-optical-sizing: auto; */
    /* Эта ось управляет оптическим размером */
    font-display: swap;
    /* Текст будет виден сразу системным шрифтом, пока Inter грузится */
}

* {
    font-size: 16px;
    line-height: 1em;
    font-family: "Inter";
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--color-primary);
    background-color: transparent;
    box-sizing: border-box;
    /* outline: 2px dotted red; */
}

@media (max-width: 1200px) {
    * {
        font-size: 15px;
    }
}

@media (max-width: 1000px) {
    * {
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    * {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    * {
        font-size: 10px;
    }
}




input {
    height: 1.25em;
}

/* This file is for your main application CSS */
:root {
    --color-primary: black;
    --color-background: white;
}

.display_none {
    display: none;
}

.tabs {
    /* position: relative; */
    /* background-color: aqua; */
    display: flex;
    justify-content: center;
    align-self: center;
    flex-grow: 0;
    flex-shrink: 0;
}

.tab-title {
    display: inline-block;
    margin: 0.25em 0.5em 0 0.5em;
    padding: 0.25em;
    background-color: lightgray;
    border: 1px solid black;
    border-bottom: none;
}

.tab-active {
    display: inline-block;
    margin: 0.25em 0.5em 0 0.5em;
    padding: 0.25em;
    background-color: white;
    border: 1px solid white;
}

.tabs+section {
    /* position: absolute; */
    top: 1.25em;
    bottom: 0.25em;
    /* display: flex; */
    flex-grow: 1;
    flex-shrink: 1;
    justify-content: flex-start;
    /* overflow-y: scroll; */
    /* align-self: center; */
    /* align-items: center; */
    width: 800px;
    max-width: 95%;
    /* border: 1px solid #666; */
    flex-direction: column;
    padding: 0.5em;
    padding-right: 0;
    /* margin-right: -0.5em; */
    background-color: white;

    resize: horizontal;

    display: flex;


}




/* hr, html, body, main {
    margin: 0;
    padding: 0;
    position: relative;
} */

body {
    /* overflow-y: auto; */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

header {
    background-color: black;
    line-height: 1.5em;
}

header>a {
    outline: 1px solid white;
    display: inline-block;
    min-width: 5em;
    color: white;
    margin: auto 0.25em;
    padding: 0em 0.5em;
    font-weight: 600;
}

header>a:hover {
    background-color: white;
    color: black;
}

main {
    /* background-color: var(--color-background); */
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 1.5em;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: flex-start;
    align-items: center;
    /* overflow-y: auto; */
    padding: 0.5em;
    padding-top: 0;
    background-color: gray;
}

.text {
    position: absolute;
    top: 0;
    bottom: 0;
    max-width: 700px;
    text-indent: 2em;
    display: flex;
    flex-direction: column;
    background-color: white;
    overflow-y: visible;
    flex-grow: 1;
    flex-shrink: 0;
    margin: 0.5em;
    padding: 1em;
}

.text * {

    flex-grow: 1;
    flex-shrink: 0;
}

H1 {
    text-align: center;
    font-size: 1.25em;
    margin: 2em 0 1em 0;

}

.text>p {
    line-height: 1.5em;
    text-align: justify;
}

code {
    font-family: monospace;
    white-space: pre;
    background-color: #e2e2e2;
    line-height: 1em;
    display: inline;
    margin: 0.25em auto;
    text-indent: 0;
}

/* .text>table {
    background-color: pink;
} */


.tree-container {
    /* overflow-y: auto; */
    /* resize: horizontal; */

    /* background-color: lime; */
    /* display: block; */
    flex-direction: column;
    /* justify-content: center; */
    /* width: 100%; */
    /* border: 1px solid gray; */
    /* align-self: center; */
    /* flex-grow: 1;
    flex-shrink: 1;
    display: flex; */
    overflow-y: auto;
    scrollbar-gutter: stable;
}


.fruits-container {
    /* background-color: blue; */
    flex: 1 1 auto;
}

a {
    color: var(--color-primary);
    /* background-color: var(--color-background); */
    text-decoration: none;
}

/* div.branch {
    border: 1px solid pink;
    display: flex;
    flex-direction: column;
} */

UL.branch {
    border-bottom: 1px dotted gray;
    /* margin: 0.14em; */
    display: flex;
    min-width: 0;
    align-content: center;
    line-height: 1.25em;
    padding: 0.125em;
    justify-content: flex-end;
    /* overflow: visible; */
}

B.name {
    /* background-color: blueviolet; */
    display: flex;
    flex: 0 0 auto;
    font-family: monospace;
    width: 0.75em;
}

p.name {
    /* background-color: lightgray; */

    /* background-color: violet; */
    flex-grow: 1;
    flex-shrink: 1;
    /* align-self: center; */
    display: flex;
    line-height: 1.25em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

p.money {
    border-left: 1px dotted gray;
    width: 6em;
    text-align: right;
    line-height: 1.25em;
    margin: 0 0.25em;
    flex-grow: 0;
    flex-shrink: 0;
    height: 100%;
}

/* p.money::before {
    align-self: stretch;
    background-color: lightgray;
    content: "asd";
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
} */
p.tree-actions {
    /* display: flex;
    align-items: center;
    align-self: center;
    text-align: center;
    justify-content: center; */
    height: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 1;

}

p.tree-actions b {
    background-color: lightgray;


    margin: 0;
    /*height: 1.375em;
    width: 1.375em;
    align-self: center;
    text-align: center;
    display: flex; */

    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25em;
    /* flex-direction: row; */
    /* border: 1px solid gray; */
    /* line-height: 1.125em; */
    /* transform: scale(0.9); */
}

p.name.centered,
p.money.centered {
    /* background-color: lime; */

    text-align: center;
    align-self: center;
    flex-direction: column;
    /* display: flex; */
}

form#tree-settings span {
    /* background-color: aqua; */
    /* line-height: 1.5em; */
    /* margin: 0.25em; */
    width: 12em;
    display: inline-block;
}

/* div.branch>p.branch::before {
    content: "├";
    
}

div.branch:last-child>p.branch::before {
    content: "└";
} */
.watersprout {
    color: gray
}

.bold {
    font-weight: 700;
}

.underlined {
    text-decoration: underline;
}

table,
td {
    font-size: 0.8em;
    border: 1px solid black;
    border-collapse: collapse;
    padding: 0.125em 1em;
    margin: 0.5em auto;
    /* display: inline-block; */
}

td {
    /* background-color: #e2e2e2; */
    white-space: nowrap;
    overflow: hidden;
}

table tr:first-child td {
    background-color: black;
    color: white;
    font-weight: 800;
    /* Наложение тёмного слоя */
    background-blend-mode: multiply;
    border: 1px solid white;
}

#tree-settings {
    line-height: 1.5em;
}

.master-fruit {
    background-color: lightskyblue;
}

.part-of-fruit {
    background-color: aquamarine;
}

.button {
    margin: 1em;
    position: relative;
    /* background-color: black;     */
    /* background: linear-gradient(0deg, #262626, #000000, yellow); */
    /* overflow: hidden; */
    /* z-index: 1; */
}

/* .draggable::after,
.draggable::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1.1px;
    bottom: -1px;

    background: linear-gradient(45deg, lime, yellow, lime, yellow, lime);
    background-size: 200%;
    animation: rainbow 5s linear infinite;
    z-index: -1;
} */


/* .draggable::after {

    filter: blur(3px);
} */

.button:hover {
    color: white;
    position: relative;
    background-color: gray;
    top: -1px;
    left: -1px;
    cursor: pointer;
}

/* .draggable:hover::after {
    opacity: 1;
    filter: blur(10px);
}

.draggable:hover::before {
    opacity: 1;
} */

@keyframes rainbow {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }

    100% {
        background-position: 200% 0;
    }

}

DIV.modal {
    display: block;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
}

B.close-x {
    position: absolute;
    top: -0.25em;
    right: 0em;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background-color: pink;
    line-height: 2em;
    font-size: 2em;
    text-align: center;
    opacity: 0.5;
}

B.close-x:hover {
    opacity: 1;
    cursor: pointer;
}

.date {
    flex: 0 0 auto;
    width: 3em;
    /* background-color: lightcoral; */
    margin: 0.125em;
    border-left: 1px dotted black;
}

.date.vertical {
    text-orientation: upright;
}