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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: rainbow 3s ease-in-out infinite alternate;
}

@keyframes rainbow {
    0% { color: #ff6b6b; }
    25% { color: #4ecdc4; }
    50% { color: #45b7d1; }
    75% { color: #96ceb4; }
    100% { color: #ffeaa7; }
}

.elephant-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 50px;
    overflow: visible;
}

.elephant {
    font-size: 8rem;
    color: #4169E1;
    position: relative;
    animation: elephantBounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.elephant:hover {
    transform: scale(1.1);
}

@keyframes elephantBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.elephant-butt {
    position: absolute;
    bottom: 10px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #4169E1 60%, #2E4BC7 100%);
    border-radius: 50%;
    opacity: 0.9;
    z-index: 1;
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.3);
}

.elephant-butt::after {
    content: '🕳️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
}

.rainbow {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 175px;
    z-index: 2;
    pointer-events: none;
}

.rainbow-arc {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    border: 12px solid transparent;
    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0%;
    background: conic-gradient(
        from 0deg,
        #ff0000 0deg,
        #ff8800 30deg,
        #ffff00 60deg,
        #88ff00 90deg,
        #00ff88 120deg,
        #0088ff 150deg,
        #8800ff 180deg,
        #ff0088 210deg,
        #ff0000 240deg
    );
    animation: rainbowRotate 3s linear infinite;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
}

.rainbow-arc::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: -12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0%;
}

.rainbow-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkleFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
}

.sparkle:nth-child(1) {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 15%;
    left: 35%;
    animation-delay: 0.4s;
}

.sparkle:nth-child(3) {
    top: 10%;
    left: 50%;
    animation-delay: 0.8s;
}

.sparkle:nth-child(4) {
    top: 15%;
    right: 35%;
    animation-delay: 1.2s;
}

.sparkle:nth-child(5) {
    top: 25%;
    right: 15%;
    animation-delay: 1.6s;
}

@keyframes rainbowRotate {
    0% {
        filter:
            drop-shadow(0 0 20px rgba(255,0,0,0.5))
            hue-rotate(0deg)
            brightness(1.2);
    }
    25% {
        filter:
            drop-shadow(0 0 25px rgba(255,255,0,0.6))
            hue-rotate(90deg)
            brightness(1.4);
    }
    50% {
        filter:
            drop-shadow(0 0 30px rgba(0,255,0,0.7))
            hue-rotate(180deg)
            brightness(1.6);
    }
    75% {
        filter:
            drop-shadow(0 0 25px rgba(0,0,255,0.6))
            hue-rotate(270deg)
            brightness(1.4);
    }
    100% {
        filter:
            drop-shadow(0 0 20px rgba(255,0,0,0.5))
            hue-rotate(360deg)
            brightness(1.2);
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-10px) scale(1.2) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) scale(0.9) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-15px) scale(1.1) rotate(270deg);
        opacity: 1;
    }
}

.ground {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;


    z-index: 1;
}

.poop-pile {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 150px;
    width: 200px;
    z-index: 100;
}

.poop {
    position: absolute;
    font-size: 2rem;
    z-index: 150;
    cursor: pointer;
    user-select: none;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh - 200px)) rotate(360deg);
        opacity: 0.9;
    }
}

@keyframes bounce {
    0% { transform: translateY(-20px) scale(1.2); }
    50% { transform: translateY(5px) scale(0.9); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes explode {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(3) rotate(360deg);
        opacity: 0;
    }
}

.explosion {
    pointer-events: none;
    user-select: none;
}

@keyframes megaExplode {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2) rotate(360deg);
        opacity: 0;
    }
}

@keyframes serverShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px) rotate(-1deg); }
    20% { transform: translateX(10px) rotate(1deg); }
    30% { transform: translateX(-10px) rotate(-1deg); }
    40% { transform: translateX(10px) rotate(1deg); }
    50% { transform: translateX(-5px) rotate(-0.5deg); }
    60% { transform: translateX(5px) rotate(0.5deg); }
    70% { transform: translateX(-5px) rotate(-0.5deg); }
    80% { transform: translateX(5px) rotate(0.5deg); }
    90% { transform: translateX(-2px) rotate(-0.2deg); }
}

@keyframes restartGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) hue-rotate(90deg); }
}

.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(45deg, #000 0%, #330000 50%, #000 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: errorAppear 1s ease-out;
}

@keyframes errorAppear {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.error-content {
    text-align: center;
    color: #ff0000;
    max-width: 800px;
    padding: 40px;
    background: rgba(0,0,0,0.9);
    border: 3px solid #ff0000;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255,0,0,0.5);
    animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(255,0,0,0.5); }
    50% { box-shadow: 0 0 100px rgba(255,0,0,0.8); }
}

.error-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: errorFlicker 1s ease-in-out infinite alternate;
}

.error-content h2 {
    font-size: 1.5rem;
    color: #ffaa00;
    margin-bottom: 30px;
}

@keyframes errorFlicker {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.error-message {
    background: rgba(255,0,0,0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #ff0000;
}

.error-message p {
    margin: 10px 0;
    font-size: 1.2rem;
}

.error-code {
    background: #000;
    color: #00ff00;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    border: 1px solid #00ff00;
    overflow-x: auto;
}

.restart-btn {
    background: linear-gradient(45deg, #ff0000, #ff6600);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    margin: 20px 0;
    animation: buttonPulse 1s ease-in-out infinite;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255,0,0,0.5);
}

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

.error-footer {
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

.error-footer p {
    margin: 5px 0;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes shockwave {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% {
        width: 2000px;
        height: 2000px;
        opacity: 0;
    }
}

@keyframes fireParticle {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200px) scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-150px) scale(1.5) rotate(90deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-300px) scale(2) rotate(180deg);
        opacity: 0;
    }
}

@keyframes rainbowPulse {
    0% {
        transform: translateX(-50%) scale(1);
        filter: brightness(1) saturate(1);
    }
    50% {
        transform: translateX(-50%) scale(1.3);
        filter: brightness(3) saturate(3) hue-rotate(180deg);
    }
    100% {
        transform: translateX(-50%) scale(1.2);
        filter: brightness(2) saturate(2) hue-rotate(360deg);
    }
}

@keyframes rainbowSparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rainbowExplode {
    0% {
        transform: translateX(-50%) scale(1);
        filter: brightness(1) saturate(1) hue-rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(5);
        filter: brightness(10) saturate(5) hue-rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scale(10);
        filter: brightness(20) saturate(10) hue-rotate(720deg);
        opacity: 0;
    }
}

@keyframes rainbowParticle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.5) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: scale(1.2) rotate(270deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.php-poop {
    background: #777bb4;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.controls {
    margin: 30px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.poop-btn, .clear-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.poop-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.poop-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.clear-btn {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
}

.clear-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.sound-info {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    animation: soundPulse 2s ease-in-out infinite;
}

@keyframes soundPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.stat-label {
    color: #fff;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    color: #ffeaa7;
    font-size: 1.5rem;
    font-weight: bold;
}

.php-facts {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.php-facts h3 {
    color: #fff;
    margin-bottom: 15px;
}

.fact {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .elephant {
        font-size: 6rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

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