@import url(./global.css);

#home-page__body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

main {
  margin-top: auto;
  margin-bottom: auto;
}

.main__hero {
  font-family: 'Clash Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue';
  font-weight: 300;
}

.hero-video-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__primary {
  font-size: 14rem;
  line-height: 0.6;
  margin-bottom: 2rem;
}

.hero__secondary {
  color: var(--brand-brown);
  font-size: 4.2rem;
  margin-bottom: 1rem;
}

.hero__tertiary {
  font-size: 1.7rem;
}

#equals-sign {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

.main__video {
  width: fit-content;
  border: 2px solid black;
  margin-right: 0px;
  margin-left: auto;
}

.video__vid {
  width: 30rem;
  max-width: 100%;
}

/* POLICY BANNER */

.policy-banner {
  position: absolute;
  display: flex;
  flex-direction: column;
  font-family: 'IBM Plex Sans';
  background-color: black;
  padding: 3rem 3rem;
  margin: 0px auto;
  width: 90vw;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3rem;
  border-radius: 10px;
  z-index: 3;
  animation: BANNER 0.9s ease 0.3s forwards;
  box-shadow: 0px 0px 50px 10px var(--soft-grey);
}

.policy-banner--out {
  position: absolute;
  display: flex;
  flex-direction: column;
  font-family: 'IBM Plex Sans';
  background-color: black;
  padding: 3rem 3rem;
  margin: 0px auto;
  width: 90vw;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  z-index: 3;
  bottom: 6rem;
  box-shadow: 0px 0px 50px 10px var(--soft-grey);
  animation: BANNEROUT 0.5s ease forwards;
}

/* HAD TO BE ADDED BECAUSE ANIMATION KEPT RETAINING "display: flex" PROPERTY */
.policy-banner--nonexistent {
  display: none;
}

.policy-banner__text {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 2rem;
}

.policy-banner__clickables {
  display: flex;
  align-items: center;
}

.policy-banner__btn {
  appearance: none;
  padding: 1rem 3rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: 'IBM Plex Sans';
  font-size: 1.5rem;
  transition: 0.3s ease;
  cursor: pointer;
  margin-right: 2.5rem;
}

.policy-banner__btn:active {
  transform: scale(0.8);
}

.agree-btn {
  background-color: var(--body-bg);
}

.agree-btn:hover {
  background-color: var(--body-bg-darker);
}

.disagree-btn {
  text-align: center;
  background-color: rgba(255, 247, 241, 0.4);
  color: white;
}

.policy-banner__btn:hover #btn-text-a {
  transform: scale(0.9);
}

#tc-link {
  color: white;
  text-decoration: underline;
  font-size: 1rem;
}

/* ANIMATIONS */

@keyframes BANNER {
  0% {
    opacity: 0;
    bottom: 1rem;
  }
  100% {
    opacity: 1;
    bottom: 3rem;
  }
}

@keyframes BANNEROUT {
  0% {
    opacity: 1;
    bottom: 3rem;
  }

  100% {
    opacity: 0.5;
    bottom: -70vh;
  }
}

/* MEDIA QUERIES */

@media (max-width: 960px) {
  .hero__primary {
    font-size: 12rem;
    line-height: 0.5;
    margin-bottom: 1.9rem;
  }
  .hero__secondary {
    font-size: 3.6rem;
    margin-bottom: 0.6rem;
  }

  .hero__tertiary {
    font-size: 1.5rem;
  }
  .video__vid {
    width: 25rem;
  }

  .policy-banner,
  .policy-banner--out {
    padding: 2rem;
  }

  .policy-banner__text {
    font-size: 1.3rem;
  }

  .policy-banner__btn {
    padding: 0.9rem 2.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: 'IBM Plex Sans';
    font-size: 1.1rem;
    transition: 0.3s ease;
    cursor: pointer;
    margin-right: 1.5rem;
  }

  #tc-link {
    font-size: 1.2rem;
  }
}

@media (max-width: 727px) {
  .hero__primary {
    font-size: 10rem;
    line-height: 0.5;
    margin-bottom: 1.9rem;
  }
  .hero__secondary {
    font-size: 2.9rem;
    margin-bottom: 0.6rem;
  }

  .hero__tertiary {
    font-size: 1rem;
  }
  .video__vid {
    width: 20rem;
  }
}

@media (max-width: 600px) {
  .hero-video-flex {
    flex-direction: column;
    padding: 1.4rem 3rem;
    align-items: initial;
  }

  .hero__primary {
    font-size: 18.7rem;
    margin-top: 13rem;
    letter-spacing: 0.01rem;
  }

  .hero__secondary {
    font-size: 6rem;
    margin-top: 1rem;
  }

  .hero__tertiary {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .main__video {
    margin-bottom: 5rem;
  }

  .video__vid {
    width: auto;
  }

  .policy-banner__text {
    font-size: 1.5rem;
    text-align: center;
  }

  .policy-banner__clickables {
    flex-direction: column;
  }

  .policy-banner__btn {
    padding: 1.2rem 2.6rem;
    font-size: 1.4rem;
    width: 80%;
    margin-bottom: 1.5rem;
    margin-right: 0px;
  }

  /* DIFFERENT ANIMATION FOR SMALLER SCREENS */
  @keyframes BANNEROUT {
    0% {
      opacity: 1;
      bottom: 3rem;
    }
    100% {
      opacity: 0.5;
      bottom: -70vh;
    }
  }
}

@media (max-width: 486px) {
  .hero-video-flex {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero__primary {
    font-size: 16rem;
    margin-top: 10rem;
    letter-spacing: 0.01rem;
  }

  .hero__secondary {
    font-size: 4.2rem;
    margin-top: 2rem;
  }

  .hero__tertiary {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .main__video {
    margin-bottom: 5rem;
  }

  .video__vid {
    width: auto;
  }
}

@media (max-width: 365px) {
  .hero__primary {
    font-size: 14rem;
    margin-top: 10rem;
    letter-spacing: 0.01rem;
  }

  .hero__secondary {
    font-size: 3.9rem;
    margin-top: 2rem;
  }

  .hero__tertiary {
    font-size: 1.6rem;
    margin-bottom: 3rem;
  }
}
