.editor {
    width: 100%;
    height: 100%;
}

.cm-s-default {
    width: 100%;
    height: 100% !important;
}

.highlight {
    background: rgba(256, 256, 0, 120);
}

.tooltip {
    position: relative;
    box-sizing: border-box;
    cursor: help;
}

.tooltip::after {
    content: attr(title);
    display: inline;
    position: absolute;
    top: 22px;
    left: 0;
    opacity: 0;
    width: 230px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5em;
    z-index: 1000;
    padding: 0.5em 0.8em;
    background: rgba(0, 0, 0, 0.8);

    color: #fff;
    pointer-events: none; /* This prevents the box from apearing when hovered. */
    transition: opacity 250ms, top 250ms;
}

.tooltip::before {
    content: '';
    display: block;
    position: absolute;
    top: 12px;
    left: 20px;
    opacity: 0;
    width: 0;
    height: 0;
    border: solid transparent 5px;
    border-bottom-color: rgba(0, 0, 0, 0.8);
    transition: opacity 250ms, top 250ms;
}

.tooltip:hover {
    z-index: 2;
}

/* Keeps the info boxes on top of other elements */
.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
}

.tooltip:hover::after {
    top: 30px;
}

.tooltip:hover::before {
    top: 20px;
}