.ztn-overlay {
    right: 0px;
    position: absolute;
    z-index: var(--zidx-overlay);
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    transition: 0.3s;
    border: var(--colr-ztn-contrast) 1px outset;
    border-radius: 20px 20px 0 0;
    box-sizing: border-box;
    padding: 0px;
    max-width: inherit;
    outline: none;
    visibility: hidden;
}

.ztn-overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: var(--colr-ztn-contrast);
    transition: 0.3s;
    /* display: block; */
    background-color: transparent;
}

.ztn-overlay a:hover,
.ztn-overlay a:focus {
    color: #ffffff;
}

.ztn-overlay .btn-overlay-top {
    position: absolute;
    top: 16px;
    right: 25px;
    filter: invert(100%) drop-shadow(2px 4px 6px black);
    width: 45px;
}

.message-box-overlay {
    background-color: transparent;
    border: 0;
    display: inline-block;
    min-height: var(--hgt-nav-nor);
    width: fit-content;
    height: fit-content;
    top: 35%;
    left: 50%;
    opacity: 1;
    transform: translateX(-50%);
    transform-origin: center center;
    z-index: var(--zidx-message-overlay);
    transition: none;
}

@keyframes msg-box-scale-in {
    from { transform: translateX(-50%) scale(0); }
    to { transform: translateX(-50%) scale(1); }
}
@keyframes msg-box-scale-out {
    from { transform: translateX(-50%) scale(1); }
    to { transform: translateX(-50%) scale(0); }
}
@keyframes msg-box-drop-in {
    from { top: -700px; opacity: 0; }
    to { top: 35%; opacity: 1; }
}
@keyframes msg-box-drop-out {
    from { top: 35%; opacity: 1; }
    to { top: -700px; opacity: 0; }
}
@keyframes msg-box-fadein-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes msg-box-fadein-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes msg-box-flip-in {
    from { transform: translateX(-50%) rotateY(0deg); }
    to { transform: translateX(-50%) rotateY(-360deg); }
}
@keyframes msg-box-flip-out {
    from { transform: translateX(-50%) rotateY(-360deg); }
    to { transform: translateX(-50%) rotateY(0deg); }
}

.message-box-overlay-open {
    top: 35%;
    opacity: 1.0;
}

/* scale: grow in place at the resting center. default. */
.message-box-overlay.msg-anim-scale:not(.message-box-overlay-open) {
    transform: translateX(-50%) scale(0);
}
.message-box-overlay.msg-anim-scale.message-box-overlay-open {
    transform: translateX(-50%) scale(1);
}

/* drop: the previous animation, from above the screen down to the resting center. */
.message-box-overlay.msg-anim-drop:not(.message-box-overlay-open) {
    top: -700px;
    opacity: 0;
}

/* fadein: opacity only, position stays. */
.message-box-overlay.msg-anim-fadein:not(.message-box-overlay-open) {
    opacity: 0;
}

/* flip: vertical-axis spin, same motion as a bubble fill. */
.message-box-overlay.msg-anim-flip:not(.message-box-overlay-open) {
    transform: translateX(-50%) rotateY(0deg);
}
.message-box-overlay.msg-anim-flip.message-box-overlay-open {
    transform: translateX(-50%) rotateY(-360deg);
}

.message-box-overlay.msg-anim-none,
.message-box-overlay.msg-anim-none.message-box-overlay-open {
    transition: none;
}
.message-box-overlay.msg-anim-none:not(.message-box-overlay-open) {
    opacity: 0;
}

.message-box-overlay.msg-anim-instant {
    transition: none !important;
}

.msg-box-honey {
    pointer-events: none;
}

.message-box-overlay-content {
    display: inline-block;
    min-height: var(--hgt-nav-nor);
    position: relative;
    text-align: center;
}

.message-box-div {
    text-align: center;
    display: inline-block;
    color: white;
}

.username-full-content {
    position: relative;
    width: 94%;
    left: 3%;
    margin-top: 10px;
}

.username-full-label {
    text-align: center;
    color: white;
    margin-top: 20px;
}

.username-simple-overlay {
    width: 600px;
    height: 850px;
    bottom: -850px;
}

.username-simple-overlay-open {
    bottom: var(--hgt-nav-nor);
    z-index: 2101;
}

.username-simple-overlay-content {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 35px;
    margin-top: 50px;
}

.color-picker-overlay {
    width: 440px;
    height: 450px;
    bottom: -450px;
}

.color-picker-overlay-open {
    bottom: var(--hgt-nav-nor);
    z-index: var(--zidx-color-picker);
}

.color-picker-overlay-content {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

#color-from-screen-zoom-preview-div {
    position: absolute;
    left: 10px;
    bottom: 120px;
    width: 200px;
    height: 200px;
    border: 2px solid black;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    pointer-events: none;
    z-index: 2102;
    filter: drop-shadow(2px 4px 6px black);
}

#color-from-screen-zoom-preview-canvas {
    transform: scale(5);
    transform-origin: top left;
    z-index: 2102;
    position: absolute;
}

#color-from-screen-pointer {
    position: absolute;
    width: 32px;
    /* Pointer size */
    height: 32px;
    display: none;
    /* Initially hidden */
    pointer-events: none;
    z-index: 2102;
    left: 0px;
    top: 0px;
}

#color-from-screen-canvas {
    left: 0px;
    top: 0px;
    z-index: var(--zidx-color-from-screen-canvas);
    position: absolute;
}

.zeb_langcode_img {
    width: 100px;
    margin-right: 30px;
}

.text-svg {
    position: relative;
    width: 100%;
    left: 0px;
    z-index: 901;
}

/* zeb-color-picker-overlay */
.zeb-color-picker-overlay {
    position: absolute;
    top: 0px;
    background: #2a2a2a;
    border-radius: 8px;
    color: white;
    width: 440px;
    height: 450px;
    display: flex;
    flex-direction: column;
    padding: 12px;
    box-sizing: border-box;
}

.zeb-color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.zeb-color-picker-bar-container {
    display: flex;
    height: 40px;
    align-items: center;
    gap: 3px;
    min-height: 25px;
    border: 1px solid #444;
}

.zeb-color-picker-bar {
    width: 21px;
    height: 21px;
    position: relative;
    cursor: pointer;
}

.zeb-color-picker-bar img {
    width: 100%;
    filter: invert(100%);
}

.zeb-color-picker-button {
    width: 45px;
    height: 45px;
    cursor: "pointer";
}

.zeb-color-picker-right-label {
    display: inline-block;
    text-align: right;
    width: 80px;
    margin-right: 10px;
}

.zeb-color-picker-canvas {
    width: 220px;
    cursor: crosshair;
    border: 2px solid #ddd;
}