/**
 * termynal.js
 *
 * @author Ines Montani <ines@ines.io>
 * @version 0.0.1
 * @license MIT
 */

[data-termynal]:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-block;
    width: 15px;
    height: 15px;
}

[data-termynal]:after {
    content: '';
    position: absolute;
    color: var(--color-text-subtle);
    top: 0px;
    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"],
[data-ty-prompt] {
    color: white;
}

[data-ty="input"]:before,
[data-ty-prompt]:before {
    margin-right: 0.75em;
    color: var(--color-text-subtle);
}

[data-ty="input"]::before {
    content: 'rj12@rj12.xyz:~$ ';
    background: linear-gradient(to right,
            rgb(0, 255, 0) 0 80%,
            #ffffff 20% 60%,
            #1900ff 90% 95%,
            #ffffff 82% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[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;
}

[data-ty="value"] {
    color: white;
}


/* Cursor animation */

@-webkit-keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

p {
    margin: 0;
}