﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 40px;
    font-size: .875rem;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 1px;
    width: 100%;
    white-space: nowrap;
    /* Set the fixed height of the footer here */
    height: 40px;
    line-height: 40px; /* Vertically center the text there */
    background-color: #ffffff;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1; /* Behind the navbar */
    padding: 48px 0px 40px 0px; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    min-width: 270px;
    max-width: 270px;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 108px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

    .sidebar .nav-link .feather {
        margin-right: 4px;
        color: #999;
    }

    .sidebar .nav-link.active {
        color: #007bff;
    }

        .sidebar .nav-link:hover .feather,
        .sidebar .nav-link.active .feather {
            color: inherit;
        }

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

.node-add {
    float: right;
    margin: 8px 0;
}

.node-image {
    width: 16px;
    height: 16px;
}

.add-child {
    cursor: pointer;
    display: none;
}

/*
 * Content
 */

[role="main"] {
    padding-top: 0; /* Space for fixed navbar */
    margin-left: 285px; /* Space for sidebar */
}

.leftDiv {
    float: left;
}

.rigthDiv {
    float: right;
}

#page-content {
    position: relative;
}

.login-form {
    width: 400px;
    height: 700px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 63px auto 40px auto;
    max-height: 100%;
    max-width: 100%;
}

dl {
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0
}

dt {
    float: left;
    width: 10%;
    padding: 0;
    margin: 0
}

dd {
    float: left;
    width: 90%;
    padding: 0;
    margin: 0
}

/*
 * Navbar
 */

.navbar {
    /*max-height: 48px;*/
    z-index:10000;
}

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    /*background-color: rgba(0, 0, 0, .25);*/
    /*box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);*/
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

    .form-control-dark:focus {
        border-color: transparent;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
    }

.list-group-item {
    font-weight: 500;
    color: #333;
    background-color: rgb(248, 249, 250);
}

[data-role="wrapper"]:hover a.add-child {
    display: block;
}

/*
    Image Browser
*/

.image-browser-table {
    border: 1px solid black;
}

#folder-tree {
    width: 150px;
    height: 400px;
    overflow: auto;
}

#folder-content {
    width: 244px;
    height: 400px;
}

.image-browser-table {
    border: 3px solid grey;
}

.thumbnail-list {
    height: 365px;
    max-height: 365px;
    overflow-y: scroll;
    margin: 0;
    padding: 5px;
    list-style: none;
}

.thumbnail-wrapper {
    position: relative;
    text-align: center;
    width: 65px;
    min-height: 65px;
    max-height: 100px;
    margin: 3px 1px;
    vertical-align: top;
    display: inline-block;
    zoom: 1;
    list-style: none;
    word-break: break-all;
}

.thumb-img {
    width: 32px;
    height: 32px;
    display: block;
    margin: auto;
}

.thumbnail-title {
    display: block;
    font-size: 0.65em;
    padding: 3px 1px 1px 1px;
    text-align: center;
    word-wrap: break-word;
}

#image-preview {
    display: block;
    height: 400px;
    width: 390px;
    max-height: 400px;
    text-align: center;
    vertical-align: middle;
}

    #image-preview img {
        max-height: 390px;
        width: 390px;
        max-width: 390px;
    }

#upload-dropzone {
    width: 100%;
    height: 120px;
    background-color: lightgray;
    border: 1px dotted black;
}

.dz-preview {
    width: 100%;
    max-height: 60px;
}

.dz-image {
    display: none;
}

.dz-progress {
}

.k-editor-textarea {
    height: 400px;
    overflow: auto;
    resize: both;
}