/*--------------------------------
	FORM
-------------------------------*/
form {
    display: inline-block;
    width: 100%;
}

form br{
    height:20px;
    display:block;
    content:'';
}

form p,
form div.p {
    padding: 10px;
    display: block;
    margin: 15px 0;
}

form p.labeled,
form div.p.labeled {
    padding: 0 10px;
}

form p input[type=text], form div.p input[type=text],
form p input[type=email], form div.p input[type=email],
form p input[type=password], form div.p input[type=password],
form p textarea, form div.p textarea {
    padding: 15px;
    border: 1px solid #999;
    width: 100%;
}

form p textarea, form div.p textarea {
    height: 300px;
    width: 100%;
}

form p textarea.ovotexteditor-input, form div.p textarea.ovotexteditor-input {
    visibility: hidden;
    height: 0;
}

input[type=submit], input[type=reset], button{
    background-color: #545454;
    color: white;
    padding: 10px 15px;
    border: 1px solid #747474;
    text-transform: uppercase;
    cursor: pointer;
    font-size:11px;
}

input[type=submit]:hover, input[type=reset]:hover, button:hover {
    background-color: #333;
    color: white;
}

.mce-btn button:hover {
    background-color: #b2b2b2;
}

label {
    letter-spacing: 1px;
    color: #000;
    text-transform: capitalize;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

p label {
    padding-left: 0;
}

#slug-show {
    padding: 5px;
    font-size: 10px;
    background-color: #b2b2b2;
    color: white;
    margin-top: 10px;
}

form div.input-container {
    width: 100%;
    margin-top: 10px;
}

input[type=submit].floting-on-header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
}

input:disabled {
    background: whitesmoke;
}

/*-----------------------
http://www.sitepoint.com/css3-toggle-switch/
-----------------------*/

div.p.switch-container {
    clear: both;
    display: block;
    overflow: hidden;
    text-align: left;
}

input.switch:empty {
    margin-left: -999px;
}

input.switch:empty ~ label {
    position: relative;
    float: left;
    line-height: 1.6em;
    text-indent: 4em;
    margin: 0.2em 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 20px;
    white-space: nowrap
}

input.switch:empty ~ label:before,
input.switch:empty ~ label:after {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    content: ' ';
    width: 3.6em;
    background-color: #b1b1b1;
    border-radius: 5em;
    -webkit-transition: all 100ms ease-in;
    transition: all 100ms ease-in;
}

input.switch:empty ~ label:after {
    width: 1.4em;
    top: 0.1em;
    bottom: 0.1em;
    margin-left: 0.1em;
    background-color: #fff;
    border-radius: 5em;
}

input.switch:checked ~ label:before {
    background-color: #0da647;
}

input.switch:checked ~ label:after {
    margin-left: 2em;
}

/* --------------
    SELECT
 */

select:not(.ovoflex) {
    width: 100%;
}

div.select-container:not(.ovoflex) {
    width: 100%;
    background-color: #fff;
    background-image: url(../images/system/select.png);
    background-repeat: no-repeat;
    background-position: right center;
    overflow: hidden;
    border: 1px solid #b2b2b2;
    padding: 10px;
}

div.select-container select {
    background-color: transparent;
    border: none;
    font-size: 14px;
    height: 29px;
    padding: 5px; /* If you add too much padding here, the options won't show in IE */
    width: calc(100% + 20px);
    max-width: none;
    box-shadow: none;
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    -moz-appearance: none;
    -moz-border-radius: 0px;
}

select[multiple], div.select-mutiple-values-item-container {
    height: 200px;
    padding: 10px;
}

div.select-mutiple-values-item-container {
    border: 1px solid black;
    overflow: auto;
    padding: 10px;
    font-size: 11px;
}

/*---------------------
	LOGIN
---------------------*/
#login-form .submit {
    margin-bottom: 0;
    padding-bottom: 0;
}

#login-form .regenerate-password {
    text-align: right;
    display: inline-block;
    width: 100%;
}

#login-form .regenerate-password a {
    font-weight: 100;
}

/*---------------------
	PAGES
---------------------*/
#pages-edit .public-container {
    background: #efefef;
    vertical-align: bottom;
}

#pages-edit #slug-input {
    border: none;
    padding: 10px;
    background: none;
}

#pages-edit #caption-input {
    border: none;
}

#pages-edit #fixed-submit {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: auto;
    text-align: right;
    z-index: 10;
}

/*----------------------
    HOME-PAGE
 */

#home-page-input-container,
#home-page-images-input-container {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

#home-page-input-container.visible,
#home-page-images-input-container.visible {
    max-height: 1000px;
}

/*---------------------------
    AJAX
 */

.fuploader {
    /* background:rgba(123,155,158,1);*/
}

.box__dragndrop,
.box__uploading,
.box__success,
.box__error {
    display: none;
}

.box__button {
    display: none;
}

.no-js .box__button {
    display: block;
}

#fupload-form {
    display: none;
}

#fupload-form.fuploader {
    background-color: white;
    outline-offset: -10px;
    height: 100%;
    padding: 40px;
}

#fupload-form.is-dragover {
    background-color: grey;
}

#fupload-form.is-uploading .box__input {
    visibility: hidden;
    opacity: 0;
}

#fupload-form.is-uploading .box__uploading {
    display: block;
}

#fupload-form.dropped {
    background: blue;
}

.file-receiver {
    min-height: 100%;
    width: 100%;
}

.file-receiver.dropped {
    background-color: #3bb3cc;
}

.file-receiver.is-dragover {
    background-color: #349cb4;
}

form.fixer-form .p.switch-container {
    margin: 0;
}