html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Inter", Arial, sans-serif;
    overscroll-behavior: auto;
}

/* Apply letter-spacing to Tailwind utility classes using Inter or Arial fonts */
.font-inter,
.font-arial {
    letter-spacing: -0.005em;
}

* {
    transition: all 0.3s ease;
}

.no-transition {
    transition: all 10ms ease-in !important;
}

@font-face {
    font-family: "Noto Sans Cherokee";
    src: url("/fonts/NotoSansCherokee/NotoSansCherokee-Regular.ttf") format("truetype");
    font-display: swap;
}

textarea:focus {
    outline: none !important;
    border: none !important;
}

.scrollY {
    scroll-behavior: smooth;
    overflow-y: hidden;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.body-lock-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

.scrollbar-hidden-m::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
}

#highlight-box {
    cursor: grab;
}

#highlight-box:active {
    cursor: grabbing;
}

#prevCherokeeStoryBtn:disabled,
#nextCherokeeStoryBtn:disabled {
    border-color: transparent !important;
}

#prevBtn:disabled,
#nextBtn:disabled {
    border-color: transparent !important;
}

#footer {
    will-change: transform, opacity;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-80px);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(80px);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-out-left {
    animation: slideOutLeft 0.2s ease-out forwards;
}

.slide-out-right {
    animation: slideOutRight 0.2s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.25s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.25s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(80vh);
        opacity: 1;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 1.5s ease-out forwards;
}

#hero-section-container {
    position: relative;
    z-index: 10;

    @media screen and (width>=1100px) and (height >=800px) {
        position: sticky;
        z-index: 10;
        top: 0;
    }
}

@keyframes modalSlideOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(50%);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@layer utilities {
    @media (min-width: 1100px) and (min-height: 870px) {
        .desktop-minh-870\:sticky {
            position: sticky;
            background-color: aqua !important;
        }

        .desktop-minh-870\:top-0 {
            top: 0;
        }

        .desktop-minh-870\:z-10 {
            z-index: 10;
        }
    }
}

.modal-closing {
    animation: modalSlideOut 2.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    pointer-events: none;
}

.video-indicator-dot {
    position: relative;
    /* Required for positioning the pseudo-element */
    width: 54px;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.3);
    /* Default inactive color */
    cursor: pointer;
}

/* This creates an invisible layer that extends 10px above and below the dot */
.video-indicator-dot::before {
    content: "";
    position: absolute;
    top: -10px;
    /* Increase or decrease this padding value */
    bottom: -10px;
    /* Increase or decrease this padding value */
    left: 0;
    right: 0;
}

/* Style for the active indicator */
.video-indicator-dot.active {
    background-color: white;
}

#lifeEventsTrack {
    cursor: grab;
    user-select: none;
}

#lifeEventsTrack:active {
    cursor: grabbing;
}

#progressBarWrapper {
    cursor: pointer;
    position: relative;
    padding: 8px 0;
    /* Increase clickable area */
}

#progressBarWrapperNews:hover {
    cursor: grab;
}

#progressBarWrapperNews:active {
    cursor: grabbing;
}

#progressBarWrapperNews .swiper-scrollbar::before {
    content: "";
    position: absolute;
    top: -10px;
    /* expand hit area above */
    bottom: -10px;
    /* expand hit area below */
    left: 0;
    right: 0;
    cursor: inherit;
}

#progressBarWrapperNews .swiper-scrollbar {
    height: 1px;
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 1;
    cursor: grab;
}

#progressBarWrapperNews .swiper-scrollbar:active {
    cursor: grabbing;
}

#progressBarWrapperNews .swiper-scrollbar-drag {
    cursor: grab;
    height: 2px;
    /* position: absolute; */
    background: #000000;
    backdrop-filter: blur(12.5px);
    border-radius: unset;
    top: -50%;
}

#progressBarWrapperNews .swiper-scrollbar.swiper-scrollbar-drag:active {
    cursor: grabbing;
}

#moving-progress {
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Highlight Box Touch Improvements */
#highlight-box {
    touch-action: pan-y;
    /* Allow vertical scrolling but handle horizontal touches */
    user-select: none;
    /* Prevent text selection during drag */
    position: relative;
    overflow: hidden;
}

#highlight-content {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Button States */
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

button:disabled:hover {
    background-color: transparent;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-slide.visible {
    opacity: 1;
    z-index: 1;
}

/* Smooth transitions for content changes */
#highlight-title,
#highlight-date,
#highlight-description {
    transition: all 0.3s ease;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    #highlight-box {
        touch-action: pan-y;
    }

    .slide-out-left,
    .slide-out-right,
    .slide-in-left,
    .slide-in-right {
        animation-duration: 0.3s;
        /* Faster animations on mobile */
    }
}

.scrollbar-hidden {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

/* footer */

.pin-spacer {
    background-color: white;
}

#sticky-cta-wrapper {
    position: sticky;
    bottom: 0;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

/* HTML: <div class="loader"></div> */

.loader {
    width: 6px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
    0% {
        box-shadow: 8px 0 #000, -8px 0 #0002;
        background: #000;
    }

    33% {
        box-shadow: 8px 0 #000, -8px 0 #0002;
        background: #0002;
    }

    66% {
        box-shadow: 8px 0 #0002, -8px 0 #000;
        background: #0002;
    }

    100% {
        box-shadow: 8px 0 #0002, -8px 0 #000;
        background: #000;
    }
}

/* most requested */
/* Outer 12-column grid */

/* Inner box: spans 9 columns, shifted half column left/right */
@media (min-width: 1100px) {
    .most-requested-inner {
        grid-column: 2 / span 10;
        /* spans col-2 to col-11 */
        margin-left: calc((100% / 12) / 2);
        /* shift half column */
        margin-right: calc((100% / 12) / 2);
    }
}

@media (min-width: 675px) {
    .video-carousel {
        grid-column: 2 / span 10;
        /* spans col-2 to col-11 */
        margin-left: calc((100% / 12) / 2);
        /* shift half column */
        margin-right: calc((100% / 12) / 2);
    }
}

.text-shadow-glow {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
}

@keyframes fadeInUpWelcomeText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#welcomeText {
    opacity: 0;
    animation: fadeInUpWelcomeText 1.1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.4s;
}

.garamond-geometric-precision {
    text-rendering: geometricPrecision;
    font-family: "EB Garamond", serif;
}

.marquee {
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    display: inline-block;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

#highlight-box {
    position: relative;
    overflow: hidden;
}

#progressBarWrapperSlider .swiper-scrollbar {
    height: 1px;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    z-index: 1;
    cursor: grab;
    background: #999999;
    backdrop-filter: blur(12.5px);
    border-radius: unset;
}

#progressBarWrapperSlider .swiper-scrollbar-drag {
    cursor: grab;
    background: #000000;
    backdrop-filter: blur(12.5px);
    height: 3px;
    border-radius: unset;
    top: -1px;
}

#progressBarWrapperSlider .swiper-scrollbar::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 24px;
    pointer-events: auto;
    z-index: 2;
    border-radius: unset;
}

#progressBarWrapperSlider .swiper-scrollbar:active {
    cursor: grabbing;
}

#slideshow_play_button:hover .svg-path {
    fill: black;
}

@media (max-width: 1100px) {
    #progressBarWrapperSlider {
        width: calc(100% + 1px);
    }
}

.life-events-section,
#life-event-swiper,
.swiper-wrapper {
    overflow: visible;
}

#life-event-swiper .swiper-slide {
    height: auto;
}

#life-event-swiper {
    cursor: grab;
}

#life-event-swiper.swiper-grabbing {
    cursor: grabbing;
}

#highlight-box .swiper-slide {
    width: 100% !important;
    height: 100% !important;
}
