﻿html {
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

body {
    background-color: #eee;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 100% !important;
    background-size: cover;
    background-position: center;
}

@font-face {
    font-family: iranyekanbold;
    src: url('../fonts/iranyekanwebbold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: BTITRBD;
    src: url('../fonts/Captcha/BTitr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: bnazanin;
    src: url('../fonts/Captcha/BNAZANIN.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: bkoodak;
    src: url('../fonts/Captcha/BKoodak.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: IranNastaliq;
    src: url('../fonts/IranNastaliq.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: iranyekanbold;
}

.font-btbd {
    font-family: BTITRBD;
}

.blur-card {
    background: rgba(255, 255, 255, 0.35);
    background-color: #30535338;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0px 0px 0px;
    margin-top: auto;
    margin-bottom: auto;
    box-shadow: 10px 0 20px #333;
}

.login-button{
    width: 100%;
    text-align: center;
    border-radius: .5rem;
    border: none;
    color:white;
    padding: .5rem;
    background: linear-gradient(0, rgb(67, 149, 255), rgb(43, 57, 255));
    text-decoration: none;
    cursor: pointer;
}


/*--------------------------------------------------------*/
.scroll-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.buttons-wrapper {
    justify-content: center;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

    .buttons-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .buttons-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .buttons-wrapper::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
        border-radius: 3px;
    }

        .buttons-wrapper::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(90deg, #ff5252, #26a69a);
        }

.fancy-button {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 140px;
}

    .fancy-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .fancy-button:hover::before {
        left: 100%;
    }

    .fancy-button:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
    }

    .fancy-button:active {
        transform: translateY(-2px) scale(1.02);
    }

    .fancy-button img {
        width: 55px;
        height: 55px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 0.75rem;
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
        padding: 8px;
    }

    .fancy-button:hover img {
        border-color: rgba(255, 255, 255, 0.6);
        transform: rotate(360deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .fancy-button span {
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

.title {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 2rem;
}

.fade-edges {
    position: relative;
}

    .fade-edges::before,
    .fade-edges::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        pointer-events: none;
        z-index: 2;
    }

    .fade-edges::before {
        left: 0;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    }

    .fade-edges::after {
        right: 0;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
    }

@media (max-width: 576px) {
    .fancy-button {
        flex: 0 0 105px;
        padding: 1rem 0.5rem;
        min-height: 125px;
    }

        .fancy-button img {
            width: 50px;
            height: 50px;
            margin-bottom: 0.4rem;
            padding: 6px;
        }

        .fancy-button span {
            font-size: 0.8rem;
        }

    .title {
        font-size: 1.5rem;
    }

}

/* انیمیشن لودینگ */
.fancy-button.loading {
    pointer-events: none;
}

    .fancy-button.loading img {
        animation: pulse 1.5s infinite;
    }

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* اضافه کردن گلو برای حالت فوکوس */
.fancy-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}