﻿div.lightbox 
{
    background-color: #FFF;

    position: fixed;
    display: block;
    
    margin-left: auto;
    margin-right: auto;
    
    overflow: visible;
    
    width: auto;

    z-index: 20;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    border-radius: 4px;
}

div.lightbox div.lightbox-content 
{
    margin: 5px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    height: auto;
    padding: 1px; /* IE hack to hide scroll bars */
}

div.lightbox div.lightbox-content.no-overflow 
{
    overflow: hidden;
}

div.lightbox h4 
{
    font-size: 13px;
    line-height: 13px;
}

div.lightbox-close 
{
    float: right;
    z-index: 1;
    position: absolute; 
    right: -10px;
    top: -10px;
    margin: 0;
    
    height: 24px;
    width: 24px;
    cursor: pointer;

    background-repeat: no-repeat;
    background-image: url(/content/images/ui/close-24-off.png);
}
div.lightbox-close:hover
{
    background-image: url(/content/images/ui/close-24-on.png);
}

div.lightbox div.lightbox-header h1
{
    text-align: center;
    font-size: 16px;
    line-height: 28px;
    margin: 0;
}

/* grayout div */
div#grayout-div
{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;

    display: none;    
    z-index: 19;
}

div#grayout-div>div
{
    background-color: #000;
    height: 100%;
    width: 100%;

    filter: alpha(opacity=50);
    opacity: 0.5;
}

/* Light box elements */
div.lightbox div.lightbox-content div.toolbar 
{
    margin: 0;
    margin-bottom: 1px;
    padding: 0;
}
div.lightbox div.lightbox-content div.toolbar>div 
{
    margin: 0;
    margin-right: 0.5em;
    padding: 0;
}


div.lightbox a.print
{
    height: 25px;
    width: 25px;
    background-image: url(/content/images/printer24.png);
    display: inline-block;
    vertical-align: top;
}
div.lightbox a.print:hover 
{
    background-image: url(/content/images/printer24h.png);
}

body,html 
{
    margin: 0;
    padding: 0;
}

div.lightbox-scroll {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
}


/*************************************************
    Loading spinner
**************************************************/
.loader {
    border: 6px solid #f3f3f3; /* Light grey */
    border-top: 6px solid #3498db; /* Blue */
    border-radius: 50%;

    width: 24px;
    height: 24px;
 
    animation: spin 2s linear infinite;
}

.loader.big {
     width: 96px;
     height: 96px;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.center {
    margin: auto auto auto auto; /* horizontal center if width: and height: set */
    text-align:center;
}
/**************************************************/





@media print {
    div .lightbox-scroll 
    {
        position: static;
        top: auto;
        bottom: auto;
    }
    
    a.button 
    {
        display: none;
    }
}