﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    margin-bottom: 1rem;
    animation: errorPulse 2s ease-in-out infinite alternate;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
    animation: shake 0.8s ease-in-out infinite;
}

.error-message {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 600;
}

.error-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-code-display {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.error-time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.action-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    margin: 0 10px 10px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    font-weight: 500;
}

    .btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

    .btn-primary:hover {
        background: rgba(255, 255, 255, 1);
        color: #5a67d8;
    }

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.4;
    animation: floatAround 20s linear infinite;
}

.icon-404 {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes errorPulse {
    from {
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
        transform: scale(1);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 107, 107, 0.8), 0 0 40px rgba(255, 107, 107, 0.6);
        transform: scale(1.02);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

@keyframes floatAround {
    0% {
        transform: translateX(-50px) translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateX(100vw) translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }

    .error-icon {
        font-size: 3rem;
    }

    .error-message {
        font-size: 1.6rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }

    .error-details {
        padding: 1rem;
        margin: 1rem 0;
    }
}
