.ct-terminal {
    cursor: text;
    position: relative;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
}

.ct-terminal.focus,
.ct-terminal:focus {
    outline: none;
}

.ct-terminal .ct-helpers {
    position: absolute;
    top: 0;
    z-index: 5;
}

.ct-terminal .ct-helper-textarea {
    padding: 0;
    border: 0;
    margin: 0;
    /* Move textarea out of the screen to the far left, so that the cursor is not visible */
    position: absolute;
    opacity: 0;
    left: -9999em;
    top: 0;
    width: 0;
    height: 0;
    z-index: -5;
    white-space: nowrap;
    overflow: hidden;
    resize: none;
}

.ct-terminal .composition-view {
    /* TODO: Composition position got messed up somewhere */
    background: #000;
    color: #FFF;
    display: none;
    position: absolute;
    white-space: nowrap;
    z-index: 1;
}

.ct-terminal .composition-view.active {
    display: block;
}

.ct-terminal .ct-viewport {
    /* On OS X this is required in order for the scroll bar to appear fully opaque */
    background-color: #000;
    overflow-y: scroll;
    cursor: default;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
}

.ct-terminal .ct-screen {
    position: relative;
}

.ct-terminal .ct-screen canvas {
    position: absolute;
    left: 0;
    top: 0;
}

.ct-terminal .ct-scroll-area {
    visibility: hidden;
}

.ct-char-measure-element {
    display: inline-block;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: -9999em;
    line-height: normal;
}

.ct-terminal.enable-mouse-events {
    /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
    cursor: default;
}

.ct-terminal.ct-cursor-pointer,
.ct-terminal .ct-cursor-pointer {
    cursor: pointer;
}

.ct-terminal.column-select.focus {
    /* Column selection mode */
    cursor: crosshair;
}

.ct-terminal .ct-accessibility:not(.debug),
.ct-terminal .ct-message {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    color: transparent;
    pointer-events: none;
}

.ct-terminal .ct-accessibility-tree:not(.debug) *::selection {
  color: transparent;
}

.ct-terminal .ct-accessibility-tree {
  user-select: text;
  white-space: pre;
}

.ct-terminal .live-region {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ct-dim {
    /* Dim should not apply to background, so the opacity of the foreground color is applied
     * explicitly in the generated class and reset to 1 here */
    opacity: 1 !important;
}

.ct-underline-1 { text-decoration: underline; }
.ct-underline-2 { text-decoration: double underline; }
.ct-underline-3 { text-decoration: wavy underline; }
.ct-underline-4 { text-decoration: dotted underline; }
.ct-underline-5 { text-decoration: dashed underline; }

.ct-overline {
    text-decoration: overline;
}

.ct-overline.ct-underline-1 { text-decoration: overline underline; }
.ct-overline.ct-underline-2 { text-decoration: overline double underline; }
.ct-overline.ct-underline-3 { text-decoration: overline wavy underline; }
.ct-overline.ct-underline-4 { text-decoration: overline dotted underline; }
.ct-overline.ct-underline-5 { text-decoration: overline dashed underline; }

.ct-strikethrough {
    text-decoration: line-through;
}

.ct-screen .ct-decoration-container .ct-decoration {
	z-index: 6;
	position: absolute;
}

.ct-screen .ct-decoration-container .ct-decoration.ct-decoration-top-layer {
	z-index: 7;
}

.ct-decoration-overview-ruler {
    z-index: 8;
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
}

.ct-decoration-top {
    z-index: 2;
    position: relative;
}
