/*title div*/
#homepage-title {
  background-color: #f8f2fc;
}
#homepage-title div.heading {
  text-align: left;
  padding-bottom: 1.5em;
  padding-top: 6em;
  padding-top: calc(5.5em + 4vh);
  padding-bottom: calc(1em + 4vh);
  padding-right: 15%;
  padding-left: 15%;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}
@keyframes homeFadeTitle {
  from {
    transform: translateX(5em);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes homeFadeUp {
  from {
    transform: translateY(5em);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#homepage-title h1 {
  margin-top: 1em;
  margin-bottom: 0.25em;
  font-size: 2.75em;
  animation: homeFadeTitle 1s ease forwards;
}
#homepage-title p {
  color: #4d2466;
  margin: 0.5em 0;
  font-size: 1.17em;
  opacity: 0;
  animation: homeFadeUp 1s 0.25s ease forwards;
}
#homepage-title p:last-of-type {
  font-style: italic;
  animation: homeFadeUp 1s 0.5s ease forwards;
}
#homepage-title a.styled-button {
  opacity: 0;
  margin-top: 1.5em;
  animation: homeFadeUp 1s 0.75s ease forwards;
}
#homepage-title #title-info {
  margin-left: auto;
}

/*graphic + positioning*/
#homepage-title #title-graphic {
  flex: 0 0 45%;
  margin-right: 2.5em;
}
#homepage-title #title-graphic > img {
  width: 100%;
  height: 100%;
}
@media (max-width: 90em){ /*adjusting padding on title*/
  #homepage-title div.heading {
    padding-left: 12.5%;
    padding-right: 12.5%;
  }
  #homepage-title h1 {
    font-size: 2.5em;
  }
}
@media (max-width: 85em){
  #homepage-title div.heading {
    padding-left: 10%;
    padding-right: 10%;
  }
}
@media (max-width: 50em){
  #homepage-title div.heading {
    padding-left: 5%;
    padding-right: 5%;
  }
  #homepage-title #title-info {
    margin-right: 1em;
  }
}
@media (max-width: 40em){ /*hide graphic on very small screens*/
  #homepage-title div.heading {
    padding-left: 10%;
    padding-right: 10%;
  }
  #homepage-title #title-graphic {
    display: none;
  }
}

/*intro text div*/
#intro div.flex-column.right {
  flex: 1 0 40%;
  max-width: 45vw;
}
@media (max-width: 50em){
  #intro div.flex-column.right {
    max-width: 80%;
  }
}
@media (max-width: 30em){
  #intro div.flex-column.right {
    max-width: 100%;
  }
}

/*benefits*/
#benefits {
  margin-top: 2.5em;
}
#benefits .column .benefit {
  display: flex;
  align-items: flex-start;
  margin: 2.5em 0;
}
#benefits .column .benefit:first-child {
  margin-top: 0;
}
#benefits .column .benefit:last-child {
  margin-bottom: 0.5em;
}
#benefits .column .benefit .material-icons { /*styling the icon*/
  font-size: 1.75em;
  margin-right: 1em;
  margin-left: 0.25em;
  color: white;
  position: relative;
}
#benefits .column .benefit .material-icons::before {
  content: "";
  width: 1em;
  height: 1em;
  position: absolute;
  top: 0.49em;
  left: 0.5em;
  transform: translate(-50%, -50%) scale(1.75);
  border-radius: 50%;
  background: #c162f0;
  background: linear-gradient(135deg, #c162f0, #6347ff);
  box-shadow: 0 5px 0.5em rgba(193, 98, 240, 0.3);
  z-index: -1;
}
#benefits .column .benefit .benefit-title {
  margin-top: 0;
  font-weight: bold;
  color: #c162f0;
  display: inline;
  font-size: 1.17em;
}
#benefits .column .benefit .benefit-title + p {
  margin-top: 0.75em;
}
@supports (-webkit-background-clip: text) or (background-clip: text) { /*gradient text if supported*/
  #benefits .column .benefit .benefit-title {
    color: transparent;
    background: linear-gradient(135deg, #c162f0, #6347ff);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
@media (min-width: 65em){ /*flex, two-column styling on larger screens*/
  #benefits {
    display: flex;
    align-items: flex-start;
  }
  #benefits .column {
    flex: 1 1 50%;
    padding: 0 2em;
  }
  #benefits .column:first-child {
    padding-left: 0;
  }
  #benefits .column:last-child {
    padding-right: 0;
  }
}

/*statistics*/
#world-map {
  display: block;
  margin: 0 auto;
  margin-top: 1em;
  max-width: 55em;
}
#world-stats { /*two-column stats layout*/
  display: flex;
  margin-top: 0.5em;
}
#world-stats .stats-row {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  padding: 0 1.25em;
}
#world-stats .stats-row:first-child {
  padding-left: 0;
}
#world-stats .stats-row:last-child {
  padding-right: 0;
}
#world-stats .statistic .number {
  font-weight: bold;
  font-size: 1.17em;
  text-shadow: 0 0 0.25em rgba(255, 255, 255, 0.5);
}
#world-stats .statistic .number::after {
  content: " ";
}
@media (min-width: 50em) { /*table layout for stats*/
  #world-stats {
    display: table;
    width: 100%;
    max-width: 50em;
    margin: 0 auto;
    margin-top: 2em;
    border-collapse: collapse;
  }
  #world-stats .stats-row {
    display: table-row;
    border-bottom: 1px solid white;
    padding: none;
  }
  #world-stats .stats-row:last-child {
    border-bottom: none;
  }
  #world-stats .statistic {
    display: table-cell;
    text-align: center;
    vertical-align: center;
    padding: 1em;
    border-left: 1px solid white;
    border-right: 1px solid white;
  }
  #world-stats .statistic:first-child {
    border-left: none;
  }
  #world-stats .statistic:last-child {
    border-right: none;
  }
  #world-stats .statistic .number {
    display: block;
    margin-bottom: 0.25em;
    font-size: 1.75em;
  }
}

/*testimonial styling*/
div.content h2 + .testimonial {
  margin-top: 1.5em;
}
.testimonial {
  position: relative;
  padding: 3.75em 2em;
  background: white;
  border-radius: 1em;
  margin: 2em 0;
  box-shadow: 0 0.25em 1em rgba(83, 2, 122, 0.3);
  overflow: hidden;
  transition: 0.25s ease;
}
.testimonial:hover {
  box-shadow: 0 0.5em 1.25em rgba(83, 2, 122, 0.3);
}
.testimonial .test-left {
  text-align: center;
}
.testimonial .test-right { 
  margin-top: 2em;
}
.testimonial .img-container {
  width: 5em;
  height: 5em;
  margin: 0 auto;
  display: block;
  box-shadow: 0 0.25em 1em rgba(83, 2, 122, 0.3);
}
.testimonial p.name {
  font-weight: bold;
  font-size: 1.17em;
  margin-bottom: 0;
  color: #c162f0;
}
.testimonial::after, .testimonial::before { /*designs on the corners*/
  position: absolute;
  content: "";
  right: 0;
  bottom: 0;
  width: 12em;
  height: 5.77em;
  background-image: url('../media/blob_group.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
}
.testimonial::before {
  transform: scale(-1, -1);
  right: auto;
  bottom: auto;
  top: 0;
  left: 0;
}
@media (min-width: 55em) { /*side-by-side flex*/
  .testimonial {
    display: flex;
    align-items: center;
  }
  .testimonial .test-left {
    flex: 0 0 8em;
    padding-right: 1.5em;
  }
  .testimonial .test-right {
    padding: 0 1.5em;
    border-left: 2px solid rgba(193, 98, 240, 0.3);
  }
}

/*stay up to date*/
#stay-date h2 {
  margin-top: 2em;
  position: relative; 
  z-index: 1;
}
#stay-date form {
  position: relative;
  z-index: 1;
  margin-bottom: 2em;
}
#email-signup {
  width: 100%;
  display: block;
  margin: 0 auto;
  margin-top: 1em;
}
#join-email {
  font-size: 1em;
  padding: 0.75em 2.5em;
}
@media (min-width: 35em) {
  #email-signup {
    width: 22em;
  }
}
@media (min-width: 60em) {
  #email-signup {
    display: inline;
  }
  #join-email {
    margin-left: 1em;
  }
}