/* General Preferences Editor styles, used for all layouts */

@font-face {
    font-family: 'InfusionIcons';
    src: url('../fonts/InfusionIcons-PrefsEditor.ttf'),
         url('../fonts/InfusionIcons-PrefsEditor.eot');
}

.fl-prefsEditor {
    font-family: "Myriad Pro", Helvetica, Arial, sans-serif;
}

/* Controls */
.fl-prefsEditor ul {
    margin-left: 0px;
}

.fl-prefsEditor ul li {
    list-style: none;
}

.fl-prefsEditor label {
    text-transform: lowercase;
    font-size: 1.2em;
}

.fl-prefsEditor input[type="text"] {
    width:2em;
    font-size: 1em;
}

/* Sliders */
.fl-prefsEditor .fl-slider {
    float:left;
    margin-right: 10px;
}

/* Check boxes */
.fl-prefsEditor input[type="checkbox"] {
    margin-right:10px;
    border: 1px solid black;
}

/* Drop downs */
.fl-prefsEditor select {
    border: 2px solid #ebebeb;
}

.fl-prefsEditor select#textFont { font-weight:bold; }
.fl-prefsEditor select#textFont option.times { font-family: "Times New Roman"; }
.fl-prefsEditor select#textFont option.comic { font-family: "Comic Sans MS"; }
.fl-prefsEditor select#textFont option.arial { font-family: Arial; }
.fl-prefsEditor select#textFont option.verdana { font-family: Verdana; }

.fl-prefsEditor select#theme { font-weight:bold; text-transform: uppercase; }

/*
    Had to add !importants in order for this style to still show up when another contrast theme has been selected
    It should be removed when we have an Infusion Theme
*/
.fl-prefsEditor select#theme option.fl-prefsEditor-default-theme { color: #000 !important; background-color: #efefef !important;}

/* Text and display controls */
.fl-prefsEditor .fl-prefsEditor-text label {
    display: block;
}

.fl-prefsEditor .fl-prefsEditor-text .fl-inputs {
    float: left;
    font-size: 1em;
}

/* Layout and links controls */
.fl-prefsEditor .fl-prefsEditor-option-description {
    padding-top: 5px;
    font-size: 1.1em;
}

.fl-prefsEditor .fl-prefsEditor-layout div,
.fl-prefsEditor .fl-prefsEditor-links div {
    margin-left: 25px;
}

/* Slider specifics */
.fl-prefsEditor .fl-slider {
    border: 1px solid #b3b3b3;
    border-radius: 0.3em;
    background-color: #dad6d3;
    padding: 0;
    position: relative;
    height: 1em;
    margin-top: 0;
    margin-left: 0.5em;
}

.fl-prefsEditor .fl-slider a {
    position:absolute;
    display:block;
    top:0;
    left:0;
    height: 2.2em;
    width: 2.2em;
    margin-top: -0.75em;
    margin-left: -0.4em;
    background-color: #fff;
    border: 1px solid #b3b3b3;
    border-radius: 2em;
    box-shadow: 4px 2px 3px rgba(0,0,0,0.3);
    background-image: -o-linear-gradient(right top, rgb(255,255,255) 46%, rgb(233,234,234) 73%);
    background-image: -moz-linear-gradient(right top, rgb(255,255,255) 46%, rgb(233,234,234) 73%);
    background-image: -webkit-linear-gradient(right top, rgb(255,255,255) 46%, rgb(233,234,234) 73%);
    background-image: -ms-linear-gradient(right top, rgb(255,255,255) 46%, rgb(233,234,234) 73%);
    background-image: -webkit-gradient(
        linear,
        right top,
        left bottom,
        color-stop(0.46, rgb(255,255,255)),
        color-stop(0.73, rgb(233,234,234))
    );
    background-image: linear-gradient(right top, rgb(255,255,255) 46%, rgb(233,234,234) 73%);
}
.fl-prefsEditor .fl-slider a:active { outline: none; }

.fl-prefsEditor .fl-slider-horz {
    width:11em;
}

.fl-prefsEditor .fl-slider-input {
    margin-left: 1em;
    float:left;
}

.fl-prefsEditor .ui-slider-range {
    background-color: #62bb3d;
    height: 100%;
}

.fl-prefsEditor .fl-inputs div[class*='fl-icon-'] {
    font-size: 1.5em;
    margin-top: -0.15em;
}

/* Theme radio buttons */
.fl-prefsEditor .fl-choice {
    display: inline;
    float: left;
}

.fl-prefsEditor .fl-choice label {
    margin-right: 5px;
    border: 1px solid black;
    border-radius: 5px;
    height: 3em;
    width: 3em;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    line-height: 3em !important;
    padding: 2px;
}

.fl-prefsEditor .fl-choice .fl-preview-A {
    font-size: 2em;
}

.fl-prefsEditor .fl-choice input:focus ~ label {
    outline: 2px solid black;
}

/* ON/OFF Switch for checkboxes */

/* The container for the toggle, which is also a label for the hidden checkbox. */
.fl-prefsEditor .fl-prefsEditor-onoff .fl-prefsEditor-switch {
    border-radius:50px;
    border: 1px solid #776D67;
    width: 5em;
    height: 2em;
    background-color: #E6E6E6;
    box-shadow: 1em 1.1em 0 0 rgba(250,250,250,0.53) inset;
    overflow:hidden;
    vertical-align: middle;
    display:inline-block;
    transition-duration: 0.2s;
    transition-property: padding-left, width, background-color, margin-left;
    font-size: 1.2em;
    font-weight: 600;
}

/* Hide input */
.fl-prefsEditor .fl-prefsEditor-onoff input {
    border: 0 none;
    clip: rect(0px, 0px, 0px, 0px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.fl-prefsEditor .fl-prefsEditor-onoff input:focus + label {
    outline: 2px solid black;
}

.fl-prefsEditor .fl-prefsEditor-onoff input:checked + label .fl-prefsEditor-switch {
    padding-left: 3em;
    width: 2em;
    background-color: #2da750;
    box-shadow: -1em 1.1em 0.1em 0 rgba(172, 216, 92, 0.63) inset;
}

/* With data attributes defining the on/off text, localizing the templates is easier */
.fl-prefsEditor .fl-prefsEditor-onoff input + label [data-checkboxStateOn]:before {
    content: attr(data-checkboxStateOn);
}
.fl-prefsEditor .fl-prefsEditor-onoff input + label [data-checkboxStateOff]:after {
    content: attr(data-checkboxStateOff);
}

/* The "on" portion of the toggle and the knob. */
.fl-prefsEditor .fl-prefsEditor-onoff input + label .fl-prefsEditor-switch:before {
    color: #fff;
    border: 1px solid #776D67;
    border-radius: 50px;
    float:left;
    width:1.9em;
    height: 1.9em; /* Width and height of the knob. */
    text-indent:-1.6em;
    line-height:1.7em;
    text-shadow: 1px 1px 1px #000;
    background-color: #fff;
    background-image: -o-linear-gradient(bottom, rgb(205,204,202) 0%, rgb(244,244,244) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(205,204,202) 0%, rgb(244,244,244) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(205,204,202) 0%, rgb(244,244,244) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(205,204,202) 0%, rgb(244,244,244) 100%);
    background-image: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(0, rgb(205,204,202)),
        color-stop(1, rgb(244,244,244))
    );
    background-image: linear-gradient(bottom, rgb(205,204,202) 0%, rgb(244,244,244) 100%);
    box-shadow: 0.2em 0.2em 0.5em #888;
}

/* The "off" portion of the toggle. */
.fl-prefsEditor .fl-prefsEditor-onoff input + label .fl-prefsEditor-switch:after {
    float:left;
    position:relative;
    top: 0.36em;
    left: 0.5em;
}

/* The dark inner circle to the toggle knob. */
.fl-prefsEditor .fl-prefsEditor-onoff .fl-prefsEditor-switch-inner {
    border: 1px solid #493A30;
    border-radius: 50px;
    width: 1em;
    height: 1em;
    position:relative;
    left:-2.85em;
    top:0.46em;

    background-color: #675243;
    box-shadow: 0 -0.2em 0.3em 0.05em rgba(250, 250, 250, 0.3) inset;

    display:inline-block;
}

.fl-prefsEditor .fl-prefsEditor-onoff input:checked + label .fl-prefsEditor-switch .fl-prefsEditor-switch-inner {
    top:-1.6em;
    left: 0.46em;
}

/* FLUID-4966: Fix horizontal scroll bar */
.fl-prefsEditor .fl-hidden-accessible  {
    top: 0px;
    left: 0px;
}

/* Font Icons */
.fl-prefsEditor .fl-icon-lines, .fl-prefsEditor .fl-icon-indicator, .fl-prefsEditor .fl-icon-crossout, .fl-prefsEditor .fl-icon-big-a, .fl-prefsEditor .fl-icon-small-a, .fl-prefsEditor .fl-icon-line-space-expanded, .fl-prefsEditor .fl-icon-line-space-condensed,
 .fl-prefsEditor .fl-icon-contrast, .fl-prefsEditor .fl-icon-undo, .fl-prefsEditor .fl-icon-line-space, .fl-prefsEditor .fl-icon-links, .fl-prefsEditor .fl-icon-simplify, .fl-prefsEditor .fl-icon-font, .fl-prefsEditor .fl-icon-size, .fl-prefsEditor .fl-icon-text-to-speech, .fl-prefsEditor .fl-icon-toc {
    font-family: 'InfusionIcons' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    float:left;
    margin: 0.2em 0.3em 0 0;
    font-size: 1.5em;
}

/* control icons */
.fl-prefsEditor .fl-icon-lines:before {
    content: "\e000";
}
.fl-prefsEditor .fl-icon-crossout:before,
.fl-prefsEditor .fl-choice .fl-theme-prefsEditor-default .fl-crossout:before {
    content: "\e004";
}
.fl-prefsEditor .fl-icon-big-a:before {
    content: "\e006";
}
.fl-prefsEditor .fl-icon-small-a:before {
    content: "\e007";
}
.fl-prefsEditor .fl-icon-line-space-expanded:before {
    content: "\e009";
}
.fl-prefsEditor .fl-icon-line-space-condensed:before {
    content: "\e00a";
}
.fl-prefsEditor .fl-icon-indicator:before,
.fl-prefsEditor .fl-choice input:checked + div:before {
    content: "\e003";
}

.fl-prefsEditor .fl-choice .fl-indicator {
    font-family: 'InfusionIcons' !important;
    font-size: 1.3em;
    margin: -0.75em 0 0 0.75em;
    height: 1em;
}

.fl-prefsEditor .fl-choice .fl-theme-prefsEditor-default .fl-crossout {
    font-family: 'InfusionIcons' !important;
    margin-top:-1.75em;
    font-size: 1.85em;
}

/* header icons */
.fl-prefsEditor .fl-icon-contrast:before {
    content: "\e005";
}
.fl-prefsEditor .fl-icon-line-space:before {
    content: "\e00b";
}
.fl-prefsEditor .fl-icon-links:before {
    content: "\e00c";
}
.fl-prefsEditor .fl-icon-simplify:before {
    content: "\e00e";
}
.fl-prefsEditor .fl-icon-font:before {
    content: "\e00f";
}
.fl-prefsEditor .fl-icon-size:before {
    content: "\e010";
}
.fl-prefsEditor .fl-icon-text-to-speech:before {
    content: "\e011";
}
.fl-prefsEditor .fl-icon-toc:before {
    content: "\e012";
}

/* Theming */
.fl-theme-bw .ui-slider-horizontal .ui-slider-handle,
.fl-theme-wb .ui-slider-horizontal .ui-slider-handle,
.fl-theme-by .ui-slider-horizontal .ui-slider-handle,
.fl-theme-yb .ui-slider-horizontal .ui-slider-handle,
.fl-theme-lgdg .ui-slider-horizontal .ui-slider-handle { margin-top: -5px; }

.fl-theme-bw .fl-prefsEditor .fl-slider { background: none; background-color:#000;}
.fl-theme-bw .fl-prefsEditor .fl-slider a,
.fl-theme-bw .fl-prefsEditor .fl-slider a:hover {border:1px solid #000; background-color:#fff;}

.fl-theme-wb .fl-prefsEditor .fl-slider { background: none; background-color:#fff;}
.fl-theme-wb .fl-prefsEditor .fl-slider a,
.fl-theme-wb .fl-prefsEditor .fl-slider a:hover {border:1px solid #fff; background-color:#000;}

.fl-theme-yb .fl-prefsEditor .fl-slider {background: none; background-color:#000;}
.fl-theme-yb .fl-prefsEditor .fl-slider a,
.fl-theme-yb .fl-prefsEditor .fl-slider a:hover {border:1px solid #ffff00; background-color:#000;}

.fl-theme-by .fl-prefsEditor .fl-slider {background: none; background-color:#ffff00;}
.fl-theme-by .fl-prefsEditor .fl-slider a,
.fl-theme-by .fl-prefsEditor .fl-slider a:hover {border:1px solid #000; background-color:#ffff00;}

.fl-theme-lgdg .fl-prefsEditor .fl-slider {background: none; background-color:#555555;}
.fl-theme-lgdg .fl-prefsEditor .fl-slider a,
.fl-theme-lgdg .fl-prefsEditor .fl-slider a:hover {border:1px solid #bdbdbb; background-color:#555555;}

.fl-theme-bw .fl-prefsEditor .ui-slider .ui-slider-handle,
.fl-theme-wb .fl-prefsEditor .ui-slider .ui-slider-handle,
.fl-theme-by .fl-prefsEditor .ui-slider .ui-slider-handle,
.fl-theme-yb .fl-prefsEditor .ui-slider .ui-slider-handle,
.fl-theme-lgdg .fl-prefsEditor .ui-slider .ui-slider-handle {
    height: 1.8em;
    width: 1.8em;
}

/* ON/OFF switch */
.fl-theme-bw .fl-prefsEditor .fl-prefsEditor-switch,
.fl-theme-bw .fl-prefsEditor .fl-prefsEditor-switch-inner,
.fl-theme-bw .fl-prefsEditor input + label .fl-prefsEditor-switch:before,
.fl-theme-wb .fl-prefsEditor .fl-prefsEditor-switch,
.fl-theme-wb .fl-prefsEditor .fl-prefsEditor-switch-inner,
.fl-theme-wb .fl-prefsEditor input + label .fl-prefsEditor-switch:before,
.fl-theme-by .fl-prefsEditor .fl-prefsEditor-switch,
.fl-theme-by .fl-prefsEditor .fl-prefsEditor-switch-inner,
.fl-theme-by .fl-prefsEditor input + label .fl-prefsEditor-switch:before,
.fl-theme-yb .fl-prefsEditor .fl-prefsEditor-switch,
.fl-theme-yb .fl-prefsEditor .fl-prefsEditor-switch-inner,
.fl-theme-yb .fl-prefsEditor input + label .fl-prefsEditor-switch:before,
.fl-theme-lgdg .fl-prefsEditor .fl-prefsEditor-switch,
.fl-theme-lgdg .fl-prefsEditor .fl-prefsEditor-switch-inner,
.fl-theme-lgdg .fl-prefsEditor input + label .fl-prefsEditor-switch:before {
    box-shadow: none !important;
    text-shadow: none;
    color: inherit;
    background-image: none;
    background-color: inherit;
}

/* Theme radio buttons */
.fl-prefsEditor .fl-choice label.fl-theme-bw,
.fl-prefsEditor .fl-choice label.fl-theme-bw span,
.fl-prefsEditor .fl-choice label.fl-theme-bw .fl-crossout {
    background-color: #FFFFFF !important;
    border-color: #000000 !important;
    color: #000000 !important;
}
.fl-prefsEditor .fl-choice label.fl-theme-wb,
.fl-prefsEditor .fl-choice label.fl-theme-wb span,
.fl-prefsEditor .fl-choice label.fl-theme-wb .fl-crossout {
    background-color: #000000 !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}
.fl-prefsEditor .fl-choice label.fl-theme-by,
.fl-prefsEditor .fl-choice label.fl-theme-by span,
.fl-prefsEditor .fl-choice label.fl-theme-by .fl-crossout {
    background-color: #FFFF00 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}
.fl-prefsEditor .fl-choice label.fl-theme-yb,
.fl-prefsEditor .fl-choice label.fl-theme-yb span,
.fl-prefsEditor .fl-choice label.fl-theme-yb .fl-crossout {
    background-color: #000000 !important;
    border-color: #FFFF00 !important;
    color: #FFFF00 !important;
}
.fl-prefsEditor .fl-choice label.fl-theme-lgdg,
.fl-prefsEditor .fl-choice label.fl-theme-lgdg span,
.fl-prefsEditor .fl-choice label.fl-theme-lgdg .fl-crossout {
    background-color: #555555 !important;
    border-color: #bdbdbb !important;
    color: #bdbdbb !important;
}

.fl-prefsEditor .fl-choice label.fl-theme-prefsEditor-default,
.fl-prefsEditor .fl-choice label.fl-theme-prefsEditor-default span,
.fl-prefsEditor .fl-choice label.fl-theme-prefsEditor-default .fl-crossout {
    background-color: #FFFFFF !important;
    border-color: #433F3D !important;
    color: #433F3D !important;
}

.fl-theme-bw .fl-prefsEditor input:focus + label,
.fl-theme-bw .fl-prefsEditor .fl-choice input:focus ~ label,
.fl-theme-by .fl-prefsEditor input:focus + label,
.fl-theme-by .fl-prefsEditor .fl-choice input:focus ~ label {
    outline: 0.2em solid #000;
}

.fl-theme-wb .fl-prefsEditor input:focus + label,
.fl-theme-wb .fl-prefsEditor .fl-choice input:focus ~ label {
    outline: 0.2em solid #fff;
}

.fl-theme-yb .fl-prefsEditor input:focus + label,
.fl-theme-yb .fl-prefsEditor .fl-choice input:focus ~ label {
    outline: 0.2em solid #ffff00;
}

.fl-theme-lgdg .fl-prefsEditor input:focus + label,
.fl-theme-lgdg .fl-prefsEditor .fl-choice input:focus ~ label {
    outline: 0.2em solid #bdbdbb;
}
