﻿body{
    position: relative;
}

section.social_layouts {
    position: fixed;
    bottom: 2em;
    right: 2em;
}

.action-buttons-wrapper {
    display: flex;
    flex-direction: column-reverse;
}

.action-buttons-root {
    width: 60px;
    height: 60px;
    background-color: #98cb00;
    font-size: 25px;
    line-height: 64px;
    bottom: 110px;
    border-radius: 50%;
    text-align: center;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

    .action-buttons-root i {
        color: var(--color-white);
    }

.social_layouts span.label {
    display: inline-block;
    color: white;
    background-color: rgba(0,0,0,.5);
    border-radius: 5px;
    padding: 0 5px;
    line-height: 25px;
    font-size: 12px;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    position: absolute;
    top: 83%;
    right: calc(100% + 10px);
    bottom: auto;
    left: auto;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.action-buttons-inner-wrapper {
    pointer-events: none;
    display: flex;
    display: -webkit-flex;
    flex: 0 1 auto;
    -webkit-flex: 0 1 auto;
    flex-direction: column;
}

    .action-buttons-inner-wrapper .action-button {
        display: block;
        position: relative;
        color: rgba(0,0,0,.54);
        margin: 8px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 50%;
        padding: 0;
        font-size: 20px;
        min-width: 0;
        box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);
        box-sizing: border-box;
        transition: transform .2s cubic-bezier(.4,0,.2,1) 0s,opacity .8s;
        background-color: var(--color-white);
        opacity: 0;
        transform: scale(0);
    }

.action-buttons-root:hover + .action-buttons-inner-wrapper {
    pointer-events: auto;
}

.action-buttons-root:hover + .action-button, .social_layouts:hover .action-button, .action-buttons-root.active + .action-button {
    pointer-events: auto;
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    transition: transform .2s cubic-bezier(.4,0,.2,1) 0s,opacity .8s,height 0s linear 0s,margin 0s linear 0s;
}
