html {
  scroll-behavior: smooth;
}

h1 {
  font-family: 'Nexa Heavy', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem); /* updated */
  line-height: .5;
  
}

.top-text{
    margin-top: 6vw;
    margin-bottom: 70px;
}

.about{
    background-color: #F6FDBA;
    margin-top: -35px;
    display: flex;
    flex-direction: row;
}

.about-text{
    margin-left: 4vw;
    font-size: clamp(1rem, 2vw, 1.6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.big-tagline{
    margin-left: 7vw;
  
}

.top-desc{
    line-height: .5;
}


#top-small-text {
  margin-left: 7vw;
  font-size: clamp(1rem, 2vw, 1.6rem); /* updated */
}

#register {
  font-size: clamp(1rem, 2vw, 1.5rem); 
  padding: 1vw 1.4vw;
  background-color: #FCC085;
  border-radius: 7px;
  font-family: 'Nexa Heavy', sans-serif;
  position: relative;
  z-index: 1;
  display: inline-block;
  order: 1;

}

#register:hover {
  background-color: #f3a455; /* Darker orange on hover */
  cursor: pointer;
}   

#coderpillar1 {
    position: sticky;
    margin-left: 60vw;   /* Move right a little */
    margin-top: -32vw;   /* Move up a little */
    width: 35vw;
    z-index: -1;
    order: 2;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

#izzie{
    width: 35vw;
    max-width: 450px;
    margin-left: 6vw;
}


#about-desc{
    margin-right: 10vw;
    margin-top: -10px;
}

#about-me-button{
    font-size: clamp(1rem, 2vw, 1.5rem); 
    padding: 1vw 1.4vw;
    background-color: #FCC085;
    border-radius: 7px;
    font-family: 'Nexa Heavy', sans-serif;
    display: inline-block;
    width: auto;           /* Ensure width fits content */
    min-width: 0;          /* Prevents unwanted minimum width */
    max-width: max-content;/* Optional: shrink to fit text */
}

#about-me-button:hover {
  background-color: #f3a455; /* Darker orange on hover */
    cursor: pointer;
}

#upcoming-camps {
  padding: 1rem 5vw;
  background-color: #fefdf6;
}

#upcoming-camps h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #12263A;
  text-transform: lowercase;
}

.camp-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.camp-list {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.camp-card {
  background-color: #CDE4F1;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 6px 6px rgba(0,0,0,0.05);
  margin: 0;
  color: #12263A;
  font-size: 1.1rem;

  line-height: 1.5;
}

.camp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.camp-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: lowercase;
  color: #12263A;
}

.camp-date {
  background-color: #CBF141;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #12263A;
  white-space: nowrap;
}

.camp-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 340px;
}

.camp-image img {
  max-width: 100%;
  width: 400px;
  height: auto;
}

@media (max-width: 700px) {


  
  .cta-stack {
    align-items: center;
  }
  #register {
    display: block;
    margin: 2em auto 2em auto;
    text-align: center;
    order: 1;
  }
  #coderpillar1 {
    display: block;
    margin: 0 auto 1em auto;
    position: static;
    width: 60vw;
    max-width: 260px;
    z-index: 0;
    order: 1;
  }  
  

  .big-tagline {
    display: block;           /* Remove flex */
    justify-content: unset;   /* Remove flex alignment */
    text-align: left;         /* Ensure left alignment */
    margin-left: 0;
  }

  .top-text {
    margin-top: 8vw;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    align-items: center;
    padding: 0 4vw;
    align-items: flex-start !important;
    text-align: left !important;
  }

  h1 {
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    line-height: .01;
  }

  #top-small-text {
    margin-left: 0;
    margin-right: 0;
    font-size: 18px;
    text-align: left;
    padding: 0;
  }

  .top-desc {
    margin-top: 20px !important;
    line-height: .2;
  }

  ul {
    margin-left: 0;
    padding-left: 1.2em;
    font-size: 1em;
    text-align: left;
    margin-bottom: 2em;
  }

  #register {
    order: 2;
    margin-left: 0 !important;
    display: block;
    margin: 2em auto 2em auto;
    font-size: clamp(1.1rem, 5vw, 1.3rem);
    padding: 1em 2em;
    min-width: 60vw;
    border-radius: 2em;
    text-align: center;
    margin-top: 50px; /* Reset for mobile */
  }

  #coderpillar1 {
    position: static;
    margin: -40px;
    width: 60vw;
    max-width: 260px;
    display: block;
    z-index: 0;
    display: flex;
    justify-content: center;
  }

  .big-tagline {
    margin-left: 0;
  }

  .about{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
  }
  
  #about-desc{
    margin-left: 0;
    margin-right: 0;
    margin-top: 15px;
  }

  #izzie{
    width: 54vw;
  }

  .about-text{
    margin-left: 0vw;
    font-size: 18px;
    margin-left: 54px;
    margin-right: 54px;
  }
    #about-me-button{
    margin-left: 0 !important;
    display: block;
    margin: 2em auto 2em auto;
    font-size: clamp(1.1rem, 5vw, 1.3rem);
    padding: 1em 2em;
    min-width: 60vw;
    border-radius: 2em;
    text-align: center;
    margin-top: 10px; /* Reset for mobile */
  }
    .camp-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .camp-list {
    order: 1;
    width: 100%;
    gap: 1.2rem;
  }

  .camp-image {
    margin-top: 2rem;
    text-align: center;
    order: 0;
    width: 100%;
    margin-bottom: 1.5rem;
    align-items: center;
  }

  .camp-image img {
    width: 80%;
    max-width: 400px;
  }

  .camp-card {
    padding: 1.2rem;
  }

  .camp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .camp-header h3 {
    font-size: 1.25rem;
  }

  .camp-date {
    font-size: 0.85rem;
  }

  
}





/* Hide mobile button by default, show desktop button */
#register-mobile { display: none; }
#register-desktop { display: block; }


/* --- Shared Button Styles --- */
.register-btn {
  font-size: clamp(1rem, 2vw, 1.5rem); 
  padding: 1vw 1.4vw;
  background-color: #FCC085;
  border-radius: 7px;
  font-family: 'Nexa Heavy', sans-serif;
  position: relative;
  z-index: 1;
  display: inline-block;
  order: 1;
  margin-top: 3vw;
}

.register-btn:hover {
  background-color: #f3a455;
  cursor: pointer;
}


@media (max-width: 700px) {
  #register-mobile {
    order: 2;
    margin: 2em auto 0 auto;
    font-size: 1.3rem;
    padding: 1em 2em;
    min-width: 60vw;
    max-width: 340px;
    border-radius: 2em;
    text-align: center;
    background-color: #FCC085;
    font-family: 'Nexa Heavy', sans-serif;
    color: #12263A;
    border: none;
    transition: background 0.2s;
    display: block;
  }
  
  #register-mobile:hover {
    background-color: #f3a455; 
    cursor: pointer;
  }

  #register-desktop {
    display: none;
  }
}


/* Sqished text on mobile fix */
@media (max-width: 406px){
  .big-tagline {
    font-size: 1.5rem; /* Adjusted for smaller screens */
    margin-left: 0;
    text-align: center;
  }

  .top-desc {
    font-size: .8rem; /* Adjusted for smaller screens */
  }

  li {
    font-size: .8rem; /* Adjusted for smaller screens */
  }
}

@media(max-width: 325px){
  .big-tagline{
    font-size: 1.2rem; /* Further adjusted for very small screens */
  }
}