:root {
    --bg-main: #101020;
    --bg-light: #202040;
    --border: #404080;
    --text-color: #f0f0f0;
    --alt-text-color: #aac;
    scrollbar-width: thin;
    scrollbar-color: var(--alt-text-color) transparent;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1em;
    margin: 0px;
    margin-bottom: 10px;
    color: var(--text-color);
    background-color: var(--bg-main);
}

#conteneur {
    width: 100%;
}


.header {
    background-color: black;
    color: var(--alt-text-color);
    padding-left: 188px;
    padding-right: 0px;
    line-height: 1.6em;
}

.left h1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1em;
    text-align: center;
    border-bottom: solid 1px var(--border);
}

.left {
    font-size: 1em;
    width: 164px;
    background-color: var(--bg-light);
    border: solid 1px #000;
    position: absolute;
    top: 0px;
    left: 10px;
    color: var(--alt-text-color);
}

.center h1 {
    font-size: 1.4em;
    border-bottom: solid 2px var(--border);
    text-align: right;
    margin-top: 0px;
    padding-top: 0px;
}

.center h2 {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 1.5em;
    font-size: 1.3em;
    text-align: center;
    background: var(--bg-light);
    font-variant: small-caps;
    letter-spacing: 2px;
}

.center h3 {
    font-size: 1.1em;
    margin-top: 1em;
}

.center h4 {
    margin-bottom: 0.5em;
    font-size: 1em;
    font-weight: bold;
}

label {
    min-width: 150px;
    display: inline-block;
}

summary {
    cursor: pointer;
}

.center {
    margin: 10px 10px 10px 188px;
}

details ul {
    padding-left: 1em;
    list-style: none;
}

details li {
    display: flex;
}

#content {
    max-width: 1500px;
    margin: 0px auto;
}

#menu ul, #menu li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#menu a {
    display: block;
    margin: 0;
    text-decoration: none;
    color: var(--alt-text-color);
    padding: 4px;
}

#menu a:hover {
    background-color: var(--bg-main);
}

.center a {
    color: #88f;
    text-decoration: none;
    font-weight: bold;
}

.center a:visited {
    text-decoration: none;
    font-weight: bold;
}

.center a:hover {
    text-decoration: underline;
    font-weight: bold;
}

button, textarea, input, select {
    background-color: #1a1a2a;
    border: 1px solid var(--border);
    color: var(--text-color);
    font-size: 1em;
}

button {
    cursor: pointer;
    background-color: #404080;
    font-variant: small-caps;
    font-size: 1em;
}

textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 4px;
    scrollbar-width: thin;
}

code {
    color: #ccf;
    padding: 8px;
}

.center pre {
    white-space: pre;
    font-family: monospace;
    border-left: solid 3px #666;
    white-space: pre-wrap;
    margin: 5px;
    padding-left: 8px;
}

#minify-btn {
    margin: 8px 0;
    padding: 8px;
    float: right;
}

.output-header {
    font-size: 0.8em;
    color: var(--alt-text-color);
    width: 49.5%;
    text-align: center;
}


.clickable {
    cursor: pointer;
}

/* Style for the source/minified columns. */

.comment {
    color: #888;
}

.output {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    place-content: space-between;
    position: relative;
}

.source, .minified {
    padding: 3em 0em 3em 1em;
    font-size: 1.2em;
    font-family: monospace;
    white-space: pre-wrap;

    line-break: anywhere;
    box-sizing: border-box;
    width: 49.5%;

    overflow-y: scroll;
    scrollbar-width: thin;
    max-height: 100vh;
    background-color: rgb(26, 26, 42);
    border: 1px solid var(--border);
}

.highlight {
    background-color: var(--bg-light);
    color: #ff0 !important;
    text-decoration-line: underline !important;
}

.ident {
    color: #88c;
    font-weight: bold;
    cursor: pointer;
}

.animated-icon {
    transition: transform 0.5s;
    animation: rotate 0.5s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* */


/* Let's be modern and support mobile*/
@media (max-width: 750px) {
    .left {
        position: static;
        margin: 1em;
        width: auto;
    }

    #menu {
        visibility: hidden;
        position: fixed;
    }

    .left h1:before {
        content: "☰ ";
    }

    #menu h1:before {
        content: "";
    }

    .left:hover #menu {
        visibility: visible;
        position: static;
        /* to avoid clicking on the links when opening the menu */
        margin-top: 1em;
    }

    .center {
        margin: 1em;
    }

    .header {
        padding-left: 1em;
    }

    .left h1 {
        border: 0;
        margin: 0;
    }
}
