* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-wrap: pretty;
    --light: #f2e6d6;
    --dark: #31160c;
}

:root {
    /* Base font size for calculations */
    font-size: 16px;
}

html {
    height: 100%;
    background-color: var(--light);;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend', sans-serif;
    -moz-font-feature-settings: "ss01" on !important;
    -webkit-font-feature-settings: "ss01" on !important;
    font-feature-settings: "ss01" on !important;
    color: var(--dark);
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto; /* Force scrollable */
}

#smooth-content {
    position: relative;
    width: 100%;
}

.fullscreen {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.content {
    max-width: 75vh;
    padding: 2rem 0;
    overflow: visible;
}

.content>* {
    z-index: 10;
}

.content::before {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    content: "";
    top: 0;
    left: 0;
    background: radial-gradient(circle,rgba(242, 230, 214, 1) 10%, rgba(242, 230, 214, 0) 50%);
    z-index: -5;
    transform: translate(calc(1rem*-2), calc(1rem*-10)) scale(300%,150%);
    padding: 10rem 2rem;
    overflow: visible;
}

.content.empty::before {
    opacity: 0 !important;
    background: none !important;
    visibility: hidden;
}


h1 {
    font-family: 'bd-supper', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 4rem;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'bd-supper', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.8;
}

.emphasis {
    font-style: italic;
}

#intro-3,
#intro-4 {
    align-items: flex-start;
    justify-content: center;
}

#self-care-1,
#self-care-2,
#self-care-3,
#self-care-4{
    text-align: left;
    align-items: center;
    justify-content: start;
    text-wrap: pretty;
    white-space: wrap;
}

#self-care-5 {
    white-space: wrap;
    align-items: center;
    justify-content: center;
}

#multitasking-1,
#multitasking-3 {
    text-align: center;
    align-items: flex-start;
    justify-content: center;
    text-wrap: pretty;
    white-space: wrap;
}

#multitasking-2
 {
    text-align: left;
    align-items: center;
    justify-content: start;
    text-wrap: pretty;
    white-space: wrap;
}


/* Canvas container */
.background-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#sequence-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* GSAP specific styles */
.pin-spacer {
    z-index: auto !important;
    height: 100vh !important;
    pointer-events: none;
}

.pin-spacer > * {
    pointer-events: auto;
}

/* Debug markers */
.gsap-marker-scroller-start,
.gsap-marker-scroller-end,
.gsap-marker-start,
.gsap-marker-end {
    visibility: visible !important;
    display: block !important;
    z-index: 9999 !important;
    opacity: 0;
}

/* Modified navigation bar styles */
.nav-bar {
    position: fixed;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    width: calc(100% - 4rem);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo container styles */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
}

/* Navigation links container */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-bar a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-bar a:hover {
    color: #666;
}

/* Make the active link have an underline */
.nav-bar a.active {
    position: relative;
}

.nav-bar a.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 100%;
    height: 0.125rem;
    background-color: var(--dark);
}

/* Logo in navigation */
.nav-logo {
    height: 3rem;
    width: auto;
    display: block;
}

/* ── Preloader ── */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--light, #f2e6d6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.5s ease-out;
  }
  
  /* Percentage number */
  .preloader-percent {
    font-family: 'bd-supper', sans-serif;
    font-weight: 400;
    font-size: 3rem;
    color: var(--dark, #31160c);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  
  /* Thin progress bar */
  .preloader-bar-track {
    width: min(60vw, 20rem);
    height: 1rem;
    background-color: rgba(49, 22, 12, 0.15);
    border-radius: 1rem;
    overflow: hidden;
  }
  
  .preloader-bar-fill {
    height: 100%;
    width: 0%;
    background-color: rgba(49, 22, 12, 0.75);
    opacity: 0.7;
    border-radius: 1px;
    transition: width 0.3s ease-out;
  }
  
  .preloader-text {
    font-family: 'Lexend', sans-serif;
    font-size: 0.75rem;
    color: rgba(49, 22, 12, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

/* Button container */
.button-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

/* Action buttons */
.action-button {
    display: inline-block;
    background-color: rgba(211, 84, 0, 0.8);
    color: var(--light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 2rem;
    font-size: 0.875rem;
    border: none;
}

.action-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(0);
}

/* Back to top button */
.back-top-button {
    display: inline-block;
    background-color: none;
    border: 2px solid rgba(211, 84, 0, 0.8);
    color: rgba(211, 84, 0, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 2rem;
    font-size: 0.875rem;
}

.back-top-button:hover {
    background-color: rgba(230, 126, 34, 0.9);
    transform: translateY(-2px);
    color: var(--light)
}

/* About page specific styles */
.about-container {
    max-width: 50rem;
    margin: 6rem auto 4rem;
    padding: 0 2rem;
}

.about-content {
    /*background-color: rgba(255, 255, 255, 0.9);*/
    padding: 3rem;
    border-radius: 0.5rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    margin-bottom: 1.5rem;
    color: #d35400;
}

.about-section p {
    margin-bottom: 1rem;
}

/* Make sure nav bar shows over loading screen */
.nav-bar {
    z-index: 10000;
}

/* Additional styles for the Noodle Vessel Creator */

/* Creator container layout */
.creator-container {
    width: 100%;
    max-width: 75vw;
    margin: 0 auto;
    padding: 2rem 1rem;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: hidden;
}

.creator-header {
    text-align: center;
    margin-bottom: 3rem;
}



.arrow {
    text-align: center;
    font-size: 5rem;
    font-weight: 700;
    color: var(--light);
    position: absolute;
    width: 100%;
    bottom: -35vh;
    left: 0;
    animation: updown 2s ease-in-out infinite;
}

@keyframes updown {
    0% {
        transform: translate(0,0)
    }
    50% {
        transform: translate(0,-5vh);
    }
    100% {
        transform: translate(0,0)
    }
}

.creator-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}



/* Preview area */
.preview {
    flex: 1;
    max-width: 50vmax;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;

    border: 2px solid rgba(211, 84, 0, 0.8);
    border-radius: 0.5rem;
}

#canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    background: white;
}

/* Controls area */
.controls {
    flex: 1;
    background-color: white;
    padding: 1rem;
    margin: 0;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
}

.control-group {
    margin-bottom: 0rem;
}

.toppings {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.control-group h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--dark);
    border-bottom: 2px solid #f0e0d0;
    padding-bottom: 0.5rem;
}

.toggle-control {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle-control input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.toggle-control label {
    margin-left: 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.slider-container {
    margin-bottom: 0.75rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0rem;
    font-size: 1rem;
}

input[type="range"] {
    width: 100%;
    height: 0.25rem;
    border-radius: 0.25rem;
    background: #f0e0d0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #d35400;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #d35400;
    cursor: pointer;
}

#save-button {
    max-width: 5rem;
    align-self: center;
}

button:hover {
    background-color: #a04000;
}

input[type="checkbox"] {
    accent-color: #d35400;
  }

input[type="checkbox"]:checked {
    background-color: #d35400;
    border-color: #d35400;
}





@media (min-width: 768px) {
    .creator-content {
        flex-direction: row;
    }
}

@media screen and (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .nav-bar {
        top: 2rem;
        width: calc(100% - 2rem);
    }
    
    .nav-links {
        gap: 1rem;
    }

    .fullscreen {
        justify-content: center !important;
    }
    
    .content {
        max-width: 90vh;
        padding: 0 1rem;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .button-container {
        gap: 0.75rem;
    }
    
    .action-button {
        padding: 0.625rem 1.25rem;
        min-width: 12rem;
    }

    .creator-container {
        padding-top : 10rem !important;
    }

    .creator-header h1 {
        font-size: 3rem;
    }

}

@media screen and (max-width: 480px) {
    :root {
        font-size: 12px;
    }
    
    .nav-bar {
        width: calc(100% - 2rem);
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .action-button {
        min-width: 10rem;
        font-size: 0.875rem;
    }
}