body,fieldset,p,li,h1,h2,h3,h4,h5 {
    margin: 0;
    padding: 0;
}
body {
    background-color: #aaa;
    background-image: url(images/mobile_body_bg.png);
    background-position: top center;
    background-repeat: repeat-y;
    font-family: Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}
img {
    border: none;
    margin: 0;
    padding: 0;
}
#container {
    background-color: #fff;
    font-size: 12px;
    margin: 0 auto;
    max-width: 480px;
    min-height:800px;
    text-align: left;
}
fieldset {
    border: none;
}
a {
    color: #4D3B16;
    text-decoration: none;
}
#header h1 {
    margin: 0;
    padding: 0;
}
#header h1 a {
    background-color: rgb(102, 204, 0);
    border-bottom: 1px solid rgba(0,0,0,.5);
    color: white;
    display: block;
    margin: 0;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    text-shadow: rgba(0,0,0,.4) 0 1px 2px;
}
#header #leftButton {
    width: 70px;
    left: 10px;
}
#header #rightButton {
    width: 70px;
    right: 10px;
}
#controls,#picturesWrapper,#content {
    text-align: left;
}
#content {
    margin: 10px 20px;
}
#content h1 {
    font-weight: normal;
    font-size: 48px;
    color: #66cc00;
    text-transform: lowercase;
    border: 1px solid white;
}
#content p,.pager,#content li {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 20px;
}

/* USER MESSAGES */
#moreWrapper {
    margin-bottom: 0px;
    z-index: -1;
    border-bottom: 1px solid #666;
}
#moreWrapper .more, #moreWrapper .moreLoading {
    display: block;
    border-width: 0 12px;
    padding: 20px 0 14px 0;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: black;
    text-shadow: rgba(255,255,255,0.7) 0 1px 0;
}



#searchSlug {
    text-align: left;
    padding: 10px;
    background-color: white;
}
#searchSlug ul {
    margin: 0;
}





/*

PICTURE LIST

*/
#picturesWrapper {
    min-height: 500px;
    padding: 0px;
    background-color: #999;
    -webkit-box-shadow: 0 -6px 20px rgba(0,0,0,.3);
}
#picturesWrapper #pictures {
    border-top: 0px solid #CCC;
    -webkit-box-shadow: -2px 10px 10px rgba(0,0,0,.5);
}
#picturesWrapper #pictures .picture {
    vertical-align: top;
    border-top: 1px solid #FFF;
    border-bottom: 1px solid #999;
    padding: 10px;
    color: #333;
    min-height: 110px;
    background-color: #eee;
    /*-webkit-box-shadow: 0 -10px 10px rgba(0,0,0,.1);*/
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,.1)), to(rgba(0,0,0,.3)));
}
/*
#picturesWrapper #pictures .picture:nth-child(2n) {
background-color: #ccc;
}
*/
#picturesWrapper #pictures .picture.selected {
    border-top: 1px solid #66cc00;
    border-bottom: 1px solid #66cc00;
    background-color: #66cc00;
}
#picturesWrapper #pictures .picture .thumb {
    background-color: rgba(0,0,0,.7);
    position: relative;
    float: left;
    height: 100px;
    width: 100px;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,.5);
    -webkit-border-radius: 5px;
}
#picturesWrapper #pictures .picture .thumb img {
    height: 100px;
    width: 100px;
    -webkit-border-radius: 5px;
}
#picturesWrapper #pictures .picture .comments {
    display: inline-block;
    padding-left: 20px;
    overflow-x: hidden;
/*
    overflow-y: scroll;
*/
    width: 180px;
}
#picturesWrapper #pictures .picture .comments .comment {
    font-size: 14px;
    margin-bottom: 14px;
    overflow-x: hidden;
/*
    overflow-y: scroll;
*/
}
#picturesWrapper #pictures .picture .comments .comment,
#picturesWrapper #pictures .picture .comments .comment a,
#picturesWrapper #pictures .picture .comments .comment .when,
#picturesWrapper #pictures .picture .comments .comment .when a {
    color: rgba(0,0,0,.8);
    text-shadow: rgba(255,255,255,.6) 0 1px 0;
}
#picturesWrapper #pictures .picture.selected .comments .comment,
#picturesWrapper #pictures .picture.selected .comments .comment a,
#picturesWrapper #pictures .picture.selected .comments .comment .when,
#picturesWrapper #pictures .picture.selected .comments .comment .when a {
    color: white;
    text-shadow: none;
}
/*

PICTURE DETAIL

*/
#pictureWrapper #controls {
/*
-webkit-transition-delay:0;
-webkit-transition-duration: 200ms;
-webkit-transition-property: left;
*/
background-color:rgba(0,0,0,.1);
border-color: #ccc;
border-style: solid;
border-width: 1px;
width: 314px;
padding: 2px;
height: 83px;
}
#pictureWrapper #controls a {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#999));
    border-color: #ccc;
    border-style: solid;
    border-width: 1px;
    color: black;
    display: block;
    float: left;
    font-size: 12px;
    font-weight: bold;
    height: 40px;
    line-height: 40px;
    margin: 0 -1px -1px 0;
    padding: 0;
    text-align: center;
    text-decoration: none;
    text-shadow: #eee 0 1px 0;
    width: 103px;
}
#pictureWrapper #picture img {
    width: 100%;
}
#pictureWrapper #comments {
    overflow-x: hidden;
/*
    overflow-y: scroll;
*/
    padding: 10px;
    text-align: left;
}
#pictureWrapper #comments .comment {
    overflow-x: hidden;
/*
    overflow-y: scroll;
*/
    margin-bottom: 12px;
    font-size: 14px;
}
/*

AJAX PICTURE DETAIL

*/
#ajaxPictureWrapper {
    -webkit-transition-delay: 500ms;
    -webkit-transition-duration: 200ms;
    -webkit-transition-property: left;
    position: absolute;
    width: 320px;
    min-height: 500px;
    background-color: rgba(0,0,0,.9);
    left: 340px;
    padding-top: 51px;
    padding-bottom: 60px;
    -webkit-box-shadow: 0 0 20px rgba(0,0,0,1);
}
#ajaxPictureWrapper .loading {
    background-color: transparent !important;
}
#ajaxPictureWrapper #pictureWrapper {
    margin: 0;
}
#ajaxPictureWrapper #pictureWrapper #controls {
    border: none;
    background-color: transparent;
    padding: 4px 0 0 5px;
    height: 88px;
}
#ajaxPictureWrapper #pictureWrapper #controls #ajaxResultWrapper {
    margin-top: 100px;
}
#ajaxPictureWrapper #pictureWrapper #controls a {
    background-color: rgba(0,0,0,.8);
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,.3)), to(rgba(255,255,255,0)));
    border-color: #222;
    border-style: solid;
    border-width: 1px 0 1px 1px;
    border-top-color: #aaa;
    color: #eee;
    margin: 0 -1px 0 0;
    text-shadow: none;
    width: 33%;
}
#ajaxPictureWrapper #pictureWrapper #comments {
}
#ajaxPictureWrapper #pictureWrapper #comments .comment {
    color: white;
}
#ajaxPictureWrapper #pictureWrapper #comments .comment a {
    color: #66cc00 !important;
}
#ajaxPictureWrapper #pictureWrapper #comments .comment .when {
    color: #eee;
}
a.whiteButton,a.blueButton {
    display: block;
    border-width: 0 12px;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: black;
    text-shadow: rgba(255,255,255,0.7) 0 1px 0;
    padding: 11px 10px 9px 10px;
    -webkit-border-image: url(images/whiteButton.png) 0 12 0 12;
}
.numberOfVotes {
    margin-top: 3px;
    font-size: 10px;
    color: #aaa;
}
.promo {
    display: none;
    margin: 0 10px;
    padding: 10px;
    text-align: center;
    -webkit-border-radius: 8px;
    border: 1px solid green;
    color: white;
    background: rgb(102,204,0);
    font-weight: bold;
    text-decoration: none;
}
.when, .when a {
    font-size: 10px !important;
}
/*

NAV

*/
#navWrapper {
    -webkit-transition-delay: 100ms;
    -webkit-transition-duration: 200ms;
    -webkit-transition-property: left;
    position: absolute;
    top: 0;
    left: -340px;
    width: 300px;
    color: inherit;
    background-color: #DDD;
    margin: 0;
    padding: 20px 10px;
    border-top: 1px solid #AAA;
    text-align: left;
    -webkit-box-shadow: 0 0 20px rgba(0,0,0,1);
}
#navWrapper .shading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0px;
    border-top: 1px solid #BBB;
    border-bottom: 1px solid #CCC;
}
#navWrapper ul {
    list-style: none;
    color: #000000;
    border: 1px solid #AAA;
    -webkit-border-radius: 10px;
    background-color: #FFF;
    margin: 0;
    padding: 0;
}
#navWrapper ul li {
    position: relative;
    margin: 0;
    border-top: 1px solid #AAA;
    padding: 8px 0 8px 10px;
    font-size: 20px;
    font-weight: bold;
    list-style: none;
}
#navWrapper ul li a {
    display: block;
    margin: -8px 0 -8px -10px;
    padding: 13px 32px 13px 10px;
    text-decoration: none;
    color: inherit;
    background: url(images/listArrow.png) no-repeat right center;
    border-width: 0;
}
#navWrapper ul li a:active,#navWrapper ul li a:hover {
    color: #FFFFFF !important;
    background-color: #66cc00 !important;
    background-image: url(images/listArrowSel.png);
    background-repeat: no-repeat;
    background-position: right center;
}
#navWrapper ul li:first-child {
    border-top-width: 0;
}
#navWrapper ul li:first-child a {
    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
}
#navWrapper ul li.last-child a {
    -webkit-border-bottom-left-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
}
.personControls {
    text-align: center;
    padding: 5px 0;
}
.inlineButton,.commentLink {
    background-color: #ccc;
    color: #fff;
    font-weight: bold;
}
#searchForm {
    text-align: left;
    width: 100%;
}
#target {
    position: absolute;
    left: 0;
    width: 320px;
    background-color: white;
}
#lb h4 {
    margin: 0;
    padding: 10px;
    text-align: center;
    color: white;
    background-color: rgb(102, 204, 0);
    margin: 0 0 -1px 0;
    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
}
#lb table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 30px 0;
}
#lb th,#lb td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}
#lb th {
    background-color: #eee;
}
#lb img {
    height: 50px;
    width: 50px;
}
#loginPitch {
    padding-bottom: 1px;
    background-color: #ccc;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    width: 320px;
}
#loginPitch p {
    color: #666;
    padding: 10px;
    background-color: #eee;
    border-bottom: 1px solid #aaa;
}
#loginPitch p a {
    text-decoration: underline;
}
.from, .subject {
    display: inline;
}
.from {
    font-weight: bold;
}
.notice,.warning,.error,.success,.loading {
    text-align: center;
    font-family: "Lucida Grande","Trebuchet MS",Verdana,sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: bold !important;
    padding: 10px;
    -webkit-border-radius: 10px;
    text-shadow: none !important;
    -webkit-box-shadow: 0 3px 3px rgba(0,0,0,.5);
}
.notice {
    color: white !important;
    background-color: blue;
}
.warning {
    color: black !important;
    background-color: yellow;
}
.error {
    color: white !important;
    background-color: red;
}
.success {
    color: white !important;
    background-color: rgb(102, 204, 0);
}
.loading {
    color: black !important;
    background-color: yellow;
}



#ajaxResultWrapper, #commentFormWrapper {
    position: absolute;
    z-index: 20;
    left: 10px;
    right: 10px;
    margin-top: 10px;
    text-shadow: none !important;
}
#commentFormWrapper {
    -webkit-border-radius: 5px;
    text-align: left;
    color: white;
    padding: 10px;
    background-color: rgb(102, 204, 0);
    font-size: 12px;
    -webkit-box-shadow: 0 3px 3px rgba(0,0,0,.5);
}

#commentFormWrapper a.cancelLink,
#ajaxPictureWrapper #pictureWrapper #comments #commentFormWrapper a.cancelLink {
    color: white !important;
    font-size: 12px !important;
    text-shadow: none !important;
    text-decoration: underline;
}
#commentFormWrapper textarea {
    width: 260px;
}
#footer ul {
    background-color: #333;
    list-style: none;
    margin: 0;
    padding: 10px;
}
#footer ul li {
    margin: 0;
    padding: 0;
}
#footer ul li a {
    background-color: #AAA;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#999));
    background-repeat: no-repeat;
    border: 1px solid #000;
    color: #000;
    display: block;
    font-size: 150%;
    font-weight: bold;
    line-height: 44px;
    margin: 0 0 10px 0;
    padding: 0 20px;
    text-align: center;
    text-decoration: none;
    text-shadow: rgba(255,255,255,.4) 0 1px 0px;
}
