/********************************************
* Initial Loading Overlay
********************************************/

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #252525;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Make sure it sits above everything else */
  opacity: 1;
  transition: opacity 0.8s ease; /* for fade-out */
  /* (1) GPU hint on overlay if it also animates? 
     If you only fade it out, will-change: opacity is enough. */
  will-change: opacity;
}

#loading-text {
  color: #0003;
  font-size: 32px;
  font-family: var(--font-body);
  font-weight: 500;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/********************************************
* Navigation
********************************************/

.navigation {
  position: fixed;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  display: flex;
  gap: 80px;
  z-index: 100;
}

.navigation .nav-item {
  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
  opacity: 0;
  position: relative;
  top: -8px;
  text-decoration: none;
}

.navigation .nav-item:hover {
  opacity: 1;
}

#location-page,
#faqs-page,
#rsvp-page {
  display: none;
  /* pointer-events: none; */
}

/********************************************
* Main Content
********************************************/

.mobile {
  display: none;
}

#landing-page {
  position: relative;
  min-height: 100vh;
}

#mobile-starting-image {
  display: none;
  pointer-events: none;
}

.content-container {
  position: fixed;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  opacity: 0;
  text-align: center;
  z-index: 1;
  font-family: var(--font-header);
}

.content-container h1 {
  font-size: 5.5rem;
  margin: 0;
  padding: 0;
}

.content-container .sub-title-text {
  font-family: var(--font-body);
  font-size: 20px;
  padding-top: 10px;
}

/********************************************
* Location Page
********************************************/

#location-page {
  position: absolute;
  top: 0;
  left: 50px;
  width: 100%;
  min-height: 100vh;
  z-index: 2;
  opacity: 0;
}

#location-page img {
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: opacity;
  filter: brightness(0.5) grayscale(1) saturate(0.3);
}

.location-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  opacity: 1;
  text-align: center;
}

.vertical-line {
  width: 3px;
  height: 150px;
  background-color: white;
  opacity: 1;
}

.location {
  opacity: 0;
}

.location-title {
  font-family: var(--font-header);
  font-size: 64px;
  margin-bottom: 25px;
}

.location-text {
  font-family: var(--font-body);
  font-size: 20px;
  text-wrap: nowrap;
}

.location-text + .location-text {
  margin-top: 14px;
}

.location-text a {
  color: white;
  text-decoration: none;
}

/********************************************
* FAQs Page
********************************************/

#faqs-page {
  position: absolute;
  top: 0;
  left: 50px;
  /* left: 0px; */
  width: 100%;
  min-height: 100vh;
  z-index: 0;
  opacity: 0;
  /* opacity: 1; */
  background-color: #2f2f2f;
  color: white;
  overflow: auto;
}

#faqs-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  opacity: 1;
  width: min(90%, 800px);
  padding-bottom: 200px;
}

#faqs-title {
  font-family: var(--font-header);
  font-size: 64px;
  margin-bottom: 25px;
}

#faqs-container > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-question {
  opacity: 0;
}

.faq-question-header {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.faq-question-header:hover {
  opacity: 0.9;
}

.faq-question-header span:first-child {
  font-weight: 400;
  margin-right: 10px;
}

.faq-answers {
  margin-left: 30px;
  display: none;
  gap: 10px;
  font-size: 18px;
  font-weight: 400;
  flex-direction: column;
}

.faq-question-header.active + .faq-answers {
  display: flex;
}

.faq-answer-header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.faq-text + .faq-text {
  margin-top: 5px;
}

/***************************************************************************************
*
* Mobile Styles
*
***************************************************************************************/

@media only screen and (max-width: 800px) {
  body {
    overflow: auto;
  }

  #location-page,
  #faqs-page,
  #rsvp-page {
    display: block;
    /* pointer-events: none; */
  }

  #loading-overlay {
    display: none;
  }

  .mobile {
    display: block;
  }

  #landing-page {
    min-height: 100vh;
  }

  img#mobile-starting-image {
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: opacity;
    filter: brightness(0.5) grayscale(1) saturate(0.3);
    pointer-events: unset;
    display: block;
  }

  .more-details-text {
    font-size: 14px;
    opacity: 0.6;
    font-family: var(--font-body);
    margin-top: 170px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
  }

  a.rsvp-text {
    font-size: 16px;
    color: white;
    font-family: var(--font-body);
    margin-bottom: 10px;
  }

  .loading-overlay {
    display: none;
    pointer-events: none;
  }

  .navigation {
    display: none;
    pointer-events: none;
  }

  .content-container {
    position: absolute;
    opacity: 1;
    bottom: 20px;
    width: 90%;
  }

  .content-container h1 {
    font-size: 3rem;
  }

  .content-container .sub-title-text {
    font-size: 20px;
    font-family: var(--font-body);
  }

  /********************************************
* Location Page
********************************************/

  #location-page {
    position: relative;
    left: 0;
    min-height: auto;
    opacity: 1;
    padding: 200px 0;
  }

  .location-container {
    flex-direction: column;
    position: relative;
    transform: unset;
    top: unset;
    left: unset;
  }

  .vertical-line {
    display: none;
    pointer-events: none;
  }

  .location {
    opacity: 1;
  }

  .location-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .location-text {
    font-size: 1rem;
    text-wrap: nowrap;
  }

  .location-text + .location-text {
    margin-top: 10px;
  }

  .location-text a {
    color: white;
    text-decoration: none;
  }

  #faqs-page {
    position: relative;
    min-height: auto;
    opacity: 1;
    left: unset;
  }

  #faqs-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    padding: 200px 0;
    margin: 0 auto;
  }

  #faqs-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  #faqs-container > div {
    gap: 10px;
  }

  .faq-question {
    opacity: 1;
  }

  .faq-question-header {
    font-size: 24px;
    font-weight: 500;
  }

  .faq-answers {
    margin-left: 10px;
  }
}
