/* CSS for the Nat Geo Kids Expanded LP */

.nkdButton {
  transform: scale(1);
  transition: background-color 0.2s ease-in, transform 0.2s ease-in;
}
.nlkButton {
  transform: scale(1);
  transition: background-color 0.2s ease-in, transform 0.2s ease-in;
}

.nkdButton:hover {
  background-color: #ffcc00 !important;
  color: #000 !important;
}
.nlkButton:hover {
  background-color: #ffcc00 !important;
  color: #000 !important;
}

@media screen and (max-width: 1240px) {
    .generalInfo {
        display: block !important;
    }
    .cautionBox {
        display: block;
        margin-top: 20px !important;
    }
    #offerWrapper {
        display: inline-grid !important;
    }
    #desktopOffer_nkdCTA {
      margin: 0 auto 20px auto !important;
    }
}
@media screen and (max-width: 1120px) {
    .generalInfo {
        display: block !important;
    }
    .GeneralContainer {
        padding: 16px 0 60px !important;
    }
}

@media screen and (max-width: 899px) {
  #heroWrapper {
    flex-direction: column;
    height: auto !important;
    padding: 40px 20px !important;
  }
  #heroCopy {
    max-width: 100% !important;
    padding: 0 20px !important;
  }
  .heroImage {
    order: -1;          
    width: 100%;
  }
  .contentCollage_desktop {
    display: none !important;
  }
  .contentCollage_mobile {
    display: block !important;
  }
}

@media screen and (max-width: 767px) {
    #splashSection {
        margin-top: -10px !important;
    }
}

@media screen and (min-width: 676px) {
  .mobileOfferButton {
    display: none;
  }
}

@media screen and (max-width: 675px) {
    #nkdOfferWrapper {
        display: inline-grid !important;
        width: 100% !important;
    }
    #nlkOfferWrapper {
        display: inline-grid !important;
        width: 100% !important;
    }
    .offerCard_mobile {
      height: 525px !important;
    }
    .desktopOfferButton {
      display: none;
      width: 100% !important;
    }
    #desktopOffer_nkdCTA {
      display: none !important;
    }
    #desktopOffer_nlkCTA {
      display: none !important;
    }
}

@media screen and (max-width: 500px) {
    #navbarContent {
        display: block !important;
    }
    #navbarLogo {
        display: block !important;
        margin: 10px auto 10px auto;
    }
    #navbarButtons {
        display: block !important;
        margin: 15px auto 10px auto !important;
    }
     #splashSection {
        margin-top: 75px !important;
    }
    .heroHeader {
        font-size: 48px !important;
    }
    .splashButton {
        font-size: 14px !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    .mobileSplash {
        padding: 30px 0px 60px 0px;
    }
    .mobileSection {
        padding: 60px 20px; 
    }
    .cautionBox {
        padding: 0px 10px 36px 10px !important;
    }
    #sideEffects {
      font-size: 30px;
    }
}
@media screen and (max-width: 450px) {
    #splashButtons {
        display: block !important;
    }
    #nkd_splashButton {
      margin-bottom: 30px;
    }
    .splashButton {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }
  }

/* --- end general styles --- */
/* ---------- ROTATING TEXT STYLES ---------- */

.rotator {
  position: relative;
  display: flex;
  flex-wrap: wrap;            /* button drops below only on very narrow screens */
  align-items: center;
  gap: 0.75rem;
}

.rotator__heading {
  margin: 0;
font-size: 24px;
	color: #fff;
}

/* ---------- Rotating words (8 words x 4s = 32s loop) ---------- */
.rotator__words {
  display: inline-grid;       /* words stack in one cell, so there's no layout shift */
	text-decoration: underline;
	text-decoration-color: #ffcc00;
}

.rotator__word {
  grid-area: 1 / 1;
  opacity: 0;
  animation: rotator-cycle 24s infinite;
	color: #ffcc00;
}
.rotator__word:nth-child(2) { animation-delay: 3s; }
.rotator__word:nth-child(3) { animation-delay: 6s; }
.rotator__word:nth-child(4) { animation-delay: 9s; }
.rotator__word:nth-child(5) { animation-delay: 12s; }
.rotator__word:nth-child(6) { animation-delay: 15s; }
.rotator__word:nth-child(7) { animation-delay: 18s; }
.rotator__word:nth-child(8) { animation-delay: 21s; }

/* Each word owns one 3s slot (12.5% of the loop): ~0.5s fade in, 2s hold, ~0.5s fade out */
@keyframes rotator-cycle {
  0%     { opacity: 0; }
  2%     { opacity: 1; }      /* fade in  */
  10.5%  { opacity: 1; }      /* hold     */
  12.5%  { opacity: 0; }      /* fade out */
  100%   { opacity: 0; }
}

/* ---------- Pause: checkbox, hover, or keyboard focus ---------- */
.rotator__toggle:checked ~ .rotator__heading .rotator__word,
.rotator:hover .rotator__word,
.rotator:focus-within .rotator__word {
  animation-play-state: paused;
}

/* ---------- Icon button ---------- */
.rotator__toggle {
  position: absolute;
  opacity: 0;
}

.rotator__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  cursor: pointer;
}

/* Pause icon: two bars */
.rotator__icon {
  box-sizing: border-box;
  width: 10px;
  height: 12px;
  border-left: 3px solid rgba(255,255,255,0.7);
  border-right: 3px solid rgba(255,255,255,0.7);
}

/* Paused state: play triangle */
.rotator__toggle:checked ~ .rotator__label .rotator__icon {
  width: 0;
  height: 0;
  border-left: 14px solid currentColor;
  border-right: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;           /* optical centering */
}

/* Visible keyboard focus ring on the button */
.rotator__toggle:focus-visible ~ .rotator__label {
  outline: 3px solid #0a6cff;
  outline-offset: 2px;
}

/* ---------- Reduced motion: static, all copy visible, no button ---------- */
@media (prefers-reduced-motion: reduce) {
  .rotator__word {
    animation: none;
    opacity: 1;
  }
  .rotator__words {
    display: inline;
  }
  .rotator__word:not(:last-child)::after {
    content: ", ";
  }
  .rotator__toggle,
  .rotator__label {
    display: none;
  }
}

/* ---------- Screen-reader-only text ---------- */
.rotatorText-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- end rotating text styles -- */

/* ---------- TESTIMONIAL STYLES ----------*/

.carousel {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Track (CSS-only: radio inputs choose the slide) ---------- */
.carousel__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.carousel__track {
  overflow: hidden;
  border: none;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel__slides {
  display: flex;                       /* slides stretch to the tallest one */
}

@media (prefers-reduced-motion: no-preference) {
  .carousel__slides { transition: transform 0.4s ease; }
}

#testimonial-radio-1:checked ~ .carousel__track .carousel__slides { transform: translateX(0); }
#testimonial-radio-2:checked ~ .carousel__track .carousel__slides { transform: translateX(-100%); }
#testimonial-radio-3:checked ~ .carousel__track .carousel__slides { transform: translateX(-200%); }
#testimonial-radio-4:checked ~ .carousel__track .carousel__slides { transform: translateX(-300%); }
#testimonial-radio-5:checked ~ .carousel__track .carousel__slides { transform: translateX(-400%); }
#testimonial-radio-6:checked ~ .carousel__track .carousel__slides { transform: translateX(-500%); }
#testimonial-radio-7:checked ~ .carousel__track .carousel__slides { transform: translateX(-600%); }

/* Visible keyboard focus (arrow keys move between the radios) */
.carousel__radio:focus-visible ~ .carousel__track {
  outline: 3px solid #0a6cff;
  outline-offset: 3px;
}

/* ---------- Slides ---------- */
.carousel__slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 36px 36px 6px 36px;
  color: #000;                      /* about 15:1 on #f6f3ee */
  display: flex;
  flex-direction: column;           /* slides stretch to the tallest one, so nav sits at the bottom */
}

.carousel__quote {
  flex: 1;                          /* fill space above the nav */
  display: flex;
  align-items: center;              /* vertical centering */
  justify-content: center;          /* horizontal centering */
  text-align: center;
  margin: 0;
  font-size: 18px;                   /* 24px, large text */
  line-height: 1.2;
	color: rgba(0,0,0,0.7);	
}
.carousel__quote p { 
  margin: 0;
  padding: 0px 16px; 
}

/* ---------- Previous / Next labels ---------- */
.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 5px;
}

.carousel__nav .carousel__btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;                    /* comfortable touch target */
  color: #000;                      /* about 9:1 on #f6f3ee */
  font-weight: 700;
  text-decoration: none;
  font-family: sans-serif;
}
.carousel__nav .carousel__btn:hover { text-decoration-thickness: 3px; }

/* Screen-reader-only text  */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- end testimonial styles --- */