/**
 * termynal.js
 *
 * original @author of termynal.js and termynal.css Ines Montani <ines@ines.io>
 * @version 0.0.1
 * @license MIT
 * Modified by @Paddylonglegs to give impression of kali terminal
 */

:root {
    --color-bg: #252a33;
    --color-text: #eee;
    --color-text-subtle: #a2a2a2;
}

[data-termynal] {
    width: 750px;
    max-width: 100%;
    height:100%;
    width:100%;
    content: 'File';
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 17px;
    font-family: 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace;
    border-radius: 4px;
    padding: 75px 45px 35px;
    position: relative;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

[data-termynal]:before {
    content: '$_';
    position: absolute;
    top: 0px;
    left: 3px;
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

[data-termynal]:after {
    content: 'kali@kali: -';
    position: absolute;
    color: white;
    top: 5px;
    left: 0;
    width: 100%;
    text-align: center;
}

[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, /*where command return starts*/
[data-ty-prompt]:before {
    margin-right: 0rem;
    margin-left: -29px;
    color: var(--color-text-subtle);
}

[data-ty="input"]:before { /*where commands start*/
    content: 'kali@kali:~ ';
    color: rgb(128, 255, 206); /*kali color :)*/
    margin-right: 0rem;
    margin-left:  -10px;
}

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

[data-ty-cursor]:after {
    content: attr(data-ty-cursor);
    font-family: monospace;
    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;
    }
}
