@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
    --text-primary: #e0def4;
    --text-secondary: #65b1cd;
    --text-footer: #817c9c;
    --prompt: #f0a6cc;
    --url-color: #f0a4a2;
    --background: #232136;
    --interests-background: #a3be8c;
    --interests-color: #232136;
}

* {
    background: var(--background);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    color: var(--text-primary);
}

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

h3 {
    display: inline-block;
    font-size: inherit;
    padding: 0 0.5em;
    margin-bottom: 0;
    background-color: var(--interests-background);
    color: var(--interests-color);
}

a {
    color: var(--url-color);
    text-decoration: none;
}

a:hover {
    color: var(--text-secondary);
}

li::marker {
    content: '> ';
}

footer {
    margin-top: 75px;
    color: var(--text-footer);
}

.main-container {
    width: 100%;
    max-width: 80ch;
    text-align: left;
}

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

.github:hover {
    color: #a6d189;
}

.gitlab:hover {
    color: #fc6d26;
}

.linkedin:hover {
    color: #0077b5;
}

.email:hover {
    color: var(--text-primary);
}

.cursor {
    color: var(--prompt);
}

.output {
    animation: fade 5s;
}

.typeme {
    width: 44ch;
    animation: typing 2s steps(44), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 10px solid var(--prompt);
}

#replay {
    display: inline-block;
    font-size: .75rem;
    width: 100%;
    text-align: center;
}

/* animation */

@keyframes fade {
    0% {
        opacity: 0
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes typing {
    0% {
        width: 0;
    }

    100% {
        width: 44ch;
    }
}

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

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