/* =========================================
   TRUKULUX.COM - THE LEGEND STYLE SHEET
   ========================================= */

/* --- RESET & BASICS --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Bangers', cursive;
}

/* --- THE SAFETY OVERLAY (Start Screen) --- */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #222, #000);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1); /* Swoosh effect */
}

.warning-box {
    border: 4px dashed #00ffd5;
    padding: 40px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 0 30px #00ffd5;
    max-width: 90%;
}

.warning-box h1 {
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    color: yellow;
    letter-spacing: 2px;
}

.blink {
    animation: blinker 0.5s linear infinite;
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: #00ffd5;
    margin-top: 10px;
}

/* --- THE MAIN STAGE --- */
#stage {
    opacity: 0; /* Hidden until clicked */
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

/* Party Background (Activates on Click) */
body.party-mode {
    background: linear-gradient(124deg, #ff0000, #ff00de, #0000ff, #00ffd5, #ffff00);
    background-size: 1000% 1000%;
    animation: rainbow 5s ease infinite;
}

/* The Grid Floor Effect */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 213, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 213, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 2s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* --- THE VIDEO FRAME (Vertical/Tall Boy Support) --- */
.video-frame {
    position: relative;
    z-index: 10;
    
    /* Dimensions to fit vertical video */
    height: 65vh;       /* Takes up 65% of screen height */
    width: fit-content; /* Shrinks horizontally to hug the video */
    
    /* The Border & Glow */
    border: 15px solid #fff;
    border-radius: 20px;
    box-shadow: 0 0 50px #fff, 0 0 80px #ff00de;
    background: #000;
    
    /* Layout */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* The "Weird" Animation */
    transform: rotate(-3deg);
    animation: floating-weird 4s ease-in-out infinite alternate;
}

video {
    height: 100%;  /* Fill the frame height */
    width: auto;   /* Maintain aspect ratio */
    display: block;
    border-radius: 5px;
    filter: contrast(1.2) saturate(1.5); /* Pop the colors */
}

/* --- TEXT ELEMENTS --- */
.dynamic-text {
    position: absolute;
    top: 5%; /* Moved high up to clear the head */
    width: 100%;
    text-align: center;
    color: white;
    font-size: clamp(2rem, 5vw, 4rem); /* Responsive size */
    text-shadow: 4px 4px 0 #000;
    z-index: 20;
    animation: shake 2.5s infinite;
    pointer-events: none;
}

.logo-top, .logo-bottom {
    position: absolute;
    font-family: 'Rubik Glitch', system-ui;
    font-size: 12vw;
    color: rgba(255, 255, 255, 0.15); /* Subtle watermark */
    z-index: 5;
    pointer-events: none;
    margin: 0;
}

.logo-top {
    top: -2%;
    left: 0;
    animation: floatLeft 3s infinite ease-in-out;
}

.logo-bottom {
    bottom: -2%;
    right: 0;
    animation: floatRight 3s infinite ease-in-out;
}

/* --- PARTICLES (Emojis) --- */
.particle {
    position: absolute;
    font-size: 3rem;
    pointer-events: none;
    z-index: 50;
    animation: floatUp linear forwards;
}

/* --- ANIMATIONS (Keyframes) --- */

@keyframes rainbow { 
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

@keyframes blinker { 
    50% { opacity: 0; } 
}

@keyframes gridMove { 
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); } 
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); } 
}

/* The Weird Floating Effect */
@keyframes floating-weird {
    0% { transform: rotate(-3deg) translateY(0px) scale(1); }
    50% { transform: rotate(3deg) translateY(-20px) scale(1.02); }
    100% { transform: rotate(-1deg) translateY(10px) scale(0.98); }
}

@keyframes shake { 
    0%, 100% { transform: translateX(0); } 
    25% { transform: translateX(-5px) rotate(-1deg); } 
    75% { transform: translateX(5px) rotate(1deg); } 
}

@keyframes floatLeft { 
    0%, 100% { transform: translateX(0); } 
    50% { transform: translateX(20px); } 
}

@keyframes floatRight { 
    0%, 100% { transform: translateX(0); } 
    50% { transform: translateX(-20px); } 
}

@keyframes floatUp { 
    to { transform: translateY(-120vh) rotate(360deg); opacity: 0; } 
}

/* The floating text style */
.trukulu-text {
    position: fixed;
    z-index: 99999;
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; /* Intentionally goofy */
    font-weight: bold;
    font-size: 2rem;
    color: #ff0055;
    pointer-events: none; /* So users can click through it */
    animation: trukulu-float 2s ease-out forwards;
    text-shadow: 2px 2px 0px #000;
}

/* The cartoon bubble style */
.trukulu-bubble {
    position: fixed; /* Changed to fixed so it stays relative to viewport if needed, or absolute */
    background: white;
    border: 3px solid black;
    border-radius: 20px;
    padding: 10px 20px;
    color: black;
    font-family: sans-serif;
    font-weight: bold;
    z-index: 99999;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The little triangle for the speech bubble */
.trukulu-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: black transparent;
    display: block;
    width: 0;
}

/* Animations */
@keyframes trukulu-float {
    0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
    10% { opacity: 1; transform: scale(1.2) rotate(10deg); }
    100% { opacity: 0; transform: translateY(-100px) rotate(0deg); }
}

@keyframes pop-in {
    from { transform: scale(0); }
    to { transform: scale(1); }
}