/* Typography
-------------------------------------------------------------- */



/* General Layout
-------------------------------------------------------------- */
body#ylcares {
  background-color: #87074b;
}

.container {
	max-width: 1160px;
}

.ylcares-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.ylcares-section-head {
  max-width: 960px;
  margin: 0 auto 80px;
  text-align: left;
}

.ylcares-section-head h2 {
  text-align: left;
}

@media only screen and (min-width: 64em) {
  .ylcares-section-head {
    text-align: center;
  }

  .ylcares-section-head h2 {
    text-align: center;
  }
}



/* Footer
-------------------------------------------------------------- */
footer {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #960853;
}

#ylcares-credits {
  color: #fff;
  text-align: center;
}

#ylcares-credits strong {
  font-size: 1.28571429rem;
}

#ylcares-credits img {
  max-width: 200px;
  margin-top: 10px;
}

#ylcares-legal {
  padding: 20px 15px;
  color: #fff;
  font-size: 0.8571429rem;
  font-weight: bold;
  text-align: center;
}

#ylcares-location {
  margin-bottom: 60px;
  color: #fff;
  font-size: 1.142857429rem;
  line-height: 1.5;
  text-align: center;
}

#ylcares-location a {
  color: #fff;
  text-decoration: none;
}

#ylcares-location a:hover,
#ylcares-locationa:active {
  text-decoration: underline;
}

#ylcares-location strong {
  font-size: 1.28571429rem;
}

#ylcares-social {
  margin-bottom: 60px;
  text-align: center;
}

#ylcares-social h3 {
  color: #fff;
  font-size: 1.71428571rem;
  font-weight: bold;
}

#ylcares-social h4 {
  color: #fff;
  font-size: 1.28571429rem;
  font-weight: bold;
}

#ylcares-social ul {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

#ylcares-social ul li {
	display: inline-block;
}

#ylcares-social ul li + li {
  margin-left: 10px;
}

#ylcares-social ul li a {
	display: block;
}

#ylcares-social ul li img {
  display: block;
  width: 46px;
  height: 44px;
}

@media only screen and (min-width: 64em) {
  footer {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  #ylcares-social h3 {
    font-size: 2.28571429rem;
  }
}



/* Dividers
-------------------------------------------------------------- */
.ylcares-divider {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.ylcares-divider-mask {
  position: absolute;
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 30px;  
}

/* Account for browser scaling gaps with negative positioning */
.ylcares-divider-mask-upper {
  top: -1px;
}

.ylcares-divider-mask-lower {
  bottom: -1px;
}

@media only screen and (min-width: 64em) {
  .ylcares-divider {
    min-height: 590px;
  }

  #mask-green-lower {
    height: 62px;
  }

  #mask-orange-upper {
    height: 84px;
  }

  #mask-pink-lower {
    height: 67px;
  }

  #mask-white-lower {
    height: 37px;
  }

  #mask-white-upper {
    height: 84px;
  }
}



/* Features
-------------------------------------------------------------- */
#about-us {
  background-color: #BF4D88;
  color: #fff;
}

#about-us h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.71428571rem;
  line-height: 1.5;
  text-align: left;
}

#about-us p {
  margin: 0;
  font-size: 1.28571429rem;
}

#about-us p + p {
  margin-top: 30px;
}

#about-us .ylcares-feature-secondary {
  margin-top: 0;
  max-width: none;
}

#current-initiative {
  background-color: #3ebec1;
}

#current-initiative h2 {
  margin-bottom: 20px;
  color: #224458;
  font-size: 1.71428571rem;
  font-weight: bold;
  line-height: 1.5;
  text-align: left;
}

#current-initiative p {
  margin: 0;
  color: #224458;
  font-size: 1.1428571rem;
}

#current-initiative p + p {
  margin-top: 30px;
}

#our-partners {
  background-color: #fff;
}

#our-partners h2 {
  margin-bottom: 25px;
  color: #950753;
  font-size: 2.28571429rem;
  font-weight: bold;
  line-height: 1.5;
  text-transform: lowercase;
}

#our-partners h3 {
  color: #36454f;
  font-size: 1.28571429rem;
  line-height: 1.5;
}

#our-partners h4 {
  margin-bottom: 20px;
  color: #950753;
  font-size: 1.71428571rem;
  font-weight: bold;
}

#our-partners p {
  margin: 0;
  color: #36454f;
  font-size: 1.1428571rem;
}

#our-partners p + p {
  margin-top: 30px;
}

#past-partners h2 {
  margin-bottom: 25px;
  color: #950753;
  font-size: 2.28571429rem;
  font-weight: bold;
  line-height: 1.5;
  text-transform: lowercase;
}

#past-partners .ylcares-section-head {
  margin-bottom: 0;
}

#ylcares-donate {
  padding-top: 40px;
  padding-bottom: 40px;
  background: #F2B28C url('/img/ylcares/bg-yogurt-stars-group.png') repeat top left;
  background-size: 987px 390px;
  text-align: center;
}

#ylcares-donate h2 {
  margin-bottom: 30px;
  color: #950753;
  font-size: 1.71428571rem;
  font-weight: bold;
  line-height: 1.5;
}

#ylcares-donate .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 290px;
}

#ylcares-donate .pure-button {
  background-color: #c64491;
  border-color: #c64491;
  color: #fff;
}

#ylcares-donate .pure-button:hover,
#ylcares-donate .pure-button:active {
	background-color: #a72572;
	border-color: #a72572;
}

#ylcares-donate .pure-button:focus {
	box-shadow: 0px 0px 0px 3px rgba(167, 37, 114, 0.5);
}

#ylcares-splash {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 260px;
  background-color: #777;
}

#ylcares-splash img {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: block;
  width: auto;
  height: 260px;
}

.ylcares-feature-logo {
  display: block;
  margin-bottom: 20px;
}

.ylcares-feature-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ylcares-feature-row + .ylcares-feature-row {
  margin-top: 80px;
}

.ylcares-feature-primary,
.ylcares-feature-secondary {
  box-sizing: border-box;
}

.ylcares-feature-secondary {
  max-width: 500px;
  margin-top: 40px;
  margin-right: auto;
  margin-left: auto;
}

.ylcares-feature-primary .pure-button {
  margin-top: 30px;
}

.ylcares-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
}

.ylcares-grid-item {
  box-sizing: border-box;
  flex: 0 0 50%;
  width: 50%;
  margin: 0 !important;
  padding: 15px;
}

@media only screen and (min-width: 48em) {
  #ylcares-splash {
    height: auto;
  }
  
  #ylcares-splash img {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
  }
}

@media only screen and (min-width: 64em) {
  #about-us h2 {
    font-size: 2.28571429rem;
  }

  #our-partners h2 {
    font-size: 3rem;
  }
  
  #our-partners h3 {
    font-size: 1.71428571rem;
  }

  #our-partners h4 {
    margin-bottom: 30px;
  }

  #past-partners h2 {
    font-size: 3rem;
  }

  #ylcares-donate h2 {
    font-size: 2.28571429rem;
  }

  .yl-cares-feature-logo {
    margin-bottom: 30px;
  }

  .ylcares-feature-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .ylcares-feature-row + .ylcares-feature-row {
    margin-top: 140px;
  }

  .ylcares-feature-primary {
    flex: 1 1 auto;
    margin-right: 45px;
  }

  .ylcares-feature-secondary {
    flex: 0 0 44%;
    width: 44%;
    margin-top: 0;
  }

  .ylcares-grid {
    max-width: none;
    margin-right: -15px;
    margin-left: -15px;
  }

  .ylcares-grid-item {
    flex: 0 0 25%;
    width: 25%;
  }

  #about-us .ylcares-feature-row {
    align-items: flex-start;
  }
  
  #about-us .ylcares-feature-secondary {
    flex: 0 0 54%;
    width: 54%;
  }

  #current-initiative .ylcares-feature-primary {
    margin-right: 115px;
  }

  #current-initiative .ylcares-feature-secondary {
    flex: 0 0 42%;
    width: 42%;
  }

  #our-partners .ylcares-feature-primary {
    margin-right: 100px;
  }

  #our-partners .ylcares-feature-secondary {
    flex: 0 0 43%;
    width: 43%;
  }
}

@media only screen and (min-width: 80em) {
  .ylcares-grid {
    margin: 0;
  }
}

@media only screen and (min-width: 95em) {
  #ylcares-splash {
    position: relative;
    overflow: hidden;
    height: 488px;
  }
  
  #ylcares-splash img {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
}



/* Donation Flow
-------------------------------------------------------------- */
.ylcares-donate-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  margin-right: -5px;
  margin-left: -5px;
}

.ylcares-donate-option {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  flex: 0 0 33.333333%;
  width: 33.333333%;
  padding: 5px;
}

.ylcares-donate-option input[type="radio"] {
  position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
  border: 0;
}

.ylcares-donate-option label {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0 !important;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 10px;
  color: #444;
  font-size: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.ylcares-donate-option input[type="radio"]:checked + label {
  border-color: #831a52;
  color: #831a52;
}

.ylcares-donate-option label:focus {
	box-shadow: 0px 0px 0px 3px rgba(204, 204, 204, 0.5);
}

.ylcares-donate-option label input[type="number"] {
  width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
  padding: 5px;
  font-size: 0.857142857rem;
}

h2#donate-label {
  margin-bottom: 30px;
}

#btn-donate-initiate[disabled] {
  border-width: 2px;
  border-style: solid;
}

#btn-donate-submit {
  display: block;
  box-sizing: border-box;
  padding-right: 5px;
  padding-left: 5px;
  text-align: center;
}

#btn-donate-submit span {
  display: inline-block;
}

#btn-donate-submit span.hidden {
  display: none;
}

#btn-donate-loading img {
  display: inline-block;
  width: 16px;
  height: 16px;
  animation: rotate 1s infinite linear;
}

#donate-error {
  margin-bottom: 10px;
}

#donate-step-2 {
  display: none;
}

#payment-form h5 {
  margin-bottom: 5px;
}

#payment-form h5 + h5 {
  margin-bottom: 20px;
}

#payment-form #card-element {
  box-sizing: border-box;
  min-height: 50px;
  margin-bottom: 5px;
}

#payment-form .error-message {
  min-height: 20px;
  margin-bottom: 5px;
  font-size: 1.142857429rem;
  line-height: 20px;
}

#payment-form .payment-form-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 15px;
}

#sr-result {
  text-align: center;
}

#sr-result h3 {
  margin-bottom: 5px;
}

#sr-result h4 {
  line-height: 1.5;
}

@media only screen and (min-width: 48em) {
  .ylcares-donate-grid {
    flex-wrap: nowrap;
  }
  
  .ylcares-donate-option {
    flex: 0 0 16.666667%;
    width: 16.666667%;
  }

  #btn-donate-submit {
    width: 200px;
  }

  #payment-form .payment-form-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}