/* 
FONTSHARE Export
font-family: 'Satoshi', sans-serif;
font-family: 'Cabinet Grotesk', sans-serif;
font-family: 'Switzer', sans-serif;
font-family: 'Stardom', sans-serif;
font-family: 'Boska', serif;
font-family: 'Melodrama', serif;
font-family: 'Comico', cursive;
font-family: 'Pencerio', cursive;

const fontStyles = ['Font 1', 'Font 2', 'Font 3', 'Font 4', 'Font 5']; // Array of font styles
const fontStyles = ['Satoshi', 'Cabinet Grotesk', 'Switzer', 'Stardom', 'Boska', 'Melodrama', 'Comico', 'Pencerio']; // Array of font styles

.yarndings-20-regular {
  font-family: "Yarndings 20", system-ui;
  font-weight: 400;
  font-style: normal;
}
 */



/* ROOT CSS */

:root {
/* VARIABLES */
    --fontDisplay: 'Cabinet Grotesk', sans-serif;
    --fontBody: 'Noto Sans', sans-serif;
    
    font-family: var(--fontBody);
    font-size: 16px;
    font-weight: 400;
    font-variation-settings: "wdth" 100;
}

a {
    color: #17171b;
    text-decoration: none;
    transition: all 0.1s ease-in-out;
}

a:hover {
    color: #000;
    animation: textColorChange 5s ease-in-out infinite;
    
}

@keyframes textColorChange {
    0% {
        color: #000000;
    }
    10% {
        color: #ff2d2d;
    }
    33% {
        color: #00aaff;
    }
    66% {
        color: #ff00f2;
    }
    90% {
        color: #00ff00;
    }
    100% {
        color: #000;
    }
}

ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

body {
    padding-left: 16px;
    padding-right: 16px;
    margin: 0px;
    overflow: hidden; /* Prevent scrollbars */
    display: flex;
}

/* TYPOGRAPHY */ /* TYPOGRAPHY */ /* TYPOGRAPHY *//* TYPOGRAPHY */ /* TYPOGRAPHY */ /* TYPOGRAPHY */

h1 {
    margin: 0px;
}

p {
    margin: 0px;
}

.text-center {
    text-align: center;
}




/* LAYOUT */

.body-content {
    height: 100vh;
    width: 100%;
}

.main-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
}

#video {
    display: none; /* Hide the video element */
}

#canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large-contain {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: start;
    z-index: 0;
}

.rows {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 8px;
}

.nav-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    padding: 8px 16px;
    border: #00000000 solid 1px;
    border-radius: 4px;
    /* padding: 4; */
}
.nav-item:hover {
    border: #00000012 solid 1px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.081);
}

.warning-banner {
    padding: 12px 0px;
    /* background-color: #ff2d2d; */
    color: #ff2d2d;
    display: flex;
    font-style: italic;
    justify-content: center;
}

/* YARNDINGS */

/* .yarnding-container {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.yarnding-item {
    height: 24px;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00000000;
    color: #000;
    font-size: 24px;
    font-family: "Yarndings 20", system-ui;
    font-weight: 400;
    font-style: normal;
    transition: all 0.1s ease-in-out;
} */

/* POP-OUT EXAMPLE */
.section-example {
    background-color: #000;
    display: flex;
    width: 100%;
    height: 1000px;
}

/* FONT STYLES */ 
.font-style-1 {
    font-family: 'Satoshi', sans-serif;
  }
  
  .font-style-2 {
    font-family: 'Cabinet Grotesk', sans-serif;
  }
  
  .font-style-3 {
    font-family: 'Switzer', sans-serif;
  }
  
  .font-style-4 {
    font-family: 'Stardom', sans-serif;
  }

    .font-style-5 {
        font-family: 'Boska', serif;
    }

    .font-style-6 {
        font-family: 'Melodrama', serif;
    }

    .font-style-7 {
        font-family: 'Pencerio', cursive;
    }
  

.hero-text {
    cursor: pointer;
    transition-property: letter-spacing;
    transition-duration: 1000ms;
    font-family: 'Satoshi', sans-serif;
    font-weight: 100;
}

.hero-text span {
    font-size: 8vmin;
    color: #000;
    margin-right: 0.1rem;  /* Add spacing between letters */
    transition: all 0.2s ease-in-out;
}

/* CONTENT */



/* Breakpoints */

@media (max-width: 390px) {
    .hero-text span {
        font-size: 15vmin;
    }
}

@media ((max-width: 768px) and (min-width: 390px)) {
    .hero-text span {
        font-size: 15vmin;
    }
}
@media (min-width: 1024px) {
    .hero-text span {
        font-size: 19vmin;
    }
}



/* TRYING */

#letter-container {
    position: absolute; /* Position relative to the body */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrollbars if letters go slightly off-screen */
    pointer-events: none; /* Allows clicks to pass through to content below */
    z-index: 5; /* Ensure letters are above most content */
}

.animated-letter {
    position: absolute; /* Allows precise placement */
    display: inline-block; /* Needed for transform */
    
    font-family: "Yarndings 20", system-ui;
    color: #000000; /* Example color */
    cursor: pointer;
    user-select: none; /* Prevent text selection when clicking */
    pointer-events: auto; /* Make individual letters clickable */
    transform-origin: center center; /* Rotate around the center */

    /* --- Animation Properties --- */
    /* Initial state for fade/pop-in effect */
    opacity: 1;
    transform: scale(1); 

    /* Transition for smooth appearance and rotation */
    transition: opacity 0.5s ease-out,
                transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Ease-out for opacity, custom bezier for bouncy rotation */
}

/* State when the letter becomes visible */
.animated-letter.visible {
    opacity: 1; /* Make slightly transparent */
    transform: scale(1); /* Scale to normal size */
}