﻿#template-container {
    max-height: 860px;
    overflow-y: auto;
}

    #template-container > .template-row {
        position: relative;
        height: 635px;
    }

        #template-container > .template-row:first-child {
            max-height: 220px;
            height: auto;
            overflow: auto;
        }

            #template-container > .template-row:first-child > div {
                display: inline-block;
                float: left;
                width: 50%;
            }

#template-mediathek-region-content {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 2;
    overflow: auto;
}

#tempalte-mediathek-region-content #template-mediathek-upload-background .fa {
    font-size: 500px;
}


#preview-display-overview {
    position: relative;
}

    #preview-display-overview .preview-display-region {
        text-align: center;
        word-wrap: break-word;
        position: absolute;
        box-sizing: border-box;
        background: gray;
        font-size: 12px;
        overflow: hidden;
        white-space: nowrap;
    }

        #preview-display-overview .preview-display-region.REME {
            cursor: pointer;
            background-color: #3c4349;
            color: white;
            overflow: hidden;
        }

            #preview-display-overview .preview-display-region.REME.active {
                border: 1px solid black;
                background: #3390ff;
                color: black;
            }


#template-sortable > li {
    position: relative;
    height: auto;
    overflow: auto;
    margin: 5px;
    width: auto;
    background-color: lightgray
}

    #template-sortable > li > div {
        width: 100%;
        float: left;
        border-top: 1px solid black;
        background: white;
    }

        #template-sortable > li > div > *,
        #template-sortable > li > div > a{
            margin: 5px !important; /*Ugly butt needed for button :(*/
        }

        #template-sortable > li > div > div {
            float: right;
            width: 200px;
            display: block;
        }

        #template-sortable > li > div > span {
            max-width: 300px;
            min-width: 17px;
            display: inline-block;
            float: left;
            overflow: hidden;
        }

        #template-sortable > li > div > div > input {
            width: 35px;
        }

    #template-sortable > li img {
        max-width: 100%;
        max-height: 200px;
        display: block;
        margin: auto;
    }

    #template-sortable > li a {
        float: right;
        color: white;
    }

#template-mediathek-add-file {
    font-size: 12px;
    padding: 2px;
    float: right;
    width: 125px;
}



#template-mediathek-upload-bar {
    position: absolute;
    z-index: 999;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    display: none;
}

    #template-mediathek-upload-bar .progress {
        height: 20px;
        margin-bottom: 20px;
        overflow: hidden;
        background-color: #f5f5f5;
        border-radius: 4px;
        -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
    }


    #template-mediathek-upload-bar > div:first-child {
        position: absolute;
        z-index: 999;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        background-color: black;
        opacity: 0.4;
    }

    #template-mediathek-upload-bar > div.progress {
        background-color: #c0c0c0;
        position: absolute;
        z-index: 1000;
        left: 10%;
        top: 0;
        bottom: 0;
        right: 10%;
        margin: auto;
    }

    #template-mediathek-upload-bar .progress-bar-title {
        position: absolute;
        text-align: center;
        color: #ffffff;
        height: 20px; /* line-height should be equal to bar height */
        z-index: 1001;
        left: 10%;
        top: 0;
        bottom: 0;
        right: 10%;
        margin: auto;
    }

    #template-mediathek-upload-bar .progress-bar {
        float: left;
        width: 0;
        height: 100%;
        font-size: 12px;
        line-height: 20px;
        color: #fff;
        text-align: center;
        background-color: #5cb85c;
        -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
        box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
        -webkit-transition: width .6s ease;
        -o-transition: width .6s ease;
        transition: width .6s ease;
        -webkit-background-size: 40px 40px;
        background-size: 40px 40px;
        -webkit-animation: progress-bar-stripes 2s linear infinite;
        -o-animation: progress-bar-stripes 2s linear infinite;
        animation: progress-bar-stripes 2s linear infinite;
        background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
        background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
        background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    }



#template-mediathek-content-outer {
    border: 3px solid #3C4349;
    border-radius: 5px;
    width: auto;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#template-mediathek-upload-background {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    text-align: center;
    width: 100%;
}

    #template-mediathek-upload-background .fa {
        display: block;
        text-align: center;
        font-size: 600px;
    }

#template-mediathek-content {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#template-mediathek-main-area {
    margin-bottom: 50px;
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    bottom: 0;
}

#template-mediathek-uploadcontent-noupload {
    position: absolute;
    bottom: 0px;
    right: 0px;
}
