/* Gallery Styling */
body {
    background-color: black;
    color: white;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    border: none !important;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
}

.ui-dialog-titlebar-close {
    visibility: hidden;
}

/* CSS for the loading screen DIV */
#ld {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    text-align: center;
}
/* CSS for the loading screen DIV */
#loadingImg {
    margin-left: 50%;
    margin-right: 50%;
    vertical-align: middle;
}

/* Get rid of the stupid blue outline thing from jQuery Mobile*/
*:focus { outline:none }

#master {
    /*background-color: lightblue;*/
    display: table-cell;
    vertical-align: middle
}

#container {
    display: block;
    margin: 0 auto;
    width: 80%;
    height: 50%;
    text-align: center;
}

.ui-page {
    display: table;
    position: absolute;
    height: 100%;
    width: 100%
}

.center {
    text-align: center;
}

#left {
    width: 255px;
    margin-top: 2%;
    display: none;
    position: absolute;
    overflow: hidden;
    z-index: 1;
    text-align: left;
}

#right {
    width: 100%;
    margin: 0 auto;
    /*background-color: green;*/
    float: left;
    position: relative;
}

#buttons {
    /*background-color: brown;*/
    width: inherit;
    text-align: center;
}

#captions {
    text-align: center;
    clear: both;
    padding-top: 2px;
}

#images {
    margin: 0 auto;
    width: 75%;
}

.tile {
    outline: 2px solid white;
    outline-offset: -2px;
    margin: 10px;
    position: relative;
}

.tile:hover {
    -webkit-animation-fill-mode: forwards;
    -webkit-animation: borderAnimate forwards 200ms;
}

button {
    border-right: 8px solid white; border-bottom: 8px solid white;
    width: 35px; height: 35px;
    margin: 10px;
    background-clip: content-box;
    color: black;
    background-color: black;
    padding: 0px;
    text-decoration: none;
    border-left: none;
    border-top: none;
}

/* if screen size gets smaller than 1280px */
@media screen and (max-width:1280px){
        #container {
            -webkit-animation-fill-mode: forwards;
            -webkit-animation: containlargen forwards 100ms;
        }

        @-webkit-keyframes containlargen {
            from {width: 80%;}
            to {width: 100%;}
        }

    #images {
        -webkit-animation-fill-mode: forwards;
        -webkit-animation: largen forwards 1000ms;
    }

    @-webkit-keyframes largen {
        from {width: 60%;}
        to {width: 100%;}
    }
}

/* if screen size gets larger than 1280px */
@media screen and (min-width:1280px){

    .largeImage {
        -webkit-animation-fill-mode: forwards;
        -webkit-animation: anim1 forwards 1000ms;
        width: 100px;
    }

    @-webkit-keyframes anim1 {
        from {outline: 0px solid white;
            outline-offset: -0px;}
        to {outline: 20px solid white;
            outline-offset: -20px;}
    }

    #images {
        margin-left: 300px;
        -webkit-animation-fill-mode: forwards;
        -webkit-animation: shrink forwards 1000ms;
    }

    @-webkit-keyframes shrink {
        from {width: 100%;}
        to {width: 60%;}
    }

    #left {
        display: block;
        -webkit-animation-fill-mode: forwards;
        -webkit-animation: leftshow forwards 3000ms;
    }

    @-webkit-keyframes leftshow {
        from {opacity: 0;}
        to {opacity: 1;}
    }

    #container {
        width: 1100px;
        -webkit-animation-fill-mode: forwards;
        -webkit-animation: containshrink forwards 100ms;
    }

    @-webkit-keyframes containshrink {
        from {width: 100%;}
        to {width: 80%;}
    }
}

.largeImage {
    outline: 20px solid white;
    outline-offset: -20px;
    height: 100%;
    width: 100%;
    /*max-height: 750px;*/
    -webkit-animation-fill-mode: forwards;
    -webkit-animation: fadeLarge forwards 500ms, borderAnimateBig forwards 200ms;
    position: relative;
    /*cursor: pointer;*/
    pointer-events: none;
    max-height: 900px;
    max-width: 900px;
}

@-webkit-keyframes fadeLarge {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Chrome, Safari, Opera */
@-webkit-keyframes borderAnimate {
    from {outline: 2px solid white;
        outline-offset: -2px;}
    to {outline: 6px solid white;
        outline-offset: -4px;}
}

/* Chrome, Safari, Opera */
@-webkit-keyframes borderAnimateBig {
    from {outline: 0px solid white;
        outline-offset: 0px;}
    to {outline: 20px solid white;
        outline-offset: -20px;}
}