:root {
    --text-color: #94959C;
    --bg-color: #1a1a1e;
    --secondary-bg: #121214;
    --button-background: #242429;
    --active-button-background: #39393f;
    --gray-text-color: #808080;
    --overlay-background-color: #2121219f;
    --placeholder-background-color: #434343;
    --navbar-background-color: #1a1a1ebf;
    --blur-border: #5a5a5e55;

    --accent-color: #DA3E44;
    --accent-transparent-color: #DA3E447F;
    --accent-text-color: #EFEFF0;
    
    --toast-background-color: #2424299f;
    --toast-foreground-color: #EFEFF09f;

    --link-button-background: #121214;

    --cost-background: #bb803c;
    --cost-text: #663d00;

    --good-background: #22dd44;
    --good-text: #007000;

    --large-button-background1: #FCF2DE;
    --large-button-text1: #8C826E;
    --large-button-background2: #CCFBD9;
    --large-button-text2: #5C8B69;

    --ava-placeholder-color1: #878EFC;
    --ava-placeholder-color2: #E7B1F5;
    --ava-outline-color1: #11F1EE;
    --ava-outline-color2: #0893DD;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    width: 100%;
    font-weight: 400;
    font-family: 'Ubuntu';
}
h1{
    margin-top: 15px;
}
h2{
    font-weight: 550;
}
body {
    /*color: var(--tg-theme-text-color);
    background: var(--tg-theme-bg-color);*/
    color: var(--text-color);
    background: var(--secondary-bg);
    width: 100%;
    text-align: center;
    transition: left .5s;
}
a{
    color: var(--text-color)
}
.emoji{
    vertical-align: sub;
    width: 18px;
    height: 18px;
    cursor: text;
}
.material-symbols-outlined{
    user-select: none;
}
.inv{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}
#back{
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 30px;
    text-align: left;
    width: fit-content;
    cursor: pointer;
}
.contextmenu{
    position: absolute;
    background: var(--button-background);
    list-style-type: none;
    width: max-content;
    border-radius: 15px;
    padding: 7px;
}
.contextmenu>li{
    padding: 8px;
    border-radius: 15px;
    transition: ease background .2s;
    display: flex;
    user-select: none;
    cursor: pointer;
}
.contextmenu>li>span{
    font-size: 16px;
}
.contextmenu>li>.material-symbols-outlined{
    font-size: 20px;
    width: 20px;
    margin-right: 5px;
}
.contextmenu>li:hover{
    background: var(--active-button-background)
}
#opener{
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-background-color);
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: transparent;
    backdrop-filter: blur(4px);
}
#opener>.element{
    cursor: default;
    max-width: min(calc(100vh - 128px), 100vw);
    max-height: min(calc(100vh - 128px), 100vw);
    object-fit: contain;
    margin: 64px 0;
}
.pane{
    position: fixed;
    z-index: 1001;
    bottom: 16px;
    right: 16px;
    max-width: fit-content;
    display: flex;
}
.pane>span{
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin: 0 5px;
}
#left_pane{
    left: 16px;
}
#right_pane{
    right: 16px;
}
.popup-bg{
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-background-color);
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: transparent;
    backdrop-filter: blur(4px);
}
.popup{
    position: absolute;
    background: var(--bg-color);
    padding: 15px;
    z-index: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 20px;
    max-width: 614px;
    display: flex;
    flex-direction: column;
}
.popup>span{
    width: max-content;
    margin-bottom: 5px;
}
body::-webkit-scrollbar {
  width: 12px;
}

/* Трек (фон) */
body::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 5px;
}

/* Ползунок (thumb) */
body::-webkit-scrollbar-thumb {
    background: var(--gray-text-color);
    border-radius: 6px;
    scrollbar-width: thin;
    border: 2px solid var(--bg-color);
}

/* Ползунок при наведении */
body::-webkit-scrollbar-thumb:hover {
  background: var(--text-color);
}
.verified{
    display: inline !important;
    vertical-align: middle;
    margin-left: 2px;
    color: var(--accent-color);
}