html, body {
    height: 100000vh;
    background-color: black;
    overflow-y: scroll;
    overflow-x: hidden;
    font-family: 'Matter Regular', sans-serif;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar-thumb, *::-webkit-scrollbar {
  display: none;
  -webkit-appearance:none;
  height: 0;
  width: 0;
  background: transparent;
}

/* Loader styling */
#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Ensure it's on top */
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    opacity: 1; /* Start fully visible */
    transition: opacity 0.5s ease; /* Add transition for fade-out */
}

#loader img {
    width: 300px;
}

/* Hide the loader when not needed */
.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /*transition: opacity 0.5s ease;*/
}

#s1,
#s1Loop,
#t2,
#s2,
#t3,
#s3,
#s3Loop,
#t4,
#s4,
#s4b,
#t5,
#s5,
#s6,
#outcomes,
#video5 {
    opacity: 0;
}

.text-container-1,
.text-container-2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2; /* Ensure it appears above the videos */
}

h1 {
    color: white;
    font-size: 5em;
    font-family: 'Poppins Medium';
    text-align: center;
    opacity: 0; /* Initially hidden */
    margin: 0;
}

.scroll-marker {
    position: fixed;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease;
    z-index: 3; /* Ensure it appears above the videos */
    border: 20px solid transparent;
}

.waitlist-background {
    height: 100vh;
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to top, #BCBCBC, #F5F5F5);
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    opacity: 0;
}

.waitlist-background h1 {
    color: black;
    text-align: center;
    opacity: 1;
}

.waitlist {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

.title {
    font-family: 'Poppins Medium', sans-serif;
    font-size: 2.3rem;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 20px 20px;
}

.left-section,
.right-section {
    width: 100%;
    padding: 0;
    text-align: center;
    margin-bottom: 20px;
}

.main-text {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.privacy-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.waitlist-form input,
.waitlist-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-family: 'Matter Regular', sans-serif;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    background-color: #FFFFFF;
    color: #333333;
    box-sizing: border-box;
    appearance: none;
}

.waitlist-form select {
    color: #333333;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333333"><path d="M7 10l5 5 5-5H7z"/></svg>'); /* Custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.waitlist-form select option {
    font-family: 'Matter Regular', sans-serif;
    color: #333333;
}

/* Style the placeholder ("Phone Model") to match the form entry text */
.waitlist-form select option[value=""][disabled] {
    color: #666666;
}

.join-button {
    background-color: #FFFF00;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #000000;
}

.join-button:hover {
    background-color: #F6F634;
}

.pinnacle-logo {
    position: static; /* Change position to static */
    margin-top: 0px;
    width: 150px;
    text-align: center;
}

.footer-text {
    position: static; /* Change position to static */
    margin-top: 20px; /* Add margin to create space between elements */
    font-size: 0.8rem;
    text-align: center;
    color: #888888;
}

@media (max-height: 400px) {
  .title {
    display: none;
  }

  .privacy-text {
      display: none;
  }

  .main-text {
    display: none;
  }

  .waitlist-form {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 300px;
      margin-top: 0px;
      margin-bottom: 0px;
      padding: 0px;
      padding-bottom: 2px;
  }
  .waitlist-form input,
  .waitlist-form select {
      width: 100%;
      padding: 10px;
      margin-bottom: 10px;
      font-size: 1rem;
      font-family: 'Matter Regular', sans-serif;
      border: 1px solid #CCCCCC;
      border-radius: 5px;
      background-color: #FFFFFF;
      color: #333333;
      box-sizing: border-box;
      appearance: none;
  }
  .join-button {
      background-color: #FFFF00;
      padding: 10px;
      font-size: 1rem;
      font-weight: bold;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      color: #000000;
  }

  .pinnacle-logo {
    display: none;
  }

  .footer-text {
    display: none;
  }
}
@media (min-width: 768px) {
    .title {
        font-family: 'Poppins Medium', sans-serif;
        font-size: 3.5rem;
        margin-top: 0px;
        margin-bottom: 100px;
        text-align: center;
    }


    .content-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        margin: 60px 60px 120px;
    }

    .main-text {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 40px;
    }

    .privacy-text {
        font-size: 1.0rem;
        line-height: 1.3;
    }

    .left-section,
    .right-section {
        width: 50%;
        padding: 0 10px;
        text-align: left;
        margin-bottom: 0; /* Ensure no extra margin in desktop view */
    }

    .pinnacle-logo {
        position: absolute; /* Revert back to absolute */
        left: 80px;
        bottom: 60px;
        width: 200px;
        text-align: right;
        margin-top: 0; /* Remove margin for desktop view */
    }

    .footer-text {
        position: absolute; /* Revert back to absolute */
        right: 80px;
        bottom: 60px;
        text-align: right;
        margin-top: 0; /* Remove margin for desktop view */
    }
}
