/* not-found.css */

:root {
    /* ANCHOR CONTROLS - Keep these small for a subtle anchor feel */
    --float-speed: 12s;       /* Very slow for a "drifting" effect */
    --drift-range: 8px;       /* Small distance so it stays centered */
    --tilt-angle: 1deg;       /* Almost unnoticeable tilt */
}

/* 1. Reset and Center Background */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #000; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Tahoma', sans-serif;
    /* This padding ensures the glow never clips the edge of the monitor */
    padding: 100px; 
    box-sizing: border-box;
    overflow: hidden; 
}

/* 2. The Anchored Floating Window */
.error-window {
    width: 90vw;
    max-width: 480px;
    background: #000;
    display: flex;
    flex-direction: column;
    border: 10px solid #ff00ff; 
    
    /* Increased shadow spread to avoid hard-edge artifacts */
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.5);
    
    /* SEAMLESS ANIMATION */
    animation: anchored-drift var(--float-speed) linear infinite;
    
    /* Keeps the window crisp while moving */
    will-change: transform;
    image-rendering: pixelated;
}

/* 3. The Anchored Drift Logic */
/* Moves in a very tight, smooth infinity-loop (figure 8) pattern */
@keyframes anchored-drift {
    0% {
        transform: translate(0, 0) rotate(var(--tilt-angle));
    }
    25% {
        transform: translate(var(--drift-range), calc(-1 * var(--drift-range))) rotate(0deg);
    }
    50% {
        transform: translate(0, var(--drift-range)) rotate(calc(-1 * var(--tilt-angle)));
    }
    75% {
        transform: translate(calc(-1 * var(--drift-range)), calc(-1 * var(--drift-range))) rotate(0deg);
    }
    100% {
        transform: translate(0, 0) rotate(var(--tilt-angle));
    }
}

/* 4. Window Header */
.error-header {
    background: #000;
    color: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    border-bottom: 2px solid #ff00ff; 
}

.window-title {
    font-size: 16px;
    font-weight: bold;
    font-family: 'Fixedsys', monospace;
    letter-spacing: 1px;
}

.error-controls {
    display: flex;
    gap: 4px;
}

.fake-btn {
    width: 22px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    background: #000;
    color: #ff00ff;
    border: 1px solid #ff00ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Window Content */
.error-body {
    padding: 30px;
    background: #000;
    color: #fff;
    text-align: center;
}

h1 {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #ff00ff;
    text-transform: uppercase;
}

p {
    font-size: 14px;
    margin: 0 0 30px 0;
    line-height: 1.6;
    color: #cccccc; /* Slightly dimmed for better focus on the magenta */
}

.back-link {
    display: inline-block;
    padding: 10px 30px;
    background: #000;
    border: 2px solid #ff00ff;
    text-decoration: none;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #ff00ff;
    color: #000;
    box-shadow: 0 0 20px #ff00ff;
}