:root {
    --color-background: #655949;
    --color-hover: #ff6600;
    --color-modder: #adff2f;
    --background-primary: url(../img/fond_descr_forum.jpg);
    --color-primary: Goldenrod;
    --background-secondary: url(../img/fond_entete_forum.avif);
    --color-secondary: #96846e;
    --color-secondary-contrast: #ffffd6;
    --font-size-large: 16px;
    --font-size-medium: 14px;
    --font-size-small: 12px;
    --color-translator: #e3aff6;
}

body {
    background: #000000 url('../img/bg_lcc2.avif');
    color: var(--color-secondary-contrast);
    font-family: Verdana, Geneva, Lucida, "Lucida Grande", Arial, Helvetica, sans-serif;
    margin-top: 0;
    min-width: 1130px;
    padding-inline: 70px;
}

header {
    background: var(--background-primary);
    border-color: var(--color-secondary);
    border-radius: 7px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 8px 8px 15px black;
    position: relative;
    top: 0;
    z-index: 50;
}

header h1 {
    background: var(--background-secondary) repeat-x;
    border-block: dotted 2px var(--color-secondary);
    font-size: 28px;
    font-weight: bold;
    line-height: 170%;
    margin-top: 20px;
    padding: 0;
    text-align: center;
    text-indent: 30px;
}

header h1::first-letter {
    background-color: transparent;
    color: var(--color-primary);
}

main {
    background: var(--background-primary);
    border-color: var(--color-secondary);
    border-radius: 7px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 8px 8px 15px black;
    margin: 1em auto;
    padding-bottom: 1em;
}

.file_selectors {
    display: flex;
    flex-wrap: wrap;
    font-size: var(--font-size-large);
    gap: 4px;
    list-style-type: none;
    margin-bottom: 1em;
    padding: 0 1em;
}

.file_selectors .file_selector {
    flex: 1;
}

.file_selectors .file_selector label {
    color: var(--color-secondary);
    display: block;
    font-weight: bold;
}

.file_selectors .file_selector > div > span {
    background-color: var(--color-background);
    border: 1px solid var(--color-background);
    border-radius: 5px;
    color: var(--color-secondary-contrast);
    display: inline-block;
    font-size: var(--font-size-small);
    line-height: 12px;
    margin-bottom: 3px;
    padding: 6px 12px;
}

.file_selectors .file_selector input {
    background-color: var(--color-background);
    border: 1px solid var(--color-secondary);
    border-radius: 5px;
    display: inline-block;
    font-size: var(--font-size-medium);
    margin: 8px 0;
    min-width: 120px;
    padding: 0.25em 0.5em;
    position: relative;
    user-select: none;
}

#progress-bar {
    height: 20px;
    background: var(--background-primary);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    position: absolute;
    width: 100%;
}

#progress-fill {
    background: var(--background-secondary);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    height: 100%;
    width: 0;
}

#progress-text {
    font-family: monospace;
    line-height: 20px;
    position: absolute;
    width: 100%;
    text-align: center;
}

#compare-btn {
    align-items: center;
    background: var(--background-primary);
    border: 1px solid var(--color-secondary);
    border-radius: 10px;
    color: var(--color-secondary-contrast);
    cursor: pointer;
    display: block;
    margin: auto;
    padding: 10px 20px;
    font-size: 1.5em;
    font-weight: bold;
}

#compare-btn:hover {
    border-color: var(--color-primary);
}

#compare-btn.active {
    color: var(--color-primary);
    font-weight: bold;
}

#compare-btn:disabled {
    background-color: var(--color-background);
    border-color: var(--color-secondary);
    color: #757575;
    cursor: default;
    font-weight: normal;
    opacity: 0.5;
}

#export-buttons {
    align-items: stretch;
    display: flex;
    gap: 10px;
    margin-top: 1em;
}

.actions .export {
    background: var(--background-primary);
    border: 1px solid var(--color-secondary);
    border-radius: 10px;
    color: var(--color-secondary-contrast);
    cursor: pointer;
    display: block;
    padding: 5px 10px;
}

.actions .export .ra {
    color: var(--color-primary);
}

.actions .export:hover {
    border-color: var(--color-primary);
}

.tab-header {
    background: var(--background-secondary);
    border-bottom: 1px solid var(--color-secondary);
    border-radius: 5px 5px 0 0;
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 0;
}

.tab-header button {
    padding: 5px 10px;
    border: none;
    background: transparent;
    color: var(--color-secondary-contrast);
    cursor: pointer;
    font-weight: bold;
}

.tab-header button.active {
    background: var(--background-primary);
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    border: 1px solid var(--color-secondary);
    border-bottom: none;
    position: relative;
    top: 1px;
    z-index: 1;
}

.tab-content.output {
    font-family: monospace;
    overflow: auto;
    padding: 10px;
    white-space: pre-wrap;
}

.actions {
    align-items: center;
    background: var(--background-secondary);
    border-radius: 10px;
    border: 1px solid var(--color-secondary);
    padding: 1em;
    margin-top: 1em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.actions input {
    background: var(--background-primary);
    height: 35px;
    width: 60%;
}
