@import url(badges.css);
@import url(subpage.css);
@import url(ptc.css);

.personal-event-name a,
.personal-team-name a{
  font-size: 1.2em;
  padding: .5em;
}

.personal-event-date {
  color: #a8a8a8;
  font-size: 1.1em;
}

#donors td {
  padding: 20px 30px;
}

#donors th {
  cursor: pointer;
  font-size: 2rem;
  font-weight: bold !important;
  padding: 16px 30px !important;
}

#secondary-cta a.btn.donate.dark {
  margin-bottom: 0;
}

.photo-frame {
  overflow: visible;
}

.photo-frame img {
  max-height: 100%;
  max-width: 100%;
}

.photo-frame[title]:after {
  content: attr(title);
  display: block;
  font-size: 1.6rem;
  font-weight: normal;
  height: 24px;
  line-height: 1;
  position: absolute;
  text-align: center;
  top: 100%;
  width: 100%;
}

.photo-frame iframe {
  width:100%;
  height:100%;
}

.photo-frame {
  display:none;
}

.photo-frame:last-of-type {
  display:block;
}

.badge.unclaimed {
  display: none;
}

#offline-donate {
  margin: -30px auto 50px auto;
}

@media only screen and (max-width: 767px) {
  h1.section-title {
    margin: 22px auto 10px auto;
  }

  #primary-cta a.btn.donate.dark {
    margin-bottom: 0;
  }

  #primary-cta a.btn:last-child,
  #secondary-cta a:last-child {
    display: inline-block;
  }

  .hidden-xs.btn {
    display: none !important;
  }

  h1 {
    font-size: 2rem;
  }

  #status > .content {
    margin-top: 18px;
  }

  #event-name {
    font-size: 2.4rem;
  }

  #main .cta .btn + .btn {
    margin-top: 2rem;
  }

  #primary-cta .col-sm-3 {
    padding: 1em 0;
  }

  #primary-cta .col-sm-3 + .col-sm-3 {
    border-top: 1px solid #a8a8a8;
  }

  #my-badges .content:after,
  #my-badges .content:before{
    content: none;
  }

  #my-badges,
  #my-badges .content {
    padding-top: 20px;
  }

  #my-badges .badge span {
    font-size: 1.6rem;
  }

  #my-badges {
    margin-bottom: -52px;
  }

  #donors td:last-child,
  #donors th:last-child {
    padding-right: 28px;
  }

  #donors td:first-child,
  #donors th:first-child {
    padding-left: 28px;
  }

  #status > .content {
    margin-bottom: 0;
  }

  span.label {
    display: block;
    text-align: center;
  }

  #story-container {
    margin-top: -50px;
  }

  #story-container h3.section-title {
    font-size: 1.7em;
    top: 3.5rem;
  }


  #story-contain a.edit {
    top: -15px;
  }

  a.view-more, #story-container a.view-more:hover {
    width: 17.5rem;
  }

  #story-container > .content {
    margin: 0 auto;
    padding: 44px 30px 30px;
    width: 270px;
  }

  #story-container .content p {
    font-size: 1.4rem !important;
  }

  #media-container img {
    width: auto;
  }

  #my-badges .badge {
    margin: 0;
  }

  .photo-frame {
    height: 198px;
    line-height: 198px;
  }

  #media-container {
    height: 197px;
    margin: 0 auto 5rem auto;
    width: 280px;
  }

  .photo-frame img {
    max-height: 100%;
    max-width: 100%;
  }

  #progress-container {
    float: none;
    height: 280px;
    margin: 2rem auto;
    padding: 0;
    width: 280px;
  }

  #progress-container > .therm-inner {
    top: 8em;
  }

  #progress-container > .therm-inner #amount_raised .dollars {
    margin-bottom: 0.3em;
  }

  #progress-container > .therm-inner #goal:before {
    margin-bottom: 0.5em;
  }

  #progress-container > .therm-inner #amount_raised .dollars span {
    font-size: 3.2rem;
  }

  .therm-inner .button {
    margin-top: 13px;
  }

  #donors .buttons {
    display: none;
  }

  #donors .content {
    width: 100%;
  }

  #donors table {
    font-size: 1.2rem;
  }

  #donors table td {
    padding: 6px 2px !important;
  }

  #donors td {
    border-top: none;
    font-size: 1.5rem;
    height: 4.4rem;
    vertical-align: middle;
  }

  #donors th {
    border-bottom: 1px solid #a4a4a4;
    border-top: 2px solid #a4a4a4;
    font-size:1.5rem;
    height: 4.4rem;
    vertical-align: middle;
  }

  #donor-tabs .tab-content .donor-row .name,
  #donor-tabs .tab-content .donor-row .amount,
  #donor-tabs .tab-content .donor-row .date,
  #donor-tabs .tab-content .donor-row .action,
  #donor-tabs .tab-content .header-row .name,
  #donor-tabs .tab-content .header-row .amount,
  #donor-tabs .tab-content .header-row .date,
  #donor-tabs .tab-content .header-row .action {
    font-size: 1.2rem;
  }

  td {
    font-size: inherit;
  }

  #top-badges .badge:first-child:before,
  #top-badges .badge:last-child:after {
    content: none;
  }

  a.btn.small, label.btn.small {
    font-size: 1rem;
    height: 0;
    line-height: 0;
    min-width: 0;
    padding-left: 0.5em;
    padding-right: 0.5em;
    vertical-align: middle;
    width: auto;
  }

  .row {
    margin: 0;
  }

  #donor-tabs .subheader {
    font-size: 2.5rem;
  }

  #donors .content {
    margin: 0 auto 20px auto;
  }

  #top h1.section-title {
    font-size: 3rem;
  }

  #progress-container .btn.small {
    margin-top: 2rem;
  }

  #story-container label {
    margin-top: 1rem;
  }

  #middle .section-title {
    font-size: 3rem;
  }

  #middle {
    overflow:visible;
  }

  #money-matters .content .row .col-sm-4 {
    border-right: none;
    display: block;
    float: none;
    margin: 20px auto 40px auto;
  }

  #money-matters .content .row .col-sm-4:nth-child(2) {
    border-top: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #money-matters .content .row .col-sm-4 .content {
    height: 113px;
    padding: 0;
    width: 240px;
  }

  #money-matters .content .row .col-sm-4 .content .circle {
    font-size: 3.099em;
    height: 97px;
    left: -30px;
    line-height: 2em;
    margin-left: 0;
    top: 8px;
    width: 97px;
  }

  #money-matters .content .row .col-sm-4 .content .circle span {
    font-size: 0.300em;
    margin-top: -15px;
  }

  #money-matters .content .row .col-sm-4 .content h4 {
    float: right;
    font-size: 1.143em;
    padding-top: 0;
    text-align: left;
    width: 167px;
  }

  #money-matters .content .row .col-sm-4 .content .large {
    float: right;
    font-size: 1.2rem;
    line-height:1.4rem;
    text-align: left;
    width: 167px;
  }

  #money-matters .content .row .col-sm-4 .content {
    background-color: transparent;
  }

  #money-matters .content .row {
    margin-top: 15px;
  }

  #money-matters .col-xs-12 a {
    background-position: right 6px;
    font-size: 1.6rem;
  }

  #money-matters {
    margin-bottom: 35px;
  }

  #money-matters .col-xs-12 {
    margin: 0 auto;
    padding-bottom: 35px;
  }

  .visible-xs.btn {
    display: inline-block !important;
  }

  #secondary-cta .btn:last-child {
    margin-top: 20px;
  }

  .photo-frame[title]:after {
    margin-top: 15px;
  }

  #offline-donate a.link-with-arrow {
    background-position-y: 3px;
    font-size: 1.3rem;
  }
}
