/*
Theme Name: Meer Is Het Niet
Theme URI: https://meerishetniet.nl/
Author: Daan
Description: Eén pagina, maximaal gek. De persoon spamt overal rond, audio "Meer is het niet" speelt continu in elke variatie. Niet voor zwakke ogen.
Version: 1.0.0
License: GPL v2 or later
Text Domain: meerishetniet
*/

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #000;
    font-family: "Comic Sans MS", "Impact", cursive, sans-serif;
    cursor: crosshair;
}

body {
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff0000, #00ff00, #ff00ff);
    background-size: 600% 600%;
    animation: bgshift 6s linear infinite;
    position: relative;
    min-height: 100vh;
}

@keyframes bgshift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- AFBEELDING UIT MODUS ---------- */
body.no-image img,
body.no-image .hero,
body.no-image .hero-img,
body.no-image .grid-section,
body.no-image .persoon-grid,
body.no-image .foot-row,
body.no-image .foot-row-track,
body.no-image .floater,
body.no-image .trail {
    display: none !important;
    visibility: hidden !important;
}

/* ---------- INTRO / KLIK SCHERM ---------- */
#intro {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, #ff00ff, #000);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    cursor: pointer;
    animation: introPulse 0.5s ease-in-out infinite alternate;
}

#intro h1 {
    font-size: clamp(2rem, 10vw, 8rem);
    text-shadow: 0 0 30px #fff, 0 0 60px #ff00ff, 0 0 90px #00ffff;
    animation: wobble 1s ease-in-out infinite;
}

#intro p {
    font-size: 1.5rem;
    margin-top: 2rem;
    animation: blink 0.6s steps(2, start) infinite;
}

@keyframes introPulse {
    from { filter: hue-rotate(0deg); }
    to   { filter: hue-rotate(360deg); }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes wobble {
    0%, 100% { transform: rotate(-3deg) scale(1); }
    50%      { transform: rotate(3deg) scale(1.1); }
}

/* ---------- HEADER ---------- */
.mega-title {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1rem 1rem 0.25rem;
    font-size: clamp(1.8rem, 6vw, 4.5rem);
    color: #fff;
    text-shadow:
        3px 3px 0 #ff00ff,
        -3px -3px 0 #00ffff,
        6px 6px 0 #000;
    animation: titleShake 0.15s linear infinite, titleHue 3s linear infinite;
    letter-spacing: 0.05em;
}

@keyframes titleShake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(-4px, 2px) rotate(-1deg); }
    50%  { transform: translate(3px, -3px) rotate(1deg); }
    75%  { transform: translate(-2px, 3px) rotate(-0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes titleHue {
    from { filter: hue-rotate(0deg); }
    to   { filter: hue-rotate(360deg); }
}

.subtitle {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0 #000;
    animation: blink 1s steps(2, start) infinite;
}

/* ---------- HOOFD PERSOON ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    perspective: 1000px;
}

.hero-img {
    width: clamp(200px, 28vw, 380px);
    height: auto;
    border-radius: 50%;
    border: 10px dashed #fff;
    box-shadow:
        0 0 50px #ff00ff,
        0 0 100px #00ffff,
        0 0 150px #ffff00;
    animation: heroSpin 8s linear infinite, heroPulse 1s ease-in-out infinite alternate;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero-img:hover {
    transform: scale(1.2) rotate(15deg);
}

@keyframes heroSpin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

@keyframes heroPulse {
    from { filter: brightness(1) saturate(1); }
    to   { filter: brightness(1.4) saturate(2); }
}

/* ---------- ZWERFENDE PERSONEN ---------- */
.floater {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    z-index: 3;
    will-change: transform;
    transition: filter 0.2s;
}

.floater img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 20px #fff;
}

.floater:hover {
    filter: hue-rotate(180deg) saturate(3);
    z-index: 100;
}

/* Animatie pakketten */
.anim-spin   { animation: spin var(--dur, 4s) linear infinite; }
.anim-bounce { animation: bounce var(--dur, 2s) ease-in-out infinite; }
.anim-shake  { animation: shake var(--dur, 0.5s) linear infinite; }
.anim-zoom   { animation: zoom var(--dur, 3s) ease-in-out infinite alternate; }
.anim-flip   { animation: flip var(--dur, 3s) linear infinite; }
.anim-glitch { animation: glitch var(--dur, 0.3s) steps(2) infinite; }
.anim-rave   { animation: rave var(--dur, 0.4s) linear infinite; }
.anim-orbit  { animation: orbit var(--dur, 6s) linear infinite; }
.anim-wiggle { animation: wiggle var(--dur, 1s) ease-in-out infinite; }
.anim-fly    { animation: fly var(--dur, 8s) linear infinite; }

@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-80px) scale(1.1); }
}
@keyframes shake  {
    0%, 100% { transform: translate(0,0); }
    25%      { transform: translate(-10px, 5px) rotate(-5deg); }
    50%      { transform: translate(10px, -5px) rotate(5deg); }
    75%      { transform: translate(-5px, 10px) rotate(-2deg); }
}
@keyframes zoom   {
    from { transform: scale(0.4); }
    to   { transform: scale(1.6); }
}
@keyframes flip   { to { transform: rotateY(360deg) rotateX(360deg); } }
@keyframes glitch {
    0%   { transform: translate(0,0); filter: hue-rotate(0deg); }
    20%  { transform: translate(-5px, 3px); filter: hue-rotate(90deg); }
    40%  { transform: translate(5px, -3px); filter: hue-rotate(180deg) invert(1); }
    60%  { transform: translate(-3px, -5px); filter: hue-rotate(270deg); }
    80%  { transform: translate(3px, 5px); filter: hue-rotate(360deg) invert(1); }
    100% { transform: translate(0,0); filter: hue-rotate(0deg); }
}
@keyframes rave {
    0%   { filter: hue-rotate(0deg)   brightness(1.5); transform: scale(1); }
    50%  { filter: hue-rotate(180deg) brightness(2);   transform: scale(1.2); }
    100% { filter: hue-rotate(360deg) brightness(1.5); transform: scale(1); }
}
@keyframes orbit {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(-15deg); }
    50%      { transform: rotate(15deg); }
}
@keyframes fly {
    0%   { transform: translateX(-200px) translateY(0) rotate(0deg); }
    25%  { transform: translateX(50vw) translateY(-100px) rotate(180deg); }
    50%  { transform: translateX(100vw) translateY(50px) rotate(360deg); }
    75%  { transform: translateX(50vw) translateY(100px) rotate(540deg); }
    100% { transform: translateX(-200px) translateY(0) rotate(720deg); }
}

/* ---------- TEKST BANNER ---------- */
.marquee {
    position: relative;
    z-index: 9;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-top: 5px dashed #fff;
    border-bottom: 5px dashed #fff;
    padding: 1rem 0;
    margin: 2rem 0;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 12s linear infinite;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 0 #ff00ff, -2px -2px 0 #00ffff;
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}

/* ---------- KNOPPEN BAK ---------- */
.button-bar {
    position: relative;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border-top: 3px dashed #fff;
    border-bottom: 3px dashed #fff;
}

.button-bar.sticky-bar {
    position: sticky;
    top: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 900;
    border: 4px solid #fff;
    background: #ff00ff;
    color: #fff;
    cursor: pointer;
    text-shadow: 2px 2px 0 #000;
    box-shadow: 6px 6px 0 #000;
    transition: transform 0.1s, background 0.2s;
    font-family: inherit;
    text-transform: uppercase;
}

.btn {
    box-shadow: 4px 4px 0 #000;
}

.btn:hover {
    transform: translate(-2px, -2px) rotate(-2deg);
    box-shadow: 6px 6px 0 #00ffff;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000;
}

.btn:nth-child(6n+1) { background: #ff0066; color: #fff; }
.btn:nth-child(6n+2) { background: #00ccff; color: #000; }
.btn:nth-child(6n+3) { background: #ffcc00; color: #000; }
.btn:nth-child(6n+4) { background: #66ff00; color: #000; }
.btn:nth-child(6n+5) { background: #cc00ff; color: #fff; }
.btn:nth-child(6n+6) { background: #ff6600; color: #000; }

.btn-chaos {
    background: linear-gradient(45deg, #ff0066, #ffcc00, #00ccff, #66ff00) !important;
    background-size: 400% 400% !important;
    color: #fff !important;
    animation: bgshift 1.5s linear infinite, wobble 0.4s ease-in-out infinite !important;
    border-color: #000 !important;
}

/* ---------- GRID VAN PERSONEN ---------- */
.grid-section {
    position: relative;
    z-index: 5;
    padding: 3rem 1rem;
}

.grid-section h2 {
    text-align: center;
    color: #fff;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 0 #000;
    animation: titleHue 4s linear infinite;
}

.persoon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.persoon-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.6);
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.persoon-grid img:hover {
    transform: scale(1.5) rotate(20deg);
    filter: hue-rotate(180deg) saturate(2);
    z-index: 50;
    position: relative;
}

/* ---------- DISCO VLOER ---------- */
.disco {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255,0,255,0.15) 0deg 30deg,
            rgba(0,255,255,0.15) 30deg 60deg
        );
    animation: spin 20s linear infinite;
    mix-blend-mode: screen;
}

/* ---------- FOOTER PERSOON RIJ ---------- */
.foot-row {
    position: relative;
    z-index: 5;
    display: flex;
    overflow: hidden;
    padding: 2rem 0;
    background: #000;
    border-top: 4px dashed #ff00ff;
}

.foot-row-track {
    display: flex;
    gap: 2rem;
    animation: marquee 18s linear infinite;
    will-change: transform;
}

.foot-row-track img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    flex-shrink: 0;
    animation: spin 3s linear infinite;
}

footer {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 2rem 1rem 4rem;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 #000;
}

/* ---------- AUDIO PANEEL ---------- */
.audio-panel {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    padding: 1rem;
    border: 3px solid #fff;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 0 30px #ff00ff;
}

.audio-panel label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* ---------- CURSOR TRAIL ---------- */
.trail {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    transform: translate(-50%, -50%);
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    from { opacity: 0.9; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to   { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(360deg); }
}

