/**
 * jQuery Plugin for text based dialogs that look
 * like dialog linux command it use cmd plugin from
 * jQuery Terminal
 *
 * Copyright (c) 2017 Jakub Jankiewicz <http://jcubic.pl/me>
 *
 * Linceses under MIT license
 */
.dialog {
    background-color: #00a;
    position: relatieve;
    font-size: 12px;
    line-height: 14px;
    margin: 0;
}
.dialog, .dialog button {
    font-family: monospace;
}
.dialog > :not(.box) {
    display: none;
}
.dialog .box > .input .cmd {
    float: none;
    margin-bottom: -4px;
    --color: #000;
    --background: #aaa;
    padding: 0;
}
.dialog .cmd > span:not(.prompt) {
    float: none;
}
@supports (--css: variables) {
    .dialog, .dialog button {
        font-size: calc(var(--size, 1) * 12px);
        line-height: calc(var(--size, 1) * 14px);
    }
}
.dialog > .box {
    background-color: #aaa;
    float: left;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-box-shadow: calc(var(--char-width) * 2px) calc(var(--char-width) * 2px) black;
    box-shadow: calc(var(--char-width) * 2px) calc(var(--char-width) * 2px) black;
}
.dialog .box .light {
    color: #fff;
}
.dialog .box .dark {
    color: #000;
}
.dialog .line {
    float: left;
    clear: both;
    white-space: nowrap;
}
.dialog .box > .input .left,
.dialog .box > .input .top,
.dialog .box > .input .bottom,
.dialog .box > .input .cmd,
.dialog .box > .input .right {
    display: inline-block;
}
.dialog .box > .buttons-line .left,
.dialog .box > .buttons-line .buttons,
.dialog .box > .buttons-line .right {
    float: left;
}
.dialog .box .title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    overflow: hidden;
}
.dialog .box .title span {
    background-color: #aaa;
}
.dialog .box .header span {
    display: inline-block;
}
.dialog .box .buttons {
    display: flex;
    justify-content: space-around;
}
.dialog .box button {
    margin: 0;
    padding: 0;
    border: none;
    color: #555;
    min-width: 87px;
}
.dialog .box button:active,
.dialog .box button {
    outline: none;
}

.dialog .box button:before {
    content: '<';
    float: left;
}
.dialog .box button:after {
    content: '>';
    float: right;
}
.dialog .box button:before,
.dialog .box button:after {
    display: inline-block;
    color: #000;
}
.dialog .box button,
.dialog .box button:before,
.dialog .box button:after {
    background-color: transparent;
}
.dialog .box button:not(.active) .mark {
    color: #a00;
}
.dialog .box button.active,
.dialog .box button.active:before,
.dialog .box button.active:after {
    background-color: #00a;
}
.dialog .box button.active {
    color: #ff5;
}
.dialog .box button.active:before,
.dialog .box button.active:after {
    color: #fff;
}
.dialog .box button.active.selected .mark {
    color: #00a;
    background: #fff;
}
