﻿
/* Sağdan gelme ve zıplama animasyonu */
@keyframes slideInAndBounce {
    0% {
        transform: translateX(100%); /* Başlangıçta görünmüyor, sağda */
        opacity: 0;
    }
    50% {
        transform: translateX(-20px); /* Biraz fazla kaydırma, zıplama etkisi için */
        opacity: 1;
    }
    70% {
        transform: translateX(10px); /* Biraz geri dönme */
    }
    100% {
        transform: translateX(0); /* Nihai pozisyon */
    }
}

/* Zıplama animasyonu */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0); /* Başlangıç ve bitiş pozisyonu */
    }
    40% {
        transform: translateY(-10px); /* Yukarı zıplama */
    }
    60% {
        transform: translateY(-5px); /* Daha küçük bir zıplama */
    }
}

/* wpContainer animasyonu */
.wpContainer .wptwa-handler {
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    color: #fff;
    background: rgba(69, 90, 100, .9);
    padding: 10px 15px;
    border-radius: 50px;
    line-height: 120%;
    white-space: nowrap;
    text-align: center;
    transition: all .3s ease-in-out;
    position: relative;
    margin: 20px;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    /* Sağdan gelme ve zıplama animasyonlarını uygula */
    animation: slideInAndBounce 1s ease-out, bounce 1s ease-in-out 1s 3;
}



.wpContainer {
    position: fixed;
    top: auto;
    left: auto;
    bottom: 0;
    right: 0;
    text-align: right;
    font-family: helvetica;
    font-size: 17px;
    line-height: 1.4em;
    max-width: 400px;
    max-height: 100%;
    overflow-y: auto;
    z-index: 100000;
}

/* Butonun varsayılan stili */
.wpContainer .wptwa-handler {
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    color: #fff;
    background: rgba(69,90,100,.9);
    padding: 10px 15px;
    border-radius: 50px;
    line-height: 120%;
    white-space: nowrap;
    text-align: center;
    transition: all .3s ease-in-out;
    position: relative;
    margin: 20px;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Buton hover efekti */
.wpContainer .wptwa-handler:hover {
    background-color: #34af23; /* Buton hover durumunda yeşil renk değişimi */
    transform: translateY(-5px); /* Buton hover durumunda hafifçe yukarı kayar */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Buton hover durumunda gölgelendirme artar */
}

/* SVG ikonunun varsayılan stili */
.wpContainer .wptwa-handler svg {
    max-width: 20px;
    fill: #fff;
    display: inline-block;
    vertical-align: top;
    margin-right: 5px;
    transition: transform .3s ease-in-out;
}

/* SVG ikon hover efekti */
.wpContainer .wptwa-handler:hover svg {
    transform: scale(1.2); /* Hover sırasında ikon büyür */
}

@media screen and (max-width: 782px) {
    .wptwa-flag:after {
        content: 'mobile';
        display: none;
    }

    .wpContainer.circled-handler-on-mobile .wptwa-handler {
        width: 60px;
        height: 60px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, .06), 0 2px 20px rgba(0, 0, 0, .16);
    }

    .wpContainer.circled-handler-on-mobile .wptwa-handler:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, .09), 0 4px 20px rgba(0, 0, 0, .24);
    }

    .wpContainer.circled-handler-on-mobile .wptwa-handler .text {
        display: none;
    }

    .wpContainer.circled-handler-on-mobile svg {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateY(-50%) translateX(-50%) scale(1.7);
    }
}

.wpContainer .wptwa-handler, .wptwa-description {
    background-color: #0fbd3a;
    color: #fff;
}
