/* html {
    scroll-behavior: smooth; 
} */

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background-color: #f8f8f8;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay {
  animation: fadeIn 1s ease-out 0.5s forwards; /* Delayed start */
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="fade-up"].in-viewport {
  opacity: 1;
  transform: translateY(0);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo p {
  margin: 0;
  font-size: 30px;
  margin-left: 10px;
  color: #333;
}

nav .nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav .nav-links li {
  margin-right: 50px;
}

nav .nav-links li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}

nav .nav-links li a:hover {
  color: #007aff;
}

.home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
  text-align: center;
  margin: 0;
  padding: 0;
}

.title {
  font-size: 15rem;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: #333;
}

.highlight {
  color: #007aff;
  font-size: 20rem;
}

.quote {
  font-size: 30px;
  color: #666;
  margin-top: 10px;
}

.mission {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50vh; /* Half the screen height */
  padding: 2rem;
  background-color: rgb(33, 57, 90);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for separation */
}

/* Left side (title) */
.mission-left {
  flex: 1;
  text-align: left;
  padding-left: 3rem;
}

.mission-left h1 {
  font-size: 5rem; /* Adjust title size */
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  color: white;
}

/* Right side (content) */
.mission-right {
  flex: 2;
  padding-right: 3rem;
  text-align: justify;
}

.mission-right p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin: 0;
  color: white;
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50vh; /* Half the screen height */
  padding: 2rem;
  background-color: #f4f4f4; /* Light grey background */
  color: #007aff; /* Sky blue text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for separation */
}

/* Left side (images) */
.about-left {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 2px; /* Space between the images */
  padding-left: 5rem;
}

/* Right side (title) */
.about-right {
  flex: 1;
  text-align: right; /* Align title to the right */
  padding-right: 5rem;
}

.about-right h1 {
  font-size: 5rem; /* Adjust title size */
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  color: 007aff; /* Sky blue text color */
}

/* Image boxes */
.image-box {
  width: 40%;
  text-align: center;
  background-color: #fff; /* White background for image boxes */
  border: 2px solid #007aff; /* Sky blue border */
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.image-box img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
}

.image-box p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: black; /* Sky blue text color */
}

.register,
#register {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f0f0f0;
  text-align: center;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

#register-header {
  font-size: 4rem;
  margin-top: 150px;
  color: #007aff;
  margin-bottom: 25px;
}

.intro-text {
  max-width: 800px;
  margin: 20px;
  font-size: 1.25rem;
  color: #555;
}

.course-register {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns of equal width */
  gap: 20px; /* Space between the columns */
  width: 90%;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 50px;
}

.available-courses,
.sign-up {
  overflow: auto; /* Ensure content scrolls if it overflows */
  max-height: 600px; /* Limit height */
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

#available-courses-header,
#sign-up-header {
  font-size: 2rem;
  color: #333;
}

.available-courses-table,
.upcoming-table {
  width: 100%;
  border-collapse: collapse;
}

.available-courses-table th,
.available-courses-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.available-courses-table th {
  background-color: #f2f2f2;
  /* position: sticky; Keep header visible during scroll */
  top: 0;
  z-index: 1;
}
@media screen and (max-width: 1000px) {
  .course-register {
    grid-template-columns: 1fr; /* Stack columns vertically */
    width: 95%; /* Increase width slightly */
    margin: 0 auto; /* Center the grid */
    gap: 30px; /* Increase gap between columns */
  }

  .available-courses,
  .sign-up {
    width: 100%; /* Full width */
    max-width: none; /* Remove max-width constraint */
    margin: 0; /* Remove any margins */
    padding: 20px; /* Consistent padding */
    box-sizing: border-box; /* Include padding in width calculation */
  }

  .course-register table {
    width: 100%; /* Ensure table takes full width */
    font-size: 0.9rem; /* Slightly smaller font for mobile */
  }

  .sign-up-page {
    width: 100%; /* Full width */
    padding: 0 15px; /* Add some side padding */
  }

  .name-section input,
  .email-section input {
    width: 100%; /* Full width inputs */
    max-width: none; /* Remove max-width */
  }

  #spots-remaining {
    text-align: center; /* Center the spots remaining text */
    width: 100%; /* Full width */
    margin-top: 15px; /* Add some margin */
  }
}

#winter-session-table-row li {
  text-align: left;
  vertical-align: top;
}

.sign-up-page {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  width: 100%;
  margin-top: 50px;
}

.name-section,
.email-section {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name-section label,
.email-section label {
  font-size: 1.25rem;
  margin-bottom: 5px;
  text-align: left;
  width: 100%;
  max-width: 400px;
  margin-left: 0;
}

.name-section input,
.email-section input {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.button-section {
  display: flex;
  justify-content: center;
}

.email-section input {
  margin-bottom: none;
  padding-bottom: none;
}

#submit {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-family: "Space Grotesk";
  margin-bottom: 25px;
}

#submit {
  background-color: rgb(128, 224, 154);
  color: white;
}

#submit:hover {
  background-color: rgb(107, 189, 127);
}

.contact {
  background-color: rgb(33, 57, 90);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.contact-container {
  max-width: 800px;
  width: 100%;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.contact p {
  font-size: 1.25rem;
  padding-bottom: 50px;
  text-align: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.contact label {
  text-align: left;
  font-size: 1.25rem;
  width: 100%;
}

.contact input,
.contact textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1.25rem;
  resize: vertical;
  max-height: 300px;
  min-height: 25px;
}

.contact button {
  padding: 12px 24px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.25rem;
  cursor: pointer;
  margin-top: 10px;
  font-family: "Space Grotesk";
}

.contact button:hover {
  background-color: #005bb5;
}

.contact p {
  margin-bottom: 10px;
}

#alert-text {
  color: green;
  margin-top: -40px;
}

.course-info {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  min-height: 100vh;
  background-color: rgb(33, 57, 90);
  color: white;
  padding: 20px;
  box-sizing: border-box;
}

.next-session,
.requirements {
  background-color: rgb(39, 69, 110);
  width: 45%; /* Reduced width to prevent overflow */
  height: 600px;
  max-height: 70vh; /* Limit height */
  margin-top: auto;
  margin-bottom: auto;
  border-radius: 25px;
  text-align: center;
  padding: 15px;
  overflow-y: auto; /* Add scrollbar if content overflows */
  box-sizing: border-box;
  font-size: large;
}

.upcoming-row-winter {
  color: rgb(158, 219, 243);
  text-decoration: underline;
}

.upcoming-table th,
.upcoming-table td {
  padding: 20px 10px;
  text-align: center;
}

.upcoming-table ul {
  padding-left: 20px;
}

.requirements li {
  margin: 3em;
  text-align: left;
  padding-left: 20px;
}

.next-session h1 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.requirements h1 {
  font-size: 2.5rem;
  margin-bottom: 70px;
}

.requirements h4 {
  margin-top: 6.9rem;
  margin-bottom: 0;
}

.requirements li a {
  color: skyblue;
}

/* Base styles already defined */

/* Responsive Layout */
@media (max-width: 1000px) {
  .logo {
    margin-bottom: 10px;
  }

  nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  nav .nav-links li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .title {
    font-size: 8rem;
  }

  .highlight {
    font-size: 10rem;
  }

  .quote {
    font-size: 20px;
  }

  .mission,
  .about,
  .course-info,
  .register,
  .contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-info {
    flex-direction: column;
    align-items: center;
  }

  .mission-left,
  .about-left,
  .mission-right,
  .about-right {
    padding: 1rem;
  }

  .mission-left h1,
  .about-right h1 {
    font-size: 2.5rem;
  }

  .mission-right p,
  .about-right p {
    font-size: 1rem;
  }

  .course-register {
    flex-direction: column;
  }

  .available-courses-table,
  .upcoming-table {
    font-size: 0.8rem;
    width: 100%;
  }

  .sign-up {
    width: 100%;
  }

  .sign-up-page {
    padding: 1rem;
  }

  input,
  textarea,
  button {
    width: 100%;
    margin-bottom: 1rem;
  }

  .next-session,
  .requirements {
    width: 90%;
    margin: 20px 0;
  }

  .requirements li {
    margin: 1em 0;
    padding-left: 10px;
  }
}

#spots-remaining {
  margin-top: 0px;
}

@media (max-width: 600px) {
  .title {
    font-size: 6rem;
  }

  .highlight {
    font-size: 8rem;
  }

  .quote {
    font-size: 16px;
  }

  nav .nav-links li a {
    font-size: 16px;
  }

  .mission-left h1,
  .about-right h1 {
    font-size: 2rem;
  }

  .mission-right p,
  .about-right p {
    font-size: 0.9rem;
  }

  .available-courses-table,
  .upcoming-table {
    font-size: 0.7rem;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.4s;
}

.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  background-color: #f8f8f8;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  z-index: 1100;
}

.mobile-sidebar.open {
  right: 0;
}

.sidebar-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  padding: 60px 20px 0;
  margin: 0;
}

.mobile-nav ul li {
  margin-bottom: 15px;
}

.mobile-nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
  color: #007aff;
}

@media screen and (max-width: 1000px) {
  .header {
    display: flex;
  }

  .logo {
    flex-grow: 1;
  }
  .header nav .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-sidebar {
    display: block;
  }
}

.popup .overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
  display: none;
}

.popup .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #fff;
  width: 450px;
  height: 220px;
  z-index: 2;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.popup .close-btn {
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  background-color: #222;
  color: #fff;
  font-size: 25px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
}

.popup.active .overlay {
  display: block;
}

.popup.popup.active {
  transition: all 300ms ease-in-out;
  transform: translate(-50%, -50%) scale(0);
}
