/* General Body Styles */
html, body {
  height: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f2f2f2;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
#myNavbar {
  background-color: white !important;
}
#myNavbar a {
  color: #000;
}

@media (max-width: 990px) {
  #navbarSupportedContent .nav-link {
    color: #fff !important;
  }
  #navbarSupportedContent .nav-link:hover {
    color: #ddd !important;
  }
}


/* Header */
header {
  text-align: center;
}

/* Reusable Main Button */
.btn-main {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.btn-main:hover {
  opacity: 0.8;
  color: white;
}

/* Large Button (Bootstrap Override) */
.btn-primary {
  background-color: #000 !important;
  border-color: #000 !important;
  height: 80px;
  width: 400px;
}

/* Main Content Container */
main, .main-content, #idContainer {
  flex: 1;
  display: block;
  width: 100%;
  padding-top: 8vh;
}

/* Loader/Spinner */
#spinner {
  width: 64px;
  height: 64px;
  border: 8px solid;
  border-color: #000 transparent #000 transparent;
  border-radius: 50%;
  animation: spin-anim 1.2s linear infinite;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}
@keyframes spin-anim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  top: 0;
  left: 0;
}
.hidden { display: none; }

/* Legacy modal styles used elsewhere in site */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1;
}
.modal-content {
  position: relative;
  margin: 15% auto;
  padding: 20px;
  width: 50%;
  max-width: 600px;
  background-color: #fff;
  text-align: center;
  border-radius: 10px;
}
.modal-content input {
  padding: 15px;
  width: 80%;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 20px 0;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #aaa;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

/* Centered Content Helper */
.button-container,
.centered-content {
  text-align: center;
  margin-top: 20px;
}

/* Global Footer */
footer {
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: #333;
  color: white;
  margin: 0;
  margin-top: auto;
  border-radius: 0;
}
footer p { margin: 0; padding: 0; }
footer a { color: white; text-decoration: underline; }
footer a:hover { color: #ddd; }

/* Buttons used elsewhere remain consistent */
.btn-main {
  display: inline-block;
  padding: 12px 18px;
  background-color: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  font-weight: 700;
}
.btn-main:hover { transform: translateY(-1px); opacity: 0.92; color: #fff; }

/* ============================= */
/* Kinapod Run waitlist modal (this page) */
/* ============================= */

/* Overlay must be above everything and interactive */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  place-items: center;
  z-index: 10000;
}
.modal-overlay.active { display: grid; }

/* Dialog box */
.modal-dialog {
  width: min(880px, 92vw);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  pointer-events: auto;
  z-index: 10001;
}

/* Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.modal-title { font-weight: 700; margin: 0; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Body */
.modal-body {
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.modal-body input[type="email"] {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}
.error-text { font-size: 12px; color: #b91c1c; display: none; }

/* Utility for locking scroll when open */
body.modal-open { overflow: hidden; }

/* Ensure CTA buttons look clickable even inside modal */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}
.btn-cta:hover { transform: translateY(-1px); opacity: 0.92; color: #fff; }
.btn-ghost { background: #fff; color: #0a0a0a; border: 1px solid rgba(0,0,0,0.1); }

@media (max-width: 900px) {
  .modal-content { width: 90%; }
}

/* Stack features on phones */
@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Optional: 2 columns on small tablets */
@media (min-width: 641px) and (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Animate the Join Waitlist button */
#joinWaitlistBtn {
  position: relative;
  animation: pulseBounce 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(17, 17, 17, 0.6);
}

@keyframes pulseBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.4);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px 6px rgba(17, 17, 17, 0.15);
  }
}

/* Add subtle glowing border for extra emphasis */
#joinWaitlistBtn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(17, 17, 17, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#joinWaitlistBtn:hover::after {
  opacity: 1;
}

/* Kinapod Run nav styles (moved from template) */
.nav-link {
  transition: transform 0.3s;
}
.nav-link:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}
.nav-item.active .nav-link {
  text-decoration: underline;
  transform: scale(1.15);
  transition: transform 0.3s, text-decoration 0.3s;
}

#menulogo {
  height: 60px;
}
.navbar {
  padding: 20px;
  padding-left: 30px;
}
.navbar-nav .nav-item {
  padding: 10px;
}

@media (max-width: 990px) {
  #kinapodImg {
    width: 22vh !important;
  }
  #joinBetaImg {
    width: 25vh !important;
  }
  .navbar {
    margin: 0;
    padding: 20px;
    padding-right: 40px;
    overflow: hidden;
  }
  #menulogo {
    height: 55px;
    margin-left: 15px;
    margin-top: 20px;
  }
  .navbar-collapse {
    position: fixed;
    top: 170px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
    padding-top: 0;
  }
  .navbar-brand {
    top: 0;
    left: 0;
    z-index: 10000;
    display: block;
    width: 75%;
  }
  .navbar-brand img {
    max-width: 100%;
    max-height: 100%;
    display: block;
  }
  .navbar-toggler {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10000;
    width: 15%;
    height: 90px;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    font-size: 36px;
  }
  .navbar-toggler-icon {
    margin-right: 30px;
    margin-top: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
  }
  .navbar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
  }
  .navbar-nav .nav-item {
    width: 100%;
  }
  .navbar-nav .nav-link {
    font-size: 2rem;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #333;
    color: #fff;
    display: block;
    transition: transform 0.3s;
  }
  .nav-link:hover {
    transform: scale(1.1);
  }
  .nav-item.active .nav-link {
    transform: scale(1.1);
    text-decoration: underline;
    transition: transform 0.3s, text-decoration 0.3s;
  }
}

.brand-spacing {
  margin-left: 30px !important;
}
.navbar-brand, .nav-link {
  font-weight: 500;
  font-size: large;
}
.navbar-brand img {
  transition: transform 0.3s ease;
}
.navbar-brand img:hover {
  transform: scale(1.2);
}
