dots-menu, dots-menu * { user-select: none }

dots-menu {
    position: absolute;
    display: block;
    width: auto; height: auto;
    --transition-duration: 0.4s;
    pointer-events: all;
}


dots-menu dots-menu-group {
    position: absolute;
    right: 0; bottom: 0;
    width: auto; height: auto;
}


dots-menu my-tooltip  {
    bottom: 4.5rem; transform: translate(50%,0);
}

dots-menu dots-menu-group dots-menu-group-title  {
    position: absolute;
    right: 0; bottom: 100%;
    width: auto; height: auto;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 1rem 1rem 1rem 2rem;
    background-color: rgba(255,255,255,0.0);
    color: #ffffff;
    white-space: nowrap;
    transition: opacity 0.4s;
    opacity: 1;
}

dots-menu dots-menu-group.hidden dots-menu-group-title,
dots-menu dots-menu-group.remove dots-menu-group-title  {
    opacity: 0;
}

dots-menu dots-menu-group dots-menu-group-children  {
    position: relative;
    right: 0; bottom: 0;
    width: auto; height: auto;
    display: flex;
    flex-direction: row;
}




dots-menu dots-menu-item {
    position: relative;
    box-sizing: border-box;
    width: 3rem; height: 3rem;
    border-radius: 1.5rem;
    border: 2px solid rgb(0, 28, 66);
    box-shadow: 0 0 8px rgba(255,255,255,0.7);
    backdrop-filter: blur(2px);
    margin-left: 1.2rem;
    cursor: pointer;
    transition: transform 0.5s, opacity 0.5s, filter 0.5s;
    transform: translate(0,0) scale(1);
    opacity: 1;
    /* filter: blur(0); */
}

dots-menu dots-menu-item.hidden {
    transform: translate(0,-4rem) scale(0);
    opacity: 0;
    /* filter: blur(20px); */
}

dots-menu dots-menu-item.remove {
    /* transform: translate(0,+4rem) scale(0); */
    transition-timing-function: ease-in;
    transform: translate(0,+10rem);
    /* opacity: 0; */
    /* filter: blur(20px); */
}

dots-menu dots-menu-item::before {
    content: '';
    position: absolute;
    left: 0.0rem; top: 0.0rem; width: calc(100% - 0.0rem); height: calc(100% - 0.0rem);
    box-sizing: border-box;
    border-radius: 1.5rem;
    background-color: rgba(255,255,255,1);
    transition: transform 0.3s, opacity 0.3s;
    transform: scale(0);
    opacity: 0;
}

dots-menu dots-menu-item:hover::before,
dots-menu dots-menu-item:active::before,
dots-menu dots-menu-item.active::before {
    transform: scale(1);
    opacity: 1;
}

dots-menu dots-menu-item.visited::after { 
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    box-sizing: border-box;
    width: 1.4rem; height: 1rem;
    border: 0px solid rgb(0, 28, 66);
    border-width: 0 0 4px 4px;
    transform: translate(-50%,-75%) rotate(-45deg);
    transition: border-color 0.3s;
}

dots-menu dots-menu-item:hover::after,
dots-menu dots-menu-item:active::after,
dots-menu dots-menu-item.active::after {    
    border-color: rgb(0, 28, 66);
}


dots-menu dots-menu-item.visited {
    background-color: rgba(255,255,255,0.6);
    content: '';
}

dots-menu dots-menu-item.active::before {
    background-color: rgba(255,255,255,1);
}


dots-menu dots-menu-item:hover,
dots-menu dots-menu-item:focus {
    background-color: rgba(255,255,255,1);
    outline: none;
}

dots-menu dots-menu-item.active {
    background-color: rgba(0,0,255,0.2);
    outline: none;
}


@media screen and (max-width: 900px) {
    
    dots-menu dots-menu-group dots-menu-group-children  {
        flex-direction: column;
    }

    dots-menu dots-menu-item {
        margin-left: 0;
        margin-bottom: 1.2rem;
    }

    dots-menu dots-menu-item.hidden {
        transform: translate(4rem,0) scale(0);
        opacity: 0;
        /* filter: blur(20px); */
    }
    
    dots-menu dots-menu-item.remove {
        transform: translate(+10rem,0);
    }
}    
