body {
    margin: 0;
    padding: 40px;
    background: #f7f7f7;
    color: #222;
    font-family:
        "SF Mono",
        "Monaco",
        "Cascadia Code",
        "Roboto Mono",
        monospace;

    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111;
}

textarea {
    width: 100%;
    height: 500px;

    box-sizing: border-box;

    padding: 20px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: white;
    color: #222;

    font-family:
        "SF Mono",
        "Monaco",
        "Cascadia Code",
        "Roboto Mono",
        monospace;

    font-size: 15px;
    line-height: 1.6;

    resize: vertical;

    outline: none;

    transition: border-color 0.15s ease;
}

textarea:focus {
    border-color: #888;
}

.controls {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

button {
    border: none;
    background: #222;
    color: white;

    padding: 10px 16px;

    border-radius: 6px;

    font-size: 14px;
    font-family: inherit;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.05s ease;
}

button:hover {
    background: #000;
}

button:active {
    transform: translateY(1px);
}

#output {
    margin-top: 20px;

    padding: 16px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: white;

    white-space: pre-wrap;
    overflow-wrap: break-word;

    min-height: 24px;

    color: #444;
}

.editor {
    display: flex;
    align-items: stretch;
    height: 500px;
    
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

#gutter {
    width: 32px;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

#input {
    flex: 1;
    border: none;
    margin: 0;
    padding: 20px;
    resize: none;
    font: inherit;
    line-height: 1.6;
    height: 100%;
    resize: none;
}

.gutter-line {
    height: 1.6em;
    text-align: center;
}

.gutter-success {
    height: 1.6em;
    color: #27acf8;
    text-align: center;
}

.gutter-failure {
    height: 1.6em;
    color: #c62828;
    text-align: center;
}

#status {
    font-size: 15px;
    white-space: pre-wrap;
}

#status.success {
    color: #2e7d32;
}

#status.error {
    color: #c62828;
}

