* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 90%;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.digit {
    display: inline-block;
    position: relative;
    transform-origin: center;
}

.particle-text {
    position: absolute;
    pointer-events: none;
    user-select: none;
    font-size: 1.5rem;
    opacity: 0;
}

/* Explosion particles */
.explosion-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* Error-specific particle colors */
.error-403 .explosion-particle { background: linear-gradient(45deg, #d63031, #ff7675); }
.error-404 .explosion-particle { background: linear-gradient(45deg, #0984e3, #74b9ff); }
.error-502 .explosion-particle { background: linear-gradient(45deg, #00b894, #55efc4); }
.error-503 .explosion-particle { background: linear-gradient(45deg, #6c5ce7, #a29bfe); }

/* Add shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

/* Add explosion animation */
@keyframes explode {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes particle-move {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(0) translate(var(--tx), var(--ty));
        opacity: 0;
    }
}