@font-face {
    font-family: 'Sometype Mono';
    src: url('/static/SometypeMono-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #ffffff;
    font-family: 'Sometype Mono', monospace;
    line-height: 1.5;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #0a0a0a;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding-bottom: 10px;
}

.container {
    padding: 4% 4%;
}

ul {
  margin-bottom: 20px;
  padding-left: 20px;
  margin-left: 0;
}

li {
    font-size: 16px;
    margin-bottom: 6px;
    color: #ffffff;
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 10px;
    font-family: 'Sometype Mono', monospace;
    font-size: 16px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background-color: transparent;
    resize: vertical;
    margin-bottom: 16px;
}

textarea:focus {
    outline: 1px solid rgba(255, 255, 255, 0.3);
}

.composer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background-color: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 180ms ease-out, border-color 180ms ease-out;
}

.checkbox-mark::after {
    content: "✓";
    color: #0a0a0a;
    font-size: 13px;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.checkbox-label input:checked + .checkbox-mark {
    background-color: #ffffff;
    border-color: #ffffff;
}

.checkbox-label input:checked + .checkbox-mark::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label input:focus-visible + .checkbox-mark {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.btn {
    display: inline-block;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Sometype Mono', monospace;
    border: none;
    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.11),
        0 0 8px rgba(255, 255, 255, 0.035);
    transition: text-shadow 180ms ease-out, background-color 180ms ease-out;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.line-number {
    color: #ffffff;
    user-select: none;
    margin-right: 16px;
}

p,
pre {
    font-size: 16px;
}

pre code.hljs {
    padding: 0;
    background: transparent;
}

code {
    font-family: 'Sometype Mono', monospace;
}

a {
    color: transparent;
    background-image: linear-gradient(
        115deg,
        #fbfbfb 0%,
        #f6dfad 20%,
        #f0c3da 40%,
        #b8d8fb 60%,
        #d9c0f0 80%,
        #fbfbfb 100%
    );
    background-size: 220% 220%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    text-decoration: none;
    text-shadow: 0 0 16px rgba(186, 198, 235, 0.12);
    animation: iridescent-shift 7s linear infinite;
    transition: text-shadow 180ms ease-out, opacity 180ms ease-out;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

@keyframes iridescent-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header p span {
    color: #ffffff;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 20px;
    border: none;
    display: none;
    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.11),
        0 0 8px rgba(255, 255, 255, 0.035);
}

.error-banner {
    margin-bottom: 16px;
    border: 1px solid rgba(255, 116, 116, 0.35);
    border-radius: 6px;
    padding: 10px 12px;
    color: #ffb8b8;
    background-color: rgba(255, 116, 116, 0.08);
}

.burn-gate {
    margin-top: 4px;
}

@media (max-width: 550px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .actions {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }
}
