
html, body {
    padding: 0;
    margin: 0;
    -webkit-text-size-adjust: none;
}



/* Font families */
html, .button, input, textarea, h1, h2, h3, h4, h5, h6 {
    font-family: 'Avenir Next', Avenir, 'Open Sans', helvetica, arial, sans-serif;
}


/* Disable user selection */
#header, #alert_msg, #nav, #footer, hr, .button, label {
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
}



/* Body styles */
body {
    font-size: 16px;
    line-height: 1.5;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

input, textarea {
    -webkit-border-radius: 0;
}



/* UI elements */
.button, .mce-floatpanel .mce-foot button {
    border: 0;
    color: white;
    min-width: 100px;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    line-height: 1;
    margin: 0 8px 8px 0;
    display: inline-block;
    border-right: 1px solid rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
    background: #00add9;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.button:hover, .mce-floatpanel .mce-foot button:hover {
    text-decoration: none;
    background: black;
    color: white;
}

.button_gray, .mce-floatpanel .mce-last button {
    background: #ddd;
    color: black;
}

.button_gray:hover, .mce-floatpanel .mce-last button:hover {
    background: #bbb;
    color: black;
}

.button_red {
    background: #d1213c;
}

.button_green {
    background: #1db23e;
}

.button_processing, .button_processing:hover {
    color: #777;
    text-decoration: none;
    background-image: url(/framework/images/button_processing.gif);
    border-right: 1px solid rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    cursor: default;
}

.mce-floatpanel .mce-foot button {

}



.button_outline {
    display: inline-block;
    border-radius: 3px;
    border: 1px solid #666;
    padding: 4px 8px 4px 8px;
    font-size: 13px;
    margin: 0 5px 5px 0;
    color: #333;
    cursor: pointer;
}

.button_outline:hover {
    color: #333;
    background-color: rgba(0,0,0,0.1);
    text-decoration: none;
}

.button_outline_no_margin {
    margin: 0;
}




#alert_msg {
    background: #ffde00;
    padding: 10px 15px;
}

#alert_close {
    float: right;
    width: 24px;
    height: 24px;
    background: url(/framework/images/close_dark.svg) no-repeat center center;
    cursor: pointer;
    opacity: 0.6;
}

#alert_close:hover {
    opacity: 1;
}

#popup_msg {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: #ddd;
    padding: 8px 12px;
    font-size: 13px;
    opacity: 0.9;
}

.error_box {
    background: #d1213c;
    color: white;
    padding: 5px;
    margin: 5px 0 15px 0;
}

.error_outer {
    padding: 70px;
}

.error_inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px 40px 90px 40px;
}

.error_inner p {
    max-width: 100%;
}

.error_image {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}



/* Forms */

#main_form {
    margin-top: 12px;
}

label {
    font-size: 14px;
}

.label_error {
    color: #d1213c;
    font-weight: bold;
}

.label_checkbox {
    cursor: pointer;
    display: inline-block;
}

.field {
    margin-bottom: 15px;
}

/*
.field_richtext_wrapper {
    margin-bottom: 15px;
    min-width: 680px;
}
*/

.field_note {
    color: gray;
    margin-top: 3px;
    font-size: 12px;
}

.field_spacer {
    height: 10px;
}

.field_spacer_with_line {
    margin-top: 30px;
    border-top: 1px solid #ccc;
    height: 20px;
}

.field .image_preview {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    vertical-align: bottom;
}

.field .file_preview {
    border: 1px solid #aaa;
    background: #f3f3f3;
    padding: 7px 8px;
    font-size: 14px;
    margin: 4px 0;
    display: inline-block;
}

.file_link_wrapper {
    display: inline-block;
}

input {
    margin: 0;
    font-size: 16px;
    display: block;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    -webkit-appearance: none;
}

input[type=file] {
    border: none;
}

input[type=checkbox] {
    cursor: pointer;
    vertical-align: top;
    margin-top: 5px;
    display: inline-block;
    -webkit-appearance: checkbox;
}

select {
    margin: 2px 0;
    font-size: 16px;
}

textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

.input_width_large  { width: 480px; max-width: 100%; }
.input_width_normal { width: 240px; max-width: 100%; }
.input_width_small  { width: 120px; max-width: 100%; }

.ui-autocomplete {
    float : left;
    clear: both;
    position: relative;
    overflow-y : scroll;
    margin: 0;
    max-height : 200px;
    list-style: none;
    background: white;
    border: 1px solid #555;
    padding: 0;
    cursor: pointer;
}

.ui-menu-item {
    padding: 4px 6px;
    font-size: 13px;
}

.ui-state-focus {
    background: #e2e2e2 !important;
}

.ui-helper-hidden-accessible {
    display: none;
}





.img1, .img2, .img3 {
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
    user-select: none;
    position: relative;
}
.img1 {
    clear: both;
    margin: 0 0 15px 0;
}
.img2 {
    clear: left;
    float: left;
    max-width: 40%;
    margin: 6px 15px 3px 0px;
}
.img3 {
    clear: right;
    float: right;
    max-width: 40%;
    margin: 6px 0px 3px 15px;
}
.img1 img, .img2 img, .img3 img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
    user-select: none;
}
.caption {
    padding: 4px;
    font-size: 12px;
    text-align: center;
    font-style: italic;
    -webkit-user-select: text;  
    -moz-user-select: text;    
    -ms-user-select: text;      
    user-select: text;
    outline: none;
}





/* Lists */
.list {
    list-style-type: none;
    padding: 0;
    min-width: 280px;
}

.list li {
    background: #eee;
    margin-bottom: 1px;
    padding: 7px 10px;
}

.list_buttons {
    float: right;
    padding-left: 8px;
}

.list_buttons a {
    margin-left: 8px;
}

.handle {
    background-image: url(/framework/images/handle_bg.png);
    background-color: #ddd;
    background-size: 100%;
    border: 3px solid #ddd;
    border-radius: 2px;
    cursor: move;
    display: block;
    float: right;
    margin: 1px 0 0 0;
    width: 23px;
    height: 17px;
}






/* Responsive */
@media screen and (max-width: 699px) {

    .button {
        min-width: 65px;
    }

    .field {
        margin-bottom: 10px;
    }
    
    .error_outer {
        padding: 15px;
    }
    
    .error_inner {
        padding: 40px 15px;
    }
    
}



/* input placeholder text color */
::-webkit-input-placeholder {   color: #ccc; }
:-moz-placeholder {             color: #ccc; }
::-moz-placeholder {            color: #ccc; }
:-ms-input-placeholder {        color: #ccc; }
