/*
  Copyright 2010 Google Inc.
  Modified for Android Holo Colors

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

/* common patterns */

.offscreen {
    position: absolute;
    left: -10000px;
    top: 0;
}

/* main styles + layout */

html, body {
    font-family: roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    background-color: #ccc;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

strong {
    font-weight: 600;
}

a {
    color: #30577c;
}

#main-container {
    background-color: #fff;
    width: 920px;
    margin: 24px auto;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);

    -webkit-box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

#header, #page-header, #page-links, #inputs, #outputs, #footer {
    padding: 24px;
}

#header {
    background-color: #33b5e5;
    /*
      background-image:-webkit-gradient(linear,
        left top, right top,
        color-stop(0.01,purple),
        color-stop(0.1,indigo),
        color-stop(0.2,blue),
        color-stop(0.4,green),
        color-stop(0.5,yellow),
        color-stop(0.7,orange),
        color-stop(0.8,red),
        color-stop(0.99,purple));

      background: -moz-linear-gradient( left,
              purple 0%,
            indigo 10%,
            blue 20%,
            green 40%,
            yellow 50%,
            orange 70%,
            red 80%,
            purple 100%);
    */
    color: #fff;
}

#header h1 {
    font-weight: bold;
    font-size: 42px;
    line-height: 42px;
}

#header h1 a {
    text-decoration: none;
    color: #fff;
}

#page-header p,
#page-links p {
    width: 40em;
}

#page-header h2,
#page-links h2 {
    color: #0099CC;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 8px;
}

#page-header h2 span,
#page-links h2 span {
    color: #888;
    font-weight: normal;
}

#breadcrumb {
    color: #888;
    font-weight: normal;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 16px;
}

#breadcrumb a {
    text-decoration: none;
    color: #888;
}

#breadcrumb em {
    color: #0099CC;
    font-weight: bold;
}

#page-links ul {
    margin: 12px 24px;
}

#page-links li {
    font-size: 13px;
    line-height: 16px;
    margin-bottom: 4px;
    font-weight: bold;
}

#inputs {
    background-color: #eee;
    /* float:left; */
}

#inputs-form {
    background-color: #eee;

}

#preview {
    background-color: #eee;
    float: right;
    padding-left: 5px;
}

#outputs {
    background-color: #ccc;
    clear: both;
}

#inputs h3, #outputs h3 {
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 8px;
}

/* forms */

.form-field-outer {
    margin-bottom: 24px;
}

.form-field-outer > label {
    font-weight: bold;
    display: inline-block;
    vertical-align: top;
    margin-top: 6px;
    width: 148px;
    margin-right: 12px;
}

.form-field-outer > label .form-field-help-text {
    font-weight: normal;
    font-size: 11px;
    line-height: 12px;
    color: #888;
}

.form-field-outer[disabled] {
    opacity: 0.2;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-filter: grayscale(100%);
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
    filter: gray;
}

.form-field-container {
    display: inline-block;
    vertical-align: top;
}

.form-text,
.ui-autocomplete-input {
    margin: 0;
    padding: 3px 6px;
    border: 0;
    border-bottom: 1px solid #33b5e5;
    background-color: transparent;
}

.form-field-separator {
    background-color: #ccc;
    height: 1px;
    width: 400px;
}

.form-field-checkbutton + label {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.form-field-buttonset label:nth-last-of-type(1) {
    border-right: 1px solid #ccc;
}

.form-field-buttonset label:nth-of-type(1) {
    border-left: 1px solid #ccc;
}

.form-field-buttonset input:checked + label,
.form-field-checkbutton:checked + label {
    background-color: #33b5e5;
    color: #fff;
    border-color: #33b5e5;
}

.ui-autocomplete-input + .ui-button {
    margin-left: -1px;
}

.ui-autocomplete {
    z-index: 3 !important; /* to show above slider handles */
}

.form-text,
.ui-autocomplete-input,
.ui-autocomplete-input + .ui-button {
    vertical-align: top;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    height: 22px;
}

.form-image-hidden-file-field {
    position: absolute;
    left: -10000px;
    opacity: 0;
}

.form-image-clipart-attribution {
    font-weight: normal;
    font-size: 11px;
    line-height: 12px;
    color: #888;
    margin-top: 4px;
}

.form-image-clipart-filter {
    background-color: #ccc;
    color: #fff;
    font-size: 13px;
    width: 230px;
    border: 0;
    padding: 4px 10px;
}

.form-image-clipart-filter:focus {
    background-color: #09c;
    outline: 0;
}

.form-image-clipart-filter::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.form-image-clipart-list {
    background-color: #fff;
    border: 1px solid #ccc;
    margin-top: -1px;
    width: 250px;
    height: 200px;
    border: 1px solid #ccc;
    overflow-y: scroll;
}

.form-image-clipart-list img {
    border: 3px solid #fff;
    width: 48px;
    height: 48px;
    cursor: pointer;
}

.form-image-clipart-list img:hover {
    border: 3px solid #ccc;
}

.form-image-clipart-list img.selected {
    border: 3px solid #0099CC;
}

.form-image-preview {
    background-color: #fff;
    display: inline-block;
    max-height: 100px;
    max-width: 250px;
    border: 1px solid #ccc;
}

.form-color-preview {
    border: 1px solid #bbb;
    width: 36px;
    height: 16px;
    margin-left: -8px;
}

.ui-state-hover .form-color-preview {
    border: 1px solid #999;
}

.ui-state-active .form-color-preview {
    border: 1px solid #0099CC;
}

.form-color-alpha,
.form-range {
    margin-top: 6px;
    width: 200px;
}

.form-range {
    display: inline-block;
    vertical-align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1lbnRJRD0ieG1wLmRpZDoxMzIzRTY2NEJCRkYxMUUxOTNDM0I1RTgyREQ3MDU0QSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnAuiP8AAAAOSURBVHjaYjDe+hQgwAAC7AHOIjCyxwAAAABJRU5ErkJggg==);
    background-size: 1px;
    background-repeat: repeat-x;
    background-position: 0% 50%;
    background-color: transparent;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #33b5e5;
    width: 16px;
    height: 16px;
    border-radius: 8px;
}

.form-range::-webkit-slider-thumb:active {
    background: #09c;
}

.form-range-text {
    display: inline-block;
    vertical-align: bottom;
    padding-left: 6px;
    font-size: 11px;
    line-height: 11px;
}

.form-field-drop-target.drag-hover {
    outline: 2px solid #0099CC;
    outline-offset: 5px;
}

.form-field-buttonset input[type=radio],
.form-field-checkbutton {
    display: none;
}

.form-button,
button {
    margin: 0;
    color: #fff;
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-family: Roboto;
    font-size: 13px;
    line-height: 13px;
    font-weight: 400;
    padding: 8px 16px;
    background-color: #33b5e5;
    border: 1px solid #33b5e5;
    cursor: pointer;
}

.form-button[disabled],
button[disabled] {
    background-color: transparent;
    border-color: #000;
    color: #000;
    opacity: 0.2;
    cursor: default;
}

.form-button:not([disabled]):hover,
button:not([disabled]):hover {
    background-color: #09c;
    border-color: #09c;
}

.form-button:not([disabled]):active,
button:not([disabled]):active {
    background-color: #069;
    border-color: #069;
}

.form-field-buttonset label,
.form-field-checkbutton + label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.form-field-checkbutton + label {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

/* subforms */

.form-subform {
    margin-top: 24px;
}

.form-subform .form-field-outer {
    margin-bottom: 6px;
}

.form-subform .form-field-outer > label {
    display: inline-block;
    padding-right: 12px;
    width: auto;
    font-weight: normal;
}

/* output images */

.out-image-group {
    display: inline-block;
    background-color: #fff;
    padding: 8px 10px;
    margin-right: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.out-image-group > .label {
    font-weight: bold;
    margin-bottom: 6px;
}

.out-image-group.dark {
    background-color: rgba(0, 0, 0, 0.9);
}

.out-image-group.dark .label {
    color: #ccc;
}

.out-image-group.dark .out-image {
    border: 1px solid #555;
}

.out-image-group.dark.half {
    background-color: rgba(0, 0, 0, 0.5);
}

.out-image-block {
    display: inline-block;
    vertical-align: top;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 12px;
    text-align: center;
}

.out-image {
    border: 1px solid #ccc;
    margin-top: 4px;
    display: none;
    position: relative;
}

#outputs hr {
    border: 0;
    margin: 4px 0;
    height: 1px;
}

#zip-button {
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
}

.form-button:not([disabled]):active,
button:not([disabled]):active {
    background-color: #069;
    border-color: #069;
}

.bloc-output {
    display: none;
}

.bloc-output-table td {
    font-size: 12px;
    text-align: center;
}

/* alternative state styles */

.browser-unsupported-note {
    padding: 6px 12px;
    border: 0 !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);

    -webkit-box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

/* bug fixes */

.colorpicker {
    z-index: 10000; /* bugfix for jQuery UI sliders appearing above colorpicker */
}