/* Hero */
#hero {
  width: 100vw;
  height: 100vh;
  background-image: url(../assets/images/familybackground.png);
  background-position: top;
  background-repeat: none;
  background-size: cover;
  background-blend-mode: screen;
  background-color: rgba(200,200,200,0.5);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}
#heroBG {
  width: 100vw;
  height: 100vh;
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  overflow: hidden;
}
#heroBG div {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  height: 33.5vh;
  opacity: 50%;
}
#heroBG img {
  height: 100%;
  width: 33.5vw;
  object-fit: cover;
  object-position: top center;
}
#hero h1 {
  filter: drop-shadow(0 0 0.2rem rgba(0,0,0,0.25));
}

/* Guide */
#guide {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
  width: calc(100vw - 55px);
  height: auto;
  padding: 25px;
  min-height: 720px;
}
#guide>div:first-of-type {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}
#guide .guide-block {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 45%;
}
#guide .guide-block img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  margin-bottom: 25px;
  max-width: 583px;
  max-height: 389px;
}
#guide h6 {
  margin: 5px 0;
  width: 90%;
  max-width: 583px;
}

/* Companies */
#companies {
  padding: 25px;
  width: calc(100vw - 50px);
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin-top: 25px;
}
#companies > div {
  width: calc(100vw - 50px);
  padding: 0 25px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#companies > div > div {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
#companies > div > div:first-of-type {
  transform: translateY(-50px);
}
#companies > div > div:last-of-type {
  transform: translateY(50px);
}
#companies div img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transform: scale(0.9);
  transition: 0.5s ease;
  transition-property: transform;
}
#companies div img:hover {
  transform: scale(1);
}
#companies img[src="assets/images/franklintempletoninvestments.png"] {
  height: 90px;
}
#companies img[src="assets/images/americancentury.png"], #companies img[src="assets/images/invesco.png"] {
  height: 110px;
}

/* How Money Works */
#howMoneyWorks {
  background-image: url(../assets/images/HowMoneyWorksBG.jpg);
  background-size: cover;
  background-position: center;
  height: calc(100vh - 160px);
  min-height: 550px;
  max-height: 700px;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}
#howMoneyWorks div.grey-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#howMoneyWorks div.grey-block > div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/* Bio */
#bio {
  width: calc(100vw - 100px);
  height: auto;
  padding: 25px 50px 75px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
#bio > div {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin-top: 25px;
}
#bio img {
  width: 45%;
  height: 45%;
  object-fit: cover;
  max-width: 864px;
  max-height: 576px;
}
#bio > div > p {
  width: 45%;
  font-size: 1.40vw;
  line-height: 1.75;
  max-width: 770px;
  max-height: 576px;
}
@media (min-width: 1880px) {
  #bio > div > p {
    font-size: 26px;
  }
}

/* Section Spacing */
.top-margin {
  margin-top: 50px;
}
.top-margin-small {
  margin-top: 25px;
}
.vert-margin {
  margin-top: 25px;
  margin-bottom: 25px;
}
.hori-margin {
  margin-left: 10px;
  margin-right: 10px;
}
.guide-text-block {
  width: 30%;
}

/* DIVs */
.grey-block {
  background-color: #444444;
  padding: 25px;
  color: #ffffff;
  width: 500px;
  height: auto;
  box-shadow: 0 0 1rem rgba(0,0,0,0.25);
}

/* Images */
#howMoneyWorksImg {
  height: 280px;
  width: 220px;
  display: inline-block;
  object-fit: cover;
  margin-left: 20px;
  top: 14px;
}

/* Video */
.video {
  width: 75vw;
  height: 75vh;
  border: none;
  margin: 25px;
}

/* Popups */
#teaser {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -5;
  text-align: center;
  transform: scale(0.9);
  transition-duration: 0.5s;
  transition-property: opacity, transform;
  opacity: 0;
}

/* Company Logos - Big */
@media (max-width: 1000px) {
  #guide {
    height: 1100px;
  }
  #guide > div {
    transform: translateY(-50px);
  }
  #companies {
    transform: translateY(-25px);
  }
  #companies > div {
    flex-direction: row;
  }
  #companies > div > div {
    flex-direction: column;
  }
  #companies img {
    padding: 10px 0;
  }
  #companies img[src="assets/images/franklintempletoninvestments.png"] {
    height: 100px;
  }
  #companies img[src="assets/images/americancentury.png"] {
    height: 135px;
  }
  #companies > div > div:first-of-type {
    transform: translateY(0);
  }
  #companies > div > div:last-of-type {
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 800px) {
  /* Guide */
  #guide {
    height: 1700px;
    width: calc(100vw - 40px);
    padding: 0 20px;
    max-height: none;
  }
  #guide > div:first-of-type {
    flex-direction: column !important;
    margin-top: 0;
  }
  .guide-block {
    width: 100% !important;
  }
  #guide img {
    width: 100%;
    height: 250px;
  }
  #guide h6 {
    width: 100%;
  }
  section.guide-block:first-of-type {
    margin-bottom: 25px;
  }
  #companies {
    transform: scale(.9) translateY(-75px) !important;
  }

  /* Bio */
  #bio > div {
    flex-direction: column;
  }
  #bio img {
    width: 90%;
    height: 250px;
    object-position: center;
  }
  #bio p {
    width: 90% !important;
    font-size: 18px !important;
    margin-top: 15px;
  }
}

/* Company Logos - Small */
@media (max-width: 700px) {
  #guide {
    height: 1400px;
  }
  #companies {
    height: auto;
    transform: translateY(-80px) !important;
  }
  #companies img {
    height: 28px !important;
  }
  #companies img[src="assets/images/americancentury.png"] {
    height: 90px !important;
  }
  #companies img[src="assets/images/franklintempletoninvestments.png"], #companies img[src="assets/images/invesco.png"] {
    height: 65px !important;
  }
  #companies img[src="assets/images/aig.png"], #companies img[src="assets/images/lincolnfinancialgroup.png"], #companies img[src="assets/svgs/fidelity.svg"] {
    height: 40px !important;
  }
}

/* Mobile */
@media (max-width: 450px) {
  /* How Money Works */
  #howMoneyWorks {
    height: 800px;
    max-height: 1000px;
  }
  #howMoneyWorks h4 {
    font-size: 24px;
  }
  #howMoneyWorks div.grey-block {
    height: 100%;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #howMoneyWorks div.grey-block>div {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
  }
  #howMoneyWorks div.grey-block>div>div {
    margin-top: 35px;
  }
  #howMoneyWorks div.grey-block>div>div>div {
    margin-bottom: 25px;
  }

  /* Bio */
  #bio {
    margin: 25px 0;
    max-height: none;
  }
  #bio img {
    width: 100%;
    height: 200px;
    object-position: center;
  }
  #bio p {
    width: 100%;
    font-size: 16px;
    margin-top: 15px;
    max-height: none;
  }

  /* Footer */
  footer {
    top: 220px;
  }
}