/**
 * termynal.js
 *
 * @author Ines Montani <ines@ines.io>
 * @version 0.0.1
 * @license MIT
 */

 :root {
    --color-bg: #2D303B;
    --color-text: #ffffff;
    --color-text-subtle: rgb(133, 133, 133);
}

[data-termynal] {
    width: 100%!important;
    min-height: 390px!important;
    margin: auto;
    max-width: 100%;
    text-align: left;
    color: #ffffff!important;
    background: #2D303B;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace, 'Fira Mono', Consolas, Menlo, Monaco;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    padding: 15px;
}


/* A little hack to display the window buttons in one pseudo element. */
/*[data-termynal]:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d9515d;
    -webkit-box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;
            box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;
}*/

[data-ty] {
    display: block;
    line-height: 2;
}

[data-ty]:before {
    /* Set up defaults and ensure empty lines are displayed. */
    content: '';
    display: inline-block;
    vertical-align: middle;
}

[data-ty="input"]:before,
[data-ty-prompt]:before {
    margin-right: 0.75em;
    color: var(--color-text-subtle);
}

[data-ty="input"]:before {
    content: '$';
}

[data-ty][data-ty-prompt]:before {
    content: attr(data-ty-prompt);
}

[data-ty-cursor]:after {
    content: attr(data-ty-cursor);
    font-family: "Courier New";
    /*margin-left: 0.5em;*/
    -webkit-animation: blink 1s infinite;
            animation: blink 1s infinite;
}


/* Cursor animation */

@-webkit-keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

