html,body{
    height:100%;
    margin:0;
}

body {
    display:flex;
    justify-content:center;
    align-items:center;
}

body.events {
    background: linear-gradient(45deg, #ffa50099, rgba(128, 0, 128, 0.6));
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
}

body.home {
    background: url("../img/noise.svg"), linear-gradient(45deg, #a200ffb3, rgba(255, 255, 255, 0.15));
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: url("../img/cursor1.png"), auto;
}

canvas {
    cursor: url("../img/cursor1.png"), auto;
    touch-action: none;
}

/* Different cursors for different states */
canvas.pointer {
    cursor: url("../img/cursor-grab1.png"), pointer;
}

#menu {
    position:relative;
    width:80vmin;
    height:80vmin;
    max-width:1300px;
    max-height:1300px;
}


h1 {
    font:clamp(20px,8vmin,125px)/1  "Darumadrop One";
    text-shadow: rgba(0, 0, 0, 0.564) 0 10px;
    color: white;
    text-align: center;
    margin: 0px;
}

#becky-info-p {
    color: #fffd14;
    text-shadow: #00f1ffa3 0 3px;    
    font-size: 25px;
    margin-left: 10%;
    margin-right: 10%;
}

#becky-score {
    position: fixed;
    right: 10px;
    top: 0px;
    font-size: 15px;
    color: rgb(255, 255, 255);
    -webkit-transition: -webkit-transform 0.8s;
    transition: transform 0.8s;
    margin: 0px;
}

/* Styles for about */
body.about {
  display: block;
  min-height: 100vh;
  background: url("../img/noise.svg"), linear-gradient(125deg, #a200ff, rgba(255, 255, 255, 0.15));
  color: #fffb14f0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 64px);
}

.about-header h1 {
  font-family: "tiny5", serif;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
  color: #fffd14;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(16px, 3vw, 28px);
}

.back-link {
    font-family: 'tiny5';
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid black;
    z-index: 100;
}

.back-link:hover {
    background: #fffd14;
}

.about-intro .about-copy p,
.about-section p {
  font-family: "VT323", serif;
  font-size: clamp(16px, 1.05rem + 0.3vw, 20px);
  line-height: 1.2;
  max-width: 140ch;
  margin: 0 0 1.1em;
}

.about-highlight-thing {
  text-shadow: 0 0 20px white;
  transition: all 0.3s ease;
  animation: pulse .1s infinite;
  color: #fffd14;

}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.94; }
}

.about-highlight-thing:hover {
  text-shadow: 0 0 20px #fffd14;
}

.about-section h2 {
  font-family: "Darumadrop One", system-ui, sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.2;
  margin: clamp(20px, 4vw, 40px) 0 clamp(10px, 2vw, 18px);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(12px, 2.5vw, 24px);
  margin: clamp(16px, 4vw, 40px) 0;
  justify-content: center;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
}

.pull-quote {
  max-width: 1100px;
  margin: 10px;
  padding: 10px;
  position: relative;
  isolation: isolate;               /* keep glow/shadow contained */
}


.pull-quote figure { margin: 0; }
.pull-quote blockquote {
    animation: pulse .1s infinite;
    margin: 0 0 0.5em;
    font-family: "VT323", monospace;
    font-size: clamp(22px, 3.2vw, 42px);
    line-height: 1.1;
    color: #fffd14;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
}

.pull-quote figcaption {
    font-family: "Tiny5", system-ui, sans-serif;
    font-size: clamp(14px, 1.8vw, 20px);
    letter-spacing: 0.02em;
    opacity: 0.95;
}

/* Desktop: nudge left/right like a pull-quote */
@media (min-width: 900px) {
    .pull-quote.align-right { margin-right: clamp(0px, 6vw, 80px); }
}

/* Mobile: keep centered and readable */
@media (max-width: 899px) {
    .pull-quote { transform: none; }
    
    body.home {
        background: linear-gradient(45deg, #a200ffb3, rgba(255, 255, 255, 0.15));
    }
}

/* start gallery */
    :root {
        --scroll: 0px;
        --visible: 0;
        --vh: 600px;
    }

    .depth-gif {
        position: absolute;
        pointer-events: none;
        will-change: transform, opacity;
        transform-style: preserve-3d;
    }

    .depth-gif:nth-child(odd) {
        animation-duration: 8s;
        animation-delay: -2s;
    }

    .depth-gif:nth-child(even) {
        animation-duration: 5s;
        animation-direction: reverse;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0) rotate(0deg);
        }
        25% {
            transform: translateY(-15px) rotate(5deg);
        }
        75% {
            transform: translateY(10px) rotate(-5deg);
        }
    }
  

        body.gal {
            background: url("../img/noise.svg"), linear-gradient(45deg, #ff0084, rgb(247 240 251));
            background-attachment: fixed;
            /* background-size: cover; */
            /* background-position: center; */
            /* background-repeat: no-repeat; */
            color: #000000;
            height: 20000px;
            overflow-x: hidden;
        }

        #gallery-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            perspective: 1200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-item {
            position: absolute;
            width: min(80vw, 600px);
            max-height: var(--vh);
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: opacity 0.5s ease-out;
        }

        .image-container {
            position: relative;
            width: 100%;
            max-height: calc(var(--vh) - 60px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-image {
            position: absolute;
            width: 82%;
            height: 82%;
            top: 9%;
            will-change: opacity;
            left: 9%;
            object-fit: contain;
            z-index: 1;
        }

        .horizontal-container .gallery-image {
            width: 85%;
            height: 80%;
            top: 10%;
            left: 7.5%;
        }

        .vertical-container .gallery-image {
            width: 80%;
            height: 84%;
            top: 8%;
            left: 10%;
        }
    
        .gallery-item {
            will-change: transform, opacity;
            backface-visibility: hidden;
            transform-style: preserve-3d;
        }

        .depth-gif {
            will-change: transform;
            backface-visibility: hidden;
        }

        .frame-overlay {
            position: relative;
            width: 100%;
            height: auto;
            max-height: calc(var(--vh) - 60px);
            z-index: 2;
            pointer-events: none; /* Allow clicks to pass through */
            filter: drop-shadow(0 6px 21px rgba(0, 0, 0, 0.7));
        }        

        .gallery-title {
            margin-top: 20px;
            font-size: 1.5rem;
            font-weight: 300;
            text-align: center;
            opacity: 0.9;
        }
    

        /* Scroll indicator */
        .scroll-indicator {
            position: fixed;
            bottom: 4rem;
            font-family: "tiny5";
            left: 50%;
            transform: translateX(-50%);
            font-size: 3rem;
            opacity: 1.0;
            color: #fffd14;
            animation: bounce 0.3s infinite;
            z-index: 100;
        }

        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-10px); }
        }

        /* Mobile adjustments */
        @media (max-width: 800px) {

            .scroll-indicator {
                font-size: 2rem;
            }


            .gallery-item {
                width: 90vw;
            }
            
            .gallery-title {
                font-size: 1.2rem;
            }
        }
/* end gallery */


#links-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.floating-link {
    position: absolute;
    color: white;
    text-decoration: none;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

#depth-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #fffd14;
    font-family: monospace;
    background-image: url("../img/becky_Face.png");
    font-size: 40px;
    text-align: center;
}

/* Add to your style.css or page-specific CSS */

/* Fade in animation for pages after mouth zoom */
@keyframes fadeInFromBlack {
    from {
        opacity: 0;
        transform: scale(1.2);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply to body of target pages */
body.fade-in-page {
    animation: fadeInFromBlack 1s ease-out;
    background-color: #000; /* Start with black background */
}

/* Optional: Stagger content fade-in */
.fade-in-page .content-wrapper {
    opacity: 0;
    animation: fadeInContent 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* For more dramatic effect, add a mouth-shaped vignette */
.mouth-vignette::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse 30% 20% at center,
        transparent 30%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.8) 70%,
        black 100%
    );
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    animation: vignetteFadeOut 2s ease-out forwards;
}

@keyframes vignetteFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}