/* old */
.container {
  max-width: 970px;
}
body > .container {
  padding-bottom: 10px;
}
.formButtonContainer {
  margin-top: 8px;
  margin-bottom: 0px;
}
.form-horizontal .control-label {
  padding-top: 7px;
}

a.twitter-follow-button {
  visibility: hidden;
}

@media (min-width: 1200px) {
  .col-lg-10 {
    width: 35%;
  }
  #charities {
    width: 50%;
  }
  .inputWrapper {
    height: 45px;
  }
  .col-lg-2 {
    width: 253px;
  }
  .emailWrapper {
    height: 44px;
  }
}

h2 {
  margin-top: 4px;
}

.stripe-logo {
  position: absolute;
  bottom: 5px;
  left: 5px;
}
.lead {
  margin-bottom: 10px;
}
.badge {
  background-color: #008cba;
}

/* new */

.tdg-navbar,
.tdg-navbar a {
  color: #1da2f3;
  background-color: #fff;
}

.tdg-navbar .logo {
  background-color: transparent;
}

body {
  font-family: 'Open Sans';
}

h2 {
  font-size: 46px;
}

.icon-bar {
  background-color: #1da2f3;
}


.intro_card .intro_card_img {
  background-repeat: no-repeat;
  background-position: center center;
  height: 32px;
}

.extras_headline {
  color: #000000;
  text-align: center;
}
.extras_inner_padded {
  padding: 20px;
}
.amount_selector {
  background-color: white;
  transition: height 0.5s;
  overflow: hidden;
}
/*.amount_selector_collapsed .amount_selector_buttons {
  opacity: 0;
  overflow: hidden;
}*/

.amount_selector_selected_amount {
  float: right;
  opacity: 0.5;
  transition: opacity 0.5s;
}
.amount_selector_value_only {
  color: #000;
}
.amount_selector_collapsed {
  cursor: pointer;
}
.amount_selector_value_only:hover {
  text-decoration: none;
  color: #000;
}
.amount_selector_expanded .amount_selector_selected_amount {
  opacity: 0;
}
.amount_button {
  cursor: pointer;
}
.amount_button.selected {
  background-color: #1da2f3;
  color: #fff;
  cursor: auto;
}
.amount_button:hover {
  background-color: #c6eaff;
}
.amount_button.selected:hover {
  background-color: #1a91da;
}
.amount_selector_collapsed {
  height: 64px;
}
.amount_selector_expanded {
  height: 144px;
}
.amount_button {
  text-align: center;
  display: inline-block;
  border-radius: 2px;
  border: solid 1px rgba(0, 0, 0, 0.1);
}
/*.amount_selector_buttons {
  transition: opacity 0.5s;
}*/
.form_separator {
  opacity: 0.2;
}
.form_separator_inner {
  height: 0px;
  border-top: 1px solid #979797;
}
.form_label {
  opacity: 0.4;
  color: #000;
}
.form_card {
  border: 1px solid rgba(202, 202, 202, 0.4);
}
.form_card ~ .form_card{
  margin-top: 34px;
}
.charities_wrapper {
  padding-left: 27px;
  padding-right: 27px;
}
.charities_wrapper .checkbox label, .radio label {
  padding-left: 2px;
}
.charities_wrapper .learn_more {
  float: right;
  color: #1da2f3;
}
.email_wrapper input {
  height: 64px;
  line-height: 64px;
  box-shadow: none;
  border: none;
  padding-left: 27px;
}
.single_button_wrapper {
  text-align: center;
  margin-top: 16px;
}
.form_hidden .donation_form {
  display: none;
}
.form_shown .formButtonContainer {
  display: none;
}

#stripeElementsContainer {
  border: none;
  padding-left: 27px;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
}
#card-errors,
#email-errors {
  -webkit-transition: opacity 0.5s ease-in-out, padding-top 0.5s ease-in-out, padding-bottom 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out, padding-top 0.5s ease-in-out, padding-bottom 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out, padding-top 0.5s ease-in-out, padding-bottom 0.5s ease-in-out;
  margin-bottom: 0px;
  border-radius: 0px;
}
#card-errors.isHidden,
#email-errors.isHidden {
  opacity: 0;
  height: 0px;
  padding-bottom: 0px;
  padding-top: 0px;
  margin-bottom: 0;
}

#card-errors.isVisible,
#email-errors.isVisible {
  opacity: 1;
  padding-bottom: 15px;
  padding-top: 15px;
  margin-top: 4px;
  margin-bottom: 0;
}
.form-group {
  margin-bottom: 0px;
}
#stripeElementsContainer {
  padding-top: 8px;
}
.StripeElement--focus.StripeElement--invalid {
  box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px inset, rgb(206, 132, 131) 0px 0px 6px;
  border-color: rgb(132, 53, 52);
}
.StripeElement--focus {
  border-color: #66afe9;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.main-sub-sub-item ~ .main-sub-sub-item {
  padding-top: 16px;
}

.main-sub-sub-item img {
  max-width: 180px;
}

.checkbox input[type=checkbox] {
  position: inherit;
  margin-left: 0px;
}

/* mobile */
@media (min-width: 320px) {
  body {
    padding-top: 85px;
  }
  h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }
  .navbar-header {
    text-align: center;
  }
  .navbar-header .navbar-brand {
    float: none;
    display: inline-block;
    padding-top: 28px;
  }
  .navbar-toggle {
    margin-top: 18px;
  }
  .navbar-brand {
    /* Compensate for the button on the right messing up centering */
    margin-left: 37px;
  }
  .logo {
    height: 64px;
    width: 32px;
    position: absolute;
    left: 16px;
    top: 12px;
    float: none;
    background: url(../images/logo-mobile.png) no-repeat;
    background-size: contain;
  }
  .logo-large {
    display: none;
  }
  .lead {
    font-size: 18px;
    text-align: center;
    line-height: 1.33;
    margin-bottom: 22px;
  }
  .btn {
    height: 56px;
    line-height: 56px;
    width: 100%;
    margin-bottom: 15px;
  }
  .main-sub-sub {
    border-bottom: 1px solid #eaeaea;
    padding-top: 32px;
    padding-bottom: 32px;
    text-align: center;
  }
  .intro_graphical {
    padding-top: 10px;
  }
  .intro_card {
    padding-bottom: 22px;
    padding-top: 22px;
    text-align: center;
    vertical-align: top;
    font-size: 18px;
  }
  .intro_card .intro_card_img {
    margin-bottom: 20px;
  }
  .extras_headline {
    font-size: 26px;
    padding-top: 32px;
    margin-bottom: 32px;
  }
  .stat_number {
    font-size: 26px;
  }
  .sample_tweet {
    padding-bottom: 32px;
  }
  .sample_tweet_stat_large {
    display: none;
  }
  .sample_tweet_stat_small {
    font-size: 18px;
    display: inline;
  }
  .sample_tweet_stat_small div {
    display: inline;
  }
  .amount_selector {
    padding: 19px;
  }
  .amount_selector_buttons {
    margin-top: 26px;
  }
  .amount_button {
    height: 48px;
    line-height: 48px;
    width: 47px;
  }
  .form_label {
    font-size: 14px;
    height: 64px;
    line-height: 64px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .form_separator {
    padding-left: 20px;
    padding-right: 20px;
  }
  .learn_more {
    display: none;
  }
}


@media (min-width: 768px) {
  body {
    padding-top: 180px;
  }
  .tdg-navbar {
    height: 120px;
  }

  .tdg-navbar>.container .navbar-brand {
    padding-top: 80px;
    font-weight: 600;
    margin-left: 66px;
  }

  .tdg-navbar .navbar-nav {
    float: right;
    padding-top: 65px;
    font-size: 18px;
  }

  .navbar .container {
    position: relative;
  }

  .logo {
    position: absolute;
    top: 35px;
    height: 100px;
    width: 60px;
    background: url(../images/logo-desktop.png) no-repeat;
  }

  .lead {
    text-align: left;
  }

  .main-sub-sub-item {
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
  }

  .main-sub-sub {
    padding-bottom: 32px;
  }
  .intro_graphical {
    padding-top: 0px;
  }
}

/* desktop */
@media (min-width: 992px) {
  h2 {
    font-size: 46px;
  }

  .main-sub-wrapper {
    margin-bottom: 100px;
  }

  .main-sub-main {
    display: inline-block;
    width: 725px;
    padding-right: 165px;
    border-right: 1px solid #eaeaea;
    min-height: 175px;
  }

  .main-sub-sub {
    border-bottom: none;
    float: right;
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .main-sub-sub-item {
    vertical-align: top;
    text-align: left;
    display: block;
    padding-left: 0;
    padding-right: 0;
    /*display*/
  }

  .logo {
    left: -68px;
  }

  .tdg-navbar>.container .navbar-brand {
    margin-left: 0px;
    padding-left: 0px;
  }

  /*override bootstrap*/
  .btn {
    height: 64px;
    line-height: 64px;
    width: 307px;
  }

  .btn-primary {
    width: 307px;
  }

  .btn-default {
    width: 225px;
  }

  .intro_graphical {
    height: 110px;
    margin-bottom: 100px;
  }
  .intro_card {
    width: 220px;
    height: 100%;
    display: inline-block;
    text-align: center;
    vertical-align: top;
    font-size: 20px;
  }

  .intro_card div {
    padding-left: 40px;
    padding-right: 40px;
  }

  .intro_card .intro_card_img {
    margin-bottom: 26px;
  }

  .intro_caret {
    display: inline-block;
    width: 8px;
    height: 100;
    background-image: url(../images/intro_caret.jpg);
    background-repeat: no-repeat;
    background-position: center left;
    vertical-align: top;
  }

  .extras {
    padding-bottom: 76px;
    padding-top: 76px;
  }

  .extras_inner {
    width: 809px;
    margin-left: auto;
    margin-right: auto;
  }

  .extras_headline {
    color: #000000;
    font-size: 46px;
    text-align: center;
    margin-bottom: 60px;
  }

  .stat_number {
    font-size: 46px;
  }

  .sample_tweet_users,
  .sample_tweet_amount {
    display: inline-block;
    width: 145px;
    margin-top: 35px;
    text-align: center;
    font-size: 20px;
  }
  .formButtonContainer .btn-primary {
    margin-right: 10px;
  }
  .sample_tweet_stat_large {
    display: inline-block;
  }
  .sample_tweet_stat_small {
    display: none;
  }
  .sample_tweet_users,
  .sample_tweet_content,
  .sample_tweet_amount {
    vertical-align: top;
  }

  .amount_selector {
    padding: 27px;
  }

  .amount_selector_buttons {
    margin-top: 21px;
  }
  .amount_button {
    height: 48px;
    width: 97px;
    line-height: 48px;
  }
  .form_label {
    font-size: 16px;
    height: 64px;
    line-height: 64px;
    padding-left: 27px;
    padding-right: 27px;
  }
  .form_separator {
    padding-left: 27px;
    padding-right: 27px;
  }
}

/* non-desktop */



/*override bootstrap*/
.btn {
  border-radius: 2px;
  padding: 0;
  font-size: 20px;
}

.btn-primary {
  background-color: #1da2f3;
  border-color: #1da2f3;
}

.btn-primary:hover {
  background-color: #1a91da;
  border-color: #1a91da;
}

.btn-default {
  background-color: #ddf1fd;
  border-color: #ddf1fd;
  color: #3099da;
}

.btn-default:hover {
  background-color: #c6eaff;
  border-color: #c6eaff;
  color: #3099da;
}

.logo {
  float: left;
}

.nav > li > a:focus,
.nav > li > a:hover,
.nav > li.active > a {
  background-color: white;
  color: #333333;
}

.extras {
  background-color: #F6FBFF;
}

.sample_tweet {
  text-align: center;
}

.sample_tweet_content {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}


.sample_tweet_content {
  /* cheeky hack to prevent text flashing */
  color: #d2ecfd;
  max-width: 500px;
}

.sample_tweet_content blockquote {
  visibility: hidden;
}

.buttonsContainer {
  -webkit-transition: opacity 0.5s ease-in-out, height 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out, height 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out, height 0.5s ease-in-out;
  overflow: hidden;
}
.buttonsVisible {
  height: 130px;
  opacity: 1;
}

.buttonsHidden {
  height: 0px;
  opacity: 0;
}
