@font-face {
    font-family: 'chital';
    src: url('fonts/chital.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'chital', sans-serif;
    background-color: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
}

.theme-1 {
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, rgba(239,83,80,1) 50%, rgba(244,67,54,1) 100%);
}

.theme-2 {
    background: radial-gradient(circle, rgba(76,175,80,1) 0%, rgba(139,195,74,1) 50%, rgba(205,220,57,1) 100%);
}

.theme-3 {
    background: radial-gradient(circle, rgba(33,150,243,1) 0%, rgba(30,136,229,1) 50%, rgba(3,169,244,1) 100%);
}

.theme-4 {
    background: radial-gradient(circle, rgba(255,193,7,1) 0%, rgba(255,152,0,1) 50%, rgba(255,87,34,1) 100%);
}

.theme-5 {
    background: radial-gradient(circle, rgba(156,39,176,1) 0%, rgba(103,58,183,1) 50%, rgba(63,81,181,1) 100%);
}

.theme-6 {
    background: radial-gradient(circle, rgba(233,30,99,1) 0%, rgba(236,64,122,1) 50%, rgba(250,205,255,1) 100%);
}

.theme-7 {
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, rgba(255,152,0,1) 50%, rgba(255,193,7,1) 100%);
}

.theme-8 {
    background: radial-gradient(circle, rgba(0,188,212,1) 0%, rgba(0,150,136,1) 50%, rgba(3,169,244,1) 100%);
}

.theme-9 {
    background: radial-gradient(circle, rgba(255,235,59,1) 0%, rgba(255,193,7,1) 50%, rgba(255,87,34,1) 100%);
}

.theme-10 {
    background: radial-gradient(circle, rgba(64,196,255,1) 0%, rgba(42,87,141,1) 50%, rgba(21,101,192,1) 100%);
}

.theme-11 {
    background: radial-gradient(circle, rgba(33,150,243,1) 0%, rgba(30,136,229,1) 50%, rgba(3,169,244,1) 100%);
}

.theme-12 {
    background: radial-gradient(circle, rgba(139,195,74,1) 0%, rgba(76,175,80,1) 50%, rgba(205,220,57,1) 100%);
}

.theme-13 {
    background: radial-gradient(circle, rgba(255,238,88,1) 0%, rgba(255,193,7,1) 50%, rgba(255,87,34,1) 100%);
}

.theme-14 {
    background: radial-gradient(circle, rgba(255,82,82,1) 0%, rgba(244,67,54,1) 50%, rgba(233,30,99,1) 100%);
}

.theme-15 {
    background: radial-gradient(circle, rgba(0,188,212,1) 0%, rgba(3,169,244,1) 50%, rgba(0,150,136,1) 100%);
}

.theme-16 {
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, rgba(255,193,7,1) 50%, rgba(255,87,34,1) 100%);
}

.theme-17 {
    background: radial-gradient(circle, rgba(255,235,59,1) 0%, rgba(255,193,7,1) 50%, rgba(255,87,34,1) 100%);
}

.theme-18 {
    background: radial-gradient(circle, rgba(255,64,129,1) 0%, rgba(255,105,180,1) 50%, rgba(233,30,99,1) 100%);
}

.theme-19 {
    background: radial-gradient(circle, rgba(38,198,218,1) 0%, rgba(3,169,244,1) 50%, rgba(33,150,243,1) 100%);
}

.theme-20 {
    background: radial-gradient(circle, rgba(156,39,176,1) 0%, rgba(103,58,183,1) 50%, rgba(63,81,181,1) 100%);
}


.container {
    text-align: center;
    position: relative;
    margin-top: 20vh;
}

.user-info {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
}

.user-info img {
    border-radius: 50%;
    width: 10vw;
    max-width: 50px;
    height: auto;
    margin-right: 10px;
}

#click-button {
    width: 200px;
    height: 200px;
    cursor: pointer;
    margin-top: 20px;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    transition: transform 0.2s ease-in-out;
}

#click-button:focus, #click-button:active {
    outline: none;
    border: none;
}

.coin {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url('coin.png') no-repeat center center;
    background-size: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.click-count-container {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#click-count {
    font-size: 2.5rem;
}

.coin-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5px, -5px); }
    50% { transform: translate(5px, 5px); }
    75% { transform: translate(-5px, 5px); }
    100% { transform: translate(0, 0); }
}

.navigation-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* رنگ پس‌زمینه نوار کمی شفاف‌تر برای تفکیک بهتر */
    display: flex;
    justify-content: space-around; /* فاصله‌گذاری یکنواخت بین دکمه‌ها */
    align-items: center; /* تراز کردن دکمه‌ها به طور عمودی */
    padding: 12px 0; /* padding مناسب برای فضای مناسب در موبایل */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3); /* سایه تیره‌تر برای بهتر دیده شدن */
    box-sizing: border-box; /* اطمینان از گنجاندن padding در عرض نوار */
}

.navigation-bar button {
    background: none;
    border: none;
    color: black; /* تغییر رنگ متن به سیاه */
    font-size: 1.2rem; /* اندازه فونت کمی بزرگ‌تر برای خوانایی بهتر */
    padding: 12px 20px; /* padding مناسب برای دکمه‌ها */
    border-radius: 8px; /* شعاع گوشه‌های بیشتر برای دکمه‌ها */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* انیمیشن برای تغییر رنگ و تغییر اندازه */
    display: flex; /* استفاده از flexbox برای تنظیم آیکون و متن */
    align-items: center; /* تراز کردن آیکون و متن عمودی */
    justify-content: center; /* تراز کردن آیکون و متن افقی */
    position: relative;
    width: 100%; /* برای بزرگ‌تر کردن دکمه‌ها */
    box-sizing: border-box;
}

.navigation-bar button:not(:last-child) {
    border-right: 1px solid #ccc; /* اضافه کردن خط جداکننده کم‌رنگ بین دکمه‌ها */
}

.navigation-bar button:hover {
    background-color: rgba(0, 0, 0, 0.1); /* تغییر رنگ پس‌زمینه در حالت hover */
    transform: scale(1.05); /* بزرگ‌تر شدن دکمه‌ها در حالت hover */
}

.navigation-bar button:focus,
.navigation-bar button:active {
    outline: none; /* حذف نوار آبی */
    box-shadow: none; /* حذف سایه */
    -webkit-tap-highlight-color: transparent; /* حذف رنگ نمایان‌گر لمسی در موبایل‌های WebKit */
}

.button-logo {
    margin-left: 8px; /* فاصله لوگو از متن */
    width: 24px; /* اندازه لوگو مناسب برای موبایل */
}

@media (max-width: 768px) {
    .navigation-bar {
        padding: 12px 4%; /* padding مناسب برای تبلت‌ها */
    }

    .navigation-bar button {
        font-size: 1.2rem; /* اندازه فونت کمی بزرگ‌تر برای تبلت‌ها */
        padding: 12px 16px; /* padding مناسب برای تبلت‌ها */
    }

    .button-logo {
        width: 24px; /* اندازه لوگو برای تبلت‌ها */
    }
}

@media (max-width: 480px) {
    .navigation-bar {
        padding: 12px 2%; /* padding مناسب برای گوشی‌های موبایل */
    }

    .navigation-bar button {
        font-size: 1.2rem; /* اندازه فونت کمی بزرگ‌تر برای گوشی‌های موبایل */
        padding: 12px 10px; /* padding مناسب برای گوشی‌های موبایل */
    }

    .button-logo {
        width: 24px; /* اندازه لوگو برای گوشی‌های موبایل */
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 30px;
    }

    .user-info img {
        width: 8vw;
    }

    #click-button {
        width: 150px;
        height: 150px;
    }

    #click-count {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin-top: 20px;
    }

    .user-info img {
        width: 12vw;
    }

    #click-button {
        width: 120px;
        height: 120px;
    }

    #click-count {
        font-size: 1.5rem;
    }
}
