/* =====================================================
   APRIL FOOLS 2026 - THE MOST CURSED CSS EVER WRITTEN
   Mr. Garcia's Logic & Computation - garciacode.com
   "It's not a bug, it's a feature"
   ===================================================== */

/* Import Comic Sans (and Papyrus as backup because why not) */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

/* THE CURSED FOUNDATION */
body {
    background-color: #ff00ff !important;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 0, 0.15) 35px,
            rgba(255, 255, 0, 0.15) 70px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(0, 255, 255, 0.1) 35px,
            rgba(0, 255, 255, 0.1) 70px
        ) !important;
    font-family: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', cursive !important;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" style="font-size:28px"><text y="28">🌮</text></svg>') 16 16, auto !important;
    overflow-x: hidden;
}

/* ALL TEXT BECOMES COMIC SANS - NO EXCEPTIONS */
* {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
}

/* HEADINGS: RAINBOW TEXT ANIMATION */
h1, h2, h3, h4, h5, h6 {
    color: #ffff00 !important;
    text-shadow:
        3px 3px 0px #ff0000,
        6px 6px 0px #00ff00,
        9px 9px 0px #0000ff !important;
    animation: rainbow-text 2s linear infinite, wobble 0.5s ease-in-out infinite !important;
    font-size: 3em !important;
    letter-spacing: 3px !important;
}

@keyframes rainbow-text {
    0%   { color: #ff0000; }
    16%  { color: #ff8800; }
    33%  { color: #ffff00; }
    50%  { color: #00ff00; }
    66%  { color: #0088ff; }
    83%  { color: #8800ff; }
    100% { color: #ff0000; }
}

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

/* PARAGRAPHS: NEON GREEN ON PINK */
p {
    color: #39ff14 !important;
    font-size: 22px !important;
    text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14 !important;
    border-left: 5px dashed #ffff00 !important;
    padding-left: 15px !important;
    line-height: 2 !important;
}

/* LINKS: BLINK AND YOU'LL MISS IT */
a {
    color: #ff6600 !important;
    text-decoration: underline wavy #ff0000 !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    transition: all 0.1s !important;
}

a:hover {
    color: #ff00ff !important;
    background-color: #ffff00 !important;
    font-size: 1.4em !important;
    transform: rotate(-5deg) scale(1.2) !important;
    display: inline-block !important;
    animation: jello 0.5s !important;
    border-radius: 10px !important;
    padding: 2px 8px !important;
}

@keyframes jello {
    0%, 100% { transform: scale3d(1,1,1); }
    30%  { transform: scale3d(1.25,0.75,1); }
    40%  { transform: scale3d(0.75,1.25,1); }
    50%  { transform: scale3d(1.15,0.85,1); }
    65%  { transform: scale3d(0.95,1.05,1); }
    75%  { transform: scale3d(1.05,0.95,1); }
}

/* IMAGES: SPIN AND GLOW */
img {
    border: 5px dashed #ff00ff !important;
    border-radius: 0 !important;
    animation: spin-slow 8s linear infinite !important;
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff, 0 0 60px #ffff00 !important;
    transition: transform 0.3s !important;
}

img:hover {
    animation: spin-fast 0.3s linear infinite !important;
    transform: scale(1.5) !important;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spin-fast {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* CODE/MONOSPACE SECTIONS: HACKER AESTHETIC */
div[style*="monospace"], pre, code, .niceFormat {
    background: linear-gradient(135deg, #000000, #001100) !important;
    color: #00ff00 !important;
    border: 3px solid #00ff00 !important;
    box-shadow: 0 0 15px #00ff00, inset 0 0 15px rgba(0,255,0,0.1) !important;
    font-family: 'Courier New', monospace !important;
    padding: 15px !important;
    position: relative !important;
    text-shadow: 0 0 5px #00ff00 !important;
}

/* SCROLLBAR CHAOS */
::-webkit-scrollbar {
    width: 20px;
    background: repeating-linear-gradient(
        0deg,
        #ff0000 0px,
        #ff8800 20px,
        #ffff00 40px,
        #00ff00 60px,
        #0088ff 80px,
        #8800ff 100px
    );
}

::-webkit-scrollbar-thumb {
    background: #ff00ff;
    border: 3px solid #ffff00;
    border-radius: 0;
}

/* ======= INJECTED ELEMENT STYLES ======= */

/* TOP MARQUEE BANNER */
#cursed-marquee-top {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff0000);
    background-size: 200% 100%;
    animation: rainbow-bg 2s linear infinite;
    color: #000000;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    text-shadow: 1px 1px 0 #ffffff;
    border-bottom: 4px dashed #000;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
}

@keyframes rainbow-bg {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* BOTTOM VISITOR COUNTER BAR */
#cursed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000080;
    color: #ffff00;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    font-size: 16px;
    padding: 8px;
    text-align: center;
    z-index: 99999;
    border-top: 3px ridge #c0c0c0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#cursed-footer img {
    animation: none !important;
    border: none !important;
    box-shadow: none !important;
    height: 30px;
    width: auto;
}

#visitor-counter {
    font-family: 'Courier New', monospace !important;
    background: #000;
    color: #00ff00;
    padding: 2px 10px;
    border: 2px inset #808080;
    font-size: 18px;
    letter-spacing: 2px;
}

/* UNDER CONSTRUCTION BANNER */
#under-construction {
    text-align: center;
    padding: 15px;
    margin: 60px auto 20px auto;
    max-width: 600px;
    background: #ffff00;
    border: 5px dashed #ff0000;
    animation: blink-bg 0.8s step-end infinite;
}

#under-construction img {
    animation: none !important;
    border: none !important;
    box-shadow: none !important;
    height: 50px;
    vertical-align: middle;
}

#under-construction span {
    color: #ff0000 !important;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    vertical-align: middle;
    animation: blink-text 1s step-end infinite;
}

@keyframes blink-bg {
    0%, 100% { background: #ffff00; }
    50%      { background: #ff8800; }
}

@keyframes blink-text {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* GUESTBOOK FLOATING BUTTON */
#guestbook-btn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 25px;
    border: 3px outset #c0c0c0;
    cursor: pointer;
    z-index: 99998;
    animation: bounce-btn 1s ease infinite;
    text-decoration: none;
    transform-origin: center;
}

#guestbook-btn:hover {
    transform: scale(1.3) rotate(10deg) !important;
    background: #ffff00 !important;
}

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

/* SPARKLE CURSOR TRAIL */
.sparkle {
    position: fixed;
    pointer-events: none;
    font-size: 20px;
    z-index: 999999;
    animation: sparkle-fade 1s forwards;
}

@keyframes sparkle-fade {
    0%   { opacity: 1; transform: scale(1) rotate(0deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg) translateY(-50px); }
}

/* CLIPPY HELPER */
#clippy-helper {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: #ffffcc;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    font-size: 14px;
    max-width: 250px;
    z-index: 99998;
    box-shadow: 3px 3px 0 #000;
    animation: clippy-bounce 3s ease-in-out infinite;
}

#clippy-helper::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 30px;
    border-width: 15px 10px 0 10px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

#clippy-helper::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 32px;
    border-width: 12px 8px 0 8px;
    border-style: solid;
    border-color: #ffffcc transparent transparent transparent;
}

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

/* MAKE BODY HAVE PADDING FOR FIXED ELEMENTS */
body {
    padding-top: 55px !important;
    padding-bottom: 55px !important;
}

/* SELECTION COLOR */
::selection {
    background: #ff00ff !important;
    color: #00ff00 !important;
}

/* COMIC SANS ENFORCEMENT ON ABSOLUTELY EVERYTHING */
div, span, p, a, li, ul, ol, h1, h2, h3, h4, h5, h6, td, th, input, button, textarea, label {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
}

/* Sparkle dividers between sections */
.sparkle-divider {
    text-align: center;
    font-size: 30px;
    padding: 10px;
    animation: rainbow-text 3s linear infinite;
    letter-spacing: 10px;
}

/* Midis wouldn't play so at least make an audio player look cursed */
audio {
    filter: hue-rotate(180deg) !important;
}

/* Easter egg: konami code activated style */
body.konami-activated {
    animation: earthquake 0.3s infinite !important;
}

@keyframes earthquake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(5px, -5px) rotate(1deg); }
    50%  { transform: translate(-5px, 5px) rotate(-1deg); }
    75%  { transform: translate(5px, 5px) rotate(1deg); }
    100% { transform: translate(-5px, -5px) rotate(-1deg); }
}

/* Print styles - be nice, normalize for printing */
@media print {
    * {
        animation: none !important;
        background: white !important;
        color: black !important;
        font-family: serif !important;
        text-shadow: none !important;
        box-shadow: none !important;
        transform: none !important;
    }
    #cursed-marquee-top, #cursed-footer, #under-construction,
    #guestbook-btn, #clippy-helper, .sparkle, .sparkle-divider {
        display: none !important;
    }
    body {
        padding: 0 !important;
    }
}
