/* =================== *
 * ## Base elements ##
 * =================== */

html {
    height: 100%;
}

body {
   display: flex;
   flex-direction: column;
   font-family: 'Lato', sans-serif;
   overflow-x: hidden;
   min-height: 100%;
   position: relative;
}

body > .container { flex: 1; }

h2 {
    font-size: 26px;
}

h2.border-bottom {
    margin: 0;
    border-bottom: none !important;
}

h2.border-bottom div {
    border: 0;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

h2.border-bottom div.f3-item-empty {
    border-bottom: none;
}

h4 {
    font-size: 18px;
    font-weight: bold;
}

h5 {
    font-weight: bold;
    font-size: 12px;
}

ol, p, ul, figcaption {
    font-size: 14px;
    line-height: 23px
}

a:hover {
    text-decoration: none;
}

.container ul, .container ol {
    //padding: 5px 5px 5px 15px;
}

/* ============= *
 * ## Buttons ##
 * ============= */

.btn, .button, button {
    border-radius: 0;
    font-size: 13px;
    padding: 4px 14px;
}

.btn:hover, .button:hover, button:hover {
    opacity: .8;
}


/* ============== *
 * ## Carousel ##
 * ============== */

.carousel-inner {
    width: calc(100% + 40px);
    padding: 20px;
    left: -20px;
    top: -20px;
}

.carousel-indicators {
    left: inherit;
    bottom: inherit;
    position: absolute;
    top: 170px;
    right: 20px;
    margin: 0;
}

.carousel-indicators li {
    height: 20px;
    width: 20px;
    border-radius: 25px;
}

.carousel-item p {
    height: 110px;
    margin: 0;
    overflow: hidden;
}

.carousel-item-next, .carousel-item-prev {
    top: 20px;
    padding-right: 40px;
}

.carousel .image {
    height: 170px;
    background: repeating-linear-gradient(-45deg, #fafafa, #fafafa 10px, #fff 10px, #fff 20px);
}

.carousel .image > div {
    background-size: cover;
    background-position: 50%;
    height: 100%;
}


/* ============ *
 * ## Navbar ##
 * ============ */

#noise-header .navbar-toggler {
    margin: 0;
    height: 100%;
    padding: 1.4rem;
    border-radius: 0;
    border: 0;
}

#noise-header .navbar-brand {
    pointer-events: none;
}


/* =============== *
 * ## News item ##
 * =============== */

.new-item {
    margin: 0;
    padding: 0;
    color: inherit;
    min-height: 40px;
    font-style: italic;
    font-size: 100% !important;
}

.news-item h2, .upload-item h2 {
    font-size: 20px;
}

.news-item.new-item > div, .upload-item.new-item > div {
    font-size: 120%;
    height: auto;
}


/* ============== *
 * ## F3 items ##
 * ============== */

.f3-item-menu {
    min-width: 32px !important;
    border: none;
    left: -32px;
    border-radius: 0;
    border-style: dashed;
    border-width: 1px 0 1px 1px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.f3-item-wrapper .f3-edit, .f3-item-wrapper:hover .f3-edit {
    outline-style: dashed;
    outline-width: 1px;
}

.f3-item:not(.f3-edit) .cke_reset.cke_widget_drag_handler_container { display: none !important; }

.item-editor.flex-container > * {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.item-editor.flex-container > .editor-content, .editor-content > div.f3-var[data-dimension="richtext"] {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow: auto;
}

.editor-content > var, .editor-content > .f3-var, .editor-content > label, .editor-content > i {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.f3-edit.f3-image {
    height: 100%;
}

[data-name="photo"] img {
    max-width: 75px;
    max-height: 100px;
}

[data-name="photo"] {
    width: 75px;
    height: 100px;
}

[data-name="thumbnail"] img {
    max-width: 100px;
    max-height: 150px;
}

[data-name="thumbnail"] {
    width: 100px;
    height: 150px;
}

[data-name="photo"].dz-clickable:before, [data-name="thumbnail"].dz-clickable:before {
    font-size: 8pt;
}

.noise-container-navbar .f3-edit-active.f3-item-menu,
.noise-header .banner-image > .f3-item-wrapper:hover .f3-item-menu,
.noise-header .banner-image > .f3-item-wrapper .f3-edit-active.f3-item-menu
{
    left: 0;
    border-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.container-fluid .f3-item-empty {
    display: none;
}

.noise-header .f3-item-wrapper {
    width: 100%;
}

.noise-header .dz-clickable:before {
   left: 32px;
}

.login-form {
    margin: 20px;
}

.login-form-header,
.login-form-row {
    margin: 10px;
}

.login-form-row label {
    width: 120px;
}

input {
    padding: 2px;
}

#forgotpassword {
    font-size: 80%;
    float: right;
}

button {
    border: none;
    margin-left: 20px;
}

a.cke_dialog_tab {
    min-width: auto !important;
}

.f3-edit-active + .f3-var {
    color: #2F2F2F;
}
