:root {
    --aksen: #b3ff75;
    --putih: #ffffff;
    --bg: #181818;
    --abu: #676767;
    --abu2: #323232;
    --hijau: #c3ff8a;
    --merah: #ff8282;
}

@font-face {
    font-family: 'Adwaita Mono';
    src: url('https://ufal.envs.net/style/fonts/AdwaitaMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adwaita Mono';
    src: url('https://ufal.envs.net/style/fonts/AdwaitaMono-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adwaita Mono';
    src: url('https://ufal.envs.net/style/fonts/AdwaitaMono-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Adwaita Mono';
    src: url('https://ufal.envs.net/style/fonts/AdwaitaMono-BoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Adwaita Mono', monospace;
    background-color: var(--bg);
    color: var(--putih);
    font-size: 14px;
    line-height: 150%;
}

main {
    width: min(85ch, 100% - 2rem);
    margin-inline: auto;
    margin-top:40px;
    margin-bottom:48px;
}

input, textarea, button {
    font-family: 'Adwaita Mono', monospace;
    font-size: 16px;
    background-color: #222;
    color: var(--putih);
    border: 1px solid var(--abu);
    padding: 6px 10px;
}

textarea {
    width: 100%;
    height: 80px;
    resize: vertical;
    box-sizing: border-box;
}

button {
    background-color: var(--aksen);
    color: var(--bg);
    font-weight: bold;
    cursor: pointer;
    border: none;
}

button:disabled {
    background-color: var(--abu);
    cursor: not-allowed;
}

a {
    color: var(--aksen);
}

img, svg, video {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--aksen);
}

h1 {
    line-height: 100%;
}

footer {
    margin-top: 24px;
    font-size: 0.9em;
}

code, pre {
    background-color: var(--abu2);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Adwaita Mono';
}

.form-group {
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

input {
    width: 70%;
}

@media (max-width: 640px) {
    input {
        width: 95%;
    }
}

.action-bar {
    margin-block: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-pending { color: var(--abu); }
.status-processing { color: var(--aksen); }
.status-success { color: var(--hijau); }
.status-failed { color: var(--merah); }