@font-face {
    font-family: 'snapp';
    src: url('../fonts/snapp.ttf') format('truetype');
}
@font-face {
    font-family: 'ibrand';
    src: url('../fonts/ibrand.otf') format('opentype');
}

:root{
    --bs-body-font-size: 1.3rem;
}
body {
    background-color: #1f1f1f;
    color: #1f1f1f;
    font-family: 'snapp', 'Arial', 'ibrand', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.telegram-safe-ui {
    padding-top: 75px;
}
.container {
    flex: 1;
    margin-bottom: 80px;
}
#lobby .top{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
}
#wallet .top{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    margin-top:4% !important;
}
.header {
    width: 100%;
    text-align: center;
    padding: 15px;
    background: #f1f1f1;
    color: black;
    border-radius: 100px 100px 100px 100px;
    margin: 4% 3% 1% 3%;
}
.clickable{
    cursor: pointer;
}
.center {
    text-align: left;
    margin-left:24px;
    font-size:60px;
    margin-top:7px;
    color:#1f1f1f;
}
.users img{
    width: 20px !important;
}
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0;
}

.balance {
    width: 50%;
    text-align: center;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 20px;
    margin: auto;
    margin-bottom: 8.5px; 
    display: flex;
    justify-self: center;
    justify-content: center;
}

.balance h5 {
    margin-bottom: 0;
}

.game-card {
    cursor: pointer;
    position: relative;
    background: #f1f1f1;
    padding: 0px 18px;
    border-radius: 35px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.users{
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    border-radius: 0px 30px 0px 15px;
    padding: 1px 12px 2px 12px;
    height:50%;
}
.game-card img {
    width: 50px;
    height: 61px;
}

.footer {
    width: 100%;
    background: #f1f1f1;
    padding: 10px 10px 0px 10px;
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    border-radius: 40px 40px 0px 0px;
    height: 78px;
}


.toggle-btn {
    display: flex;
    align-items: center;
    position: relative;
    width: 200px;
    height: 60px;
    border-radius: 50px;
    background: #f8f9fa;
    overflow: hidden;
    border: none;
}
.toggle-btn .btn {
    flex: 1;
    border-radius: 50px;
    font-weight: bold;
    font-size: 24px;
    color: #1f1f1f;
    background: transparent;
    border: none;
    z-index: 2;
    position: relative;
}
.toggle-btn .active {
    color: #1f1f1f;
}
.toggle-btn::before {
    content: "";
    position: absolute;
    left: 0;
    width: 50%;
    height: 100%;
    background: #ffcc33;
    border-radius: 50px;
    transition: all 0.3s;
}
.toggle-btn.right::before {
    left: 50%;
}





/*!
 * Toastify js 1.12.0
 * https://github.com/apvarun/toastify-js
 * @license MIT licensed
 *
 * Copyright (C) 2018 Varun A P
 */

.toastify {
    padding: 12px 20px;
    color: #f1f1f1;
    display: inline-block;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);
    background: #0e1121 !important;
    background: #0e1121 !important;
    position: fixed;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    max-width: calc(50% - 20px);
    z-index: 2147483647;
}

.toastify.on {
    opacity: 1;
}

.toast-close {
    background: transparent;
    border: 0;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    opacity: 0.4;
    padding: 0 5px;
}

.toastify-right {
    right: 15px;
}

.toastify-left {
    left: 15px;
}

.toastify-top {
    top: -150px;
}

.toastify-bottom {
    bottom: -150px;
}

.toastify-rounded {
    border-radius: 25px;
}

.toastify-avatar {
    width: 1.5em;
    height: 1.5em;
    margin: -7px 5px;
    border-radius: 2px;
}

.toastify-center {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: fit-content;
    max-width: -moz-fit-content;
}

@media only screen and (max-width: 360px) {
    .toastify-right, .toastify-left {
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        max-width: fit-content;
    }
}

/* HTML: <div class="loader"></div> */

html.in-game{
    overflow: hidden;
    touch-action: none;
    -ms-touch-action: none;
}




.loader {
    position: absolute;
    /* top: 50%; */
    /* left: 50%; */
    height: 60px;
    width: 160px;
    transform: translate(0%, 0%);
}

.circles {
    position: absolute;
    left: -5px;
    top: 0;
    height: 60px;
    width: 180px;
    animation: animcircles 0.5s infinite linear;
}

.circles span {
    position: absolute;
    top: 25px;
    height: 12px;
    width: 12px;
    border-radius: 12px;
    background-color: #efefef;
}

.circles span.one {
    right: 80px;
}

.circles span.two {
    right: 40px;
}

.circles span.three {
    right: 0px;
}

@keyframes animcircles {
    0% {
        transform: translate(0px, 0px);
    }
    100% {
        transform: translate(-40px, 0px);
    }
}

.pacman {
    position: absolute;
    left: 0;
    top: 0;
    height: 60px;
    width: 60px;
}

.pacman .eye {
    position: absolute;
    top: 10px;
    left: 30px;
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background-color: #1C163A;
}

.pacman span {
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    width: 60px;
}

.pacman span::before {
    content: "";
    position: absolute;
    left: 0;
    height: 30px;
    width: 60px;
    background-color: white;
}

.pacman .top::before {
    top: 0;
    border-radius: 60px 60px 0 0;
}

.pacman .bottom::before {
    bottom: 0;
    border-radius: 0 0 60px 60px;
}

.pacman .left::before {
    bottom: 0;
    height: 60px;
    width: 30px;
    border-radius: 60px 0 0 60px;
}

.pacman .top {
    animation: animtop 0.5s infinite;
}

.pacman .bottom {
    animation: animbottom 0.5s infinite;
}

@keyframes animtop {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-45deg);
    }
}

@keyframes animbottom {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(45deg);
    }
}

.modal-dialog-bottom {
    position: fixed;
    bottom: 5%;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: fit-content%; /* مطابق با اندازه مدال معمولی */
}

.modal-dialog-bottom .modal-body {
padding: 10px 150px;
white-space: nowrap;
}