:root {
    --bg:     #1f1f2a;
    --fg:     #bdc3df;
    --accent: #beff73;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    transition: background-color 0.4s ease;
    margin: 0;
    padding: 12px;
    overflow-x: hidden;
}

main {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(0.65rem, 2.5vw, 0.9rem);
    line-height: 1.6;
    word-break: break-word;
}

pre {
    font-family: "JetBrains Mono", monospace;
    font-size: inherit;
    color: var(--fg);
    margin: 0 0 15px 5px;
    transition: color 0.4s ease;
    white-space: pre-wrap;
    word-break: break-word;
}

.accent {
    color: var(--accent);
    transition: color 0.4s ease;
}

.fetch-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 0;
}

.fetch-image {
    width: 180px;
    height: auto;
    flex-shrink: 0;
}

.fetch-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .fetch-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .fetch-image {
        width: 140px;
    }

    .fetch-content {
        width: 100%;
    }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.15s ease;
}

body.flash::after {
    opacity: 0.15;
    transition: none;
}

#theme-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--fg);
    color: var(--bg);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 999;
}

#theme-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.fetch-image {
    width: 300px;
    height: auto;
    flex-shrink: 0;
}

.fetch-content {
    flex: 1;
}

.line{
    font-weight: bold;
}
