.menu {
    z-index: -1;
}

.menu-icon, .share-icon {
    width: 100%;
    height: 100%;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

ul {
    display: block;
    width: 50px;
    height: 50px;
    padding: 0;
    position: absolute;
}

li {
    display: block;
    width: 40px;
    height: 40px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.6;
    position: absolute;
    bottom: 0;
    transition: transform 0.12s ease-out, opacity 0.12s ease-out, color 0.12s ease-out;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    color: transparent;
}

ul.main:hover {
    height: 230px;
}

li#visible {
    display: block !important;
    opacity: 1 !important;
}

ul.main li, ul.sub {
    display: none;
}

ul.main:hover > li, ul li:nth-child(2):hover > ul.sub, ul li:nth-child(2):hover > ul.sub li {
    display: block;
}

ul.main:hover > ul.sub {
    display: none;
}

ul.main:hover li:nth-child(2) {
    display: block;
}

ul.main:hover li:nth-child(2) {
    transform: translate(0, -110%);
}
ul.main:hover li:nth-child(2):hover {
    transform: translate(0, -110%) scale(1.15, 1.15);
}
ul:hover li:nth-child(2):after {
    transition-delay: 0.16s;
}

ul.main:hover li:nth-child(3) {
    transform: translate(0, -220%);
}
ul.main:hover li:nth-child(3):hover {
    transform: translate(0, -220%) scale(1.15, 1.15);
}
ul:hover li:nth-child(3):after {
    transition-delay: 0.24s;
}

ul.main:hover li:nth-child(4) {
    transform: translate(0, -330%);
}
ul.main:hover li:nth-child(4):hover {
    transform: translate(0, -330%) scale(1.15, 1.15);
}
ul:hover li:nth-child(4):after{
    transition-delay: 0.32s;
}


ul.sub {
    transform: translate(-110%, 0);
    bottom: 0;
    height: 160px;
    margin-right: 5px;
}

ul li:nth-child(2):hover > ul.sub li:nth-child(1) {
    transform: translate(0, 0) scale(0.85, 0.85);
}
ul li:nth-child(2):hover > ul.sub li:nth-child(1):hover {
    transform: translate(0, 0) scale(1, 1);
}
ul li:nth-child(2):hover > ul.sub li:nth-child(2) {
    transform: translate(0, -110%)  scale(0.85, 0.85);
}
ul li:nth-child(2):hover > ul.sub li:nth-child(2):hover {
    transform: translate(0, -110%) scale(1, 1);
}
ul li:nth-child(2):hover > ul.sub li:nth-child(3) {
    transform: translate(0, -220%)  scale(0.85, 0.85);
}
ul li:nth-child(2):hover > ul.sub li:nth-child(3):hover {
    transform: translate(0, -220%) scale(1, 1);
}

ul:hover li:after {
    opacity: 1;
}

ul:hover li:hover {
    opacity: 1;
    transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transition-duration: 0.24s;
}

ul.bottom.left {
    bottom: 0 !important;
    left: 0 !important;    
    margin: 0px 0px 20px 20px !important;
}

ul.bottom.right {
    bottom: 0 !important;
    right: 0 !important;    
    margin: 0px 20px 20px 0px !important;
}

ul.top.left {
    top: 0 !important;
    left: 0 !important;    
    margin: 20px 0px 0px 20px !important;
}

ul.top.right {
    top: 0 !important;
    right: 0 !important;    
    margin: 20px 20px 0px 0px !important;
}


  /*
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 2;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }*/