@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf');
  font-style: normal;
}
@font-face {
  font-family: 'PoppinsB';
  src: url('fonts/Poppins-Bold.ttf');
  font-style: normal;
}
@font-face {
  font-family: 'PoppinsSB';
  src: url('fonts/Poppins-SemiBold.ttf');
  font-style: normal;
}
@font-face {
  font-family: 'PoppinsM';
  src: url('fonts/Poppins-Medium.ttf');
  font-style: normal;
}



body{
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F9F0E3;
    overflow-x: hidden;
}
main {
    align-self: flex-start;
    width: 100%;
}

body #header {
    align-self: stretch;
    z-index: 25;
}
#header{
    background: #8da683;
    z-index: 10;
    position: relative;
}
#header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
    z-index: -1;
}
#navbarRoot{
    position: relative;
    z-index: 2;
    container-type: inline-size;
}
#navbar
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#navbar a {
    text-decoration: none;
}
#nav-left {
    flex: 0 0 auto;
    padding: .75rem;
    padding-left: 3rem;
}
#logo{
    height: 3rem;
    width: auto;
}



#otherPages{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navItems{
    white-space: nowrap;
    font-family:'PoppinsB', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    color: #fffdfa;
    font-size: 1.2rem;
    cursor:pointer;
    text-decoration: none;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; 
}
.navItems:hover{
    color: rgb(234, 229, 229);
    transition: color .4s ease;
}



.episodesText {
    padding-top: 2rem;
    text-align: center;
    align-self: flex-start;
    font-size: 35px;
    font-weight: bold;
    font-family:'Nunito Sans', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-weight:870;
}





#meetingAnimationContainer {
  text-align: center;
  margin-top: 3rem;
  position: relative;
}



#meeting-question-container {
  font-family:'PoppinsM', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-top: 3rem;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: -1.49em; 
}

#step1,
#meeting-question {
  margin: 1rem auto;
  margin-bottom: -6em;   
  padding: 0;          
  text-align: center;
  font-size: 2.5rem;
  line-height: 1.2;
}
#meeting-question::after {
  content: '|';
  animation: blink 0.7s infinite;
  margin-left: 5px;
  color: #555;
  display: var(--hide-cursor, inline);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
#cursor {
  display: inline-block;
  color: #8da683;
  animation: blink 0.8s step-end infinite;
}



#step2 img{
    margin-top:0em;
    height: 16rem;
    transition: opacity 1.2s ease, transform 1.2s ease;

}
.digital-clock {
  background: #111;
  padding: 1.5rem 2.5rem;
  border-radius: 10px;
  border: 5px solid #797a79;
  display: inline-block;
  margin-top: -12em;
}
.digital-text {
  font-family: 'Courier New', Courier, 'Lucida Console', monospace;
  color: #39ff14;
  font-weight: bold;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px #39ff14;
}
.alarm-icon {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

.alarm-time {
  font-size: 1.8rem;
  font-weight: bold;
  color: #8da683;
}

.calendar-note.final-calendar {
  opacity: 0;
  transform: scale(0.1) translateY(-200px);
  transition: transform 1s ease-out, opacity 1s ease-out;
  pointer-events: none;
  position: relative;
  z-index: 10;
  margin-top: -15em;
}
.calendar-note.final-calendar.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.flame-emoji {
  font-size: 17rem;
  text-align: center;
  animation: wiggle 1s infinite ease-in-out;
  position: absolute; 
  top: -25%;
  left: 42%;
  transform: translateX(-50%);
  z-index: 0;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1deg); }
  75% { transform: rotate(-1deg); }
}
.calendar-note.visible .blast-effect {
  transform: translate(-50%, -50%) scale(1);
}
.sticky-note {
  background: #fff9b1;
  color: #333;
  font-family:'PoppinsM', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 1.2rem;
  padding: 1.25rem 1.5rem;
  max-width: 360px;
  margin: 2rem auto;
  border-radius: 6px;
  box-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.2),
    inset -5px -5px 10px rgba(255, 255, 255, 0.3);
  transform: rotate(-2deg);
  position: relative;
  transition: transform 0.3s ease;
}
.sticky-note p strong{
  font-family:'PoppinsB', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
.sticky-note:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.25),
    inset -5px -5px 10px rgba(255, 255, 255, 0.3);
}
.hidden {
  opacity: 0;
  transform: scale(0.1) translateY(-200px);
  pointer-events: none;
}
.animation-step {
  font-size: 2rem;
  position: absolute;
  width: 100%;
  top: 30%; 
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}



#step2,
#step3 {
  opacity: 0;
  transform: translateX(0); /* start from correct position */
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none; 
  position: relative;
}

#step2.visible,
#step3.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#step2.exiting,
#step3.exiting {
  opacity: 0;
  transform: translateX(100px); 
}







#featuredArtHeader{
  margin-top: 5rem;
}
.imageGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.imageGrid a{
    text-decoration: none;
}
.imageItem {
  overflow: hidden;
  background-color: #fffdfa;
  transition: transform 0.3s ease;
}

.imageItem img {
  width: 100%;
  aspect-ratio: 16 / 9; 
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.imageItem:hover img {
  transform: scale(1.05);
}

.imageMeta {
  text-align: center;
  margin-top: 0.5rem;
  font-family:'PoppinsB', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  text-decoration: none;
}

.imageMeta .title {
  font-weight: bold;
  color: #111;
  margin: 0;
}

.imageMeta .date {
  font-size: 0.85rem;
  color: #666;
  margin: 0.2rem 0 0;
  padding-bottom: .25em;
  font-family:'PoppinsSB', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}



.reveal-button,
.close-button {
  display: block;
  width: calc(100% - 4rem);
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  font-family:'PoppinsM', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background-image: url('images/');
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 1rem;
  transition: transform 0.3s;
}

.reveal-button:hover,
.close-button:hover {
  transform: scale(1.01);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 2rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 1s ease, opacity 1s ease;
}

.image-grid.show {
  max-height: 2000px;
  opacity: 1;
  pointer-events: auto;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.image-grid img:hover {
  transform: scale(1.01);
}

.reveal-button{
  background-image: url("images/bannerSeeMore.jpg");
}
#revealBtn2{
  background-image: url("images/forestBannerSeeMore.jpg");
  color: rgb(219, 169, 7);
}
.close-button {
  background: linear-gradient(135deg, #a50909, #e14444);
}

.hidden{
  display: none;
}



#featuredPoemHeader{
  margin-top: 10rem;
}

.poemGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0em;
  margin-top: 2em;
  margin-right: 1em;
}
.poem-grid.show {
  max-height: 2000px;
  opacity: 1;
  pointer-events: auto;
}
.poem-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0em;
  margin-top: 2em;
  margin-right: 1em;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 1s ease, opacity 1s ease;
}

.poem-card {
  background: #fff8dc;
  border: 1px solid #ddd;
  padding: 1em;
  margin-left: 2em;
  margin-bottom: 2em;
  margin-right: 1em;
  border-radius: 0.75em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
  font-family:"Times New Roman", Times, serif, 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
.poem-card:hover {
  transform: scale(1.02);
}

.poem-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 2em 4em;
  max-width: 600px;
  width: calc(100% - 8em); /* 4em left/right margin */
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 1em;
  position: relative;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  font-family:"Times New Roman", Times, serif, 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.close-btn {
  position: absolute;
  top: 1em;
  right: 1em;
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #444;
}



.ctaSideTab {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1000;
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  backdrop-filter: blur(10px);
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 4px 0 10px rgba(0,0,0,0.2);
  padding: 1rem 0.5rem;
  transition: left 0.3s ease;
}

.ctaSideTab:hover {
  left: 0;
}

.ctaSideContent {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.ctaSideBtn {
  background: rgba(255, 255, 255, 0.9);
  color: #2e2e2e;
  padding: 0.6rem 1.2rem;
  border-radius: 999px 0 0 999px;
  text-decoration: none;
  font-family:'PoppinsB', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6),
              0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.ctaSideBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.2)
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.ctaSideBtn:hover::before {
  left: 125%;
}

.ctaSideBtn:hover {
  transform: translateX(5px);
  background-color: white;
}











@media (max-width: 500px) {
    #navbar {
        flex-direction: column;
        gap: 1rem;
  }
}

@media (max-width: 1120px) {
#otherPages {
    position: static;
    transform: none;  
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 900px) {
  .navItems{
      white-space: nowrap;
      color: #fffdfa;
      font-size: 1rem;
      cursor:pointer;
      text-decoration: none;
      padding: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1; 
  }
}
@media (max-width: 900px) {
  .imageGrid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem;
    gap: 1.5rem;
  }
}

@media (max-width: 820px) {
  #navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
  }

  #otherPages {
    position: static; 
    transform: none;  
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  a.navItems {
    padding: 0.5rem 0;
    width: 100%;
  }

  #nav-left {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-bottom: -1rem;     
  }
}
@media (max-width: 600px) {
  .ctaBtn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #meeting-question-container,
  #step1,
  #meeting-question {
    font-size: 1.5rem; 
    white-space: normal; 
    margin-bottom: -2em; 
    line-height: 1.3;
  }

  #step2 img {
    height: 16rem;
    margin-top: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
  }

  .digital-clock {
    padding: 1rem 1.5rem;
    border-width: 3px;
    margin-top: -19em; 
  }
  .digital-text {
    font-size: 1.2rem;
  }
  .alarm-icon {
    width: 50px;
    margin-bottom: 0.5rem;
  }
  .alarm-time {
    font-size: 1.2rem;
  }

  .calendar-note.final-calendar {
    margin-top: -14.5em;
  }
  .flame-emoji {
    font-size: 16rem;
    top: -42%;
    left: 0%;
    text-align: center;
  }

  .sticky-note {
    max-width: 280px;
    font-size: .9rem;
    margin: 1rem auto;
    padding: 1rem 1.2rem;
  }

  .animation-step {
    top: 25%;
    font-size: 1.3rem;
  }

  #meetingAnimationContainer {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }


  #featuredPoemHeader{
    margin-left: 1em;
    margin-right: 1em;
  }


  .poemGrid,
  .poem-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-right: 0;
    margin-left: 0;
    padding: 0 1rem; 
  }
  .poem-grid.show {
    max-height: 70vh; 
    overflow-y: auto;
    grid-template-columns: 1fr;
  }

  .poem-card {
    margin: 0 0 1.5rem 0;
    padding: 0.8em;
    font-size: 0.9rem;
  }


  .modal-content {
    padding: 1.2rem 1.5rem;
    width: calc(100% - 5em);
    font-size: 1rem;
    max-height: 90vh;
    border-radius: 0.6rem;
  }
  
  .reveal-button{
    font-weight: bolder;
    -webkit-text-stroke: .2px rgb(66, 66, 66); 
    text-stroke: .2px black;
  }
  .close-btn {
    position: absolute;
    top: 0;
    font-size: 1.4rem;
    top: 0.6rem;
    right: 0.6rem;
  }


  .imageGrid {
    grid-template-columns: 1fr !important;
    padding: 1rem;
    gap: 1rem;
    margin-bottom: 0em;
  }
  .imageItem {
    border-radius: 0.3rem;
  }
  .imageItem img {
    aspect-ratio: auto; 
    max-height: 250px;  
  }

  .image-grid.show {
    max-height: 70vh; 
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto; 
  }



  .ctaSideTab {
    position: fixed;
    top: 42%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    backdrop-filter: blur(10px);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
    padding: 1rem 0.5rem;
    width: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
  }

  .ctaSideTab.collapsed {
    width: 3.5rem;
    padding: 0.5rem 0.3rem;
    overflow: hidden;
  }

  .ctaSideTab.collapsed .ctaSideContent {
    display: none;
  }

  .ctaSideTab.expanded {
    width: auto;
    padding: 1rem 0.5rem;
  }

  .ctaSideContent {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    margin-left: 0.5rem;
  }

  .ctaSideTab .arrow {
    font-size: 1.5rem;
    color: #2e2e2e;
    transition: transform 0.3s ease;
    user-select: none;
    flex-shrink: 0;
  }

  .ctaSideTab.expanded .arrow {
    transform: rotate(90deg);
  }

  .ctaSideBtn {
    background: rgba(255, 255, 255, 0.9);
    color: #2e2e2e;
    padding: 0.6rem 1.2rem;
    border-radius: 999px 0 0 999px;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6),
                0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
  }

  .ctaSideBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.2)
    );
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
  }

  .ctaSideBtn:hover::before {
    left: 125%;
  }

  .ctaSideBtn:hover {
    transform: translateX(5px);
    background-color: white;
  }
}


