body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
}

.box-style {
    width: 100%;
    padding: 0 15px;
}

.error-container {
    text-align: center;
    background-color: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
}

.error-icon {
    font-size: 5rem;
    color: #d9534f;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.error-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #d9534f;
    font-weight: 600;
}

.error-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #5a5a5a;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.home-button, .retry-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-button {
    background-color: #007bff;
}

.retry-button {
    background-color: #6c757d;
}

.home-button:hover, .retry-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
    background-color: #0056b3;
}

.retry-button:hover {
    background-color: #5a6268;
}

.home-button:active, .retry-button:active {
    transform: translateY(-1px);
}

.error-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.error-message {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.error-code {
    font-size: 0.9rem;
    color: #adb5bd;
    font-family: monospace;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .error-container {
        padding: 2rem;
        width: 85%;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-container h1 {
        font-size: 2rem;
    }
    
    .error-container p {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}
