
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.telegram-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideIn 0.5s ease-out;
    background-color: black;
    border-radius: 10px;
    padding: 4px;
}

.telegram-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    border: 4px solid transparent;
    background: linear-gradient(45deg, #FFB7C5, #FF66A5, #FFB7C5) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: gradient 3s ease infinite;
}

#telegram-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    z-index: 1;
}

.telegram-banner .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    text-decoration: none;
    z-index: 2;
}

.telegram-text {
    font-size: 20px;
    margin: 5px 0;
}

.gradient-text {
    background: linear-gradient(45deg, #FFB7C5, #FFFFFF, #FFB7C5);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s ease infinite;
}

@media (max-width: 600px) {
    .telegram-banner {
        width: 120px;
        height: 120px;
        bottom: 21vw;
        right: 2vw;
    }
    .telegram-text {
        font-size: 16px;
    }
}
