.xray-off .bubble-flags-container {
    display: none;
}

.bubble-flags-container {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    gap: clamp(2px, 1cqw, 6px);
    top: 50%;
    left: 100%;
    transform: translate(+5%, -50%);
    width: clamp(80px, 80%, 200px);
    position: absolute;
}

.bubble-flag {
    display: flex;
    align-items: center;
    border-radius: 6px;
    width: var(--bubble-contributor-width);
    background-color: var(--bubble-background-level1);
    border-radius: 45px;
    padding-left: calc(var(--bubble-default-contributor-width)/2);
    line-height: 1;
}

.flag-icon-container {
    display: flex;
    width: var(--bubble-default-contributor-width);
    margin-right: clamp(3px, 2cqw, 8px);
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 3cqw, 8px) 0;
}

.flag-icon {
    width: var(--bubble-default-contributor-width);
    aspect-ratio: 1/1;
    height: auto;
    transform: rotate(45deg);
    border-radius: 20%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--bubble-flag-icon-background);
}

.flag-text {
    font-size: clamp(7px,7cqw,18px);
    color: var(--bubble-text-color-level1);
    max-width: calc(var(--bubble-contributor-width) - var(--bubble-default-contributor-width) - 2 * clamp(2px, 1cqw, 6px));
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor:default;
    padding: 0 clamp(2px, 1cqw, 6px);
}

.new-flag-input-element {
    display: flex;
    align-items: center;
    width: 100%;
}
/* block that wraps "new flag" input */
.new-flag-input {
    max-width: clamp(60px,60%,120px);
    width: clamp(30px,25cqw,75px);
    color: var(--bubble-assignments-text) !important;
    font-size: clamp(6px,5cqw,16px);
    border-radius: clamp(2px, 1cqw, 6px);
    padding-left: clamp(3px, 1cqw, 6px);
    padding-bottom: clamp(2px, 1cqw, 6px);
    background-color: var(--bubble-assignments-background);
    border-style: none;
    z-index: 1000;
    outline: none;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-out;
}

/* icon for "new flag" input line */
.new-flag-icon {
    width: var(--bubble-default-contributor-width);
    aspect-ratio: 1/1;
    height: auto;
    background: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: clamp(3px, 2cqw, 8px);
    /* padding-right: clamp(3px, 1cqw, 6px); */
}

/* .new-flag-icon:hover {
    transform: scale(1.2);
} */

.bubble-flags-splashes-container {
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.xray-off .bubble-flags-splashes-container {
    display: none !important;
}

.bubble-flag-splash {
    border-radius: 50%;
    z-index: 3;
    transform: translate(-20%,-22.5%);
    position: absolute;
    background-blend-mode: screen;
    width: 90%;
    height: 90%;
    opacity: 0.8;
}

.level1 .bubble-flag-splash {
    background-image: radial-gradient(circle at center, var(--bubble-flag-splash-background), transparent 70%, var(--bubble-background-level1) 80%);
}

.level2 .bubble-flag-splash {
    background-image: radial-gradient(circle at center, var(--bubble-flag-splash-background), transparent 70%, var(--bubble-background-level2) 80%);
}

.level3 .bubble-flag-splash {
    background-image: radial-gradient(circle at center, var(--bubble-flag-splash-background), transparent 70%, var(--bubble-background-level3) 80%);
}

.level4 .bubble-flag-splash {
    background-image: radial-gradient(circle at center, var(--bubble-flag-splash-background), transparent 70%, var(--bubble-background-level4) 80%);
}

.xray-off .bubble-flag-color-xray-off {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
    background-blend-mode: screen;
}

.bubble-flag-color-xray-off {
    display: none !important;
}