﻿/*@font-face {*/
/*    font-family: 'Vaca Cyrillic';*/
/*    src: url("/public/fonts/25-font.otf") format("opentype");*/
/*}*/

a {
    text-decoration: none
}

#viewport {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: var(--tg-viewport-stable-height, 100vh);
    pointer-events: none;
    transition: all .2s ease;
}

#viewport:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-width: 4px;
    border-style: solid;
    border-image: linear-gradient(45deg, rgba(64, 224, 208, .5), rgba(173, 255, 47, .5)) 1;
}

#viewport-params-size,
#viewport-params-expand {
    content: attr(text);
    position: absolute;
    display: inline-block;
    background: var(--tg-theme-link-color, rgb(64, 224, 208));
    right: 4px;
    left: auto;
    font-size: 8px;
    padding: 4px;
    vertical-align: top;
}

#viewport-params-size {
    top: 4px;
}

#viewport-params-expand {
    top: 30px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

body, html {
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    text-rendering: optimizeLegibility !important;
    width: 100%;
    -webkit-font-smoothing: antialiased !important
}

html {
    background-color: #000
}

dialog {
    border: none;
    position: absolute;
    top: 4rem;
    left: 1rem;
    right: 1rem;
    height: 80vh;
    /*bottom: 4rem;*/
    background-color: rgba(255, 251, 251, 0.9);
    box-shadow: 0 0 4px 4px #1c1f2433;
    border-radius: 6px;
}

button {
    border: none;
    background: #31ffd5;
    padding: .6rem 1rem;
}

body {
    color: #fff;
    cursor: default;
    font-family: "Roboto Flex", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    min-width: 320px;
    /* overflow: hidden; */
    -webkit-overflow-scrolling: touch !important;
}

.left-menu {
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    top: 86px;
    left: 0;
    padding: 0 6px;
    margin: 6px 0;
    pointer-events: all;
    position: fixed;
    z-index: 100;
}

.right-menu {
    justify-content: center;
    right: 0;
    padding: 0 16px;
    pointer-events: none;
    position: fixed;
    z-index: 10;
}

canvas {
    image-rendering: pixelated;
}

/* canvas, .wrapper {
    margin: 2.7rem 0 0;
    margin:0 10% 0 10%;
} */

.instructions {
    float: left;
    font-family: sans-serif;
    color: #757575;
}

.wrapper {
    width: fit-content;
    height: fit-content;
    /*margin-top: 1em;*/
}

.score {
    float: right;
    font-size: 2em;
}

#game-over, #game-over-overlay {
    /*margin:0 10% 0 10%;*/
    width: 1024px;
    height: 520px;
    position: absolute;
    left: 0;
    right: 0;
    /*bottom: 1em;*/
    z-index: 1;
    display: none;
}

#game-over-overlay {
    background-color: black;
    opacity: .5;
}

#game-over {
    height: 350px;
    text-align: center;
    color: white;
}

#game-over h1 {
    font-size: 3em;
    font-family: sans-serif;
}

#game-over button {
    font-size: 1.5em;
}

.red {
    color: red;
}

.img-responsive {
    display: block;
    height: auto;
    max-width: 100%
}

.app-bar {
    bottom: 0;
    justify-content: center;
    left: 0;
    padding: 0 16px;
    pointer-events: none;
    position: fixed;
    right: 0;
    z-index: 100;
}

.app-bar, .app-bar-nav {
    align-items: center;
    display: flex;
    /*width: 100%*/
}

.app-bar-nav {
    background-color: rgba(111, 151, 151, 0.5);
    /*background-color: #272a2f;*/
    /*border: 1px solid #1c1f24;*/
    border-radius: 6px;
    box-shadow: 0 0 4px 4px #1c1f2433;
    justify-content: space-between;
    max-width: 768px;
    padding: 4px 16px;
    pointer-events: all
}

.app-bar-item {
    align-items: center;
    border-radius: 16px;
    color: #8b8e93;
    display: flex;
    flex: 1 1;
    flex-direction: column;
    font-size: 10px;
    height: 56px;
    justify-content: flex-start;
    padding: 5px;
    position: relative
}

.app-bar-item:active {
    /*box-shadow: 0 0 10px rgba(0,0,0,0.5) inset;*/
    transform: scale(1.4);
}

.app-bar-item-notification {
    background-color: #ff3b30;
    border-radius: 50%;
    height: 10px;
    left: 50%;
    margin-left: 10px;
    position: absolute;
    top: 6px;
    width: 10px
}

.app-bar-item-image {
    align-items: center;
    display: flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 5px;
    width: 48px
}

.app-bar-item-image img {
    display: block;
    height: auto;
    max-width: 100%
}

.app-bar-item-image .icon {
    color: #4e4f50
}

.app-bar-item-image picture {
    display: block;
    height: auto;
    max-height: 28px;
    max-width: 28px;
    width: 100%
}

.app-bar-item-image picture img {
    display: block;
    height: auto;
    max-width: 100%
}

.app-bar-item:hover, .app-bar-item:hover .icon {
    color: #fff
}

.app-bar-item.is-active, .app-bar-item.router-link-active {
    background-color: #1c1f24;
    color: #fff
}

.app-bar-item.is-active .icon svg, .app-bar-item.router-link-active .icon svg {
    color: #fff
}

/*.header {*/
/*    align-items: center;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    padding: 12px 16px 8px*/
/*}*/
.header {
    top: 78px;
    justify-content: center;
    left: 0;
    padding: 0 16px;
    pointer-events: none;
    position: fixed;
    right: 0;
    z-index: 100;
    /*opacity: 1;*/
    background: transparent;
    /*background-color: rgba(255, 251, 251, 0.5);*/
}

.header, .header-nav {
    align-items: center;
    display: flex;
    /*background-color: #272a2f;*/
    /*width: 100%*/
}

.header-nav {

    /*border: 1px solid #1c1f24;*/
    /*border-radius: 6px;*/
    /*box-shadow: 0 0 4px 4px #1c1f2433;*/
    justify-content: space-between;
    min-width: 100%;
    padding: 4px 16px;
    pointer-events: all
}

/*.header.is-jc {*/
/*    justify-content: center*/
/*}*/

/*.header.is-jc .header-left {*/
/*    padding-right: 0*/
/*}*/

.header-left {
    justify-content: flex-start;
    padding-right: 6px
}

.header-left, .header-right {
    align-items: center;
    display: flex
}

.header-right {
    justify-content: flex-end
}

/*.header-settings {*/
/*    color: #8b8e93*/
/*}*/

/*.header-settings:hover {*/
/*    color: #fff*/
/*}*/

/*.header-row {*/
/*    align-items: center;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    padding: 0 16px*/
/*}*/

/*.header-row.has-top-gap {*/
/*    padding-top: 12px*/
/*}*/

/*.header-progress {*/
/*    flex: 0 0 110px;*/
/*    margin-right: 20px;*/
/*    width: 110px*/
/*}*/

.header-info {
    align-items: stretch;
    background-color: #ffffff26;
    border: 1px solid hsla(0, 0%, 100%, .1);
    border-radius: 20px;
    color: #fff;
    display: flex;
    flex: 1 1 auto;
    height: 40px;
    justify-content: space-between;
    position: relative
}

/*.header-info-exchange {*/
/*    align-items: center;*/
/*    display: flex;*/
/*    flex: 0 0 52px;*/
/*    padding-left: 13px;*/
/*    padding-right: 4px;*/
/*    position: relative*/
/*}*/

/*.header-info-exchange .exchange-image {*/
/*    align-items: center;*/
/*    display: flex;*/
/*    height: 26px;*/
/*    justify-content: center;*/
/*    width: 26px*/
/*}*/

/*.header-info-exchange:before {*/
/*    background-color: #ffffff1a;*/
/*    content: "";*/
/*    display: block;*/
/*    height: 24px;*/
/*    position: absolute;*/
/*    right: 0;*/
/*    top: 8px;*/
/*    width: 1px*/
/*}*/

/*.header-info-passive {*/
/*    align-items: center;*/
/*    display: flex;*/
/*    flex: 1 1 auto;*/
/*    flex-direction: column;*/
/*    justify-content: center;*/
/*    position: relative;*/
/*    -webkit-tap-highlight-color: transparent;*/
/*    -webkit-user-select: none;*/
/*    -moz-user-select: none;*/
/*    user-select: none*/
/*}*/

/*.header-info-passive p {*/
/*    color: #fff6;*/
/*    font-size: 8px;*/
/*    line-height: 8px;*/
/*    margin-bottom: 4px;*/
/*    max-height: 14px;*/
/*    text-align: center*/
/*}*/

/*.header-info-passive-data {*/
/*    align-items: center;*/
/*    display: flex;*/
/*    justify-content: center*/
/*}*/

/*.header-info-passive-data p {*/
/*    margin-bottom: 0;*/
/*    margin-right: 6px*/
/*}*/

/*.header-info-passive-data .price {*/
/*    font-size: 12px;*/
/*    margin-right: 4px*/
/*}*/

/*.header-info-passive-data .icon-info {*/
/*    color: #fff3;*/
/*    cursor: pointer*/
/*}*/

/*.header-info-passive-data .icon-info:hover {*/
/*    color: #fff*/
/*}*/

/*.header-info-settings {*/
/*    align-items: center;*/
/*    color: #fff;*/
/*    display: flex;*/
/*    flex: 0 0 50px;*/
/*    justify-content: flex-end;*/
/*    padding-left: 4px;*/
/*    padding-right: 13px;*/
/*    position: relative*/
/*}*/

/*.header-info-settings:before {*/
/*    background-color: #ffffff1a;*/
/*    content: "";*/
/*    display: block;*/
/*    height: 24px;*/
/*    left: 0;*/
/*    position: absolute;*/
/*    top: 8px;*/
/*    width: 1px*/
/*}*/

/*.header-info-settings .icon {*/
/*    height: 20px;*/
/*    width: 20px*/
/*}*/

.header-balances {
    align-items: center;
    display: inline-flex;
    justify-content: flex-end;
    position: relative
}

.header-balances li {
    align-items: center;
    display: flex;
    margin-left: 20px
}

.header-balances li .icon {
    margin-right: 6px
}

.header-balances li .icon.is-key {
    height: 18px;
    width: 18px
}

.header-balances li span {
    font-size: 12px;
    font-weight: 700
}

.user-info {
    align-items: center;
    color: #fff;
    display: inline-flex;
    flex: 1 1 auto;
    justify-content: center
}

.user-info.is-small .user-info-avatar {
    border-radius: 8px;
    flex: 0 0 32px;
    height: 32px;
    margin-right: 8px;
    overflow: visible;
    position: relative;
    width: 32px
}

.user-info.is-small .user-info-avatar picture {
    border-radius: 8px;
    display: block;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 2
}

.user-info.is-small .user-info-avatar:after {
    border: 2px solid #000;
    border-radius: 8px;
    content: "";
    display: block;
    height: 32px;
    left: -2px;
    position: absolute;
    top: -2px;
    width: 32px;
    z-index: 1
}

.user-info.is-small p {
    font-size: 12px;
    line-height: 14px
}

.user-info-avatar {
    background-color: #1c1f24;
    border-radius: 12px;
    flex: 0 0 40px;
    height: 40px;
    margin-right: 12px;
    overflow: hidden;
    position: relative;
    width: 40px;
    z-index: 10
}

.user-info-avatar > img, .user-info-avatar > picture, .user-info-avatar > picture img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

a.button24 {
    display: inline-block;
    /*color: white;*/
    text-decoration: none;
    padding: .2em .2em;
    outline: none;
    /*border-width: 1px;*/
    /*border-style: solid none;*/
    background-color: rgba(255, 251, 251, 0.5);
    border-radius: 6px;
    /*background: linear-gradient(#e1d9cc, #716c66);*/
    transition: 0.2s;
    cursor: pointer;
}

a.button24 img {
    height: 48px;
    width: 48px;
}

a.button24:hover {
    background: linear-gradient(rgba(255, 251, 251, 0.75), #ffffff)
}

/*a.button24:active { background: linear-gradient(#f59500, #f5ae00) }*/
