* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
body {
    background: #333333;
    color: #999999;
    padding: 0;
    margin:0;
}
ul, li {
    list-style: none;
    margin: 0;
}
.aLeft {
    text-align: left;
}
.aRight {
    text-align: right;
}
.aCenter {
    text-align: center;
}
.fLeft {
    float: left;
}
.fRight {
    float: right;
}
.clear {
    clear: both;
}
.small {
    font-size: 0.8em;
}
img {
    vertical-align: text-top;
}

*[contenteditable=true] {
    border: 1px solid transparent;
}
*[contenteditable=true]:hover {
    background: white;
    color: #777777;
    border: 1px solid #777777;
}

input[type=text],
input[type=password] {
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    padding: 5px;
    width: 250px;
}
.error input[type=text],
.error input[type=password] {
    border-color: red;
    color: red;
}
*[contentEditable] {
    cursor: pointer;
}
body ul.list *.error,
body.login form *.error,
.error {
    color: red;
}
form {
    text-align: left;
}
form span.label {
    display: inline-block;
    width: 120px;
}
div.main {
    width: 80%;
    max-width: 1500px;
    text-align: center;
    margin: 2.5em auto 0;
}
h1, h2 {
    color: #999;
    margin: 1em 0 0.5em;
    padding: 0;
}
h2 {
    color: #bbb;
    text-align: center;
    font-size: 15px;
    margin: 0 0 0.5em;
    padding: 0;
}
a,
a:link,
a:visited {
    text-decoration: none;
}
a:link:hover,
a:visited:hover {
    text-decoration: underline;
}
div.main a,
div.main a.link,
div.main a.visited {
    color: #999;
}
span.prec {
    position: absolute;
    left: 0;
}
span.next {
    position: absolute;
    right: 0;
}
a img {
    cursor: pointer;
}
img.photo {
    max-height: 85%;
}
div.mosaic img {
    margin: 5px;
    height: 200px;
}
#last {
    display: none;
}

div.menu a.menu-show::before,
div.menu a.menu-show-image::before {
    content: '>';
    margin-right: 10px;
}

div.menu {
    padding: 5px ;
    position: fixed;
    top: 0;
    width: 100%;
}

div.menu.background {
    background: white;

    /* Netscape */
    -moz-opacity: 0.3;
    /* Safari 1.x */
    -khtml-opacity: 0.3;
    /* Good browsers */
    opacity: 0.3;

    *position: absolute; /* IE9 */
    position: fixed;
    top: 0;
    width: 100%;
}

div.menu .breadcrumb-sep {
    margin-right: 5px;
}

div.menu a,
div.menu label,
div.menu span {
    margin-right: 5px;
    color: white;
}
div.menu *[onclick] {
    cursor: pointer;
}
div.menu a:link,
div.menu a:visited {
    color: #dddddd;
}

body.login form,
body ul.list {
    border-radius: 5px;
    width: 500px;
    background: white;
    margin: 0 auto;
    padding: 5px;
}

body.login form *,
body ul.list * {
    color: #777777;
}
body ul.list input {
    color: #000000;
}
body ul.list input[disabled] {
    color: #aaaaaa;
}

body.show ul.list,
body.edit-directory ul.list {
    width: auto;
    max-width: 1400px;
    text-align: left;
    min-height: 500px;
    vertical-align: top;
}

body.show ul.list * {
    vertical-align: top;
}

body .save-title {
    display: none;
}
body.edit .save-title {
    display: block;
    text-align: center;
}

body.show ul.list li,
body.edit-directory ul.list li {
    display:inline-block;
    *display:inline;
    margin: 0 5px;
    border-radius: 7px;
}

body.show ul.list li[_id],
body.show ul.list li.add-image {
    min-width: 100px;
    min-height: 180px;
    background: #ffffff;
}

body.show ul.list li.add-image {
    background: #eeeeee;
}

body.show ul.list li.add-image:hover {
    background: #cccccc;
}
body.show ul.list li .delete-file {
    visibility: hidden;
}
body.show ul.list li .actions {
    min-width: 140px;
}
body.show ul.list li .title {
    max-width: 80%;
    display: inline-block;
    zoom:1; /* IE 9 */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
body.show ul.list li:hover .delete-file {
    visibility: visible;
}
body.show ul.list li .delete-file {
    cursor: pointer;
    background: url(../images/delete.png) no-repeat center center;
    width: 20px;
    height: 20px;
    display: inline-block;
    left: 0;
    position: relative;
}

body.show ul.list li.add-image label {
    display: inline-block;
    text-align: center;
    padding-top: 50px;
    min-width: 200px;
}

body.show ul.list li span.info {
    display: none;
    position: absolute;
}

body.show ul.list li[_id] a.image {
    background: url(../images/loading.gif) no-repeat center center;
}

body.show ul.list li[_id] {
    max-width: 200px;
}

body.show ul.list li.ui-selected,
body.edit-directory ul.list li.ui-selected {
    -moz-box-shadow: 2px 2px 5px 0px #656565;
    -webkit-box-shadow: 2px 2px 5px 0px #656565;
    -o-box-shadow: 2px 2px 5px 0px #656565;
    box-shadow: 2px 2px 5px 0px #656565;
    filter:progid:DXImageTransform.Microsoft.Shadow(color=#656565, Direction=134, Strength=5);
}

body.show ul.list li a,
body.edit-directory ul.list li a {
    max-width: 200px;
    overflow: hidden;
    border-radius: 10px;
    min-width: 100px;
    min-height: 100px;
}

body.show ul.list li a,
body.edit-directory ul.list li a {
    display: inline-block;
}

.with-tooltip,
.with-tooltip * {
    cursor: pointer;
}
.with-tooltip .tooltip {
    display: none;
    position: absolute;
    background: white;
    border: 1px dotted black;
    border-radius: 5px;
    padding: 5px;
    margin-left: 10px;
}
.with-tooltip:hover .tooltip {
    display: block;
}

body.edit-directory ul li.add-image label {
    padding-top: 5em;
    display: inline-block;
    padding-top: 5em;
}

body.user-directories ul {
    text-align: left;
    padding: 0;
}
body.user-directories ul li {
    padding: 5px;
}
body.user-directories ul li.confirm {
    text-align: right;
}
body.user-directories ul li form {
    display: inline;
}
body.user-directories ul li.directory form {
    visibility: hidden;
}
body.user-directories ul li.directory:hover form {
    visibility: visible;
}
body.error div.main {
    padding-top: 20em;
    padding-bottom: 20em;
}

.panel {
    background: #ffffff;
    border-radius: 5px;
    margin: 0 auto;
    max-width: 500px;
}
.welcome .panel {
    padding: 20px;
}

.multiUpload,
.reload-page {
    cursor: pointer;
}

.multiUpload:hover,
.reload-page:hover {
    text-decoration: underline;
}


body.show-image p.image {
    text-align: center;
}

body.show-image p.image img {
    max-height: 90%;
}

li.progress-bar a {
    display: inline-block;
    height: 180px;
    width: 200px;
    overflow: hidden;
    border: 1px solid #eeeeee;
}
li.progress-bar a .level {
    display: block;
    margin-top: 30%;
    background: #8c5652;
    height: 180px;
}

h1 {
    text-align: center;
}

button {
    padding: 10px ;
}