﻿html
{
    background-color: Black;
    overflow-y: scroll; 
}
div.Fancy, .Main
{
    transition: transform 0.45s;
    -webkit-transition: -webkit-transform 0.45s;
    -ms-transition: -ms-transform 0.45s;
}

div.Out, body.Loading .Main
{
    transform: scale(0.5);
    -ms-transform: scale(0.5); /* IE 9 */
    -webkit-transform: scale(0.5); /* Safari and Chrome */
    opacity: 0;
}
body.Loading .Main.Fast
{
    transform: scale(0.2);
    -ms-transform: scale(0.2); /* IE 9 */
    -webkit-transform: scale(0.2); /* Safari and Chrome */
}
body.Loading .Main.Slow
{
    transform: scale(0.8);
    -ms-transform: scale(0.8); /* IE 9 */
    -webkit-transform: scale(0.8); /* Safari and Chrome */
}

.Busy div.Fancy
{
    transform: scale(0.6);
    -ms-transform: scale(0.6); /* IE 9 */
    -webkit-transform: scale(0.6); /* Safari and Chrome */
    opacity: 0.8;
}

body.Loading .Main
{
    visibility: hidden;
}

div.Wait
{
    display: none;
}

body.Loading .Wait, body.Busy .Wait
{
    display: block;
}

div.Main.Mid
{
    max-width: 800px;
    margin-top: 5em;
    min-height: 400px;
}
div.Main
{    
    margin-left: auto;
    margin-right: auto;
}

div.Wait:after
{
    position: fixed;
    left: 50%;
    top: 7em;
    margin-left: -80px;
}

.MessageBox
{
    width: 600px;
    position: fixed;
    left: 50%;
    top: 7em;
    margin-left: -300px;
    display: none;
    z-index: 1000;
}

ul.SegmentList, ul.SegmentList li
{
    list-style-type: none;
}
ul.SegmentList
{
    max-height: 5em;
    overflow: auto;
}

body.Busy a.FancyButton
{
    cursor: default;
    background-image: none;
}
a.FancyButton:hover
{
    text-decoration: none;
}
a.FancyButton
{
    margin-right: 0.5em;
}

table.Grid
{
    width: 100%;
    border-spacing:0;
    border-collapse:collapse;
}
table.Grid tr td, table.Grid tr th
{
    padding: 5px 10px 5px 10px;
    border: solid 1px; 
    text-align: left;
}

div.Bags
{
    width: 100%;
}

div.Bags>.Bag
{
    display: inline-block;
    margin-right: 2em;
    margin-bottom: 2em;
    vertical-align: top;
}

.Bags div.Bag
{
    max-width: 400px;
    height: 400px;
    width: 100%;
}
.Bags div.Bag>.Thumb
{
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.Bags div.Bag>.Thumb img
{
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
}

.Bags div.Bag>.Intro
{
    margin-top: 1em;
    margin-bottom: 1em;
}

.Manager .BagPage, .Manager .UploadPage, .Manager .ListPage
{
    display: none;
}

.Manager .BagPage .Info, .Event .Info
{
    position: relative;
    min-height: 200px;
    padding-left: 250px;
}

.Section
{
    margin-bottom: 1em;
}

.Manager .BagPage .Info .Picture, .Event .Info .Picture
{
    position: absolute;
    width: 200px;
    height: 160px;
    top: 20px;
    left: 2em;
    overflow: hidden;    
}
.Event .Info .Picture>img
{
    width: 100%;
}

.CenterText
{
    text-align: center;
}

.Bag .Item
{
    display: inline-block;
    width: 200px;
    height: 320px;
    text-align: center;
    position: relative;
    padding: 30px 15px 10px 15px;
    margin-bottom: 3em;
    margin-right: 1.5em;
    vertical-align: top;   
    
    transition: transform 0.25s, opacity 0.25s;
    -webkit-transition: -webkit-transform 0.25s, opacity 0.25s;
    -ms-transition: -ms-transform 0.25s, opacity 0.25s;
     
}

.Bag .Item.Out
{
    transform: scale(0);
    -ms-transform: scale(0); /* IE 9 */
    -webkit-transform: scale(0); /* Safari and Chrome */
    opacity: 0;
}

.Bag .Item .Badge
{
    position: absolute;
    top: -20px;
    margin-left: -25px;
    width: 50px;
    left: 50%;
}

.Bag .Item .Picture
{
    width: 170px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    height: 170px;
    border-radius: 3px;
    overflow: hidden;
}
.Bag .Item .Picture>img
{
    min-height: 100%;
    max-height: 100%;
    min-width: 100%;
    max-width: 100%;
}
.Bag .Item h3
{
    font-size: 1.1em;
    display: block;
    white-space: nowrap;
    font-weight: bold;
    width: 100%;
    overflow: hidden;
    text-align: center;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

.Bag .Item a.Details
{
    display: inline-block;
    width: 80%;
    height: 45px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    padding-left: 25px;
    padding-top: 7px;
    padding-right: 1em;
    position: relative;
}
.Bag .Item a.Details:before
{
    content: '';
    width: 17px;
    height: 24px;
    position: absolute;
    left: 10px;
    top: 5px;
}

.Bag .Item .Point a {
    margin-top: 0.5em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    padding-left: 18px;
    padding-right: 5px;
    position: relative;
}

.Point .Adder
{
    margin-top: 5px;
}

.Bag .Item a.AddItem:before, .Bag .Item a.RemoveItem:before
{
    content:'';
    position: absolute;
	width: 15px;
	height: 15px;
	top: 2px;
	left: 0;
}
.Bag .Item .Point a.RemoveItem:before{
    background-position: -1px -23px;
	width: 13px;
	height: 4px;
	top: 7px;
}
.Bag .Item .Point a.AddItem:before{
    background-position: -18px -18px;
	width: 13px;
	height: 13px;
}

.Manager .UploadPage
{
    display: none;
}

.Manager.Bag .BagPage
{
    display: block;
}
.Manager.Upload .UploadPage
{
    display: block;
}
.Manager.List .ListPage
{
    display: block;
}
input:not([type='checkbox']), textarea {
    width: 94%;
    max-width: 600px;
    display: block;
}
input:not([type='checkbox']), textarea, select
{
    display: block;
    margin-bottom: 0.75em;
}

.UploadPage
{
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* webkit, please don't mess up type=search input... */
input[type=search] {
    -webkit-appearance: textfield;
}

/*The -moz-box-shadow style is there just to prevent Firefox 4 Beta from adding it's default red border.*/
input:required:invalid, input:focus:invalid {
  -moz-box-shadow: none;
}

/* box sizing... */
div, a, input, select, textarea, section, footer, header { 
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
}
/* links... arg! */
a, div
{
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent; /* For some Androids */
}
/* no heighlight pls...*/

div.Details .Picture>img {
    min-width: 100%;
    min-height: 100%;
    max-width: 100%!important;
    max-height: 100%!important;
    
}
div.Details .Picture {
    width: 300px!important;
    height: 300px!important;
}
div.Details {
    min-height: 350px!important;
}
