﻿#button-phanhoi-vr {
    position: fixed;
    bottom: 50px;
    z-index: 100;
    left: 0px;
}

#button-phanhoi-vr .button-contact {
    position: relative;
    margin-top: -5px;
    animation: phone-vr-circle-fill 1s infinite ease-in-out;
}

#button-phanhoi-vr .button-contact .phone-vr {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility 0.5s;
    left: 0;
    bottom: 0;
    display: block;
}

.phone-vr-circle-fill {
    width: 65px;
    height: 65px;
    top:15%;
    left:15%;
    position: absolute;
    box-shadow: 0 0 0 0 #2cb3f0;
    background-color: #2cb3f0;
    border-radius: 50%;
    border: 2px solid transparent;
    -webkit-animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    transition: all 0.5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: zoom 1.3s infinite;
    animation: zoom 1.3s infinite;
}
#phone-vr-circle-fill_support {
    width: 65px;
    height: 65px;
    position: absolute;
    box-shadow: 0 0 0 0 #2cb3f0;
    background-color: #2cb3f0;
    border-radius: 50%;
    border: 2px solid transparent;
    -webkit-animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    transition: all 0.5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: zoom 1.3s infinite;
    animation: zoom 1.3s infinite;
    top: -8px;
    left: -7px;
    z-index: -1;
}


#message-vr .phone-vr-circle-fill {
    box-shadow: 0 0 0 0 #eb9d29;
    background-color: rgb(251 185 36 / 70%);
}
.phone-vr-img-circle img {
    max-height: 30px;
    max-width: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

@-webkit-keyframes come-in {
    0% {
        -webkit-transform: translatey(100px);
        transform: translatey(100px);
        opacity: 0;
    }

    30% {
        -webkit-transform: translateX(-50px) scale(0.4);
        transform: translateX(-50px) scale(0.4);
    }

    70% {
        -webkit-transform: translateX(0px) scale(1.2);
        transform: translateX(0px) scale(1.2);
    }

    100% {
        -webkit-transform: translatey(0px) scale(1);
        transform: translatey(0px) scale(1);
        opacity: 1;
    }
}

@keyframes come-in {
    0% {
        -webkit-transform: translatey(100px);
        transform: translatey(100px);
        opacity: 0;
    }

    30% {
        -webkit-transform: translateX(-50px) scale(0.4);
        transform: translateX(-50px) scale(0.4);
    }

    70% {
        -webkit-transform: translateX(0px) scale(1.2);
        transform: translateX(0px) scale(1.2);
    }

    100% {
        -webkit-transform: translatey(0px) scale(1);
        transform: translatey(0px) scale(1);
        opacity: 1;
    }
}

@keyframes go-out {
    0% {
        -webkit-transform: translateY(0px) scale(1);
        transform: translateY(0px) scale(1);
        opacity: 1;
    }

    30% {
        -webkit-transform: translateX(-50px) scale(0.4);
        transform: translateX(-50px) scale(0.4);
    }

    70% {
        -webkit-transform: translateX(100px) scale(1.2);
        transform: translateX(0px) scale(1.2);
        opacity:0.3;
    }

    100% {
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
        opacity: 0;
    }
}



@-webkit-keyframes phone-vr-circle-fill {
    0% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }

    10% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
    }

    20% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
    }

    30% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
    }

    40% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
    }

    50% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }

    100% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }
}

@keyframes zoom {
    0% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent;
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
    }
}


.floating-container {
    position: fixed;
    width: 100px;
    height: 100px;
    /*bottom: 34px;*/
    bottom: 100px;
    right: -30px;
    margin: 35px 25px;
}

.floating-container.clicked {
    height: 450px;
}


.floating-container.clicked .floating-button {
    transform: scale(0.9);
    box-shadow: 0 10px 25px rgba(44, 179, 240, 0.6);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

    .floating-container.clicked .element-container a:nth-child(1) .float-element {
        -webkit-animation: come-in 0.4s forwards 0.8s, zoom 1.3s infinite;
        animation: come-in 0.4s forwards 0.6s, zoom 1.3s infinite;
    }

    .floating-container.clicked .element-container a:nth-child(2) .float-element {
        -webkit-animation: come-in 0.4s forwards 0.6s, zoom 1.3s infinite;
        animation: come-in 0.4s forwards 0.4s, zoom 1.3s infinite;
    }

    .floating-container.clicked .element-container a:nth-child(3) .float-element {
        -webkit-animation: come-in 0.4s forwards 0.4s, zoom 1.3s infinite;
        animation: come-in 0.4s forwards 0.2s, zoom 1.3s infinite;
    }

    .floating-container.clicked .element-container a:nth-child(4) .float-element {
        -webkit-animation: come-in 0.4s forwards 0.2s, zoom 1.3s infinite;
        animation: come-in 0.4s forwards 0.2s, zoom 1.3s infinite;
    }


    .floating-container .floating-button {
        position: absolute;
        width: 50px;
        height: 50px;
        /* background: #2cb3f0;*/
        opacity: 0.7;
        bottom: 0;
        border-radius: 50%;
        left: 0;
        right: 0;
        margin: auto;
        color: white;
        line-height: 65px;
        text-align: center;
        font-size: 23px;
        z-index: 100;
        box-shadow: 0 10px 25px -5px rgba(44, 179, 240, 0.6);
        cursor: pointer;
        -webkit-transition: all 0.3s;
        transition: all 0.3s;
        animation: phone-vr-circle-fill 1s infinite ease-in-out;
    }
.floating-container .float-element {
    position: relative;
    display: block;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    margin: 30px auto;
    color: white;
    font-weight: 500;
    text-align: center;
    line-height: 50px;
    z-index: 0;
    opacity: 0;
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
}

.floating-container .float-element{
    vertical-align: middle;
    font-size: 16px;
}

    .floating-container .element-container a:nth-child(1) .float-element {
        background: #e60808;
        box-shadow: 0 0 0 0 #e60808;
    }

    .floating-container .element-container a:nth-child(2) .float-element {
        background: #2196f3;
        box-shadow: 0 0 0 0 #2196f3;
    }

    .floating-container .element-container a:nth-child(3) .float-element {
        background: #2196f3;
        box-shadow: 0 0 0 0 #2196f3;
    }

    .floating-container .element-container a:nth-child(4) .float-element {
        background: #07cfaa;
        box-shadow: 0 0 0 0 #07cfaa;
    }


.element-container a span i {
    margin-top:21px;
    animation: phone-vr-circle-fill 1s infinite ease-in-out;
}
.element-container a span img {
    margin-top: 10px;
    animation: phone-vr-circle-fill 1s infinite ease-in-out;
}

.floating-container .element-container a:nth-child(1) .float-element.go-out {
    -webkit-animation: go-out 0.4s forwards 0s;
    animation: go-out 0.4s forwards 0s;
}

.floating-container .element-container a:nth-child(2) .float-element.go-out {
    -webkit-animation: go-out 0.4s forwards 0s;
    animation: go-out 0.4s forwards 0s;
}

.floating-container .element-container a:nth-child(3) .float-element.go-out {
    -webkit-animation: go-out 0.4s forwards 0s;
    animation: go-out 0.4s forwards 0s;
}

.floating-container .element-container a:nth-child(4) .float-element.go-out {
    -webkit-animation: go-out 0.4s forwards 0s;
    animation: go-out 0.4s forwards 0s;
}
