body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, skyblue, limegreen, white); /* Basic gradient */
    background-size: 400% 400%; /* Make the gradient larger */
    animation: gradientAnimation 15s ease infinite; /* Add animation */
    overflow: hidden;
}

/* Rest of the CSS remains the same */

.container {
    text-align: center;
}

.error-code {
    font-size: 8em;
    font-weight: bold;
    color: #d32f2f;
    animation: pulse 2s infinite ease-in-out;
}

.error-message {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

p {
    color: #666;
    margin-bottom: 30px;
}

.home-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1976d2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.home-link:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}