* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

body {
    color: var(--tg-theme-text-color);
    background: var(--tg-theme-bg-color);
}

.hidden{
    display: none !important;
}

.header{
    background: #364b6c;
    text-align: center;
    position: relative;
    height: 50px;
    padding-top: 10px;
    margin-bottom: 6px;
}

.Main {
    width: 100%;
    padding: 25px;
    text-align: center;
}

.nft_selectors{
    float: left;
    display: inline-block;
}

h1 {
    margin-top: 40px;
    margin-bottom: 10px;
}

p{
    /*    color: #444;*/    
    color: var(--tg-theme-accent-text-color);
}


.stop_scroll{
   height: 100%;
   overflow-y: hidden;
}

.main_title{
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}
.main_title span{
    font-weight: 700;
}

.loading_title{
    display: block;
    margin-bottom: 8px;
    /* padding-top: 10px; */
    position: fixed;
    bottom: 0px;
    left: 6px;
    background-color: white;
    border-radius: 5px;
    padding: 4px;
    opacity: 0.6;
    z-index: 2;
}

.btn_tg {
    border: 0;
    border-radius: 5px;
    margin-top: 50px;
    height: 60px;
    width: 200px;
    font-style: 20px;
    font-weight: 500;
    cursor: pointer;
    color: var(--tg-theme-button-text-color);
    background: var(--tg-theme-button-color);
}

.wallet_btn{
    width: 30px;
    height: 30px;

    width: 24px;
    height: 24px;
}

form {
    /*display: none;*/
    text-align: center;
}

input.filterInput {
    outline: none;
    width: 198px;
    border-radius: 5px;
    border: 2px solid #535353;
    padding: 6px 10px;
    margin: 2px 0 0;
    background: var(--tg-theme-section-separator-color);
    color: var(--tg-theme-text-color);
    transition: all .2s;
}

.yoyo-popup-icon {
    width: 4rem;
    height: 4rem;
}

input:focus {
    border-color: var(--tg-theme-secondary-bg-color)
}

.relative{
    position: relative;
}
.items-center{
    align-items: center;
}

.font-semibold{
    font-weight: 600;
}

.wallet_info, .pay_stars_bar{
    position: absolute;
    right: 0;
    display: inline-flex;
    margin-right: 2px;
    cursor: pointer;

    display: block;
}
.wallet_info p, .pay_stars_bar p{
    font-size: 0.8em;
    font-weight: 500;
    margin-right: 2px;
    margin-top: 4px;
    color: #a1c7ff;

    margin-top: -6px;
}
.pay_stars_bar{
    right: 44px;
}
.pay_stars_bar img{
    width: 24px;
}
.pay_stars_bar p{
    margin: 0;
    margin-top: -6px;
}
.pay_stars_bar a{
  text-decoration: none !important;
}

.share_box{
    position: absolute;
    display: inline-flex;
    padding-left: 6px;
    left: 0;
    cursor: pointer;
}
.share_box img{
    width: 30px;
    height: 30px;
}

.list_info{
    padding: 16px;
}
.btn_clear_filter {
    padding: 4px;
    margin-top: 2px;
    border-style: none;
}

.btn_reset_price_range {
    display: none;
    margin-top: 8px;
    font-size: 0.7em;
    font-weight: 500;
    cursor: pointer;
    color: var(--tg-theme-subtitle-text-color);
    color: #c82626;

    -webkit-transition: width 1s ease-in-out;
    -moz-transition: width 1s ease-in-out;
    -o-transition: width 1s ease-in-out;
    transition: width 1s ease-in-out;
}
.btn_reset_price_range:active {
    background-color: var(--tg-theme-button-color);
    opacity: 0.35;
}
.btn_reset_symbol_filter, .btn_reset_bgr_filter, .btn_reset_input_filter{
    position: relative;
    right: 20px;
    top: 1px;
    margin-top: 5px;
    margin-right: 34px;
    font-weight: 500;    
    cursor: pointer;
    display: none;
}
.reset_nft_filter{
   position: absolute;
   margin-right: 0px;
   right: 8px;  
}
.reset_model_filter{
   position: absolute;   
   margin-right: 0px;
   right: 8px; 
}

.load_error{
	color:red;
}

.market_name{
    position: absolute;
    left: 4px;
    font-size: 0.7em;
    display: none;
}

.list.gifts .gift_item, .list.gifts .gift_collection{
    position: relative;
	display: inline-block;
	margin-left: 10px;
	margin-right: 10px;
    margin-bottom: 15px;
    max-width: 25%;
    min-width: 100px;
    box-shadow: 3px 3px 5px #9aafff;
    border-radius: 6px;
    overflow: hidden;
/*    border-style: groove;*/
}

.reset_filters {
    display: flex;
    position: fixed;
    bottom: 0px;
    width: 100%;
    justify-content: center;
    background: #fffffff0;
    padding: 5px;
}

button.btn_reset_filters {
    padding: 6px;
    background: none;
    background-color: #eaeaea;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-image: url(res/trash_icon220.png);
    background-size: 24px;
    background-position-x: 4px;
    background-position-y: center;
    background-repeat: no-repeat;
    padding-left: 30px;
}

img.btn_scroll_top {
    position: fixed;
    bottom: 32px;
    right: 22px;
    width: 64px;
    opacity: 0.5;
    /* height: 32px; */
}
.gift_item .g_price.stars{
    display: none;
}
.gift_item p, .gift_collection p{
    word-break: auto-phrase;
    white-space: nowrap;
    overflow: hidden;
}
.gift_item .g_model, .gift_collection .g_models{
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.popup_gift .g_attr{
    font-size: 0.8rem;
}

.gift_item .g_price, .gift_collection .g_price{
    font-size: 0.9rem;
}

.gift_collection .g_title{
    font-size: 1.2em;
}

.list .gift_item .gift-img, .popup_gift .image-container img{
    max-width: 100%;
    background-image: url('res/gift_placeholder.jpg');
    background-size: 100% 100%;
    min-width: 100px;
    min-height: 100px;
}

.market-logo{
    position: absolute;
    left: 2px;
    top: 2px;
    font-size: 0.7em;
    width: 20px;
    height: 20px;
    min-width: 20px !important;
    min-height: 20px !important;
    border-radius: 100px;
}

.premarket_filter_icon svg{
    width: 16px;
    color: #ac2c5f;
}

.popup_gift .image-container{
    /*min-width: 400px;*/
    min-height: 200px;
}

.icon_premarket, .icon_premarket_popup{
    display: none;
    position: absolute;
    left: 4px;
    top: 4px;
    color: #ac2c5f;
    background: #1e293bc7;
    border-radius: 5px;
    padding: 1px;
}

.icon_premarket_popup{
  left: 15px !important;  
}
.gift_premarket .icon_premarket, .label_premarket_show{
    display: flex !important;
}
.gift_collection .icon_premarket{
    top: 115px;
    color: #ee1d70;
}
.label_premarket_popup_description{
    display: none;
    overflow: visible;
    white-space: normal !important;
    background: #2f3236c7;
    border-radius: 6px;
    padding: 3px;
    color: #d22a6d !important;
    font-weight: 600;
}

.icon_premarket_popup_show{
    display: flex !important;
}

.gift_premarket .giftimg-box img{
    padding: 10px;
}

.gift_collection{
    min-width: 120px;
}

.gift_collection img{
    max-width: 100%;
    background-size: 100% 100%;

    max-width: 74px;
}
.gift_collection .giftimg-box{
    min-height: 110px;
    text-align: center;
}
.list.gifts{
    container-name: g_info_container;
    --theme: var(--tg-color-scheme);
    padding-bottom: 25px;
}
.gift_collection .g_info_box{
    margin-top: 8px;
    text-align: center;
}

.g_title {
    word-break: auto-phrase;
    white-space: nowrap;
    margin-bottom: 2px;
}

.hint_select_nft{
    padding: 5px;
        font-weight: 600;
        margin-bottom: 10px;
        display: block;
}
.hint_select_nft span{
    padding: 3px;
    color: gray;
}
.g_info_container{
    padding-left: 4px;
}
.gift_item .g_info_box{
    justify-content: space-between;
    display: flex;
    align-items: center;
    margin-top: 0px;
}
.g_number{
    font-size: 10px;
/*    margin-right: 1px;*/
    position: absolute;
    right: 1px;
    background: var(--tg-theme-bg-color);
}

.giftimg-box{
    cursor: pointer;
}
.gift_item .btn_buy{
    background-color: transparent;
    background-image: url(res/buy_rub128.png);
    background-size: 32px;
    width: 32px;
    height: 32px;
    /* position: fixed; */
    /* left: 10px; */
    position: absolute;
    bottom: 0px;
    right: 0;
    border: none;
    cursor: pointer;
    background-repeat: no-repeat;
}

.transform_onactive:active, .transform_onactive:focus{
    transform: scale(0.94);
}

/* dropdown */
.dropdown {
    width: 200px;   
    background-color: var(--tg-theme-section-bg-color);
/*    border: 1px solid #e2e2e2;*/

    display: inline-block;
    float: left;
}
.dropdown .dropdown_container{
    display: none;
    position: absolute;
    z-index: 2000;
    box-shadow: 0px 0px 6px 2px #9aaffffc;
    border-radius: 6px;
    background: var(--tg-theme-bg-color);
}
.dropdown .options {
    position: relative;
    background: white; 
    max-height: 75%;
    z-index: 9999; 
    overflow-y: auto;
/*    box-shadow: 2px 2px 3px #9aafffab;*/
    max-height: 80vh;

}
.dropdown .options div {
    position: relative; 
/*    height: 30px;*/
    padding: 5px 5px 5px 5px;
    cursor: pointer;
    line-height: 30px;
    text-align: left;
    display: flex;
    background-color: var(--tg-theme-bg-color);

}
.dropdown .options div:nth-of-type(2n+1){
/*    background-color: var(--tg-theme-section-separator-color);*/
}

.dropdown .select-items {
    box-shadow: 2px 2px 3px #9aafff63;
    position: relative; 
    height: 30px;
/*    padding: 5px 50px 5px 5px;*/
    cursor: pointer;
    line-height: 30px;
    border: none;
/*    1px solid var(--tg-theme-section-separator-color);*/
    overflow: hidden;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 500;
}
.select_nft .select-items{
    padding-left: 9px;
}
.select_nft img.dropdown_nft_icon{
    width: 24px;
    height: 24px;
    position: absolute;
    left: 0px;
    top: 5px;
}
.select-items.enabled, .select-items.green{
    box-shadow: 2px 2px 3px #5bbe5d;
}
.select-items.red {
    box-shadow: 2px 2px 3px #c83b66;
}
.select-items:active{
    background: var(--tg-theme-section-separator-color);
}
.dropdown_container .options div:active{
    background: var(--tg-theme-section-separator-color);
}

.dropdown .options img{
	width: 32px;
	margin-right: 5px;
}
.dropdown .options p{
	display: inline-block;
    align-content: center;
}

.dropdown.select_nft{
    background-size: 28px;
    background-repeat: no-repeat;
    background-position-x: 20px;
    background-position-y: 1px;
}
.options .all_nft, .options .all_models{
    padding-left: 42px !important;
    font-weight: 500;
}



.dropdown_container.price_range {
    display: none;
    position: absolute;
    z-index: 9999;
    background: #ffffff;
    padding: 16px;
    margin-left: 0px;
    margin-top: 2px;
    border-radius: 6px;
    border: 1px solid #e2e2e2;
    justify-items: center;
    padding-bottom: 8px;
    background-color: var(--tg-theme-bg-color);
}

.yoyo-popup-content {
    background-color: var(--tg-theme-bg-color) !important;
}

.borderd-content {
  border: 1px solid #bbbbbb00;
  border-radius: 4px;
  min-height: 36px;
  margin-top: 0px;
  position: relative;
  display: flow-root;
  background-color: var(--tg-theme-bg-color);
}

.borderd-content .title {
  margin: -12px 0 0 10px;
  background: var(--tg-theme-bg-color);;
  padding: 3px;
  display: inline-block;
/*  font-weight: bold;*/
  position: absolute;
  left: 10px;
  font-size: 12px;
  z-index: 100;
}

.borderd-content .content {
  padding: 10px;
}

.dropdown_container.price_range input{
    width: 80px;
    padding: 6px 6px 5px 28px;
    font-weight: 600;
    background-color: var(--tg-theme-secondary-bg-color);
    border-radius: 8px;
    border-color: var(--tg-theme-bottom-bar-bg-color);
    color: var(--tg-theme-text-color);
}
.input_price_max{
    margin-left: -20px;
}


.price_min{
    position: absolute;
    left: 22px;
    margin-top: 2px;
    color: var(--tg-theme-subtitle-text-color);
}
.price_max{
    position: relative;
    left: 10px;
    color: var(--tg-theme-subtitle-text-color);
}
button.apply_price {
    position: relative;
    padding: 6px 8px;
    margin-top: 10px;
    right: 0px;
    width: 172px;
    display: block;
    background-color: var(--tg-theme-button-color);
    border-radius: 8px;
    border: 0;
    font-weight: 600;
    /* color: var(--tg-theme-button-text-color); */
}

/*popup window*/
.backdropspop {
/*  background-color:#FFFFFF;*/
  background: var(--tg-theme-bg-color);
  border:1px solid var(--tg-theme-section-separator-color);
  cursor:default;
  display:none;
  margin-top: 15px;
  position:absolute;
  text-align:left;
  width: 90%;
  max-width: 400px;
  z-index:50;
  padding: 25px 25px 20px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  border-radius: 5px;   
  height: 80%;
  z-index: 1000;
  box-shadow: 2px 2px 3px #9aafffab;
  
}
.backgrop_hidden_filter_list, .symbols-box{
    overflow: auto;
    position: absolute;
    top: 50px;
    bottom: 40px;
    left: 34px;
    right: 0;
    padding-bottom: 14px;
}
.backgrop_hidden_filter_list{
    top: 105px;
}
.backdropspop .color_search_box{
    margin-left: 28px;
    margin-bottom: 6px;
}

.backdropspop label {
  display: block;
  margin-bottom: 3px;
  padding-left: 15px;
  text-indent: -15px;
}

.backdropspop p, .backdropspop.div {
  border-bottom: 1px solid #EFEFEF;
  margin: 8px 0;
  padding-bottom: 8px;
}

.color_in_filter {
    border-radius: 999px;
    width: 24px;
    height: 24px;
}

.btn.apply_backdrop, .btn.apply_symbols{
    color: var(--tg-theme-button-text-color);
    background: var(--tg-theme-button-color);

    border: 0;
    border-radius: 5px;
/*    margin-top: 50px;*/
    height: 44px;
    width: 200px;
    font-style: 20px;
    font-weight: 600;
    cursor: pointer;
    position: absolute;
    bottom: 2px;
    left: calc(50% - 100px);
}

.symbols_list .checkbox_item img{
    width: 16px;
    width: 16px;
    margin-right: -4px;
}



.option_color_filter.opt_for_fil, .checkbox_item.opt_for_fil{
    padding: 8px 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 12px;
    line-height: 142%;
    letter-spacing: 0.01em;
    text-align: center;
    /* color: #fff; */
}
.option_color_filter .svg_check rect:nth-child(2), .checkbox_item .svg_check rect:nth-child(2) {
  display: none;
}
.option_color_filter .svg_check path {
  display: none;
}

.option_color_filter.checked .svg_check rect:nth-child(2), .option_color_filter.checked .svg_check path,
.checkbox_item.checked .svg_check rect:nth-child(2), .checkbox_item.checked .svg_check path{
    display: block !important;
}
 
/* -- */

/* узор */
.symbolspop {
  background: var(--tg-theme-bg-color);
  border:1px solid var(--tg-theme-section-separator-color);
  cursor:default;
  display:none;
  margin-top: 15px;
  position:absolute;
  text-align:left;
  width: 90%;
  max-width: 400px;
  z-index:50;
  padding: 25px 25px 20px;
  top: 50%;
  left: 50%;
  margin-top: 42px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  border-radius: 5px;   
  height: 80%;
  z-index: 1000;
  box-shadow: 2px 2px 3px #9aafffab;
}

/* popup gift */
.popup_gift{
        height: 100%;
        background: #1e293b;
        position: fixed;
        z-index: 200;
        width: 100%;
        top: 0px;
        overflow: auto;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -ms-flex-align: center;
        -webkit-align-items: center;
        -webkit-box-align: center;
        align-items: center;
        justify-content: center;
}
.popup_gift .gift_item{
    position: relative;
    max-width: min(450px, 98%);
    margin: auto auto;
    top: 50px;

    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 30px;
}
.popup_gift .gift_item img{
    border-radius: 10px;
}
.popup_gift .g_number{
    background: none !important;
    font-weight: 600;
    font-size: 16px;
    position: static;
}
.popup_toolbar{
    background: #364b6c;
    height: 50px;
    width: 100%;
    position: absolute;
    display: block;
    left: 0;
    top: 0;
}
.popup_toolbar .close_btn{
    background-image: url('res/close-button.png');
    background-size: 100%;
    width: 42px;
    height: 42px;
    background-repeat: no-repeat;
    margin: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.popup_toolbar .share_btn{
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 5px;
    margin-top: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.popup_toolbar .img_share_btn{
    width: 42px;
    height: 42px;
    padding: 4px;
}
.popup_gift .btn_buy_gift{
    margin-right: 4px;
    border: 0;
    border-radius: 5px;
    height: 40px;
    cursor: pointer;
    background: #0098eb;
    font-weight: 500;
    font-size: .875rem;
    line-height: 1.25rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    width: 100%;
    color: #f8fafc;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}
.btn_buy_gift.disabled{
    background: gray !important;
}
.popup_gift .btn_share {
    width: 40px;
    height: 40px;
    background-color: #0098eb;
    border: none;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    color: #f8fafc;
    padding: 3px 8px 0px;
    border-radius: calc(0.5rem - 2px);
    cursor: pointer;
}
.popup_gift .btn_share:hover, .popup_gift .btn_buy_gift:hover{
    background-color: #0098ebe6;
}

.popup_gift p {
    color: #f8fafc;
}
.popup_gift p a{
    color: #98ebff;
}
.popup_gift .g_title{
    font-size: 18px !important;
}
.popup_gift .action-box{
    display: flex;
    
    margin-top: 6px;
}

.popup_gift .btn_tg_open_nft{
    border: none;
    background: none;
    margin-right: 4px;
    cursor: pointer;
}

.popup_gift .btn_tg_open_nft img{
    border-radius: 9999px;
    background: none;
    width: 40px;
    height: 40px;
}
.popup_gift .label_sold{
    display: none;    
    position: absolute;
    left: 10px;
    top: 10px;
    color: red;
    background: #2f3236c7;
    border-radius: 6px;
    padding: 3px;
}


div.nopremarket{
    width: 200px;
    padding-left: 6px;
    padding-top: 4px;
    width: 200px;
    display: none !important;
}
.checkbox_container {
  display: flex;
  position: relative;
  padding-left: 28px;
  margin-bottom: 0px;
  padding-top: 2px;
  cursor: pointer;
  font-size: 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-weight: 600;
}
.checkbox_container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkbox_container .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 6px;
}
.checkbox_container.big_models{
    min-height: 26px;
    left: 8px;
    margin-top: 2px;
    font-weight: normal;
    font-size: 12px;
}
.dropdown.big_icons .options img {
    width: 64px !important;
}

.checkbox_container:hover input ~ .checkmark {
  background-color: #ccc;
  border-radius: 6px;
}
.checkbox_container input:checked ~ .checkmark {
  background-color: #ac2c5f;
  border-radius: 6px;
}
.checkbox_container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.checkbox_container input:checked ~ .checkmark:after {
  display: block;
}
.checkbox_container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* --  */

.tonnel_listed {
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 0.6em;
    opacity: 0.4;
    z-index: 2;
}



@media (min-width:320px)  {
    body{
        
    }

    .list.gifts .gift_item, .list.gifts .gift_collection{
        margin-left: 5px;
        margin-right: 5px;
        max-width: 30%;
        width: 30%;
    }

    list .gift_item img, .popup_gift .image-container img{
        max-width: 100%;
        /*    min-height: 100px;*/
/*        background-image: url('gift_placeholder.jpg');*/
        background-size: 100% 100%;

        min-width: 100px;
        min-height: 100px;
        
    }

    .Main{
        padding: 8px;
    }

    .dropdown{
        width: 122px;
        margin-top: 2px;
    }

    .dropdown.select_nft{
        background-position-x: 4px;
    }

    .g_title{
        font-size: 11px;
        font-weight: 500;
    }
    
    .gift_collection{
        min-width: 100px;
    }
    .gift_collection .g_title {
        font-size: 0.8em;
    }

    .price-box{
        /*display: flex;
        width: 100%;*/
    }

    .select_model{
        width: 90px;
    }

    .dropdown .select-items {
        font-size: 0.75em;
    }

    .icon_premarket span {
        font-size: 0.9em;
    }
    div.nopremarket{
        display: flex;
    }
}

@media (min-width:1025px)  {
   .list.gifts .gift_item, .list.gifts .gift_collection{
        max-width: 200px;
    }

    .gift_item .btn_buy{        
        background-size: 36px;
        width: 36px;
        height: 36px;        
    }

    .g_title{
        font-size: inherit;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .gift_collection {
        min-width: 160px;
    }
    .gift_collection .g_title {
        font-size: 1.2em;
    }

    .select_model{
        width: 122px;
    }

    .dropdown .select-items {
        font-size: 0.9em;
    }

    .dropdown{
        width: 200px;
    }

    .price-box{
       /* display: block;
        width: 100%;*/
    }

    .icon_premarket span {
        font-size: 1em;
    }
    div.nopremarket{
        display: block;
    }
}

@container g_info_container style(--theme: dark) {

    .g_info_container p {
        color: #bbc7d9 !important;
    }

    .gift_item{
        box-shadow: 3px 3px 5px #363c50 !important;
    }

}

@container g_info_container not style(--theme: dark) {
  .g_info_container p {
        color: #1b3939 !important;
    }
}
