.zebulunRelay
{
    position: relative;
    height: 250px;
    width: 400px;
    border: 0;
    background-image: url("/images/zebulun_relay_communication_terminal.png");
    background-repeat: no-repeat;
    text-align: left;
    overflow: hidden;
    overflow-anchor: none;
    overscroll-behavior: contain;
    touch-action: pinch-zoom;
    background-color: #000000;
    color: #39fc03;
}

.zebulunRelay,
.zebulunRelay *
{
    -webkit-user-select: none;
    user-select: none;
}

#typewriter
{
    margin: 0;
    max-width: 100%;
    color: #0F0;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    line-height: 16px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-transform: none;
    z-index: 50;
}

#typewriter::after
{
    position: relative;
    left: 1ch;
    content: "";
    display: inline-block;
    width: 2px;
    height: 12px;
    background-color: #0F0;
    animation: blink 500ms linear infinite alternate;
}

.zebulunRelay.message-pending #typewriter::after
{
    position: relative;
    left: 1ch;
    content: none;
    animation: none;
}

.typewriterWrapper
{
    position: absolute;
    top: 50px;
    left: 20px;
    width: 360px;
    height: 170px;
    max-width: 360px;
    max-height: 170px;
    display: block;
    overflow: hidden;
    overflow-anchor: none;
    overscroll-behavior: contain;
    scroll-behavior: auto;
}

.typewriter
{
    display: block;
    min-height: 0;
    padding-bottom: 10px;
}

#typewriter-span
{
    max-width: 100%;
}

@-webkit-keyframes blink
{
    0%
    {
        opacity: 0.4;
    }

    100%
    {
        opacity: 1;
    }
}

@-moz-keyframes blink
{
    0%
    {
        opacity: 0.4;
    }

    100%
    {
        opacity: 1;
    }
}

@keyframes blink
{
    0%
    {
        opacity: 0.4;
    }

    100%
    {
        opacity: 1;
    }
}

/* Clicks on text belong to the terminal, including while typing. */
.zebulunRelay *
{
    pointer-events: none;
}

.zebulunRelay.typing-words #typewriter::after
{
    position: relative;
    left: 1ch;
    content: none;
    animation: none;
}

.typing-part[hidden]
{
    display: none;
}

.typing-word
{
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.typing-remaining
{
    visibility: hidden;
}

.typing-position
{
    display: inline-block;
    position: relative;
    width: 0;
    height: 16px;
    vertical-align: top;
    line-height: 16px;
}

.typing-cursor
{
    font-family: Verdana, sans-serif;
    font-size: 12px;
    position: absolute;
    width: 0;
    height: 16px;
    line-height: 16px;
}

.typing-cursor::after
{
    position: absolute;
    top: 2px;
    z-index: 1;
    left: 1ch;
    content: "";
    display: inline-block;
    width: 2px;
    height: 12px;
    background-color: #0F0;
    animation: blink 500ms linear infinite alternate;
}

