/*  Reset & Basics (Inspired by E. Meyers)
================================================== */
    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, button, input, textarea {
        padding: 0; margin: 0; vertical-align: baseline;
        border: 0;
        font-size: 100%; font: inherit;}
    article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
    /*body {line-height: 1;}*/
    img {max-width: 100%;}
    ol, ul {list-style: none;}
    table {border-collapse: collapse; border-spacing: 0;}
    hr {height: 1px; border: none; background: #aaa;}


/*  Basic Styles
================================================== */
    body {font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", "tahoma", "trebuchet ms", "arial", "verdana";
        color: #333;
        -webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
        -webkit-text-size-adjust: 100%;}


/*  Typography
================================================== */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        font-family: "Georgia", "Times New Roman", "Helvetica", "Arial", "sans-serif";
        font-weight: normal;}
    h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {font-weight: inherit;}
    h1 {font-size: 30px; line-height: 30px; margin-bottom: 10px;}
    h2 {font-size: 24px; line-height: 24px;}
    h3 {font-size: 20px; line-height: 20px;}
    h4 {font-size: 18px; line-height: 18px;}
    h5 {font-size: 16px; line-height: 16px;}
    h6 {font-size: 14px; line-height: 14px;}
    em {font-style: italic;}
    strong {font-weight: bold; color: #333;}
    small {font-size: 80%;}


/*  Links
================================================== */
    a {color: #a6141f; text-decoration: none;}
    a:hover, a:active {color: #a6141f;}
    a.transition {
        text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
        -webkit-transition: color 0.3s linear;
        -o-transition: color 0.3s linear;
        -moz-transition: color 0.3s linear;
        transition: color 0.3s linear;}
    a.transition:hover {text-shadow: 1px 1px 1px rgba(0,0,0,0.4);}


/*  Lists
================================================== */
    ul, ol {margin-bottom: 10px;}
    ul {list-style: none outside;}
    ol {list-style: decimal;}
    ol, ul.square, ul.circle, ul.disc {margin-left: 30px;}
    ul.square {list-style: square outside;}
    ul.circle {list-style: circle outside;}
    ul.disc {list-style: disc outside;}
    ul ul, ul ol,
    ol ol, ol ul {margin: 4px 0 5px 30px; font-size: 90%;}


/*  Buttons
================================================== */
    a.button,
    button,
    input[type="submit"],
    input[type="reset"],
    input[type="button"] {
        display: inline-block; padding: 6px 12px; cursor: pointer; vertical-align: top;
        color: #333; text-decoration: none;
        font-size: 13px; line-height: 13px; font-weight: normal;
        text-shadow: 0 1px rgba(255, 255, 255, .75);
        font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
        border: 1px solid #888; border-top: 1px solid #aaa; border-left: 1px solid #aaa;
        -moz-border-radius: 2px; -webkit-border-radius: 2px; -khtml-border-radius: 2px; border-radius: 2px;
        background: #fafafa; /* Old browsers */
        background: #fafafa -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
        background: #fafafa -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
        background: #fafafa -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,0.2) 100%); /* Chrome10+,Safari5.1+ */
        background: #fafafa -o-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* Opera11.10+ */
        background: #fafafa -ms-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* IE10+ */
        background: #fafafa linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%);} /* W3C */
    button,
    input[type="submit"],
    input[type="reset"],
    input[type="button"] {height: 27px; padding: 0 12px;}

    a.button:hover,
    button:hover,
    input[type="submit"]:hover,
    input[type="reset"]:hover,
    input[type="button"]:hover {
        background: #eee; /* Old browsers */
        background: #eee -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
        background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
        background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
        background: #eee -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
        background: #eee -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
        background: #eee linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%);} /* W3C */

    a.button:active,
    button:active,
    input[type="submit"]:active,
    input[type="reset"]:active,
    input[type="button"]:active {
        background: #ccc; /* Old browsers */
        background: #ccc -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%); /* FF3.6+ */
        background: #ccc -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4))); /* Chrome,Safari4+ */
        background: #ccc -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Chrome10+,Safari5.1+ */
        background: #ccc -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Opera11.10+ */
        background: #ccc -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* IE10+ */
        background: #ccc linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%);} /* W3C */

    button.full-width,
    input[type="submit"].full-width,
    input[type="reset"].full-width,
    input[type="button"].full-width {
        width: 100%; text-align: center;
        padding-left: 0 !important;
        padding-right: 0 !important;}
    a.button.full-width {display: block; text-align: center;}


/*  Forms
================================================== */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        width: 198px; max-width: 100%; padding: 2px 4px;
        color: #777; font: 13px "HelveticaNeue", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
        outline: none;
        border: 1px solid #ccc;
        border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; -khtml-border-radius: 2px;
        background: #fff;}
    select {padding: 0;}

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    textarea:focus {
        border: 1px solid #aaa;
        color: #444;
        box-shadow: inset 0 0 2px rgba(0,0,0,.2);
        -moz-box-shadow: inset 0 0 2px rgba(0,0,0,.2);
        -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,.2);}
    textarea {resize: none; min-height: 60px;}
    textarea.average {height: 150px; width: 350px;}
    input[type="checkbox"], input[type="radio"] {
        display: inline;}
    .text_edit_area {height: 400px; width: 580px;}

/*  Helpers
================================================== */
    .noselect {-webkit-user-select: none; -moz-user-select: none; user-select: none;}
    .ralign {text-align: right !important;}
    .lalign {text-align: left !important;}
    .calign {text-align: center !important;}
    .clear {clear: both;}


/*  Decorators
================================================== */
    .flash {display: none; position: absolute; top: 40px; right: 40px; padding: 10px; z-index: 2000; cursor: pointer;
            color: #000;
            border: 1px solid #000; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px;
            background: #fff;}
    .block_wrapper {padding: 10px; margin: 5px;
            /*border: 1px solid #000;
            box-shadow: 0 0 6px #000; -webkit-box-shadow: 0 0 6px #000; -khtml-box-shadow: 0 0 6px #000;
            background: #fff;*/}


/*  Line menu
================================================== */
    .line_menu {padding: 4px 4px 0; margin: 0 0 10px; overflow: hidden;
                border-radius: 4px 4px 0 0; -khtml-border-radius: 4px 4px 0 0;
                box-shadow: inset 0 0 4px #555; -khtml-box-shadow: inset 0 0 4px #555;
                background: #bbb;}
        .line_menu a {display: inline-block; padding: 6px 14px; cursor: pointer;
                        color: #fff; font-size: 13px; line-height: 13px; font-family: tahoma;
                        border: 1px solid #555; border-bottom: none;
                        border-radius: 4px 4px 0 0; -khtml-border-radius: 4px 4px 0 0;
                        background: #777;}
        .line_menu a:hover, .line_menu a:active, .line_menu a.active {color: #000;
                                                                        border: 1px solid #888; border-bottom: none;
                                                                        background: #f8f8f8;}


/*  Uniform
================================================== */
    div.uniform {color: #333;}
        div.uniform .parameter_group {margin: 0 auto 10px;}
        div.uniform h1,
        div.uniform h2,
        div.uniform h3,
        div.uniform h4,
        div.uniform h5,
        div.uniform h6 {
            font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", "tahoma", "trebuchet ms", "arial", "verdana";
            text-align: center; text-shadow: 0 1px 0px #fff;}
        div.uniform h1 {margin: 10px 0 10px; font-size: 20px; line-height: 20px;}
        div.uniform h2 {margin: 16px 0 6px; font-size: 16px; line-height: 16px;}
        div.uniform h3 {margin: 6px 0; font-size: 14px; line-height: 14px;}
        div.uniform h4 {margin: 6px 0; font-size: 13px; line-height: 13px;}
        div.uniform h5 {margin: 6px 0; font-size: 12px; line-height: 12px;}
        div.uniform h6 {margin: 6px 0; font-size: 10px; line-height: 10px;}
        
        div.uniform .group_title {text-align: center; font-size: 14px; text-shadow: 0 1px 0px #aaa;}
        div.uniform .parameter {width: 590px; padding: 5px; margin: 2px auto;
                                border: 1px solid #fff; border-bottom: 1px solid #fff;
                                border-radius: 2px; -khtml-border-radius: 2px;
                                box-shadow: inset 0 0 2px #666; -khtml-box-shadow: inset 0 0 2px #666;
                                background: #f8f8f8;}
            div.uniform .setting {width: 590px; line-height: 20px;}
                div.uniform .status {overflow: hidden;}
                div.uniform div.parameter.accept .status {background: url('../images/icons/accept.png') no-repeat right top transparent;}
                div.uniform div.parameter.denie .status {background: url('../images/icons/cross.png') no-repeat right top transparent;}
                    div.uniform .label {min-height: 10px; width: 190px; padding: 0 10px 0 0; float: left;
                                        text-align: right; text-shadow: 1px 1px 0px #fff;}
                    div.uniform .picker {width: 370px; float: left;}
            div.uniform .message {display: none; padding: 4px 10px; margin: 4px 0 0;
                                color: #ff0000;
                                border: 1px solid #fff;
                                border-radius: 2px; -khtml-border-radius: 2px; -webkit-border-radius: 2px;
                                box-shadow: inset 0 0 3px #ff0000; -webkit-box-shadow: inset 0 0 3px #ff0000; -khtml-box-shadow: inset 0 0 3px #ff0000;
                                background: #fff6f6;}
    
        div.uniform .buttons_line {width: 395px; margin: 0 auto 10px; padding: 0 0 0 205px; text-align: left;}
        div.uniform input[type="text"], div.uniform input[type="password"], div.uniform input[type="email"], div.uniform textarea {
            border: 1px solid #fff;
            box-shadow: inset 0 0 2px #333; -moz-box-shadow: inset 0 0 2px #333; -webkit-box-shadow: inset 0 0 2px #333; -khtml-box-shadow: inset 0 0 2px #333;}
        div.uniform input[type="text"]:focus, div.uniform input[type="password"]:focus, div.uniform input[type="email"]:focus, div.uniform textarea:focus {
            border: 1px solid #fff;
            box-shadow: inset 0 0 2px #000; -moz-box-shadow: inset 0 0 2px #000; -webkit-box-shadow: inset 0 0 2px #000; -khtml-box-shadow: inset 0 0 2px #000;}
        div.uniform .buttons_line a.transition {line-height: 27px;}

/*  Dialogs
================================================== */
    table#overlay {display: none; height: 100%; width: 100%; position: fixed; top: 0; left: 0; z-index:100000;
                background: #666; /* Old browsers */
                background: rgba(0,0,0,.6) -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
                background: rgba(0,0,0,.6) -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
                background: rgba(0,0,0,.6) -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
                background: rgba(0,0,0,.6) -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
                background: rgba(0,0,0,.6) -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
                background: rgba(0,0,0,.6) linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%);}
    table#overlay td {vertical-align: middle;}
    div.dialog_box {display: none; width: 600px; margin: 0 auto;
                box-shadow: 1px 1px 6px #333; -moz-box-shadow: 1px 1px 6px #333; -webkit-box-shadow: 1px 1px 6px #333; -khtml-box-shadow: 1px 1px 6px #333;
                background: #eee; /* Old browsers */
                background: #eee -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
                background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
                background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
                background: #eee -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
                background: #eee -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
                background: #eee linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%);} /* W3C */
        div.dialog_box h1 {padding: 15px 25px 10px; margin: 0;
                    color: #666;
                    font-size: 18px; line-height: 18px; font-weight: normal;
                    font-family: "sans-serif", "HelveticaNeue", "Helvetica Neue", "Helvetica", "tahoma", "trebuchet ms", "arial", "verdana";
                    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
                    border-bottom: 1px solid #aaa;
                    background: #eee; /* Old browsers */
                    background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
                    background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
                    background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */
                    background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */
                    background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */
                    background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%);} /* W3C */
        div.dialog_box p {padding: 20px 25px;
                    font-family: "sans-serif", "HelveticaNeue", "Helvetica Neue", "Helvetica", "tahoma", "trebuchet ms", "arial", "verdana";
                    color: #444; font-size: 13px; line-height: 14px;
                    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
                    border-top: 1px solid #fff; border-bottom: 1px solid #aaa;
                    background: #ddd;}
        div.dialog_box .buttons_line {padding: 3px 25px 4px;
                    text-align: center;
                    border-top: 1px solid #ddd;
                    background: #bbb; /* Old browsers */
                    background: #bbb -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
                    background: #bbb -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
                    background: #bbb -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */
                    background: #bbb -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */
                    background: #bbb -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */
                    background: #bbb linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%);} /* W3C */

    div.dialog_box a.button,
    div.dialog_box button,
    div.dialog_box input[type="submit"],
    div.dialog_box input[type="reset"],
    div.dialog_box input[type="button"] {border: 1px solid #888; border-top: 1px solid #aaa; border-left: 1px solid #aaa;}

    div.dialog_box a.button:hover,
    div.dialog_box button:hover,
    div.dialog_box input[type="submit"]:hover,
    div.dialog_box input[type="reset"]:hover,
    div.dialog_box input[type="button"]:hover {border: 1px solid #666; border-top: 1px solid #888; border-left: 1px solid #888;}

    div.dialog_box a.button:active,
    div.dialog_box button:active,
    div.dialog_box input[type="submit"]:active,
    div.dialog_box input[type="reset"]:active,
    div.dialog_box input[type="button"]:active {border: 1px solid #666;}
