:root {
    --bg: #0d1117;
    --panel: #12181f;
    --border: #232b34;
    --text: #d7dde3;
    --dim: #7c8894;
    --accent: #4fd1a5;
    --accent-dim: #2c6b53;
    --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(79, 209, 165, 0.06), transparent 40%),
        var(--bg);
    color: var(--text);
    font-family: var(--sans);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    flex-flow: column nowrap;
}

.card {
    width: 100%;
    max-width: 720px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.card-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

b {
    padding: 3px;
    border: 1px solid #303439;
    border-radius: 5px;
    background: black;
    color: white;
    font-weight: 200;
}

h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.meta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
}

.copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 209, 165, 0.08);
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease, border-color .15s ease;
}

.copy-btn:hover {
    background: rgba(79, 209, 165, 0.16);
    border-color: var(--accent);
}

.copy-btn:active {
    transform: scale(0.97);
}

.copy-btn.copied {
    background: var(--accent);
    color: #08130f;
    border-color: var(--accent);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

pre {
    margin: 0;
    margin: 20px;
    padding: 4px;
    overflow: hidden;
    max-height: 60vh;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
    color: #c3ccd4;
    white-space: pre;
    tab-size: 2;
    background: black;
    border: 1px solid #2b2c2d;
    border-radius: 8px;
    text-overflow: ellipsis;
    text-wrap: no-wrap;
}

pre::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

pre::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
}

pre::-webkit-scrollbar-track {
    background: transparent;
}

.card-foot {
    padding: 12px 24px;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
}

/* syntax highlighting */
.tok-comment {
    color: #6b7684;
    font-style: italic;
}

.tok-string {
    color: #e0b567;
}

.tok-template {
    color: #e0b567;
}

.tok-keyword {
    color: #c792ea;
}

.tok-boolean,
.tok-null {
    color: #4fd1a5;
}

.tok-number {
    color: #82c9ff;
}

.tok-function {
    color: #7fd1e0;
}

.tok-property {
    color: #a3d9c9;
}

.tok-punct {
    color: #8a97a5;
}

.tok-operator {
    color: #c792ea;
}

.tok-class {
    color: #ffd580;
}

@media (max-width: 520px) {
    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

.bodycard {
    width: 100%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    margin: 5px 0;
}

/* From Uiverse.io by ilkhoeri */
#card {
    padding: 1rem;
    overflow: hidden;
    min-width: 344px;
}

#card .wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 10;
    border: 0.5px solid #525252;
    border-radius: 8px;
    overflow: hidden;
}

.terminal {
    display: flex;
    flex-direction: column;

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    min-height: 40px;
    padding-inline: 12px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #202425;
}

.title {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 2.5rem;
    user-select: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8e8e8e;
}

.title>svg {
    height: 18px;
    width: 18px;
    margin-top: 2px;
    color: #006adc;
}

.copy_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: 0.65px solid #c1c2c5;
    margin-left: auto;
    border-radius: 6px;
    background-color: #202425;
    color: #8e8e8e;
    cursor: pointer;
}

.copy_toggle>svg {
    width: 20px;
    height: 20px;
}

.copy_toggle:active>svg>path,
.copy_toggle:focus-within>svg>path {
    animation: clipboard-check 500ms linear forwards;
}

.body {
    display: flex;
    flex-direction: column;
    position: relative;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    overflow-x: auto;
    padding: 1rem;
    line-height: 19px;
    color: white;
    background-color: black;
    white-space: nowrap;
}

.pre {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-wrap: nowrap;
    white-space: pre;
    background-color: transparent;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 16px;
}

.pre code:nth-child(1) {
    color: #575757;
}

.pre code:nth-child(2) {
    color: #e34ba9;
}

.cmd {
    height: 19px;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.cmd::before {
    content: attr(data-cmd);
    position: relative;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    background-color: transparent;
    animation: inputs 8s steps(25) infinite;
}

.cmd::after {
    content: "";
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    background-color: transparent;
    border-right: 0.15em solid #e34ba9;
    animation: cursor 0.5s step-end infinite alternate, blinking 0.5s infinite;
}

@keyframes blinking {

    20%,
    80% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0);
    }
}

@keyframes cursor {
    50% {
        border-right-color: transparent;
    }
}

@keyframes inputs {

    0%,
    100% {
        width: 0;
    }

    10%,
    90% {
        width: 58px;
    }

    30%,
    70% {
        width: 215px;
        max-width: max-content;
    }
}

@keyframes clipboard-check {
    100% {
        color: #fff;
        d: path("M 9 5 H 7 a 2 2 0 0 0 -2 2 v 12 a 2 2 0 0 0 2 2 h 10 a 2 2 0 0 0 2 -2 V 7 a 2 2 0 0 0 -2 -2 h -2 M 9 5 a 2 2 0 0 0 2 2 h 2 a 2 2 0 0 0 2 -2 M 9 5 a 2 2 0 0 1 2 -2 h 2 a 2 2 0 0 1 2 2 m -6 9 l 2 2 l 4 -4"
            );
    }
}