/* The viewer */

#ddtt-file-editor-section {
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #ddd;
}

#ddtt-file-editor-section .ddtt-code {
    margin: 0;
    padding: 1rem;
    white-space: pre;
}

#ddtt-file-editor-section pre {
    margin: 0;
}


/* Snippets Manager */

.ddtt-help-toggle {
    margin-top: 5px;
    display: inline-block;
    font-size: 0.7rem;
}

#ddtt-snippet-manager .ddtt-table .ddtt-snippet-item td:nth-child(5) {
    width: 200px;
}

.ddtt-snippet-item td.snippet-code {
    width: 550px;
}

.ddtt-snippet-code {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 0;
    min-width: 100%;
    -webkit-overflow-scrolling: touch;
}

#ddtt-snippet-manager .ddtt-table td:last-child code {
    margin-bottom: 1rem;
    display: inline-block;
    flex: 0 0 auto;
    width: auto;
}

/* Sidebar */

#ddtt-file-editor-snippet-preview {
    margin-top: 1rem;
}

#ddtt-file-editor-snippet-preview .ddtt-snippet-container {
    background: var(--color-code-block-bg);
    padding: 10px;
    border: 1px dashed var(--color-error);
    margin: 1rem 0 2rem 0;
}

#ddtt-file-editor-snippet-preview .ddtt-snippet-container pre {
    margin: 0;
}

.ddtt-eol-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ddtt-eol-warning {
    margin-bottom: 2rem;
    text-align: center;
    border: 4px solid var(--color-error);
    padding: 1rem;
    background: yellow;
    color: black;
    font-weight: bold;
}


/* Reset Links */

.ddtt-reset-snippets-link {
    float: left;
    margin-top: 2rem;
    display: block;
}


/* Warning Message */

.ddtt-warning-message {
    background: var(--color-warning);
    padding: 10px 20px;
    width: fit-content;
    color: black;
    border-radius: 5px;
}

.ddtt-warning-message a {
    background: var(--color-warning);
    color: #005177 !important;
}