/* Base --------------------------------------------------------------------- */

body {
    margin: 15px;
    -webkit-text-size-adjust: 100%;
}

.SWidget {
    width: inherit !important;
}

/* Modules ------------------------------------------------------------------ */

.container {
    padding: 0 15px;
}
.container-vert {
    padding: 15px 0;
}
.container-full {
    padding: 15px;
}
.container-boxed {
    color: #333;
    background: #F7F7F7;
    border: 1px solid #CCC;
    margin-bottom: 15px;
    padding: 10px;
    text-align: center;
}

.text-center {
    text-align: center;
}

.font-faded {
    color: #888;
}
.font-small {
    font-size: small;
}

.hidden {
    display: none;
}

/*
  The html-allowed module is for elements that contain campaign creative
  that can contain client-provided HTML. We try to fix some of the things
  that commonly go wrong inside these modules, for example images that
  are too wide.
*/
.html-allowed img {
    max-width: 100%;
}

.loading-indicator {
    display: none;
}

.note {
    background-color: #FFC;
    padding: 0.5em;
}

/* App-specific ------------------------------------------------------------- */

#mobile-upload-disclaimer {
    float: right;
    border: 1px #CCCCCC solid;
    margin: 3px;
    width: 250px;
    color: #888888;
    padding: 10px;
    text-align: center;
}

#report_spam_div {
    font-size: 9px;
}

/* Shrink the default 15px padding of jQM content container */
.ui-content {
    padding: 0 !important;
}

.ui-content #about-wrapper,
.ui-content #entry-wrapper,
.ui-content #about-wrapper,
.ui-content #results-wrapper,
.ui-content #rules-wrapper,
.ui-content #submit-wrapper {
    padding: 1em;
}

/* reduce content padding for gallery page */
.ui-content #gallery-wrapper {
    padding: 0.2em;
}

.ui-content a {
    text-decoration: none;
}

.ui-content a:hover {
    text-decoration: underline;
}

@media screen and (min-width : 480px)
{
    #gallery-content {
        font-size: 20px;
    }
    .ui-btn-text {
        font-size: 14px;
    }
}

@media screen and (min-width : 720px)
{
    #gallery-content {
        font-size: 30px;
    }
    .ui-btn-text {
        font-size: 20px;
    }
}

@media screen and (min-width : 960px)
{
    #gallery-content {
        font-size: 40px;
    }
    .ui-btn-text {
        font-size: 25px;
    }
}

#like_button_iframe {
    margin: 0px;
    padding: 0px;
    border: none;
    height: 21px;
    max-width: 200px;
}

.page_logo {
    margin: 1%;
    display: inline-block;
    vertical-align: middle;
}

.page_logo img{
    height: 40px;
    width: 40px;
}

.page_info {
    display: inline-block;
    vertical-align: middle;
    width: 250px;
    font-size: small;
}

.page_link {
    display: block;
    margin-bottom: 2px;
    text-decoration: none;
}

#headline {
    width: 100%;
}

#headline #fb-like-auth {
    width: 100%;
}

.headline_image img{
    width: 100%;
}

.footer_divider {
    border-top: 1px dotted #CCCCCC;
    margin-top: 7px;
    padding-top: 10px;
}

.divider {
    border-top: 1px dotted #CCCCCC;
    margin: 7px;
}

.campaign_actions {
    margin: 5px auto;
    text-align: center;
}

.campaign_actions a {
    width: 40%;
}

.gallery-message {
    font-size: small;
    text-align: center;
    background: #CCCCCC;
    padding: 5px 0px;
    margin: 5px 0px;
}

.gallery-controls {
    margin: 10px 0px;
}

#gallery-content {
    min-height: 12em;
}

.gallery-grid {
    margin-bottom: 0.5em;
}

.gallery-photo-name {
    max-width: 98px;
    font-size: 60%;
    white-space: nowrap;
    overflow: hidden;
}

.gallery-photo-vote-count {
    font-size: 60%;
}

.gallery-photo-category,
.gallery-photo-caption {
    display: none;
    font-size: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#login_options {
    text-align: center;
    margin: 5%;
}

#login_explanation {
    margin: 5%;
}

/* PC4 Mobile Submit */
.submit-invalid-message {
    text-align: left;
    background: #FC0;
    padding: 10px 0 10px 20px;
    color: #333;
    margin: 5px 0 10px 0;
    font-size: 13px;
}

#user-message {
    display: none;
}

#category-select {
    margin: 20px 0;
}

.c-file {
    margin-top: 10px;
}

h2.page-submit-form-heading-step-snap-photo,
h2.page-submit-form-heading-step-complete-profile {
    display: none;
}

#photo-upload-note {
    color: gray;
}
#from-facebook {
    margin-right: 10px;
}

#from-facebook img {
    margin-right: 3px;
}

#upload-error,
.error-message {
    display: none;
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

#uploading {
    display: none;
    margin-top: 10px;
}

#uploading img {
    vertical-align: middle;
    margin-right: 10px;
}

#upload-picture {
    display: none;
}

#photo {
    float: left;
}

#crop_area {
    margin-bottom: 12px;
    display: none;
}

.thumbnail {
    float: left;
    margin-left: 10px;
}

.c-thumb-preview {
    border: 1px solid #ccc;
    width:128px;
    height:128px;
    overflow:hidden;
}

.c-thumb-caption {
    width: 128px;
    font-size: 10px;
    color: #666;
}

a.from-facebook-button {
    color: black;
    border: 1px solid black;
    text-decoration: none;
    padding: 5px 10px;
}

#facebook-profile-connect.invalid {
    border: 1px solid red;
}


.SReCAPTCHA input {
    border: inherit !important;
}

.invalid .ui-input-text,
.invalid .ui-btn,
.invalid #recaptcha_table
{
    border-color: #F00 !important;
}
.invalid .ui-focus {
    -moz-box-shadow: 0 0 12px #F00;
    -webkit-box-shadow: 0 0 12px #F00;
    box-shadow: 0 0 12px #F00;
}

span.notes {
    color:#888;
    font-size:10px;
}

#facebook-image {
    float: left;
    margin-right: 10px;
}

#facebook-profile-connect {
    border: 1px solid #CCC;
    background-color: #E7EBF2;
    padding: 10px;
}

form#frmSignUp .submit-field,
form#frmSignUp .declare {
    margin-bottom: 0.7em;
}

#facebook-connect-link {
    font-size: 0.7em;
}

#facebook-connect-button {
    font-size: 0.7em;
}

#facebook-profile-connect-why {
    margin: 0;
    font-size: 0.6em;
}

#facebook_unauthorized {
    position: absolute;
    z-index: 10;
    background: white;
    padding: 20px;
    border: 2px solid #CCC;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
}

.s-submit {
    text-align: center;
    margin-bottom: 2em;
}

.s-submit .ui-btn-text {
    font-size: 1.6em;
}

/* End PC4 Mobile Submit */

.float-clearer {
    clear: both;
    margin: 0;
    padding: 0;
}


/* ------ Entry Page --------- */

#entry-nav {
    width: 100%;
}

#entry-nav a {
    width: 50%;
}

.page-gray-toolbar.page-entry-nav {
    margin-bottom: 8px;
}

.page-entry-nav .page-entry-nav-back-to-gallery, 
.page-entry-nav .page-entry-nav-zoom {
    font-size: 12.5px;
    margin: 0;
}

#entry-image img {
    width: 100%;
}

#entry-details {
    float: left;
    width: 100%;
}

#entry-personal, #entry-vote-count {
    float: left;
    width: 50%;
}

#entry-vote-count {
    text-align: right;
}

#entry-firstname, #entry-vote-count {
    font-size: 1.5em;
    font-weight: bold;
}

#entry-vote-count h2 {
    font-size: 1em;
    font-weight: bold;
    text-align: right;
    margin: 0;
}

#entry-city, #entry-category {
    font-size: 0.8em;
    font-weight: bold;
    color: #666;
}

#entry-social-network-handle {
    clear: both;
    margin-top: 6px;
    font-size: 0.8em;
}

#entry-caption {
    float: left;
    font-size: 0.8em;
    padding: 0 2%;
    margin: 10px 0;
}

#entry-vote {
    clear: both;
    text-align: center;
    margin-bottom: 12px;
}

#entry-vote-aux {
    margin-bottom: 12px;
}

#entry-vote-waiting {
    text-align: center;
}

#entry-vote-waiting img {
    width: 20px;
}

#entry-vote-status {
    text-align: center;
    color: #D99;
    font-size: 0.8em;
    font-weight: bold;
}

#entry-vote-report-problem {
    font-size: 0.6em;
    font-weight: bold;
    text-align: center;
}

#entry-vote-report-problem a {
    color: #666;
    text-decoration: none;
}

#entry-share,
#share-bar {
    text-align: center;
    padding: 0 12%;
    margin-bottom: 4px;
}

#entry-share .share-text {
    display: none;
}

#entry-link {
    font-size: 0.8em;
    text-align: center;
}

.entry-popup {
    padding: 20px 12px;
}

.entry-popup .info {
    font-size: 0.8em;
    padding: 0 8px;
}

#entry-sign-up-after-waiting {
    text-align: center;
    margin: 12px 0;
}

#entry-sign-up-after-image {
    width: 100%;
}

#entry-sign-up-after-waiting img {
    width: 20px;
}

#entry-sign-up-after-thankyou {
    font-size: 0.8em;
    text-align:center;
    margin: 12px 0;
}

#entry-first-time h4 {
    text-align: center;
}

#entry-first-time .centered {
    text-align: center;
}

#entry-first-time .alert, .alert {
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #CCC;
    background-color: #FFF9D7;
    text-align: center;
}

#entry-first-time .alert {
    width: 80%;
}

#entry-belongs-to-user {
    font-size: 0.8em;
    text-align: center;
}

#entry-first-time-fb-connect-button-container {
    margin: 8px 0;
}

#entry-first-time-disclaimer {
    color: #D99;
}

.entry-shortlink {
    font-weight: bold;
}

.entry-comments {
    margin-top: 10px;
}

.social-logo {
    width: 21px;
    height: 21px;
}

.invalid-field {
    border: 1px solid red;
}

#facebook-image {
    float: left;
    margin-right: 10px;
}

#facebook-profile-connect {
    border: 1px solid #CCC;
    background-color: #E7EBF2;
    padding: 10px;
}

#facebook_unauthorized {
    position: absolute;
    z-index: 10;
    background: white;
    padding: 20px;
    border: 2px solid #CCC;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
}

#external-submission-instruction {
    border: 1px solid #CCC;
    font-size: small;
    padding: 4%;
    margin: 2%;
}

#external-submission-instruction .platform-icon {
    float: left;
    margin-right: 3px;
}

.platform-icon {
    vertical-align: -20%;
}

/* End PC4 Mobile Submit */

/* Referral Styles */

/* Use to change specifics in step2/3 */
#AfterPage-Step2 {

}

#AfterPage-Step3 {

}

/* End Referral Styles */

#contest-results {
    padding: 10px;
}

#campaign-rules {
    padding-top: 10px;
    font-size: 11px;
}

.submission-limit-error {
    border: 1px solid #CCC;
    padding: 3em 2em;
    text-align: center;
    margin: 1em;
}

/* UGC Contest */
/* UGC Mobile Entry */
#video-entry iframe, #video-entry .vjs-default-skin {
    width: 100%;
    height: 200px;
    border: 0;
}
/* end UGC Mobile Entry */
/* end UGC Contest */

/* VC2 */
.vc-thumb-preview {
    width: 128px;
    height: 96px;
    border: 1px solid #ccc;
    overflow: hidden;
}
.progressbar {
    width: 80%;
    height: 2em;
    border: 1px solid #CCC;
}
.progress-percent {
    height: 100%;
    background-color: #999;
    background: url('../images/pbar-ani.gif');
    background-size: auto 100%;
}
.upload-box {
    background-color:#D8DFEA;
    border: 6px double #CCC;
    padding: 6px 20px;
    margin:14px 0;
}

.gallery-filters {
    display: none;
}

table#gallery-sort-controls {
    width: 100%;
}

table#gallery-sort-controls td {
    width: 50%;
}

table#gallery-sort-controls td .ui-btn-inner{
    font-size: 0.7em;
}

#gallery-sort-field {
    margin: 0;
    padding: 0;
    width: 100%;
}

#gallery-sort-field label {
    vertical-align: middle;
    display: inline-block;
    margin: 0 2% 0 2%;
    font-size: 0.7em;
    width: 26%;
}

#gallery-sort-field div.ui-select {
    display: inline-block;
    width: 70%;
}

#gallery-sort-controls #gallery-friend-option-label {
    text-align: center;
}

.gallery-thumbnail p.gallery-votes {
    position: absolute;
    margin: 0 0 0.3em;
    bottom: 0;
    left: 130px;
    right: 5px;
}

.gallery-thumbnail p.gallery-votes span.ui-li-aside{
    margin: 0;
}

#gallery-content {
    margin-top: 5px;
    -moz-box-shadow: 0 0;
    -webkit-box-shadow: 0 0;
    box-shadow: 0 0;
}

#gallery-content .ui-li-static.ui-li-has-thumb {
    padding: 1px 5px 1px 130px;
    height: 90px;
    overflow: hidden;
}

#gallery-content .ui-li-thumb {
    width: 120px;
    max-width: 120px;
    max-height: none;
}

#gallery-content li {
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}

.gallery-video-duration {
    background-color: black;
    font-size: 12px;
    color: white;
    padding: 2px;
    position: absolute;
    left: 5px;
    bottom: 5px;
}

#categories-label {
    width: 70px;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-left: 25px;
    padding: 10px;
    float: left;
    font-size: 0.8em;
    position: absolute;
    overflow: hidden;
}
/* end VC2 */

/* CSS applied to readonly textareas */
#sfield_caption textarea.readonly_textarea {
    color: rgb(84, 84, 84);
    background-color: rgb(235, 235, 228);
}
/* End CSS applied to readonly textareas */

#entry-image .nav, #video-entry .nav {
    position: absolute;
    width: 50px;
    height: 30px;
    z-index: 10;
    text-align: center;
    line-height: 30px;
    display: inline-block;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    background-color: rgba(0,0,0,0.3)
}
#entry-image .nav.next, #video-entry .nav.next {
    right: 0;
    -webkit-border-radius: 10px 0 0 10px;
    border-radius: 10px 0 0 10px;
}
#entry-image .nav.prev, #video-entry .nav.prev {
    left: 0;
    -webkit-border-radius: 0 10px 10px 0;
    border-radius: 0 10px 10px 0;
}

div.link_img img {
    width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
}

.footer-content {
    font-size: x-small;
    padding: 0 15px;
}
