@import url(//fonts.googleapis.com/css?family=Arimo:400,700);

@font-face {
  font-family: 'FontAwesome';
  src: url('//netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts/fontawesome-webfont.eot?v=4.0.3');
  src: url('//netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts/fontawesome-webfont.eot?#iefix&v=4.0.3')             format('embedded-opentype'),
       url('//netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts/fontawesome-webfont.woff?v=4.0.3')                   format('woff'),
       url('//netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts/fontawesome-webfont.ttf?v=4.0.3')                    format('truetype'),
       url('//netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

a {
    position: relative;
    padding: .2em;
    margin: -.2em;
    
    color: rgb(215,215,215);
    text-decoration: none;
    font-weight: 700;
    
    border-radius: .2em;
    transition: all .2s;
}

a:hover {
    color: black;
    background-color: rgb(240,240,240);
    box-shadow: 0em 0em .5em rgba(15,15,15,0.5);
}

h1 {
    font-size: 150%;
}

body {
    position: absolute;
    width: 100%;
    min-height: 100%;
    margin: 0;
    
    color: white;
    font-family: 'Arimo', helvetica, sans-serif;
    font-weight: 400;
    font-size: 100%;
    word-break: break-all;
    
    background: rgb(165,165,165);
    box-shadow: inset 0 0 10em rgba(15,15,15,0.2);
    font-feature-settings: "liga", "onum";
    -moz-font-feature-settings: "liga", "onum";
    -webkit-font-feature-settings: "liga", "onum";
}

header {
    position: relative;
    width: 100%;
    margin: 0;
    
    text-align: center;
    font-size: 200%;
    font-weight: 700;
    padding: .5em 0;
    
    background-color: rgb(45,45,45);
    box-shadow: inset 0em -.5em 1em rgba(15,15,15,0.5);
}

header a {
    color: white;
}

section {
    position: relative;
    width: 100%;
    max-width: 40em;
    min-width: 10em;
    margin: 0 auto;
    
    color: black;
    background-color: rgb(210,210,210);
    box-shadow: 0em .5em 2em rgba(15,15,15,0.5);
}

section.view-gallery {
    min-width: 15em;
    max-width: 78em;
}

section.view-gallery article {
    text-align: center;
}

section.view-gallery article h1 {
    width: 100%;
    text-align: left;
}

section.view-gallery ~ footer {
    min-width: 18.75em;
    max-width: 97.5em;
}

footer {
    position: relative;
    width: 100%;
    max-width: 50em;
    min-width: 12.5em;
    margin: 0 auto;
    padding: .2em 0;
    
    text-align: center;
    font-size: 80%;
    
    background-color: rgb(45,45,45);
    box-shadow: inset 0em .5em 1em rgba(15,15,15,0.5);
}

article {
    padding: 1em;
}

article a {
    color: rgb(15,15,15);
    line-height: 1.7em;
    padding: .2em .5em .2em 0;
    font-weight: 400;
}

#photoviewer {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
    background-color: rgb(15,15,15);
}

#photoviewer img {
    max-height: 80%;
    max-width: 80%;
    margin: auto;
    position: absolute;
    top: -9999px; bottom: -9999px; left: -9999px; right: -9999px;    
}

#photoviewer .icon {
    padding: 0;
    margin: 0;
    color: white;
    font-size: 2em;
    cursor: pointer;
    cursor: hand;
}

#photoviewer .photoviewer-close {
    text-align: right;
    width: 100%;
    height: 10%;
    margin: 0em;
}

#photoviewer-load {
    display:block;
}

#photoviewer .photoviewer-left, #photoviewer .photoviewer-right {
    z-index: 5;
    font-size: 5em;
    position: absolute;
    top: 10%;
    width: 10%;
    height: 80%;
    text-align: center;
    display: flex;
    justify-content: center;
    alight-content: center;
    flex-direction: column;
}

#photoviewer .photoviewer-left {
    left: 0;
}

#photoviewer .photoviewer-right {
    right: 0;
}

#photoviewer .photoviewer-name {
    width: 100%;
    height: 10%;
    text-align: center;
    color: white;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    alight-content: center;
    flex-direction: column;
}

article a.viewbutton {
    font-size: 1.2em;
    float: right;
    padding: 0;
    margin: -2.75em 0 0 0;
}

article .galleryitem {
    display: inline-block;
    background: rgb(210,210,210);
    
    border: .1em solid rgb(165,165,165);
    border-radius: .2em;
    
    overflow: hidden;
    
    height: 12em;
    width: 12em;
    padding: 0;
    margin: .12em .27em;
    text-align: center;
}

article .galleryitem:hover {
    border-color: rgb(45,45,45);
    box-shadow: 0 0 .5em rgb(45,45,45);
}

article .galleryitem a, article .galleryitem a:hover {
    color: rgb(15,15,15);
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
}

article .galleryitem img {
    /*vertical-align: middle;*/
    min-height: 12em;
    min-width: 12em;
}

article .galleryitem .thumb {
    font-family: FontAwesome;
    font-size: 12em;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

article a:hover {
    color: rgb(240,240,240);
    background-color: rgb(15,15,15);
}

table.sharelist {
	width: 100%;
}

table.sharelist td:first-child {
	width: 100%;
}

table.sharelist td:last-child {
	text-align: center;
}

form input {
    font-family: inherit;
    font-size: 100%;
    border-radius: .2em;
}

form#login {
    width: 15em;
    margin: 0 auto;
    text-align: center;
}

form#login input[type=text], form#login input[type=password] {
    width: 100%;
    height: 1.6em;
    background-color: white;
    border: .15em solid rgb(120,120,120);
}

form.logout {
    position: relative;
    float: right;
    z-index: 1;
}

input[type=submit] {
    color: white;
    background-color: rgb(120,120,120);
    border: .2em solid rgb(120,120,120);
    cursor: pointer;
    transition: all .2s;
}

input[type=submit]:hover {
    background-color: rgb(45,45,45);
    border-color: rgb(45,45,45);
}

/* i is for icons */
i {
    display: inline-block;
    width: 2em;
    
    text-align: center;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1.top {
    margin-top: 0em;
}

h1 i {
    width: 1.5em;
}

.icon {
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Icons */

/* Fallback icon */
i:before { content: "\f15b"; }

/* Top-level mime-types */
[class*=application]:before     { content: "\f085"; } /* fa-cogs */
[class*=audio]:before           { content: "\f025"; } /* fa-headphones */
[class*=example]:before         { content: "\f094"; } /* fa-lemon-o */
[class*=image]:before           { content: "\f03e"; } /* fa-picture-o */
[class*=message]:before         { content: "\f0e8"; } /* fa-envelope */
[class*=model]:before           { content: "\f009"; } /* fa-th-large */
[class*=multipart]:before       { content: "\f15b"; } /* fa-file */
[class*=text]:before            { content: "\f15c"; } /* fa-file-text */
[class*=video]:before           { content: "\f008"; } /* fa-film */

/* Specific mime-types */
.up:before                      { content: "\f148"; } /* fa-level-up */
.directory:before               { content: "\f07b"; } /* fa-folder */
.directory.open:before          { content: "\f07c"; } /* fa-folder-open */
.list:before                        { content: "\f03a"; } /* fa-list */
.gallery:before                     { content: "\f03e"; } /* fa-picture-o */
.photoviewer-left:before        { content: "\f104"; } /* fa-angle-left */
.photoviewer-right:before       { content: "\f105"; } /* fa-angle-right */
.photoviewer-close:before       { content: "\f00d"; } /* fa-times */

/* Source code */
.text\/x-script.phyton:before,
.text\/html:before              { content: "\f121"; } /* fa-code */

/* Compressed archives */
.application\/x-7z-compressed:before,
.application\/zip:before        { content: "\f187"; } /* fa-archive */

/* Document formats */
[class*=application\/vnd\.oasis\.opendocument]:before,
[class*=application\/vnd\.openxmlformats-officedocument]:before,
.application\/pdf:before        { content: "\f15c"; } /* fa-file-text */
