html {
    height: 100%;
}
body,main{
    min-height: 100%;
}

ul{
    padding-left: 15px;
}
.panel{
    margin-bottom:0!important;
}
.blackbox{
    position: fixed;
    height: 100%;
    background:  rgba(0,0,0,0.9);
    width: 100%;
    top: 0;
    z-index: 99;
    left: 0;
}
.loader {
    position: fixed;
    background:  rgba(0,0,0,0.5);
    z-index: 99;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}
.loader div{
    position: relative;
    overflow-y: scroll;
    background: ghostwhite;
    border: 3px solid black;
    padding: 10px;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.blackbox div{
    position: relative;
    height: 100%;
    width: 50%;
    overflow-y: scroll;
    background: ghostwhite;
    margin: auto;
    border: 3px solid black;
    padding: 10px;
}
.btn.inset{
    border: #000 1px inset; margin-left: 1px;
}
.btn.outset{
    border: 1px outset;
}

.thumbframe {
    position: relative;
    width: fit-content;
    -ms-zoom: 0.25;
    -moz-transform: scale(0.25);
    -moz-transform-origin: 0 0;
    -o-transform: scale(0.25);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(0.25);
    -webkit-transform-origin: 0 0;
}

.thumbframe iframe {
    width: 1024px;
    height: 768px !important;
    opacity: 0;
    transition: all 300ms ease-in-out;
    background-color: transparent !important;
}

.thumbnail-container {
    width: calc(1024px * 0.25);
    height: calc(768px * 0.25);
    display: inline-block;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: #f9f9f9;
    margin: 10px 15px;
}

.thumbnail-container::before {
    position: absolute;
    left: calc(50% - 16px);
    top: calc(50% - 18px);
    opacity: 0.2;
    display: block;
    -ms-zoom: 2;
    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cy0wLjU2MSwwLjEyMy0wLjc1LDAuMzM5bC0yLjYwNCwyLjk1bC03Ljg5Ni04Ljk1ICAgQzEwLjU2LDkuMTIzLDEwLjI4Nyw5LDEwLDlTOS40NCw5LjEyMyw5LjI1LDkuMzM5TDYsMTMuMDg3VjVIMjZ6IE02LDE0LjZsNC00LjZsOC4wNjYsOS4xNDNsMC41OCwwLjY1OEwyMS40MDgsMjNINlYxNC42eiAgICBNMjIuNzQsMjNsLTMuNDI4LTMuOTU1TDIyLDE2bDQsNC4zNzlWMjNIMjIuNzR6IiBmaWxsPSIjMzMzMzMzIi8+PHBhdGggZD0iTTIwLDEzYzEuNjU2LDAsMy0xLjM0MywzLTNzLTEuMzQ0LTMtMy0zYy0xLjY1OCwwLTMsMS4zNDMtMywzUzE4LjM0MiwxMywyMCwxM3ogTTIwLDhjMS4xMDIsMCwyLDAuODk3LDIsMiAgIHMtMC44OTgsMi0yLDJjLTEuMTA0LDAtMi0wLjg5Ny0yLTJTMTguODk2LDgsMjAsOHoiIGZpbGw9IiMzMzMzMzMiLz48L2c+PC9zdmc+");
}

.thumbframe:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.panel-body a{
    filter: invert(50%);
}
.form-group .has-feedback i{
    filter: invert(100%);
}
.form-control p{
    filter: invert(100%);
}
.my-textfield {
    color:inherit;
    width: 100%;
}
.container{
    padding-right: 30px !important;
    padding-left: 30px !important;
    clear: both;
}
.overflow {
    overflow: auto;
}
.super{
    vertical-align: super;
    margin-left: 5px;
    font-weight: lighter !important;
}
.mediacontainer{

}
.selection img{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: inherit;
}

iframe {
    width: 100%;
    background-color: white;
}
.CodeMirror {
    border: 1px solid #eee !important;
    height: auto !important;
}

#history-wrapper {
    position: fixed;
    height:100%;
    width: auto;
    z-index:1000;
}
#history {
    position: absolute;
    height: 100%;
    width: 180px;
    left: -180px;
    overflow: auto;

}
#history-btn{
    bottom: 50%;
    position: absolute;
    left: 0;
    height:50px;
    padding:5px;

}
#history.out {
    -webkit-animation: history-slide-out 0.5s forwards;
    animation: history-slide-out 0.5s forwards;
}
#history-btn.out {
    -webkit-animation: history-btn-slide-out 0.5s forwards;
    animation: history-btn-slide-out 0.5s forwards;

}
#history.in {
    -webkit-animation: history-slide-in 0.5s forwards;
    animation: history-slide-in 0.5s forwards;
}
#history-btn.in {
    -webkit-animation: history-btn-slide-in 0.5s forwards;
    animation: history-btn-slide-in 0.5s forwards;

}
@-webkit-keyframes history-slide-in {
    100% { left: 0; }
}

@keyframes history-slide-in {
    100% { left: 0; }
}
@-webkit-keyframes history-slide-out {
    from { left: 0; }
    to { left: -180px; }
}

@keyframes history-slide-out {
    from { left: 0; }
    to { left: -180px; }
}
@-webkit-keyframes history-btn-slide-in {
    100% { left: 180px; }
}

@keyframes history-btn-slide-in {
    100% { left: 180px; }
}
@-webkit-keyframes history-btn-slide-out {
    from { left: 180px; }
    to { left: 0; }
}

@keyframes history-btn-slide-out {
    from { left: 180px; }
    to { left: 0; }
}
#history div{
    padding: .5em;
}
.round{
    display: inline-block;
    height: 68px;
    width:68px;
    border-radius: 50%;
    overflow: hidden;

}

#myTabs{
    margin-bottom: 1em;
}

#myNavbar{

}
#myNavbar.in{
    display: flex;
    visibility: visible;
}
.nav-right{
    position: absolute !important;
    left:80%;
    display: flex !important;
}

.navbar {
    margin-bottom: 0 !important;
}
.navbar-brand{
    height:auto !important;
}

.fullwidth {
    width:100%;
    margin-bottom: 0 !important;
}

.flipHorizontally {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}
.flipVertically {
    -moz-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    transform: scaleY(-1);
    filter: FlipV;
    -ms-filter: "FlipV";
}
.flexbox{
    display: flex !important;
    flex-wrap: wrap-reverse;
    height: inherit !important;
}
.flexbox .portlet{
    flex:1 auto;
}

.column_number{
    clear: both;
}
.sortable{
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.jquery-glyph{
    position: absolute !important;
    top: 50% !important;
    right: 0;
    margin-top: -6px;
}

.portlet {
    margin: .5em .5em .5em .5em;
}
.center{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
}
.portlet-header:not(.block):hover{
    cursor: -webkit-grab;
}
.portlet-header button:not(.block){
    height: 70%;
    margin-right: .5em;
}
.portlet-header {
    width: 100%;
}
.portlet-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -8px;
}

.portlet-placeholder {
    border: 1px dotted black;
    margin: .5em .5em .5em .5em;
    height: 160px;
    width: 230px;
    background: lightblue;
    opacity: .5;
}
.portlet-placeholder-small {
    border: 1px dotted black;
    margin: 7px;
    height: 50px;
    width: 180px;
    background: lightblue;
    opacity: .5;
    flex: 1 auto;
}
.ui-widget.ui-widget-content {
    border: 0 !important;
}
.portlet form{
    margin-bottom: 0!important;
}
.gallery a, .gallery video{
    display: inline-flex;

    border-right: 6px solid #fff;
    border-left: 6px solid #fff;
    border-top: 6px solid #fff;
    border-bottom: 6px solid #fff;

    margin: .1em;

    box-sizing: border-box;

    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
    -webkit-border-radius: 3px 3px 3px 3px;

    -webkit-box-shadow:  7px 10px 31px -6px rgba(0,0,0,0.75);
    -moz-box-shadow:  7px 10px 31px -6px rgba(0,0,0,0.75);
    box-shadow:  7px 10px 31px -6px rgba(0,0,0,0.75);

}
.gallery video:hover{
    cursor: pointer;
}
.gallery{
    min-height: 80px;
    height:100%;
    overflow: hidden;
    background: white !important;
}
.portlet .btn{
    text-align: left !important;
}

