/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 18/02/2020, 09:41:39 AM
    Author     : DS
*/

#floating-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #db4437;
    position: fixed;
    bottom: 70px; /* 30px; */
    right: 30px;
    cursor: pointer;
    box-shadow: 0px 2px 10px 1px rgba(0,0,0,0.3); /* 0px 2px 5px #666; */
}

#floating-button .plus {
    color: white;
    position: absolute;
    top: 0;
    display: block;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0;
    margin: 0;
    line-height: 55px;
    font-size: 30px; /* 38px; */
    font-family: 'Roboto';
    font-weight: 300;
    animation: plus-out 0.3s;
    transition: all 0.3s;
}

#container-floating {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 70px; /* 30px; */
    right: 30px;
    z-index: 50px;
    z-index: 100;
}

#container-floating.is-opened .plus{
    animation: plus-in 0.15s linear;
    animation-fill-mode: forwards;
}

#floating-button .close-floating-button{
    position: absolute;
    top: 0;
    display: block;
    bottom: 0;
    left: 0;
    display: block;
    right: 0;
    padding: 0;
    opacity: 0;
    margin: auto;
    line-height: 65px;
    transform: rotateZ(-70deg);
    transition: all 0.3s;
    animation: close-out 0.3s;
    
    font-size: 30px;
    color: white;
}

#container-floating.is-opened .close-floating-button{
    animation: close-in 0.2s;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
}

@keyframes close-in{
    from {opacity: 0; transform: rotateZ(-70deg);}
    to {opacity: 1; transform: rotateZ(0deg);}
}

@keyframes close-out{
    from {opacity: 1; transform: rotateZ(0deg);}
    to {opacity: 0; transform: rotateZ(-70deg);}
}

@keyframes plus-in{
    from {opacity: 1; transform: rotateZ(0deg);}
    to {opacity: 0; transform: rotateZ(180deg);}
}

@keyframes plus-out{
    from {opacity: 0; transform: rotateZ(180deg);}
    to {opacity: 1; transform: rotateZ(0deg);}
}

#container-floating .nds {
    /*width: 40px;*/
    /*height: 40px;*/
    /*border-radius: 20px;*/
    position: fixed;
    z-index: 300;
    transform:  scale(0);
    transition: width .25s;
    cursor: pointer;
}

#container-floating .nds.is-opened,
#container-floating .nds.is-always-opened {
    width: 150px;
}

#container-floating .nd1 {
    /*background: #d3a411;*/
    right: 40px;
    bottom: 140px; /* 100px; */
    animation-delay: 0.2s;
    animation: bounce-out-nds 0.3s linear;
    animation-fill-mode:  forwards;
}

#container-floating .nd2 {
    /*background: #3c80f6;*/
    right: 40px;
    bottom: 185px; /* 150px; */
    animation-delay: 0.15s;
    animation: bounce-out-nds 0.15s linear;
    animation-fill-mode:  forwards;
}

#container-floating .nd3 {
    /*background: #ba68c8;*/
    right: 40px;
    bottom: 230px; /* 200px; */
    animation-delay: 0.1s;
    animation: bounce-out-nds 0.1s linear;
    animation-fill-mode:  forwards;
}

#container-floating .nd4 {
    /*background: #d3a411;*/
    right: 40px;
    bottom: 275px; /* 250px; */
    animation-delay: 0.08s;
    animation: bounce-out-nds 0.1s linear;
    animation-fill-mode:  forwards;
}

@keyframes bounce-nds{
    from {opacity: 0;}
    to {opacity: 1; transform: scale(1);}
}

@keyframes bounce-out-nds{
    from {opacity: 1; transform: scale(1);}
    to {opacity: 0; transform: scale(0);}
}

#container-floating.is-opened .nds{
    animation: bounce-nds 0.1s linear;
    animation-fill-mode:  forwards;
}

#container-floating.is-opened .nd2{
    animation-delay: 0.08s;
}
#container-floating.is-opened .nd3{
    animation-delay: 0.15s;
}
#container-floating.is-opened .nd4{
    animation-delay: 0.2s;
}