* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 70%, #000000 100%);
    color: #ffffff;
    overflow-x: hidden;
    perspective: 1200px;
    min-height: 100vh;
}

.container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 100px 20px;
    min-height: 200vh;
    transform-style: preserve-3d;
    position: relative;
}

/* Background effects for enhanced atmosphere */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.text-block {
    margin: 60px 0;
    line-height: 1.8;
    transition: filter 1s ease-out;
    opacity: 0.2;
    transform: scale(0.9) translate(0px, 0px) translateZ(0px);
    max-width: 85vw;
    will-change: transform, opacity, filter;
    transform-style: preserve-3d;
    position: relative;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    font-weight: 300;
    letter-spacing: 0.3px;
    text-align: left;
}

.text-block.left {
    text-align: left;
    margin-right: auto;
}

.text-block.right {
    text-align: right;
    margin-left: auto;
}

.text-block.in-view {
    opacity: 1;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1),
        1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-block.above-view {
    opacity: 0.3;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

.text-block.below-view {
    opacity: 0.3;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Additional styles for creating the atmosphere of "reality cracks" */
.text-block:nth-child(odd) {
    padding-left: 20px;
}

.text-block:nth-child(even) {
    padding-right: 20px;
}

/* Word effect classes - soft colors with bright glows */
.emphasis-word {
    font-weight: 400;
    color: #d4d4d4;
    transition: all 0.3s ease;
}

.glow-word {
    color: #f5f3c4;
    text-shadow: 
        0 0 3px #ffeb3b,
        0 0 6px #ffeb3b,
        0 0 9px #ffeb3b;
    transition: all 0.5s ease;
    animation: subtleGlow 3s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    from { text-shadow: 0 0 3px #ffeb3b, 0 0 6px #ffeb3b, 0 0 9px #ffeb3b; }
    to { text-shadow: 0 0 5px #ffeb3b, 0 0 8px #ffeb3b, 0 0 12px #ffeb3b; }
}

.pulse-word {
    color: #e8c3b8;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

.drift-word {
    color: #d8d8d8;
    transition: all 0.5s ease;
    position: relative;
}

.shake-word {
    color: #e5c1bf;
    transition: all 0.3s ease;
    /* animation: subtleShake 4s ease-in-out infinite; - removed for performance */
}

/* @keyframes subtleShake - removed for performance
@keyframes subtleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-0.5px); }
    75% { transform: translateX(0.5px); }
} */

.fade-word {
    color: #a5a5a5;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.power-word {
    color: #bdd7f0;
    font-weight: 500;
    text-shadow: 
        0 0 5px #2196f3,
        0 0 10px #2196f3;
    transition: all 0.3s ease;
    animation: powerPulse 3s ease-in-out infinite;
}

@keyframes powerPulse {
    0%, 100% { 
        text-shadow: 0 0 5px #2196f3, 0 0 10px #2196f3;
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 8px #2196f3, 0 0 15px #2196f3;
        transform: scale(1.01);
    }
}

.epic-word {
    color: #d4c2dd;
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 
        0 0 8px #9c27b0,
        0 0 15px #9c27b0,
        0 0 22px #9c27b0;
    transition: all 0.5s ease;
    animation: epicGlow 4s ease-in-out infinite alternate;
}

@keyframes epicGlow {
    from { 
        text-shadow: 0 0 8px #9c27b0, 0 0 15px #9c27b0, 0 0 22px #9c27b0;
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 12px #9c27b0, 0 0 20px #9c27b0, 0 0 30px #9c27b0;
        transform: scale(1.02);
    }
}

.fire-word {
    color: #f0d4b8;
    font-weight: 500;
    text-shadow: 
        0 0 5px #ff9800,
        0 0 10px #ff5722,
        0 0 15px #f44336;
    animation: fire 2s ease-in-out infinite alternate;
}

@keyframes fire {
    0% { 
        text-shadow: 0 0 5px #ff9800, 0 0 10px #ff5722, 0 0 15px #f44336;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        text-shadow: 0 0 8px #ff9800, 0 0 12px #ff5722, 0 0 18px #f44336;
        transform: scale(1.015) rotate(0.3deg);
    }
    100% { 
        text-shadow: 0 0 10px #ff9800, 0 0 15px #ff5722, 0 0 20px #f44336;
        transform: scale(1.025) rotate(-0.3deg);
    }
}

/* Block effect classes - reduced intensity */
.glow-effect.in-view .glow-word {
    text-shadow: 
        0 0 6px #ffeb3b,
        0 0 12px #ffeb3b,
        0 0 18px #ffeb3b;
}

/* .shake-effect.in-view .shake-word - removed for performance
.shake-effect.in-view .shake-word {
    animation: shake 0.8s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
} */

.scale-effect.in-view .power-word,
.scale-effect.in-view .epic-word {
    transform: scale(1.05);
}

.power-effect.in-view .power-word {
    animation: powerBurst 3s ease-in-out infinite;
}

@keyframes powerBurst {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 5px #2196f3, 0 0 10px #2196f3;
    }
    50% { 
        transform: scale(1.04);
        text-shadow: 0 0 10px #2196f3, 0 0 20px #2196f3, 0 0 30px #2196f3;
    }
}

.epic-effect.in-view .epic-word {
    animation: epicBurst 3.5s ease-in-out infinite;
}

@keyframes epicBurst {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 8px #9c27b0, 0 0 15px #9c27b0, 0 0 22px #9c27b0;
    }
    33% { 
        transform: scale(1.06) rotate(0.5deg);
        text-shadow: 0 0 12px #9c27b0, 0 0 25px #9c27b0, 0 0 35px #9c27b0;
    }
    66% { 
        transform: scale(1.03) rotate(-0.3deg);
        text-shadow: 0 0 10px #9c27b0, 0 0 20px #9c27b0, 0 0 28px #9c27b0;
    }
}

.fade-effect.in-view .fade-word {
    opacity: 0.4;
    color: #424242;
}

.final-effect.in-view {
    animation: finalReveal 4s ease-out forwards;
}

@keyframes finalReveal {
    0% { 
        opacity: 0.6;
        transform: scale(0.9);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.05);
    }
    100% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

.final-effect.in-view .epic-word {
    animation: finalEpic 4s ease-out infinite;
}

@keyframes finalEpic {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 12px #9c27b0, 0 0 20px #9c27b0, 0 0 30px #9c27b0;
    }
    25% { 
        transform: scale(1.08) rotate(0.5deg);
        text-shadow: 0 0 15px #9c27b0, 0 0 30px #9c27b0, 0 0 45px #9c27b0;
    }
    50% { 
        transform: scale(1.05) rotate(-0.3deg);
        text-shadow: 0 0 12px #9c27b0, 0 0 25px #9c27b0, 0 0 37px #9c27b0;
    }
    75% { 
        transform: scale(1.1) rotate(0.3deg);
        text-shadow: 0 0 18px #9c27b0, 0 0 35px #9c27b0, 0 0 50px #9c27b0;
    }
}

/* Hover effects for interactive feel - reduced intensity */
.text-block:hover .glow-word {
    text-shadow: 
        0 0 8px #ffeb3b,
        0 0 15px #ffeb3b,
        0 0 22px #ffeb3b;
}

.text-block:hover .power-word {
    text-shadow: 
        0 0 10px #2196f3,
        0 0 20px #2196f3,
        0 0 30px #2196f3;
}

.text-block:hover .epic-word {
    transform: scale(1.05);
    text-shadow: 
        0 0 15px #9c27b0,
        0 0 25px #9c27b0,
        0 0 40px #9c27b0;
}

/* Media queries for mobile devices */
@media (max-width: 768px) {
    body {
        perspective: 800px;
    }
    
    .text-block {
        margin: 50px 0;
        font-size: 16px !important;
        max-width: 90vw;
        letter-spacing: 0.2px;
        line-height: 1.6;
    }
    
    .container {
        padding: 50px 15px;
        perspective: 600px;
    }
    
    .text-block:nth-child(odd),
    .text-block:nth-child(even) {
        padding: 0;
    }
    
    .epic-word {
        font-size: 1.05em;
    }
    
    /* Further reduce animation intensity on mobile for performance */
    .glow-word, .power-word, .epic-word, .fire-word {
        animation-duration: 4s;
    }
    
    /* Reduce glow effects on mobile */
    .glow-word {
        color: #f5f3c4;
        text-shadow: 
            0 0 2px #ffeb3b,
            0 0 4px #ffeb3b,
            0 0 6px #ffeb3b;
    }
    
    .power-word {
        color: #bdd7f0;
        text-shadow: 
            0 0 3px #2196f3,
            0 0 6px #2196f3;
    }
    
    .epic-word {
        color: #d4c2dd;
        text-shadow: 
            0 0 5px #9c27b0,
            0 0 10px #9c27b0,
            0 0 15px #9c27b0;
    }
    
    .enter-button-container {
        margin: 50px 0;
    }
    
    .rainbow-button {
        padding: 15px 30px;
        font-size: 18px;
        margin: 10px 5px;
        border-radius: 12px;
        min-width: 100px;
    }
}

/* Giant Rainbow Enter Button */
.enter-button-container {
    position: relative;
    margin: 120px auto 80px;
    display: flex;
    justify-content: center;
    width: 100%;
    perspective: 1000px;
}

.rainbow-button {
    position: relative;
    width: 70vw;
    height: 120px;
    font-size: 42px;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
    color: #000;
    background: linear-gradient(45deg, 
        #cc8888, #cc9966, #cccc88, #99cc88, 
        #88cc88, #88cc99, #88cccc, #8899cc, 
        #8888cc, #9988cc, #cc88cc, #cc8899);
    background-size: 400% 400%;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2),
        0 0 90px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: 
        rainbowShift 3s ease-in-out infinite,
        giantPulse 4s ease-in-out infinite,
        floatAnimation 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transform: translateY(100px);
    opacity: 0;
}

.rainbow-button::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        #cc8888, #cc9966, #cccc88, #99cc88, 
        #88cc88, #88cc99, #88cccc, #8899cc, 
        #8888cc, #9988cc, #cc88cc, #cc8899);
    background-size: 400% 400%;
    border-radius: 30px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.8;
    animation: rainbowShift 3s ease-in-out infinite reverse;
}

.rainbow-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes rainbowShift {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% { 
        background-position: 50% 0%;
        filter: hue-rotate(90deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    75% { 
        background-position: 50% 100%;
        filter: hue-rotate(270deg);
    }
}

@keyframes giantPulse {
    0%, 100% { 
        transform: scale(1) rotateX(0deg) rotateY(0deg);
        box-shadow: 
            0 0 30px rgba(255, 255, 255, 0.3),
            0 0 60px rgba(255, 255, 255, 0.2),
            0 0 90px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: scale(1.02) rotateX(2deg) rotateY(1deg);
        box-shadow: 
            0 0 40px rgba(255, 255, 255, 0.4),
            0 0 80px rgba(255, 255, 255, 0.3),
            0 0 120px rgba(255, 255, 255, 0.2);
    }
}

@keyframes floatAnimation {
    0%, 100% { 
        transform: translateY(0px) rotateZ(0deg);
    }
    33% { 
        transform: translateY(-8px) rotateZ(0.5deg);
    }
    66% { 
        transform: translateY(4px) rotateZ(-0.3deg);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.rainbow-button:hover {
    transform: scale(1.05) rotateX(5deg) rotateY(2deg);
    animation-duration: 1.5s, 2s, 3s;
    box-shadow: 
        0 0 50px rgba(255, 255, 255, 0.5),
        0 0 100px rgba(255, 255, 255, 0.4),
        0 0 150px rgba(255, 255, 255, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 45px rgba(255, 255, 255, 0.6);
}

.rainbow-button:active {
    transform: scale(0.98) rotateX(-2deg) rotateY(-1deg);
    transition: all 0.1s ease;
}

/* Additional sparkle effects */
.rainbow-button:hover::before {
    filter: blur(20px);
    opacity: 1;
}

/* Button parallax animation */
.rainbow-button.in-view {
    transform: translateY(0);
    opacity: 1;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

/* Mobile adjustments for the button */
@media (max-width: 768px) {
    .enter-button-container {
        margin: 80px auto 60px;
    }
    
    .rainbow-button {
        width: 95vw;
        height: 80px;
        font-size: 28px;
        letter-spacing: 2px;
        border-radius: 20px;
        max-width: none;
    }
    
    .rainbow-button::before {
        border-radius: 25px;
        filter: blur(10px);
    }
} 