html,
body {
    height: 100%;
    background-color: #f5f5f5;
}

body.dark {
    background-color: #222;
}

.wrap {
    /*height: 100%;*/
    min-height: 100%;
    margin: 0 auto -60px;
    padding: 0 0 60px;
    display: flex;
}

body.dark .wrap {
    background-color: #313131;
}

.wrap > .container {
    padding: 70px 15px 20px;    
    /*height: 100%;
    min-height: 100%;
    display: ;*/
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

#share a {
    background-color: #4caf50;
    border-radius: 4px;
    color: #fff;
}

#share a:hover {
    background-color: #46994a;
}

#share.exists a {
    background-color: #888888;
}

#share.exists a:hover {
    background-color: #666666;
}

#update a {
    background-color: #4caf50;
    border-radius: 4px;
    color: #fff;
}

#update a:hover {
    background-color: #46994a;
}

#query-mode .query {
    background-color: #ff9800;
    color: #fff;
}

body.dark .wrap .panel, body.dark .panel-footer {
    background-color: #383838;
    border-color: #080808;
}

body.dark .wrap .panel .share-tools {
    background-color: #222;
    border-color: #080808;
}

body.dark .wrap .panel .share-tools .navbar-brand {
    color: #ededed;
}

body.dark .wrap .breadcrumb {
    background-color: #383838;
    border: 1px solid #080808;
}

body.dark .wrap .breadcrumb > .active {
    color: #fff;
}

body.dark .wrap .panel .panel-body a {
    color: #ededed;
}

body.dark .wrap .panel .panel-heading {
    background-color: #313131;
    color: #ededed;
    border-color: #080808;
}

body.dark .wrap .panel .nav > li > a:hover, body.dark .wrap .panel .nav .open > a {
    background-color: #5f5f5f;
}

body.dark .wrap .panel .dropdown-menu > li > a, body.dark .wrap .panel .open > .dropdown-menu {
    background-color: #222;
}

body.dark .wrap .panel .dropdown-menu > li > a:hover {
    background-color: #5f5f5f;
}

body.dark .footer {
    background-color: #222;
    border-color: #080808;
    color: #ededed;
}

.wrap .container {
    min-width: 75%;
}

.conf-switcher li .glyphicon, .theme-switcher li .glyphicon {
    margin-right: 5px;
}

.code.container {
    padding-left: 0;
    padding-right: 0;
}

.code-header.panel-heading.row {
    margin-left: 0;
    margin-right: 0;
}

.code-header .code-title .label {
    font-size: 50%;
    vertical-align: top;
    margin-left: 5px;
}

.code-header .code-date {
    font-size: 12px;
    vertical-align: top;
}

.code.container .panel-body {
    padding: 0;
}

.code .code-viewer {
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: 0px;
}

#save-mode {
    float: right;
}

#save-mode > a {
    background-color: #e7e7e7;
}

body.dark #save-mode > a {
    color: #080808;
}

#save-mode > a:hover {
    background-color: #cbcbcb;
}

body.dark #save-mode.save > a, #save-mode.save > a {
    background-color: #337ab7;
    color: #fff;
}

#save-mode.save > a:hover {
    background-color: #0064aa;
}

#shareModal .form-group {
    margin: 0;
}

#shareModal .form-group > input {
    margin-bottom: 5px;
}

#share-code, #share-context {
    display: none;
}

.share-tools.navbar {
    margin: 0 -1px 0 -1px;
    border-radius: 0;
}

.share-tools.navbar .navbar-brand {
    font-size: 16px;
}

.share-tools.navbar .navbar-right,  .share-tools.navbar .navbar-left{
    margin-right: 0;
    margin-top: 2px;
}

#description-tool > div {
    display: inline-block;
    margin-left: 5px;
    text-decoration: underline;
}

button:focus, a.btn:focus {
    outline: unset !important;
}

.share-tools.navbar .navbar-right button.enabled {
    background-color: #e0e0e0;
}

.share-tools .collapse > .well {
    margin-bottom: 10px;
    white-space: pre;
}

.share-panel {
    margin-bottom: 0;
}

#reviewModal .btn-group {
    margin-bottom: 5px;
}

#reviewModal .form-group {
    margin-bottom: 0;
}

#reviewModal .btn-group .btn.focus {
    outline: unset;
}

#reviewModal .btn-group .btn.active {
    border-color: #000000;
}

#review-control {
    display: inline-block;
    background-color: #ddd;
    padding: 5px;
    border-radius: 4px;
}

#share-toolbar {
    display: inline-block;
    padding: 5px 0;
}

body.dark .wrap .modal-content {
    background-color: #222;
    color: #ededed;
}

body.dark .wrap .modal-content .close {
    color: #ededed;
}

body.dark .wrap input, body.dark .wrap label, body.dark .wrap textarea {
    background-color: #333333;
    color: #ededed;
}

body.dark .wrap h1, body.dark .wrap h2, body.dark .wrap h3, body.dark .wrap p , body.dark .wrap li {
    color: #ededed;
}

body.dark .top-resource-description {
    background-color: #222;
    border-color: #080808;
}

body.dark .modal-dialog .alert.alert-info {
    background-color: #222;
    border-color: #ddd;
    color: #ededed;
}

body.dark .nav-tabs > li.active > a {
    background-color: #222;
}

body.dark .modal-dialog .examples pre {
    background-color: #222;
}

body.dark .modal-dialog .examples code {
    color: #93cdff;
}

body.dark .modal-dialog .examples .hljs-string {
    color: #ff9800;
}

.site-profile .code-viewer {
    padding-left: 65px;
}

body.dark .code-viewer {
    background-color: #222;
    color: #ededed;
}

.site-privacy h3 {
    margin: 0 0 20px;
}

.site-privacy p {
    padding-left: 20px;
}

.site-privacy div {
    margin: 0 0 10px;
}

.site-privacy li {
    margin: 0 0 5px;
}

.site-privacy #accept-header {
    margin-bottom: 40px;
}

body.dark .privacy-accept {
    color: #ededed;
}

.code-header pre {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 14px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: justify
}

.container-fluid > .container-fluid {
    margin: 0;
    padding: 0;
}

#share-description {
    min-height: 54px;
    max-height: 400px;
    overflow: hidden;
}

#share-description:hover {
    overflow-y: auto;
}

#share-description::-webkit-scrollbar {
    width: 5px;
}

#share-description::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#share-description::-webkit-scrollbar-thumb {
    background: #888;
}

#share-description::-webkit-scrollbar-thumb:hover {
    background: #555;
}