:root {
    --background: #000000;
    --foreground: #00ff41;
    --font-size: 16px;
    --padding: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    background: #000;
    color: #00ff41;
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: 400;
    overflow: hidden;
}

#terminal {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    padding: var(--padding);
    padding-bottom: 70px;
    overflow-wrap: anywhere;
    scrollbar-color: #176b2b #000;
}

#code {
    display: inline;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.4;
}

#cursor {
    display: inline-block;
    width: 9px;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--foreground);
    animation: blink 1s steps(2, start) infinite;
}

#status {
    position: fixed;
    left: var(--padding);
    bottom: 14px;
    color: #70b77d;
    font-size: 12px;
    pointer-events: none;
}

button {
    position: fixed;
    bottom: 10px;
    right: 12px;
    padding: 7px 10px;
    border: 1px solid #176b2b;
    border-radius: 3px;
    background: #071107;
    color: var(--foreground);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

#fullscreen {
    right: 85px;
}

button:hover {
    background: #123319;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

@media (max-width: 600px) {
    :root {
        --padding: 12px;
        --font-size: 14px;
    }
}
