:root {
    --networkListContainerBg: hsl(from var(--main) calc(h * 1.25) calc(s * 1.5) calc(l * 1.5));
}

#networkServers {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 1;

    padding: 10px;
    background-color: var(--networkListContainerBg);

    width: fit-content;
    user-select: none;
    position: relative;

    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

#networkServers #networkServerList {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;

    max-width: 0;
    transition: max-width 0.5s ease;
}

#networkServers:hover #networkServerList {
    max-width: 100px;
}

#networkServers:not(:hover) #networkServerList {
    animation-play-state: running;
    animation-direction: reverse;
}


#networkServers #networkActivatorUi .networkIndicatorIcon{
    filter: grayscale(100%);
}

#networkServers #networkActivatorUi{
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: white;

    background-color: var(--networkListContainerBg);
    border-radius: 50%;

    line-height: 100%;
    padding: 8px 4px;
    z-index: 20;

    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
}

#networkServers .networkIndicator{
    display: none;
    font-size: 8px;
    font-weight: bold;
    line-height: 80%;
    padding: 4px;
    background-color: indianred;
    color: white;

    border-radius: 50%;
    border: 1px solid #ABB0BE;

    right: -2px;
    top: -6px;
    position: absolute;
}

.networkServerEntry {
    opacity: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#networkServers:hover .networkServerEntry {
    opacity: 1
}

#networkServers:not(:hover) .networkServerEntry {
    animation-play-state: running;
    animation-direction: reverse;
}

.networkServerEntry img {
    width: 45px;
    height: 45px;
    border: 1px solid hsl(from var(--main) h s calc(l * 10));
    border-radius: 50%;
    background-size: cover;
    object-fit: cover;
    background-position: center center;
}

.networkServerEntry img.home{
    border: none;
}

.networkServerEntry .networkIndicator {
    position: absolute;
    top: 4px;
    right: 4px;

    font-size: 8px;
    font-weight: bold;
    line-height: 80%;
    padding: 4px;

    background-color: indianred;
    color: white;
    border-radius: 50%;
    border: 1px solid #ABB0BE;
}
