.floating-menu {
    padding-top: 4px;
    padding-bottom: 4px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    border-radius: 30px;
    z-index: 999;
    padding: 4px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.main-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;             /* Horizontal layout */
    flex-direction: row;
    gap: 4px;                  /* Spacing between buttons */
}

.main-menu li a {
    display: block;
    padding: 4px 10px;
    color: #fff;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
}

.main-menu li a:hover {
    background: rgba(244, 244, 244, 0.3);
}

.main-menu li a i {
    font-size: 16px;
}

.menu-bg {
    background-image: linear-gradient(to bottom, #1C5E91 0%, #167699 100%);
    background-repeat: repeat-x;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    z-index: -1;
    top: 0;
    left: 0;
    transition: 0.1s;
}

.ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: 0.2;
    transition: 0s;
}
