body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    background: black;
    color: #d6d6d6;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #000 0%, #050505 60%, #111 100%);
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.main-title {
    font-size: 4rem;
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444, 0 0 20px #cc0000, 0 0 30px #660000;
    animation: pulse 1.5s infinite, glitch-text 2s infinite;
    margin-bottom: 20px;
    margin-top: -100px;
    position: relative;
    top: -100px;
}
.glitched-img {
    width: 300px;
    margin: 20px 0;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    animation: glitch 1s infinite alternate-reverse;
}

.rant {
    font-size: 1.3rem;
    line-height: 1.8rem;
    margin: 10px auto;
    text-align: center;
    max-width: 90%;
    color: #aaaaaa;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.2);
    animation: flicker 1.2s infinite alternate-reverse, wave 2s infinite;
}

.chaotic {
    font-weight: bold;
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444, 0 0 20px #660000;
    animation: chaos 2s infinite alternate;
}

.highlight {
    color: #ff8800;
    text-shadow: 0 0 15px #ff8800, 0 0 30px #cc6600;
    animation: glitch-text 1.5s infinite alternate;
}

.fact {
    margin-top: 40px;
    font-size: 1.4rem;
    color: #ff8800;
    text-align: center;
    text-shadow: 0 0 10px #ff8800, 0 0 20px #cc6600, 0 0 40px #ff8800;
    animation: pulse 2s infinite alternate-reverse, flicker 1.5s infinite;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    overflow-wrap: break-word;
}

#random-fact {
    transition: opacity 2s ease-in-out;
    opacity: 1;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
    text-align: center;
    color: #ff8800;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

#tracker-stats {
    text-shadow: 0 0 5px #ff8800, 0 0 10px #ff4400;
    animation: flicker 2s infinite alternate;
}


@keyframes flicker {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.6;
    }
}

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

@keyframes glitch {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-5px, 5px);
    }
    30% {
        transform: translate(5px, -5px);
    }
    50% {
        transform: translate(-5px, -5px);
    }
    70% {
        transform: translate(5px, 5px);
    }
}

@keyframes chaos {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
    100% {
        transform: rotate(-10deg) scale(0.9);
    }
}

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

@keyframes glitch-text {
    0% {
        text-shadow: 2px 2px 0px #ff0000, -2px -2px 0px #00ff00;
    }
    50% {
        text-shadow: -2px 2px 0px #ff00ff, 2px -2px 0px #00ffff;
    }
    100% {
        text-shadow: 2px -2px 0px #ffff00, -2px 2px 0px #ff0000;
    }
}

@media (max-width: 1920px) {
    .main-title {
        font-size: 3.5rem;
        margin-top: -80px;
        top: -40px;
    }
}

@media (max-width: 1440px) {
    .main-title {
        font-size: 3rem;
        margin-top: -60px;
        top: -30px;
    }
}

@media (max-width: 767px) {
    body, html {
        overflow: auto;
        height: auto;
    }

    .container {
        padding: 20px;
        width: 100%;
        height: auto;
    }

    .main-title {
        font-size: 2.5rem;
        margin-top: 50px;
    }

    .rant {
        font-size: 1rem;
    }

    footer {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 5px 15px;
        text-align: center;
        color: #ff8800;
        font-family: 'Courier New', monospace;
        font-size: 1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
        z-index: 2;
    }

    #tracker-stats {
        text-shadow: 0 0 5px #ff8800, 0 0 10px #ff4400;
        animation: flicker 2s infinite alternate;
    }
}

@media (max-width: 1440px) {
    .main-title {
        font-size: 3rem;
    }
}

@media (max-width: 1280px) {
    body, html {
        overflow: auto;
        height: auto;
    }

    .container {
        padding: 20px;
        width: 100%;
        height: auto;
    }

    .main-title {
        font-size: 2.5rem;
        margin-top: 50px;
    }

    .rant {
        font-size: 1rem;
    }

    footer {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 5px 15px;
        text-align: center;
        color: #ff8800;
        font-family: 'Courier New', monospace;
        font-size: 1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
        z-index: 2;
    }

    #tracker-stats {
        text-shadow: 0 0 5px #ff8800, 0 0 10px #ff4400;
        animation: flicker 2s infinite alternate;
    }
}
