* {
    background: var(--ctp-frappe-base);
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    color: var(--ctp-frappe-text);
}

body {
    min-height: 95vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
}

h3 {
    display: inline-block;
    font-size: inherit;
    padding: 0 0.5em;
    margin-bottom: 0;
    background-color: #684eff;
    color: #fafafa;
}

a {
    color: var(--ctp-frappe-rosewater);
    text-decoration: none;
}

footer {
    color: var(--ctp-frappe-subtext1);
    margin-top: auto;
}

.text-background {
    color: var(--ctp-frappe-subtext1);
}

.text-secondary {
    color: var(--ctp-frappe-blue);
}

.twitter:hover {
    color: #1a8cd8;
}

.bluesky:hover {
    color: #208bfe;
}

.instagram:hover {
    color: #f5006f;
}

.github:hover {
    color: #a6d189;
}

.linkedin:hover {
    color: #0a66c2;
}

.leetcode:hover {
    color: #ffa116;
}

.cursor {
    color: var(--ctp-frappe-rosewater);
}

.output {
    width: 100%;
    max-width: 80ch;
    animation: fade 5s;
}

.typeme {
    width: 31ch;
    animation:
        typing 2s steps(25),
        blink 0.5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 10px solid var(--ctp-frappe-rosewater);
}

/* animation */

@keyframes fade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 31ch;
    }
}

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

/* dynamic resizing */
@media (min-width: 600px) {
    body {
        font-size: 1.25rem;
    }
}
